From 07a73683cebe1d1814b6cae0c22bbf63a71f55b9 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 24 Feb 2022 21:07:20 +0000 Subject: [PATCH 1/3] =?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 Merge branch 'owl-bot-copy' of https://github.com/googleapis/java-logging into owl-bot-copy 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md feat: KMS configuration in settings chore: formatting changes PiperOrigin-RevId: 430243637 Source-Link: https://github.com/googleapis/googleapis/commit/95da686e8840cf3edf872ce3d095967e24e41bf6 Source-Link: https://github.com/googleapis/googleapis-gen/commit/a1f056b7689ccbe5aebc0bfdd318e9945ee7602a Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYTFmMDU2Yjc2ODljY2JlNWFlYmMwYmZkZDMxOGU5OTQ1ZWU3NjAyYSJ9 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md feat: Update Logging API with latest changes PiperOrigin-RevId: 429289471 Source-Link: https://github.com/googleapis/googleapis/commit/acd5f89b8addd2ff54f41a7d43ff9b122bb43337 Source-Link: https://github.com/googleapis/googleapis-gen/commit/8a12622536ae2e9a8978198a151e89234b839b20 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOGExMjYyMjUzNmFlMmU5YTg5NzgxOThhMTUxZTg5MjM0YjgzOWIyMCJ9 --- .../logging/v2/ConfigServiceV2Grpc.java | 2898 -------------- .../logging/v2/LoggingServiceV2Grpc.java | 962 ----- .../logging/v2/MetricsServiceV2Grpc.java | 801 ---- .../google/cloud/logging/v2/ConfigClient.java | 3489 +++++++++++++++++ .../cloud/logging/v2/ConfigSettings.java | 506 +++ .../cloud/logging/v2/LoggingClient.java | 1290 ++++++ .../cloud/logging/v2/LoggingSettings.java | 266 ++ .../cloud/logging/v2/MetricsClient.java | 790 ++++ .../cloud/logging/v2/MetricsSettings.java | 235 ++ .../cloud/logging/v2/gapic_metadata.json | 147 + .../google/cloud/logging/v2/package-info.java | 69 + .../logging/v2/stub/ConfigServiceV2Stub.java | 211 + .../v2/stub/ConfigServiceV2StubSettings.java | 1199 ++++++ .../GrpcConfigServiceV2CallableFactory.java | 113 + .../v2/stub/GrpcConfigServiceV2Stub.java | 957 +++++ .../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 | 737 ++++ .../logging/v2/stub/MetricsServiceV2Stub.java | 69 + .../v2/stub/MetricsServiceV2StubSettings.java | 463 +++ .../cloud/logging/v2/ConfigClientTest.java | 2719 +++++++++++++ .../cloud/logging/v2/LoggingClientTest.java | 656 ++++ .../cloud/logging/v2/MetricsClientTest.java | 544 +++ .../cloud/logging/v2/MockConfigServiceV2.java | 59 + .../logging/v2/MockConfigServiceV2Impl.java | 633 +++ .../logging/v2/MockLoggingServiceV2.java | 59 + .../logging/v2/MockLoggingServiceV2Impl.java | 213 + .../logging/v2/MockMetricsServiceV2.java | 59 + .../logging/v2/MockMetricsServiceV2Impl.java | 173 + .../logging/v2/ConfigServiceV2Grpc.java | 2717 +++++++++++++ .../logging/v2/LoggingServiceV2Grpc.java | 765 ++++ .../logging/v2/MetricsServiceV2Grpc.java | 647 +++ .../google/logging/v2/BigQueryOptions.java | 355 +- .../logging/v2/BigQueryOptionsOrBuilder.java | 37 +- .../v2/BillingAccountLocationName.java | 0 .../google/logging/v2/BillingAccountName.java | 0 .../com/google/logging/v2/CmekSettings.java | 671 ++-- .../google/logging/v2/CmekSettingsName.java | 116 +- .../logging/v2/CmekSettingsOrBuilder.java | 103 +- .../logging/v2/CopyLogEntriesMetadata.java | 1614 ++++++++ .../v2/CopyLogEntriesMetadataOrBuilder.java | 157 + .../logging/v2/CopyLogEntriesRequest.java | 946 +++++ .../v2/CopyLogEntriesRequestOrBuilder.java | 75 + .../logging/v2/CopyLogEntriesResponse.java | 508 +++ .../v2/CopyLogEntriesResponseOrBuilder.java | 19 + .../logging/v2/CreateBucketRequest.java | 600 ++- .../v2/CreateBucketRequestOrBuilder.java | 74 +- .../logging/v2/CreateExclusionRequest.java | 502 +-- .../v2/CreateExclusionRequestOrBuilder.java | 60 +- .../logging/v2/CreateLogMetricRequest.java | 444 +-- .../v2/CreateLogMetricRequestOrBuilder.java | 43 +- .../google/logging/v2/CreateSinkRequest.java | 503 +-- .../v2/CreateSinkRequestOrBuilder.java | 60 +- .../google/logging/v2/CreateViewRequest.java | 507 +-- .../v2/CreateViewRequestOrBuilder.java | 56 +- .../logging/v2/DeleteBucketRequest.java | 357 +- .../v2/DeleteBucketRequestOrBuilder.java | 43 +- .../logging/v2/DeleteExclusionRequest.java | 350 +- .../v2/DeleteExclusionRequestOrBuilder.java | 41 + .../logging/v2/DeleteLogMetricRequest.java | 329 +- .../v2/DeleteLogMetricRequestOrBuilder.java | 31 + .../google/logging/v2/DeleteLogRequest.java | 392 +- .../logging/v2/DeleteLogRequestOrBuilder.java | 47 + .../google/logging/v2/DeleteSinkRequest.java | 347 +- .../v2/DeleteSinkRequestOrBuilder.java | 41 +- .../google/logging/v2/DeleteViewRequest.java | 354 +- .../v2/DeleteViewRequestOrBuilder.java | 35 + .../google/logging/v2/FolderLocationName.java | 0 .../com/google/logging/v2/FolderName.java | 0 .../google/logging/v2/GetBucketRequest.java | 350 +- .../logging/v2/GetBucketRequestOrBuilder.java | 43 +- .../logging/v2/GetCmekSettingsRequest.java | 403 +- .../v2/GetCmekSettingsRequestOrBuilder.java | 49 + .../logging/v2/GetExclusionRequest.java | 350 +- .../v2/GetExclusionRequestOrBuilder.java | 41 + .../logging/v2/GetLogMetricRequest.java | 329 +- .../v2/GetLogMetricRequestOrBuilder.java | 31 + .../google/logging/v2/GetSettingsRequest.java | 671 ++++ .../v2/GetSettingsRequestOrBuilder.java | 49 + .../com/google/logging/v2/GetSinkRequest.java | 343 +- .../logging/v2/GetSinkRequestOrBuilder.java | 41 + .../com/google/logging/v2/GetViewRequest.java | 350 +- .../logging/v2/GetViewRequestOrBuilder.java | 35 + .../com/google/logging/v2/LifecycleState.java | 96 +- .../google/logging/v2/ListBucketsRequest.java | 519 ++- .../v2/ListBucketsRequestOrBuilder.java | 69 +- .../logging/v2/ListBucketsResponse.java | 454 +-- .../v2/ListBucketsResponseOrBuilder.java | 46 +- .../logging/v2/ListExclusionsRequest.java | 442 +-- .../v2/ListExclusionsRequestOrBuilder.java | 47 +- .../logging/v2/ListExclusionsResponse.java | 449 +-- .../v2/ListExclusionsResponseOrBuilder.java | 45 +- .../logging/v2/ListLogEntriesRequest.java | 924 ++--- .../v2/ListLogEntriesRequestOrBuilder.java | 162 +- .../logging/v2/ListLogEntriesResponse.java | 454 +-- .../v2/ListLogEntriesResponseOrBuilder.java | 46 +- .../logging/v2/ListLogMetricsRequest.java | 442 +-- .../v2/ListLogMetricsRequestOrBuilder.java | 47 +- .../logging/v2/ListLogMetricsResponse.java | 454 +-- .../v2/ListLogMetricsResponseOrBuilder.java | 46 +- .../google/logging/v2/ListLogsRequest.java | 839 ++-- .../logging/v2/ListLogsRequestOrBuilder.java | 152 + .../google/logging/v2/ListLogsResponse.java | 405 +- .../logging/v2/ListLogsResponseOrBuilder.java | 45 +- ...stMonitoredResourceDescriptorsRequest.java | 360 +- ...edResourceDescriptorsRequestOrBuilder.java | 30 +- ...tMonitoredResourceDescriptorsResponse.java | 465 +-- ...dResourceDescriptorsResponseOrBuilder.java | 45 +- .../google/logging/v2/ListSinksRequest.java | 435 +- .../logging/v2/ListSinksRequestOrBuilder.java | 47 +- .../google/logging/v2/ListSinksResponse.java | 454 +-- .../v2/ListSinksResponseOrBuilder.java | 46 +- .../google/logging/v2/ListViewsRequest.java | 463 +-- .../logging/v2/ListViewsRequestOrBuilder.java | 55 +- .../google/logging/v2/ListViewsResponse.java | 454 +-- .../v2/ListViewsResponseOrBuilder.java | 46 +- .../com/google/logging/v2/LocationName.java | 0 .../java/com/google/logging/v2/LogBucket.java | 2180 ++++++++++ .../com/google/logging/v2/LogBucketName.java | 0 .../google/logging/v2/LogBucketOrBuilder.java | 260 ++ .../java/com/google/logging/v2/LogEntry.java | 2530 ++++++------ .../google/logging/v2/LogEntryOperation.java | 451 +-- .../v2/LogEntryOperationOrBuilder.java | 42 +- .../google/logging/v2/LogEntryOrBuilder.java | 346 +- .../com/google/logging/v2/LogEntryProto.java | 156 + .../logging/v2/LogEntrySourceLocation.java | 417 +- .../v2/LogEntrySourceLocationOrBuilder.java | 39 +- .../com/google/logging/v2/LogExclusion.java | 831 ++-- .../google/logging/v2/LogExclusionName.java | 0 .../logging/v2/LogExclusionOrBuilder.java | 94 +- .../java/com/google/logging/v2/LogMetric.java | 1685 ++++---- .../com/google/logging/v2/LogMetricName.java | 0 .../google/logging/v2/LogMetricOrBuilder.java | 216 +- .../java/com/google/logging/v2/LogName.java | 0 .../java/com/google/logging/v2/LogSink.java | 1949 ++++----- .../com/google/logging/v2/LogSinkName.java | 0 .../google/logging/v2/LogSinkOrBuilder.java | 283 +- .../java/com/google/logging/v2/LogSplit.java | 779 ++++ .../google/logging/v2/LogSplitOrBuilder.java | 55 + .../java/com/google/logging/v2/LogView.java | 856 ++-- .../com/google/logging/v2/LogViewName.java | 0 .../google/logging/v2/LogViewOrBuilder.java | 115 +- .../google/logging/v2/LoggingConfigProto.java | 915 +++++ .../logging/v2/LoggingMetricsProto.java | 223 ++ .../com/google/logging/v2/LoggingProto.java | 326 ++ .../com/google/logging/v2/OperationState.java | 222 ++ .../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 | 1375 +++++++ .../com/google/logging/v2/SettingsName.java | 383 ++ .../google/logging/v2/SettingsOrBuilder.java | 156 + .../logging/v2/TailLogEntriesRequest.java | 756 ++-- .../v2/TailLogEntriesRequestOrBuilder.java | 126 +- .../logging/v2/TailLogEntriesResponse.java | 1066 ++--- .../v2/TailLogEntriesResponseOrBuilder.java | 66 +- .../logging/v2/UndeleteBucketRequest.java | 357 +- .../v2/UndeleteBucketRequestOrBuilder.java | 43 +- .../logging/v2/UpdateBucketRequest.java | 712 ++-- .../v2/UpdateBucketRequestOrBuilder.java | 96 +- .../logging/v2/UpdateCmekSettingsRequest.java | 697 ++-- .../UpdateCmekSettingsRequestOrBuilder.java | 94 +- .../logging/v2/UpdateExclusionRequest.java | 625 ++- .../v2/UpdateExclusionRequestOrBuilder.java | 75 +- .../logging/v2/UpdateLogMetricRequest.java | 444 +-- .../v2/UpdateLogMetricRequestOrBuilder.java | 43 +- .../logging/v2/UpdateSettingsRequest.java | 1199 ++++++ .../v2/UpdateSettingsRequestOrBuilder.java | 116 + .../google/logging/v2/UpdateSinkRequest.java | 696 ++-- .../v2/UpdateSinkRequestOrBuilder.java | 93 +- .../google/logging/v2/UpdateViewRequest.java | 568 ++- .../v2/UpdateViewRequestOrBuilder.java | 66 +- .../v2/WriteLogEntriesPartialErrors.java | 459 +-- ...WriteLogEntriesPartialErrorsOrBuilder.java | 50 +- .../logging/v2/WriteLogEntriesRequest.java | 1207 +++--- .../v2/WriteLogEntriesRequestOrBuilder.java | 169 +- .../logging/v2/WriteLogEntriesResponse.java | 225 +- .../v2/WriteLogEntriesResponseOrBuilder.java | 9 + .../proto/google/logging/v2/log_entry.proto | 49 +- .../proto/google/logging/v2/logging.proto | 121 +- .../google/logging/v2/logging_config.proto | 794 +++- .../google/logging/v2/logging_metrics.proto | 20 +- .../v2/DeleteExclusionRequestOrBuilder.java | 64 - .../v2/DeleteLogMetricRequestOrBuilder.java | 56 - .../logging/v2/DeleteLogRequestOrBuilder.java | 72 - .../v2/DeleteViewRequestOrBuilder.java | 60 - .../v2/GetCmekSettingsRequestOrBuilder.java | 70 - .../v2/GetExclusionRequestOrBuilder.java | 64 - .../v2/GetLogMetricRequestOrBuilder.java | 56 - .../logging/v2/GetSinkRequestOrBuilder.java | 64 - .../logging/v2/GetViewRequestOrBuilder.java | 60 - .../logging/v2/ListLogsRequestOrBuilder.java | 195 - .../java/com/google/logging/v2/LogBucket.java | 1821 --------- .../google/logging/v2/LogBucketOrBuilder.java | 228 -- .../com/google/logging/v2/LogEntryProto.java | 182 - .../google/logging/v2/LoggingConfigProto.java | 857 ---- .../logging/v2/LoggingMetricsProto.java | 259 -- .../com/google/logging/v2/LoggingProto.java | 363 -- .../v2/WriteLogEntriesResponseOrBuilder.java | 24 - 202 files changed, 48771 insertions(+), 31057 deletions(-) delete mode 100644 grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ConfigServiceV2Grpc.java delete mode 100644 grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingServiceV2Grpc.java 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/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 create mode 100644 owl-bot-staging/v2/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ConfigServiceV2Grpc.java create mode 100644 owl-bot-staging/v2/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingServiceV2Grpc.java 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/BigQueryOptions.java (68%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/BigQueryOptionsOrBuilder.java (56%) 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/CmekSettings.java (62%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CmekSettingsName.java (72%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CmekSettingsOrBuilder.java (51%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadata.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadataOrBuilder.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequest.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequestOrBuilder.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponse.java 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 (66%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CreateBucketRequestOrBuilder.java (57%) 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 (57%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CreateLogMetricRequest.java (68%) 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 (70%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CreateSinkRequestOrBuilder.java (64%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CreateViewRequest.java (69%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CreateViewRequestOrBuilder.java (60%) 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 (51%) 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%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequestOrBuilder.java rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/DeleteLogMetricRequest.java (65%) 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 (61%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequestOrBuilder.java rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/DeleteSinkRequest.java (67%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/DeleteSinkRequestOrBuilder.java (50%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/DeleteViewRequest.java (63%) 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 (50%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/GetCmekSettingsRequest.java (63%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequestOrBuilder.java rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/GetExclusionRequest.java (66%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequestOrBuilder.java rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/GetLogMetricRequest.java (65%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequestOrBuilder.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequest.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequestOrBuilder.java rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/GetSinkRequest.java (66%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequestOrBuilder.java rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/GetViewRequest.java (63%) 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/LifecycleState.java (61%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListBucketsRequest.java (66%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListBucketsRequestOrBuilder.java (55%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListBucketsResponse.java (73%) 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 (71%) 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 (74%) 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/ListLogEntriesRequest.java (64%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListLogEntriesRequestOrBuilder.java (55%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListLogEntriesResponse.java (78%) 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 (71%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListLogMetricsRequestOrBuilder.java (63%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListLogMetricsResponse.java (74%) 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 (59%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequestOrBuilder.java rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListLogsResponse.java (74%) 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 (71%) 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 (74%) 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 (72%) 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 (73%) 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 (69%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListViewsRequestOrBuilder.java (57%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListViewsResponse.java (73%) 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/LocationName.java (100%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucket.java 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%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucketOrBuilder.java rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogEntry.java (68%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogEntryOperation.java (74%) 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 (71%) 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 (74%) 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 (69%) 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 (75%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogMetric.java (73%) 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 (82%) 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 (64%) 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 (61%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplit.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplitOrBuilder.java rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogView.java (63%) 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 (57%) 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 create mode 100644 owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OperationState.java 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%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/Settings.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/SettingsName.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/SettingsOrBuilder.java rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/TailLogEntriesRequest.java (64%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/TailLogEntriesRequestOrBuilder.java (56%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/TailLogEntriesResponse.java (74%) 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 (66%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UndeleteBucketRequestOrBuilder.java (51%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateBucketRequest.java (65%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateBucketRequestOrBuilder.java (61%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequest.java (66%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequestOrBuilder.java (62%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateExclusionRequest.java (69%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateExclusionRequestOrBuilder.java (72%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateLogMetricRequest.java (68%) 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%) create mode 100644 owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequest.java create mode 100644 owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequestOrBuilder.java rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateSinkRequest.java (72%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateSinkRequestOrBuilder.java (71%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateViewRequest.java (71%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateViewRequestOrBuilder.java (71%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/WriteLogEntriesPartialErrors.java (67%) 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 (75%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/WriteLogEntriesRequestOrBuilder.java (78%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/WriteLogEntriesResponse.java (67%) 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 (84%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/proto/google/logging/v2/logging.proto (84%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/proto/google/logging/v2/logging_config.proto (68%) rename {proto-google-cloud-logging-v2 => owl-bot-staging/v2/proto-google-cloud-logging-v2}/src/main/proto/google/logging/v2/logging_metrics.proto (96%) delete mode 100644 proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequestOrBuilder.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/DeleteLogRequestOrBuilder.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/GetCmekSettingsRequestOrBuilder.java delete mode 100644 proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequestOrBuilder.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/GetSinkRequestOrBuilder.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/ListLogsRequestOrBuilder.java delete mode 100644 proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucket.java delete mode 100644 proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucketOrBuilder.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/ConfigServiceV2Grpc.java b/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ConfigServiceV2Grpc.java deleted file mode 100644 index f7a6f8d08..000000000 --- a/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ConfigServiceV2Grpc.java +++ /dev/null @@ -1,2898 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/logging/v2/logging_config.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class ConfigServiceV2Grpc { - - private ConfigServiceV2Grpc() {} - - public static final 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; - - @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; - 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(); - } - } - } - return getListBucketsMethod; - } - - 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< - 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(); - } - } - } - return getGetBucketMethod; - } - - 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< - 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(); - } - } - } - return getCreateBucketMethod; - } - - 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< - 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(); - } - } - } - return getUpdateBucketMethod; - } - - 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< - 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(); - } - } - } - return getDeleteBucketMethod; - } - - 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< - 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(); - } - } - } - return getUndeleteBucketMethod; - } - - 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< - 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(); - } - } - } - return getListViewsMethod; - } - - 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< - 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(); - } - } - } - return getGetViewMethod; - } - - 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< - 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(); - } - } - } - return getCreateViewMethod; - } - - 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< - 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(); - } - } - } - return getUpdateViewMethod; - } - - 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< - 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(); - } - } - } - return getDeleteViewMethod; - } - - 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< - 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(); - } - } - } - return getListSinksMethod; - } - - 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< - 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(); - } - } - } - return getGetSinkMethod; - } - - 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< - 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(); - } - } - } - return getCreateSinkMethod; - } - - 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< - 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(); - } - } - } - return getUpdateSinkMethod; - } - - 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< - 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(); - } - } - } - return getDeleteSinkMethod; - } - - 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< - 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(); - } - } - } - return getListExclusionsMethod; - } - - 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< - 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(); - } - } - } - return getGetExclusionMethod; - } - - 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< - 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(); - } - } - } - return getCreateExclusionMethod; - } - - 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< - 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(); - } - } - } - return getUpdateExclusionMethod; - } - - 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< - 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(); - } - } - } - return getDeleteExclusionMethod; - } - - 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< - 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(); - } - } - } - return getGetCmekSettingsMethod; - } - - 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< - 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(); - } - } - } - return getUpdateCmekSettingsMethod; - } - - /** 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); - } - }; - 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) { - 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); - } - }; - 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) { - 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); - } - }; - return ConfigServiceV2FutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service for configuring sinks used to route log entries.
-   * 
- */ - public abstract static class ConfigServiceV2ImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Lists buckets.
-     * 
- */ - public void listBuckets( - com.google.logging.v2.ListBucketsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListBucketsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a bucket.
-     * 
- */ - public void getBucket( - com.google.logging.v2.GetBucketRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBucketMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a bucket that can be used to store log entries. Once a bucket has
-     * been created, the region cannot be changed.
-     * 
- */ - public void createBucket( - com.google.logging.v2.CreateBucketRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateBucketMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a bucket. This method replaces the following fields in the
-     * existing bucket with values from the new bucket: `retention_period`
-     * If the retention period is decreased and the bucket is locked,
-     * FAILED_PRECONDITION will be returned.
-     * If the bucket has a LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION
-     * will be returned.
-     * A buckets region may not be modified after it is created.
-     * 
- */ - public void updateBucket( - com.google.logging.v2.UpdateBucketRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateBucketMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a bucket.
-     * Moves the bucket to the DELETE_REQUESTED state. After 7 days, the
-     * bucket will be purged and all logs in the bucket will be permanently
-     * deleted.
-     * 
- */ - public void deleteBucket( - com.google.logging.v2.DeleteBucketRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteBucketMethod(), responseObserver); - } - - /** - * - * - *
-     * Undeletes a bucket. A bucket that has been deleted may be undeleted within
-     * the grace period of 7 days.
-     * 
- */ - public void undeleteBucket( - com.google.logging.v2.UndeleteBucketRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUndeleteBucketMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists views on a bucket.
-     * 
- */ - public void listViews( - com.google.logging.v2.ListViewsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListViewsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a view.
-     * 
- */ - public void getView( - com.google.logging.v2.GetViewRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetViewMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a view over logs in a bucket. A bucket may contain a maximum of
-     * 50 views.
-     * 
- */ - public void createView( - com.google.logging.v2.CreateViewRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateViewMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a view. This method replaces the following fields in the existing
-     * view with values from the new view: `filter`.
-     * 
- */ - public void updateView( - com.google.logging.v2.UpdateViewRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateViewMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a view from a bucket.
-     * 
- */ - public void deleteView( - com.google.logging.v2.DeleteViewRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteViewMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists sinks.
-     * 
- */ - public void listSinks( - com.google.logging.v2.ListSinksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSinksMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a sink.
-     * 
- */ - public 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
-     * `writer_identity` is not permitted to write to the destination. A sink can
-     * export log entries only from the resource owning the sink.
-     * 
- */ - public 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`.
-     * The updated sink might also have a new `writer_identity`; see the
-     * `unique_writer_identity` field.
-     * 
- */ - public 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.
-     * 
- */ - public void deleteSink( - com.google.logging.v2.DeleteSinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSinkMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists all the exclusions in a parent resource.
-     * 
- */ - public 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.
-     * 
- */ - public void getExclusion( - com.google.logging.v2.GetExclusionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetExclusionMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a new exclusion 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, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateExclusionMethod(), responseObserver); - } - - /** - * - * - *
-     * Changes one or more properties of an existing exclusion.
-     * 
- */ - public void updateExclusion( - com.google.logging.v2.UpdateExclusionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateExclusionMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes an exclusion.
-     * 
- */ - public void deleteExclusion( - com.google.logging.v2.DeleteExclusionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteExclusionMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the Logs Router CMEK settings for the given resource.
-     * Note: CMEK for the Logs Router can currently only be configured for GCP
-     * organizations. Once configured, it applies to all projects and folders in
-     * the GCP organization.
-     * See [Enabling CMEK for Logs
-     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
-     * for more information.
-     * 
- */ - public void getCmekSettings( - com.google.logging.v2.GetCmekSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetCmekSettingsMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates the Logs Router CMEK settings for the given resource.
-     * Note: CMEK for the Logs Router can currently only be configured for GCP
-     * organizations. Once configured, it applies to all projects and folders in
-     * the GCP 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 Logs
-     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
-     * for more information.
-     * 
- */ - public void updateCmekSettings( - com.google.logging.v2.UpdateCmekSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateCmekSettingsMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - 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>(this, METHODID_LIST_BUCKETS))) - .addMethod( - getGetBucketMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.GetBucketRequest, com.google.logging.v2.LogBucket>( - this, METHODID_GET_BUCKET))) - .addMethod( - getCreateBucketMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.CreateBucketRequest, com.google.logging.v2.LogBucket>( - this, METHODID_CREATE_BUCKET))) - .addMethod( - getUpdateBucketMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.UpdateBucketRequest, com.google.logging.v2.LogBucket>( - this, METHODID_UPDATE_BUCKET))) - .addMethod( - getDeleteBucketMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.DeleteBucketRequest, com.google.protobuf.Empty>( - this, METHODID_DELETE_BUCKET))) - .addMethod( - getUndeleteBucketMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.UndeleteBucketRequest, com.google.protobuf.Empty>( - this, METHODID_UNDELETE_BUCKET))) - .addMethod( - getListViewsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.ListViewsRequest, - com.google.logging.v2.ListViewsResponse>(this, METHODID_LIST_VIEWS))) - .addMethod( - getGetViewMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.GetViewRequest, com.google.logging.v2.LogView>( - this, METHODID_GET_VIEW))) - .addMethod( - getCreateViewMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.CreateViewRequest, com.google.logging.v2.LogView>( - this, METHODID_CREATE_VIEW))) - .addMethod( - getUpdateViewMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.UpdateViewRequest, com.google.logging.v2.LogView>( - this, METHODID_UPDATE_VIEW))) - .addMethod( - getDeleteViewMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.DeleteViewRequest, com.google.protobuf.Empty>( - this, METHODID_DELETE_VIEW))) - .addMethod( - getListSinksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.ListSinksRequest, - com.google.logging.v2.ListSinksResponse>(this, METHODID_LIST_SINKS))) - .addMethod( - getGetSinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.GetSinkRequest, com.google.logging.v2.LogSink>( - this, METHODID_GET_SINK))) - .addMethod( - getCreateSinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.CreateSinkRequest, com.google.logging.v2.LogSink>( - this, METHODID_CREATE_SINK))) - .addMethod( - getUpdateSinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.UpdateSinkRequest, com.google.logging.v2.LogSink>( - this, METHODID_UPDATE_SINK))) - .addMethod( - getDeleteSinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.DeleteSinkRequest, com.google.protobuf.Empty>( - this, METHODID_DELETE_SINK))) - .addMethod( - getListExclusionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.ListExclusionsRequest, - com.google.logging.v2.ListExclusionsResponse>( - this, METHODID_LIST_EXCLUSIONS))) - .addMethod( - getGetExclusionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.GetExclusionRequest, - com.google.logging.v2.LogExclusion>(this, METHODID_GET_EXCLUSION))) - .addMethod( - getCreateExclusionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.CreateExclusionRequest, - com.google.logging.v2.LogExclusion>(this, METHODID_CREATE_EXCLUSION))) - .addMethod( - getUpdateExclusionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.UpdateExclusionRequest, - com.google.logging.v2.LogExclusion>(this, METHODID_UPDATE_EXCLUSION))) - .addMethod( - getDeleteExclusionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.DeleteExclusionRequest, com.google.protobuf.Empty>( - this, METHODID_DELETE_EXCLUSION))) - .addMethod( - getGetCmekSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.GetCmekSettingsRequest, - com.google.logging.v2.CmekSettings>(this, METHODID_GET_CMEK_SETTINGS))) - .addMethod( - getUpdateCmekSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.UpdateCmekSettingsRequest, - com.google.logging.v2.CmekSettings>(this, METHODID_UPDATE_CMEK_SETTINGS))) - .build(); - } - } - - /** - * - * - *
-   * 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) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConfigServiceV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConfigServiceV2Stub(channel, callOptions); - } - - /** - * - * - *
-     * Lists buckets.
-     * 
- */ - 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); - } - - /** - * - * - *
-     * Gets a bucket.
-     * 
- */ - 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 bucket that can be used to store log entries. Once a bucket has
-     * been created, the region cannot be changed.
-     * 
- */ - 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); - } - - /** - * - * - *
-     * Updates a bucket. This method replaces the following fields in the
-     * existing bucket with values from the new bucket: `retention_period`
-     * If the retention period is decreased and the bucket is locked,
-     * FAILED_PRECONDITION will be returned.
-     * If the bucket has a LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION
-     * will be returned.
-     * A buckets region may not be modified after it is created.
-     * 
- */ - 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); - } - - /** - * - * - *
-     * Deletes a bucket.
-     * Moves the bucket to the DELETE_REQUESTED state. After 7 days, the
-     * bucket will be purged and all logs in the bucket will be permanently
-     * deleted.
-     * 
- */ - 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); - } - - /** - * - * - *
-     * Undeletes a bucket. A bucket that has been deleted may be undeleted within
-     * the grace period of 7 days.
-     * 
- */ - 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); - } - - /** - * - * - *
-     * Lists views on a bucket.
-     * 
- */ - 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.
-     * 
- */ - 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 logs in a bucket. A bucket may contain a maximum of
-     * 50 views.
-     * 
- */ - 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. This method replaces the following fields in the existing
-     * view with values from the new view: `filter`.
-     * 
- */ - 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 from a bucket.
-     * 
- */ - 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, - 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, - 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
-     * `writer_identity` is not permitted to write to the destination. A sink can
-     * export log entries only from the resource owning the sink.
-     * 
- */ - 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`.
-     * The updated sink might also have a new `writer_identity`; see the
-     * `unique_writer_identity` field.
-     * 
- */ - 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, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteSinkMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Lists all the exclusions in a parent resource.
-     * 
- */ - 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); - } - - /** - * - * - *
-     * Gets the description of an exclusion.
-     * 
- */ - 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); - } - - /** - * - * - *
-     * Creates a new exclusion 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, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateExclusionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Changes one or more properties of an existing exclusion.
-     * 
- */ - 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); - } - - /** - * - * - *
-     * Deletes an exclusion.
-     * 
- */ - 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); - } - - /** - * - * - *
-     * Gets the Logs Router CMEK settings for the given resource.
-     * Note: CMEK for the Logs Router can currently only be configured for GCP
-     * organizations. Once configured, it applies to all projects and folders in
-     * the GCP organization.
-     * See [Enabling CMEK for Logs
-     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
-     * for more information.
-     * 
- */ - 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); - } - - /** - * - * - *
-     * Updates the Logs Router CMEK settings for the given resource.
-     * Note: CMEK for the Logs Router can currently only be configured for GCP
-     * organizations. Once configured, it applies to all projects and folders in
-     * the GCP 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 Logs
-     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
-     * for more information.
-     * 
- */ - 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); - } - } - - /** - * - * - *
-   * 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) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConfigServiceV2BlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConfigServiceV2BlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists buckets.
-     * 
- */ - 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 bucket.
-     * 
- */ - 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 bucket that can be used to store log entries. Once a bucket has
-     * been created, the region cannot be changed.
-     * 
- */ - 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 bucket. This method replaces the following fields in the
-     * existing bucket with values from the new bucket: `retention_period`
-     * If the retention period is decreased and the bucket is locked,
-     * FAILED_PRECONDITION will be returned.
-     * If the bucket has a LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION
-     * will be returned.
-     * A buckets region may not be modified after it is created.
-     * 
- */ - 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 bucket.
-     * Moves the bucket to the DELETE_REQUESTED state. After 7 days, the
-     * bucket will be purged and all logs in the bucket will be permanently
-     * deleted.
-     * 
- */ - public com.google.protobuf.Empty deleteBucket( - com.google.logging.v2.DeleteBucketRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteBucketMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Undeletes a bucket. A bucket that has been deleted may be undeleted within
-     * the grace period of 7 days.
-     * 
- */ - 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 bucket.
-     * 
- */ - 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.
-     * 
- */ - public com.google.logging.v2.LogView getView(com.google.logging.v2.GetViewRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetViewMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a view over logs in a bucket. A bucket may contain a maximum of
-     * 50 views.
-     * 
- */ - 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. This method replaces the following fields in the existing
-     * view with values from the new view: `filter`.
-     * 
- */ - 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 from a bucket.
-     * 
- */ - public com.google.protobuf.Empty deleteView(com.google.logging.v2.DeleteViewRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteViewMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists sinks.
-     * 
- */ - 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.
-     * 
- */ - public com.google.logging.v2.LogSink getSink(com.google.logging.v2.GetSinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), 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
-     * `writer_identity` is not permitted to write to the destination. A sink can
-     * export log entries only from the resource owning the sink.
-     * 
- */ - 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`.
-     * The updated sink might also have a new `writer_identity`; see the
-     * `unique_writer_identity` field.
-     * 
- */ - 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.
-     * 
- */ - public com.google.protobuf.Empty deleteSink(com.google.logging.v2.DeleteSinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteSinkMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists all the exclusions in a parent resource.
-     * 
- */ - 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.
-     * 
- */ - 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 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) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateExclusionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Changes one or more properties of an existing exclusion.
-     * 
- */ - 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.
-     * 
- */ - public com.google.protobuf.Empty deleteExclusion( - com.google.logging.v2.DeleteExclusionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteExclusionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the Logs Router CMEK settings for the given resource.
-     * Note: CMEK for the Logs Router can currently only be configured for GCP
-     * organizations. Once configured, it applies to all projects and folders in
-     * the GCP organization.
-     * See [Enabling CMEK for Logs
-     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
-     * for more information.
-     * 
- */ - 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 Logs Router CMEK settings for the given resource.
-     * Note: CMEK for the Logs Router can currently only be configured for GCP
-     * organizations. Once configured, it applies to all projects and folders in
-     * the GCP 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 Logs
-     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
-     * for more information.
-     * 
- */ - public com.google.logging.v2.CmekSettings updateCmekSettings( - com.google.logging.v2.UpdateCmekSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateCmekSettingsMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * 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) { - super(channel, callOptions); - } - - @java.lang.Override - protected ConfigServiceV2FutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConfigServiceV2FutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists buckets.
-     * 
- */ - 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 bucket.
-     * 
- */ - 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 bucket that can be used to store log entries. Once a bucket has
-     * been created, the region cannot be changed.
-     * 
- */ - 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 bucket. This method replaces the following fields in the
-     * existing bucket with values from the new bucket: `retention_period`
-     * If the retention period is decreased and the bucket is locked,
-     * FAILED_PRECONDITION will be returned.
-     * If the bucket has a LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION
-     * will be returned.
-     * A buckets region may not be modified after it is created.
-     * 
- */ - 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 bucket.
-     * Moves the bucket to the DELETE_REQUESTED state. After 7 days, the
-     * bucket will be purged and all logs in the bucket will be permanently
-     * deleted.
-     * 
- */ - 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 bucket. A bucket that has been deleted may be undeleted within
-     * the grace period of 7 days.
-     * 
- */ - 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 bucket.
-     * 
- */ - 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.
-     * 
- */ - 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 logs in a bucket. A bucket may contain a maximum of
-     * 50 views.
-     * 
- */ - 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. This method replaces the following fields in the existing
-     * view with values from the new view: `filter`.
-     * 
- */ - 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 from a bucket.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteView( - com.google.logging.v2.DeleteViewRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteViewMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists sinks.
-     * 
- */ - 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) { - 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
-     * `writer_identity` is not permitted to write to the destination. A sink can
-     * export log entries only from the resource owning the sink.
-     * 
- */ - 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`.
-     * The updated sink might also have a new `writer_identity`; see the
-     * `unique_writer_identity` field.
-     * 
- */ - 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.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteSink( - com.google.logging.v2.DeleteSinkRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteSinkMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists all the exclusions in a parent resource.
-     * 
- */ - 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.
-     * 
- */ - 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 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) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateExclusionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Changes one or more properties of an existing exclusion.
-     * 
- */ - 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.
-     * 
- */ - 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 Logs Router CMEK settings for the given resource.
-     * Note: CMEK for the Logs Router can currently only be configured for GCP
-     * organizations. Once configured, it applies to all projects and folders in
-     * the GCP organization.
-     * See [Enabling CMEK for Logs
-     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
-     * for more information.
-     * 
- */ - 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 Logs Router CMEK settings for the given resource.
-     * Note: CMEK for the Logs Router can currently only be configured for GCP
-     * organizations. Once configured, it applies to all projects and folders in
-     * the GCP 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 Logs
-     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
-     * for more information.
-     * 
- */ - 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); - } - } - - private static final int METHODID_LIST_BUCKETS = 0; - private static final int METHODID_GET_BUCKET = 1; - private static final int METHODID_CREATE_BUCKET = 2; - private static final int METHODID_UPDATE_BUCKET = 3; - private static final int METHODID_DELETE_BUCKET = 4; - private static final int METHODID_UNDELETE_BUCKET = 5; - private static final int METHODID_LIST_VIEWS = 6; - private static final int METHODID_GET_VIEW = 7; - private static final int METHODID_CREATE_VIEW = 8; - private static final int METHODID_UPDATE_VIEW = 9; - private static final int METHODID_DELETE_VIEW = 10; - private static final int METHODID_LIST_SINKS = 11; - private static final int METHODID_GET_SINK = 12; - private static final int METHODID_CREATE_SINK = 13; - private static final int METHODID_UPDATE_SINK = 14; - private static final int METHODID_DELETE_SINK = 15; - private static final int METHODID_LIST_EXCLUSIONS = 16; - private static final int METHODID_GET_EXCLUSION = 17; - private static final int METHODID_CREATE_EXCLUSION = 18; - private static final int METHODID_UPDATE_EXCLUSION = 19; - private static final int METHODID_DELETE_EXCLUSION = 20; - private static final int METHODID_GET_CMEK_SETTINGS = 21; - private static final int METHODID_UPDATE_CMEK_SETTINGS = 22; - - 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 ConfigServiceV2ImplBase serviceImpl; - private final int methodId; - - MethodHandlers(ConfigServiceV2ImplBase 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_BUCKETS: - 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, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_BUCKET: - 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, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_BUCKET: - 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, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_VIEWS: - 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, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_VIEW: - 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, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_VIEW: - 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); - break; - case METHODID_GET_SINK: - 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, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_SINK: - 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, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_EXCLUSIONS: - 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, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_EXCLUSION: - 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, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_EXCLUSION: - 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, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CMEK_SETTINGS: - serviceImpl.updateCmekSettings( - (com.google.logging.v2.UpdateCmekSettingsRequest) 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(); - } - } - } - - private abstract static class ConfigServiceV2BaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - ConfigServiceV2BaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.logging.v2.LoggingConfigProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("ConfigServiceV2"); - } - } - - private static final class ConfigServiceV2FileDescriptorSupplier - extends ConfigServiceV2BaseDescriptorSupplier { - ConfigServiceV2FileDescriptorSupplier() {} - } - - private static final class ConfigServiceV2MethodDescriptorSupplier - extends ConfigServiceV2BaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - ConfigServiceV2MethodDescriptorSupplier(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 (ConfigServiceV2Grpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ConfigServiceV2FileDescriptorSupplier()) - .addMethod(getListBucketsMethod()) - .addMethod(getGetBucketMethod()) - .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(getListExclusionsMethod()) - .addMethod(getGetExclusionMethod()) - .addMethod(getCreateExclusionMethod()) - .addMethod(getUpdateExclusionMethod()) - .addMethod(getDeleteExclusionMethod()) - .addMethod(getGetCmekSettingsMethod()) - .addMethod(getUpdateCmekSettingsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/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 deleted file mode 100644 index e84afbaaf..000000000 --- a/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingServiceV2Grpc.java +++ /dev/null @@ -1,962 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/logging/v2/logging.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class LoggingServiceV2Grpc { - - private LoggingServiceV2Grpc() {} - - public static final 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; - - @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; - 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(); - } - } - } - return getDeleteLogMethod; - } - - 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< - 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(); - } - } - } - return getWriteLogEntriesMethod; - } - - 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< - 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(); - } - } - } - return getListLogEntriesMethod; - } - - 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< - 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(); - } - } - } - return getListMonitoredResourceDescriptorsMethod; - } - - 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< - 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(); - } - } - } - return getListLogsMethod; - } - - 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< - 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(); - } - } - } - return getTailLogEntriesMethod; - } - - /** 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); - } - }; - 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) { - 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); - } - }; - 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) { - 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); - } - }; - return LoggingServiceV2FutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service for ingesting and querying logs.
-   * 
- */ - public abstract static class LoggingServiceV2ImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Deletes all the log entries in a log. 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.
-     * 
- */ - public 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
-     * 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)
-     * 
- */ - public 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
-     * entries, see [Exporting
-     * Logs](https://cloud.google.com/logging/docs/export).
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public io.grpc.stub.StreamObserver tailLogEntries( - io.grpc.stub.StreamObserver - responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( - getTailLogEntriesMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getDeleteLogMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.DeleteLogRequest, com.google.protobuf.Empty>( - this, METHODID_DELETE_LOG))) - .addMethod( - getWriteLogEntriesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.WriteLogEntriesRequest, - com.google.logging.v2.WriteLogEntriesResponse>( - this, METHODID_WRITE_LOG_ENTRIES))) - .addMethod( - getListLogEntriesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.ListLogEntriesRequest, - com.google.logging.v2.ListLogEntriesResponse>( - this, METHODID_LIST_LOG_ENTRIES))) - .addMethod( - getListMonitoredResourceDescriptorsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.ListMonitoredResourceDescriptorsRequest, - com.google.logging.v2.ListMonitoredResourceDescriptorsResponse>( - this, METHODID_LIST_MONITORED_RESOURCE_DESCRIPTORS))) - .addMethod( - getListLogsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.ListLogsRequest, - com.google.logging.v2.ListLogsResponse>(this, METHODID_LIST_LOGS))) - .addMethod( - getTailLogEntriesMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.logging.v2.TailLogEntriesRequest, - com.google.logging.v2.TailLogEntriesResponse>( - this, METHODID_TAIL_LOG_ENTRIES))) - .build(); - } - } - - /** - * - * - *
-   * 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) { - super(channel, callOptions); - } - - @java.lang.Override - protected LoggingServiceV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LoggingServiceV2Stub(channel, callOptions); - } - - /** - * - * - *
-     * Deletes all the log entries in a log. 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.
-     * 
- */ - 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
-     * 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)
-     * 
- */ - 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); - } - - /** - * - * - *
-     * 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).
-     * 
- */ - 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); - } - - /** - * - * - *
-     * Lists the descriptors for monitored resource types used by Logging.
-     * 
- */ - 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); - } - - /** - * - * - *
-     * 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, - 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) { - return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( - getChannel().newCall(getTailLogEntriesMethod(), getCallOptions()), responseObserver); - } - } - - /** - * - * - *
-   * 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) { - super(channel, callOptions); - } - - @java.lang.Override - protected LoggingServiceV2BlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LoggingServiceV2BlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Deletes all the log entries in a log. 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.
-     * 
- */ - public com.google.protobuf.Empty deleteLog(com.google.logging.v2.DeleteLogRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteLogMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * 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)
-     * 
- */ - 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
-     * entries, see [Exporting
-     * Logs](https://cloud.google.com/logging/docs/export).
-     * 
- */ - 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) { - 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) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListLogsMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * 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) { - super(channel, callOptions); - } - - @java.lang.Override - protected LoggingServiceV2FutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LoggingServiceV2FutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Deletes all the log entries in a log. 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.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteLog( - com.google.logging.v2.DeleteLogRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteLogMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * 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)
-     * 
- */ - 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
-     * entries, see [Exporting
-     * Logs](https://cloud.google.com/logging/docs/export).
-     * 
- */ - 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< - com.google.logging.v2.ListMonitoredResourceDescriptorsResponse> - listMonitoredResourceDescriptors( - com.google.logging.v2.ListMonitoredResourceDescriptorsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - 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) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListLogsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_DELETE_LOG = 0; - private static final int METHODID_WRITE_LOG_ENTRIES = 1; - private static final int METHODID_LIST_LOG_ENTRIES = 2; - private static final int METHODID_LIST_MONITORED_RESOURCE_DESCRIPTORS = 3; - private static final int METHODID_LIST_LOGS = 4; - private static final int METHODID_TAIL_LOG_ENTRIES = 5; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final LoggingServiceV2ImplBase serviceImpl; - private final int methodId; - - MethodHandlers(LoggingServiceV2ImplBase 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_DELETE_LOG: - 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); - break; - case METHODID_LIST_LOG_ENTRIES: - 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); - break; - case METHODID_LIST_LOGS: - serviceImpl.listLogs( - (com.google.logging.v2.ListLogsRequest) 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) { - case METHODID_TAIL_LOG_ENTRIES: - return (io.grpc.stub.StreamObserver) - serviceImpl.tailLogEntries( - (io.grpc.stub.StreamObserver) - responseObserver); - default: - throw new AssertionError(); - } - } - } - - private abstract static class LoggingServiceV2BaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - LoggingServiceV2BaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.logging.v2.LoggingProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("LoggingServiceV2"); - } - } - - private static final class LoggingServiceV2FileDescriptorSupplier - extends LoggingServiceV2BaseDescriptorSupplier { - LoggingServiceV2FileDescriptorSupplier() {} - } - - private static final class LoggingServiceV2MethodDescriptorSupplier - extends LoggingServiceV2BaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - LoggingServiceV2MethodDescriptorSupplier(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 (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(); - } - } - } - return result; - } -} 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 d6b9a75ca..000000000 --- a/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/MetricsServiceV2Grpc.java +++ /dev/null @@ -1,801 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 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 abstract static class MetricsServiceV2ImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Lists logs-based metrics.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public void deleteLogMetric( - com.google.logging.v2.DeleteLogMetricRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteLogMetricMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - 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>( - this, METHODID_LIST_LOG_METRICS))) - .addMethod( - getGetLogMetricMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.GetLogMetricRequest, com.google.logging.v2.LogMetric>( - this, METHODID_GET_LOG_METRIC))) - .addMethod( - getCreateLogMetricMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.CreateLogMetricRequest, - com.google.logging.v2.LogMetric>(this, METHODID_CREATE_LOG_METRIC))) - .addMethod( - getUpdateLogMetricMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.UpdateLogMetricRequest, - com.google.logging.v2.LogMetric>(this, METHODID_UPDATE_LOG_METRIC))) - .addMethod( - getDeleteLogMetricMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.DeleteLogMetricRequest, com.google.protobuf.Empty>( - this, METHODID_DELETE_LOG_METRIC))) - .build(); - } - } - - /** - * - * - *
-   * 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); - } - } - - /** - * - * - *
-   * 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); - } - } - - /** - * - * - *
-   * 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 MetricsServiceV2ImplBase serviceImpl; - private final int methodId; - - MethodHandlers(MetricsServiceV2ImplBase 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(); - } - } - } - - 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 String methodName; - - MetricsServiceV2MethodDescriptorSupplier(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..c85d5988c --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigClient.java @@ -0,0 +1,3489 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.core.BetaApi; +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.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.CreateSinkRequest; +import com.google.logging.v2.CreateViewRequest; +import com.google.logging.v2.DeleteBucketRequest; +import com.google.logging.v2.DeleteExclusionRequest; +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.GetSettingsRequest; +import com.google.logging.v2.GetSinkRequest; +import com.google.logging.v2.GetViewRequest; +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.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.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
+ * 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(). + * + *

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

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
+ * ConfigSettings configSettings =
+ *     ConfigSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * ConfigClient configClient = ConfigClient.create(configSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * 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). + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + 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()); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected ConfigClient(ConfigServiceV2Stub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + public final ConfigSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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.getResponsesList()) {
+   *       // 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
+   * 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
+   * 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 that can be used to store log entries. After a bucket has been created, + * the bucket's location cannot be changed. + * + *

Sample code: + * + *

{@code
+   * 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
+   * 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. This method replaces the following fields in the existing bucket with + * values from the new bucket: `retention_period` + * + *

If the retention period is decreased and the bucket is locked, `FAILED_PRECONDITION` will be + * returned. + * + *

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
+   * 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. This method replaces the following fields in the existing bucket with + * values from the new bucket: `retention_period` + * + *

If the retention period is decreased and the bucket is locked, `FAILED_PRECONDITION` will be + * returned. + * + *

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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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.getResponsesList()) {
+   *       // 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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.getResponsesList()) {
+   *       // 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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. + /** + * Lists all the exclusions on the _Default sink in a parent resource. + * + *

Sample code: + * + *

{@code
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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.getResponsesList()) {
+   *       // 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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 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..a1e1cc08a --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigSettings.java @@ -0,0 +1,506 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.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.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.CreateSinkRequest; +import com.google.logging.v2.CreateViewRequest; +import com.google.logging.v2.DeleteBucketRequest; +import com.google.logging.v2.DeleteExclusionRequest; +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.GetSettingsRequest; +import com.google.logging.v2.GetSinkRequest; +import com.google.logging.v2.GetViewRequest; +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.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
+ * 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 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 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 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 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..a6376aa4e --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingClient.java @@ -0,0 +1,1290 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.core.BetaApi; +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
+ * 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(). + * + *

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

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
+ * LoggingSettings loggingSettings =
+ *     LoggingSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * LoggingClient loggingClient = LoggingClient.create(loggingSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * 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). + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + 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(); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected LoggingClient(LoggingServiceV2Stub stub) { + this.settings = null; + this.stub = stub; + } + + public final LoggingSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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. + * @param filter Optional. A filter that chooses which log entries to return. See [Advanced Logs + * Queries](https://cloud.google.com/logging/docs/view/advanced-queries). 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 the + * filter is 20000 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
+   * 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
+   * 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
+   * 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.getResponsesList()) {
+   *       // 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
+   * 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
+   * 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
+   * 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.getResponsesList()) {
+   *       // 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
+   * 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 that owns the logs: + *
    + *
  • `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
+   * 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 that owns the logs: + *
    + *
  • `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
+   * 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 that owns the logs: + *
    + *
  • `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
+   * 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 that owns the logs: + *
    + *
  • `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
+   * 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 that owns the logs: + *
    + *
  • `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
+   * try (LoggingClient loggingClient = LoggingClient.create()) {
+   *   ListLogsRequest request =
+   *       ListLogsRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .addAllResourceNames(new ArrayList())
+   *           .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
+   * try (LoggingClient loggingClient = LoggingClient.create()) {
+   *   ListLogsRequest request =
+   *       ListLogsRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .addAllResourceNames(new ArrayList())
+   *           .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
+   * try (LoggingClient loggingClient = LoggingClient.create()) {
+   *   ListLogsRequest request =
+   *       ListLogsRequest.newBuilder()
+   *           .setParent(ProjectName.of("[PROJECT]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .addAllResourceNames(new ArrayList())
+   *           .build();
+   *   while (true) {
+   *     ListLogsResponse response = loggingClient.listLogsCallable().call(request);
+   *     for (String element : response.getResponsesList()) {
+   *       // 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
+   * 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..9e6d3fe5b --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingSettings.java @@ -0,0 +1,266 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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
+ * 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..64eaa803b --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsClient.java @@ -0,0 +1,790 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.core.BetaApi; +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
+ * 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(). + * + *

The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *

    + *
  1. A "flattened" method. With this type of method, the fields of the request type have been + * converted into function parameters. It may be the case that not all fields are available as + * parameters, and not every API method will have a flattened method entry point. + *
  2. A "request object" method. This type of method only takes one parameter, a request object, + * which must be constructed before the call. Not every API method will have a request object + * method. + *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API + * callable object, which can be used to initiate calls to the service. + *
+ * + *

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
+ * MetricsSettings metricsSettings =
+ *     MetricsSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * MetricsClient metricsClient = MetricsClient.create(metricsSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * 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). + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + 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(); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected MetricsClient(MetricsServiceV2Stub stub) { + this.settings = null; + this.stub = stub; + } + + public final MetricsSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public MetricsServiceV2Stub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists logs-based metrics. + * + *

Sample code: + * + *

{@code
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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.getResponsesList()) {
+   *       // 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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..cdb4e568d --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsSettings.java @@ -0,0 +1,235 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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
+ * 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..3f7d36cb8 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/gapic_metadata.json @@ -0,0 +1,147 @@ +{ + "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"] + }, + "CreateExclusion": { + "methods": ["createExclusion", "createExclusion", "createExclusion", "createExclusion", "createExclusion", "createExclusion", "createExclusionCallable"] + }, + "CreateSink": { + "methods": ["createSink", "createSink", "createSink", "createSink", "createSink", "createSink", "createSinkCallable"] + }, + "CreateView": { + "methods": ["createView", "createViewCallable"] + }, + "DeleteBucket": { + "methods": ["deleteBucket", "deleteBucketCallable"] + }, + "DeleteExclusion": { + "methods": ["deleteExclusion", "deleteExclusion", "deleteExclusion", "deleteExclusionCallable"] + }, + "DeleteSink": { + "methods": ["deleteSink", "deleteSink", "deleteSink", "deleteSinkCallable"] + }, + "DeleteView": { + "methods": ["deleteView", "deleteViewCallable"] + }, + "GetBucket": { + "methods": ["getBucket", "getBucketCallable"] + }, + "GetCmekSettings": { + "methods": ["getCmekSettings", "getCmekSettingsCallable"] + }, + "GetExclusion": { + "methods": ["getExclusion", "getExclusion", "getExclusion", "getExclusionCallable"] + }, + "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"] + }, + "ListSinks": { + "methods": ["listSinks", "listSinks", "listSinks", "listSinks", "listSinks", "listSinks", "listSinksPagedCallable", "listSinksCallable"] + }, + "ListViews": { + "methods": ["listViews", "listViews", "listViewsPagedCallable", "listViewsCallable"] + }, + "UndeleteBucket": { + "methods": ["undeleteBucket", "undeleteBucketCallable"] + }, + "UpdateBucket": { + "methods": ["updateBucket", "updateBucketCallable"] + }, + "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..0e2f30ef0 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/package-info.java @@ -0,0 +1,69 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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
+ * 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
+ * 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
+ * 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..9372aeb54 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2Stub.java @@ -0,0 +1,211 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.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.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.CreateSinkRequest; +import com.google.logging.v2.CreateViewRequest; +import com.google.logging.v2.DeleteBucketRequest; +import com.google.logging.v2.DeleteExclusionRequest; +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.GetSettingsRequest; +import com.google.logging.v2.GetSinkRequest; +import com.google.logging.v2.GetViewRequest; +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.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 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 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..4e314830a --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java @@ -0,0 +1,1199 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.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.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.CreateSinkRequest; +import com.google.logging.v2.CreateViewRequest; +import com.google.logging.v2.DeleteBucketRequest; +import com.google.logging.v2.DeleteExclusionRequest; +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.GetSettingsRequest; +import com.google.logging.v2.GetSinkRequest; +import com.google.logging.v2.GetViewRequest; +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.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
+ * 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 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 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< + 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< + 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 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 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; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + 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 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(); + 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(); + 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 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 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(); + 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(); + 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, + createBucketSettings, + updateBucketSettings, + deleteBucketSettings, + undeleteBucketSettings, + listViewsSettings, + getViewSettings, + createViewSettings, + updateViewSettings, + deleteViewSettings, + listSinksSettings, + getSinkSettings, + createSinkSettings, + updateSinkSettings, + deleteSinkSettings, + 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(); + 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(); + 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, + createBucketSettings, + updateBucketSettings, + deleteBucketSettings, + undeleteBucketSettings, + listViewsSettings, + getViewSettings, + createViewSettings, + updateViewSettings, + deleteViewSettings, + listSinksSettings, + getSinkSettings, + createSinkSettings, + updateSinkSettings, + deleteSinkSettings, + 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.setEndpoint(getDefaultEndpoint()); + 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 + .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 + .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 + .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 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 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; + } + + @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..9a6c5c85f --- /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 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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..0b737663b --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2Stub.java @@ -0,0 +1,957 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.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.UnaryCallable; +import com.google.common.collect.ImmutableMap; +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.CreateSinkRequest; +import com.google.logging.v2.CreateViewRequest; +import com.google.logging.v2.DeleteBucketRequest; +import com.google.logging.v2.DeleteExclusionRequest; +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.GetSettingsRequest; +import com.google.logging.v2.GetSinkRequest; +import com.google.logging.v2.GetViewRequest; +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.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 + 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 + 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 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 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 -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings getBucketTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getBucketMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings createBucketTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createBucketMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings updateBucketTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateBucketMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings deleteBucketTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteBucketMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings undeleteBucketTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(undeleteBucketMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings listViewsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listViewsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings getViewTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getViewMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings createViewTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createViewMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings updateViewTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateViewMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings deleteViewTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteViewMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings listSinksTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listSinksMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings getSinkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getSinkMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("sink_name", String.valueOf(request.getSinkName())); + return params.build(); + }) + .build(); + GrpcCallSettings createSinkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createSinkMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings updateSinkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateSinkMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("sink_name", String.valueOf(request.getSinkName())); + return params.build(); + }) + .build(); + GrpcCallSettings deleteSinkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteSinkMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("sink_name", String.valueOf(request.getSinkName())); + return params.build(); + }) + .build(); + GrpcCallSettings + listExclusionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listExclusionsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings getExclusionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getExclusionMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings createExclusionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createExclusionMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings updateExclusionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateExclusionMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings deleteExclusionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteExclusionMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings getCmekSettingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getCmekSettingsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings updateCmekSettingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateCmekSettingsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings getSettingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getSettingsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings updateSettingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateSettingsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.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.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.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 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 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..2875552eb --- /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 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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..f92e4f643 --- /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 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.UnaryCallable; +import com.google.common.collect.ImmutableMap; +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 -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("log_name", String.valueOf(request.getLogName())); + return params.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 -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.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..224f4da9c --- /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 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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..0fda0bb3d --- /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 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.UnaryCallable; +import com.google.common.collect.ImmutableMap; +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 -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings getLogMetricTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLogMetricMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("metric_name", String.valueOf(request.getMetricName())); + return params.build(); + }) + .build(); + GrpcCallSettings createLogMetricTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createLogMetricMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings updateLogMetricTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateLogMetricMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("metric_name", String.valueOf(request.getMetricName())); + return params.build(); + }) + .build(); + GrpcCallSettings deleteLogMetricTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteLogMetricMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("metric_name", String.valueOf(request.getMetricName())); + return params.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..a62a66270 --- /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 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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..47e022d17 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java @@ -0,0 +1,737 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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
+ * 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; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + 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 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.setEndpoint(getDefaultEndpoint()); + 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; + } + + @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..47931fb0d --- /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 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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..8a599fde9 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java @@ -0,0 +1,463 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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
+ * 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; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + 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 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.setEndpoint(getDefaultEndpoint()); + 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; + } + + @Override + public MetricsServiceV2StubSettings build() throws IOException { + return new MetricsServiceV2StubSettings(this); + } + } +} 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..60a04e1f0 --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/ConfigClientTest.java @@ -0,0 +1,2719 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.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.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.CreateSinkRequest; +import com.google.logging.v2.CreateViewRequest; +import com.google.logging.v2.DeleteBucketRequest; +import com.google.logging.v2.DeleteExclusionRequest; +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.GetSettingsRequest; +import com.google.logging.v2.GetSinkRequest; +import com.google.logging.v2.GetViewRequest; +import com.google.logging.v2.LifecycleState; +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.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)) + .addAllRestrictedFields(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 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)) + .addAllRestrictedFields(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)) + .addAllRestrictedFields(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 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") + .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") + .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..34c69dc87 --- /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 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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..1e79775cb --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MetricsClientTest.java @@ -0,0 +1,544 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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") + .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") + .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") + .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") + .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") + .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") + .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..6a3559f37 --- /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 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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..255cacf1f --- /dev/null +++ b/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockConfigServiceV2Impl.java @@ -0,0 +1,633 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.CreateSinkRequest; +import com.google.logging.v2.CreateViewRequest; +import com.google.logging.v2.DeleteBucketRequest; +import com.google.logging.v2.DeleteExclusionRequest; +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.GetSettingsRequest; +import com.google.logging.v2.GetSinkRequest; +import com.google.logging.v2.GetViewRequest; +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.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 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 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..934d32680 --- /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 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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..e98eccb92 --- /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 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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..f0288045b --- /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 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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..716d44770 --- /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 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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/ConfigServiceV2Grpc.java b/owl-bot-staging/v2/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ConfigServiceV2Grpc.java new file mode 100644 index 000000000..7331f0641 --- /dev/null +++ b/owl-bot-staging/v2/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ConfigServiceV2Grpc.java @@ -0,0 +1,2717 @@ +package com.google.logging.v2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Service for configuring sinks used to route log entries.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/logging/v2/logging_config.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class ConfigServiceV2Grpc { + + private ConfigServiceV2Grpc() {} + + public static final String SERVICE_NAME = "google.logging.v2.ConfigServiceV2"; + + // Static method descriptors that strictly reflect the proto. + 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 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(); + } + } + } + return getListBucketsMethod; + } + + 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 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(); + } + } + } + return getGetBucketMethod; + } + + 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 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(); + } + } + } + return getCreateBucketMethod; + } + + 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 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(); + } + } + } + return getUpdateBucketMethod; + } + + 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 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(); + } + } + } + return getDeleteBucketMethod; + } + + 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 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(); + } + } + } + return getUndeleteBucketMethod; + } + + 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 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(); + } + } + } + return getListViewsMethod; + } + + 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 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(); + } + } + } + return getGetViewMethod; + } + + 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 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(); + } + } + } + return getCreateViewMethod; + } + + 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 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(); + } + } + } + return getUpdateViewMethod; + } + + 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 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(); + } + } + } + return getDeleteViewMethod; + } + + 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 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(); + } + } + } + return getListSinksMethod; + } + + 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 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(); + } + } + } + return getGetSinkMethod; + } + + 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 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(); + } + } + } + return getCreateSinkMethod; + } + + 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 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(); + } + } + } + return getUpdateSinkMethod; + } + + 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 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(); + } + } + } + return getDeleteSinkMethod; + } + + 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 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(); + } + } + } + return getListExclusionsMethod; + } + + 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 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(); + } + } + } + return getGetExclusionMethod; + } + + 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 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(); + } + } + } + return getCreateExclusionMethod; + } + + 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 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(); + } + } + } + return getUpdateExclusionMethod; + } + + 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 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(); + } + } + } + return getDeleteExclusionMethod; + } + + 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 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(); + } + } + } + return getGetCmekSettingsMethod; + } + + 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 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(); + } + } + } + return getUpdateCmekSettingsMethod; + } + + 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 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(); + } + } + } + return getGetSettingsMethod; + } + + 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 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(); + } + } + } + return getUpdateSettingsMethod; + } + + 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 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(); + } + } + } + return getCopyLogEntriesMethod; + } + + /** + * 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); + } + }; + 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) { + 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); + } + }; + 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) { + 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); + } + }; + return ConfigServiceV2FutureStub.newStub(factory, channel); + } + + /** + *
+   * Service for configuring sinks used to route log entries.
+   * 
+ */ + public static abstract class ConfigServiceV2ImplBase implements io.grpc.BindableService { + + /** + *
+     * Lists log buckets.
+     * 
+ */ + public void listBuckets(com.google.logging.v2.ListBucketsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListBucketsMethod(), responseObserver); + } + + /** + *
+     * Gets a log bucket.
+     * 
+ */ + public void getBucket(com.google.logging.v2.GetBucketRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBucketMethod(), 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, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateBucketMethod(), responseObserver); + } + + /** + *
+     * Updates a log bucket. This method replaces the following fields in the
+     * existing bucket with values from the new bucket: `retention_period`
+     * If the retention period is decreased and the bucket is locked,
+     * `FAILED_PRECONDITION` will be returned.
+     * 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.
+     * 
+ */ + public void updateBucket(com.google.logging.v2.UpdateBucketRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateBucketMethod(), responseObserver); + } + + /** + *
+     * 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.
+     * 
+ */ + public void deleteBucket(com.google.logging.v2.DeleteBucketRequest request, + io.grpc.stub.StreamObserver 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.
+     * 
+ */ + public void undeleteBucket(com.google.logging.v2.UndeleteBucketRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUndeleteBucketMethod(), responseObserver); + } + + /** + *
+     * Lists views on a log bucket.
+     * 
+ */ + public 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..
+     * 
+ */ + public 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.
+     * 
+ */ + public 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`.
+     * 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.
+     * 
+ */ + public 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
+     * a state where it can delete the view. If this occurs, please try again in a
+     * few minutes.
+     * 
+ */ + public void deleteView(com.google.logging.v2.DeleteViewRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteViewMethod(), responseObserver); + } + + /** + *
+     * Lists sinks.
+     * 
+ */ + public void listSinks(com.google.logging.v2.ListSinksRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSinksMethod(), responseObserver); + } + + /** + *
+     * Gets a sink.
+     * 
+ */ + public 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
+     * `writer_identity` is not permitted to write to the destination. A sink can
+     * export log entries only from the resource owning the sink.
+     * 
+ */ + public 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`.
+     * The updated sink might also have a new `writer_identity`; see the
+     * `unique_writer_identity` field.
+     * 
+ */ + public 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.
+     * 
+ */ + public void deleteSink(com.google.logging.v2.DeleteSinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSinkMethod(), 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) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListExclusionsMethod(), responseObserver); + } + + /** + *
+     * Gets the description of an exclusion in the _Default sink.
+     * 
+ */ + public void getExclusion(com.google.logging.v2.GetExclusionRequest request, + io.grpc.stub.StreamObserver 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.
+     * 
+ */ + public void createExclusion(com.google.logging.v2.CreateExclusionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateExclusionMethod(), responseObserver); + } + + /** + *
+     * Changes one or more properties of an existing exclusion in the _Default
+     * sink.
+     * 
+ */ + public void updateExclusion(com.google.logging.v2.UpdateExclusionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateExclusionMethod(), responseObserver); + } + + /** + *
+     * Deletes an exclusion in the _Default sink.
+     * 
+ */ + public void deleteExclusion(com.google.logging.v2.DeleteExclusionRequest request, + io.grpc.stub.StreamObserver 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,
+     * 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.
+     * 
+ */ + public void getCmekSettings(com.google.logging.v2.GetCmekSettingsRequest request, + io.grpc.stub.StreamObserver 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
+     * 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.
+     * 
+ */ + public void updateCmekSettings(com.google.logging.v2.UpdateCmekSettingsRequest request, + io.grpc.stub.StreamObserver 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,
+     * 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.
+     * 
+ */ + public void getSettings(com.google.logging.v2.GetSettingsRequest request, + io.grpc.stub.StreamObserver 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
+     * 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.
+     * 
+ */ + public void updateSettings(com.google.logging.v2.UpdateSettingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSettingsMethod(), 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, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCopyLogEntriesMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + 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>( + this, METHODID_LIST_BUCKETS))) + .addMethod( + getGetBucketMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.GetBucketRequest, + com.google.logging.v2.LogBucket>( + this, METHODID_GET_BUCKET))) + .addMethod( + getCreateBucketMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.CreateBucketRequest, + com.google.logging.v2.LogBucket>( + this, METHODID_CREATE_BUCKET))) + .addMethod( + getUpdateBucketMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.UpdateBucketRequest, + com.google.logging.v2.LogBucket>( + this, METHODID_UPDATE_BUCKET))) + .addMethod( + getDeleteBucketMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.DeleteBucketRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_BUCKET))) + .addMethod( + getUndeleteBucketMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.UndeleteBucketRequest, + com.google.protobuf.Empty>( + this, METHODID_UNDELETE_BUCKET))) + .addMethod( + getListViewsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.ListViewsRequest, + com.google.logging.v2.ListViewsResponse>( + this, METHODID_LIST_VIEWS))) + .addMethod( + getGetViewMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.GetViewRequest, + com.google.logging.v2.LogView>( + this, METHODID_GET_VIEW))) + .addMethod( + getCreateViewMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.CreateViewRequest, + com.google.logging.v2.LogView>( + this, METHODID_CREATE_VIEW))) + .addMethod( + getUpdateViewMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.UpdateViewRequest, + com.google.logging.v2.LogView>( + this, METHODID_UPDATE_VIEW))) + .addMethod( + getDeleteViewMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.DeleteViewRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_VIEW))) + .addMethod( + getListSinksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.ListSinksRequest, + com.google.logging.v2.ListSinksResponse>( + this, METHODID_LIST_SINKS))) + .addMethod( + getGetSinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.GetSinkRequest, + com.google.logging.v2.LogSink>( + this, METHODID_GET_SINK))) + .addMethod( + getCreateSinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.CreateSinkRequest, + com.google.logging.v2.LogSink>( + this, METHODID_CREATE_SINK))) + .addMethod( + getUpdateSinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.UpdateSinkRequest, + com.google.logging.v2.LogSink>( + this, METHODID_UPDATE_SINK))) + .addMethod( + getDeleteSinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.DeleteSinkRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_SINK))) + .addMethod( + getListExclusionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.ListExclusionsRequest, + com.google.logging.v2.ListExclusionsResponse>( + this, METHODID_LIST_EXCLUSIONS))) + .addMethod( + getGetExclusionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.GetExclusionRequest, + com.google.logging.v2.LogExclusion>( + this, METHODID_GET_EXCLUSION))) + .addMethod( + getCreateExclusionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.CreateExclusionRequest, + com.google.logging.v2.LogExclusion>( + this, METHODID_CREATE_EXCLUSION))) + .addMethod( + getUpdateExclusionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.UpdateExclusionRequest, + com.google.logging.v2.LogExclusion>( + this, METHODID_UPDATE_EXCLUSION))) + .addMethod( + getDeleteExclusionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.DeleteExclusionRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_EXCLUSION))) + .addMethod( + getGetCmekSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.GetCmekSettingsRequest, + com.google.logging.v2.CmekSettings>( + this, METHODID_GET_CMEK_SETTINGS))) + .addMethod( + getUpdateCmekSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.UpdateCmekSettingsRequest, + com.google.logging.v2.CmekSettings>( + this, METHODID_UPDATE_CMEK_SETTINGS))) + .addMethod( + getGetSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.GetSettingsRequest, + com.google.logging.v2.Settings>( + this, METHODID_GET_SETTINGS))) + .addMethod( + getUpdateSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.UpdateSettingsRequest, + com.google.logging.v2.Settings>( + this, METHODID_UPDATE_SETTINGS))) + .addMethod( + getCopyLogEntriesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.CopyLogEntriesRequest, + com.google.longrunning.Operation>( + this, METHODID_COPY_LOG_ENTRIES))) + .build(); + } + } + + /** + *
+   * 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) { + super(channel, callOptions); + } + + @java.lang.Override + 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, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListBucketsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a log bucket.
+     * 
+ */ + 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 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, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateBucketMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates a log bucket. This method replaces the following fields in the
+     * existing bucket with values from the new bucket: `retention_period`
+     * If the retention period is decreased and the bucket is locked,
+     * `FAILED_PRECONDITION` will be returned.
+     * 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.
+     * 
+ */ + 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); + } + + /** + *
+     * 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.
+     * 
+ */ + 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); + } + + /** + *
+     * 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, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUndeleteBucketMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists views on a log bucket.
+     * 
+ */ + 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, + 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, + 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`.
+     * 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.
+     * 
+ */ + 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
+     * a state where it can delete the view. If this occurs, please try again in a
+     * few minutes.
+     * 
+ */ + 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, + 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, + 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
+     * `writer_identity` is not permitted to write to the destination. A sink can
+     * export log entries only from the resource owning the sink.
+     * 
+ */ + 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`.
+     * The updated sink might also have a new `writer_identity`; see the
+     * `unique_writer_identity` field.
+     * 
+ */ + 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, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSinkMethod(), 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) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + 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, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + 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, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + 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, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateExclusionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes an exclusion in the _Default sink.
+     * 
+ */ + 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); + } + + /** + *
+     * 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.
+     * 
+ */ + 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); + } + + /** + *
+     * 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.
+     * 
+ */ + 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); + } + + /** + *
+     * 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.
+     * 
+ */ + 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); + } + + /** + *
+     * 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.
+     * 
+ */ + 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); + } + + /** + *
+     * Copies a set of log entries from a log bucket to a Cloud Storage bucket.
+     * 
+ */ + 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); + } + } + + /** + *
+   * 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) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConfigServiceV2BlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConfigServiceV2BlockingStub(channel, callOptions); + } + + /** + *
+     * Lists log buckets.
+     * 
+ */ + 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) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetBucketMethod(), 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) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateBucketMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates a log bucket. This method replaces the following fields in the
+     * existing bucket with values from the new bucket: `retention_period`
+     * If the retention period is decreased and the bucket is locked,
+     * `FAILED_PRECONDITION` will be returned.
+     * 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.
+     * 
+ */ + 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.
+     * After 7 days, the bucket will be purged and all log entries in the bucket
+     * will be permanently deleted.
+     * 
+ */ + 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) { + 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) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListViewsMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a view on a log bucket..
+     * 
+ */ + public com.google.logging.v2.LogView getView(com.google.logging.v2.GetViewRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), 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.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`.
+     * 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.
+     * 
+ */ + 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
+     * a state where it can delete the view. If this occurs, please try again in a
+     * few minutes.
+     * 
+ */ + public com.google.protobuf.Empty deleteView(com.google.logging.v2.DeleteViewRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteViewMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists sinks.
+     * 
+ */ + 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.
+     * 
+ */ + public com.google.logging.v2.LogSink getSink(com.google.logging.v2.GetSinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), 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
+     * `writer_identity` is not permitted to write to the destination. A sink can
+     * export log entries only from the resource owning the sink.
+     * 
+ */ + 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`.
+     * The updated sink might also have a new `writer_identity`; see the
+     * `unique_writer_identity` field.
+     * 
+ */ + 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.
+     * 
+ */ + public com.google.protobuf.Empty deleteSink(com.google.logging.v2.DeleteSinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSinkMethod(), getCallOptions(), request); + } + + /** + *
+     * 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) { + 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) { + 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) { + 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) { + 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) { + 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,
+     * 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.
+     * 
+ */ + 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
+     * 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.
+     * 
+ */ + 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,
+     * 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.
+     * 
+ */ + 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
+     * 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.
+     * 
+ */ + 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) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCopyLogEntriesMethod(), getCallOptions(), request); + } + } + + /** + *
+   * 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) { + super(channel, callOptions); + } + + @java.lang.Override + protected ConfigServiceV2FutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConfigServiceV2FutureStub(channel, callOptions); + } + + /** + *
+     * Lists log buckets.
+     * 
+ */ + 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) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetBucketMethod(), 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) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateBucketMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates a log bucket. This method replaces the following fields in the
+     * existing bucket with values from the new bucket: `retention_period`
+     * If the retention period is decreased and the bucket is locked,
+     * `FAILED_PRECONDITION` will be returned.
+     * 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.
+     * 
+ */ + 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.
+     * After 7 days, the bucket will be purged and all log entries in the bucket
+     * will be permanently deleted.
+     * 
+ */ + 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) { + 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) { + 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) { + 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) { + 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`.
+     * 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.
+     * 
+ */ + 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
+     * a state where it can delete the view. If this occurs, please try again in a
+     * few minutes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteView( + com.google.logging.v2.DeleteViewRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteViewMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists sinks.
+     * 
+ */ + 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) { + 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
+     * `writer_identity` is not permitted to write to the destination. A sink can
+     * export log entries only from the resource owning the sink.
+     * 
+ */ + 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`.
+     * The updated sink might also have a new `writer_identity`; see the
+     * `unique_writer_identity` field.
+     * 
+ */ + 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.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteSink( + com.google.logging.v2.DeleteSinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSinkMethod(), getCallOptions()), request); + } + + /** + *
+     * 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) { + 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) { + 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) { + 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) { + 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) { + 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,
+     * 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.
+     * 
+ */ + 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
+     * 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.
+     * 
+ */ + 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,
+     * 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.
+     * 
+ */ + 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
+     * 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.
+     * 
+ */ + 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) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCopyLogEntriesMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_BUCKETS = 0; + private static final int METHODID_GET_BUCKET = 1; + private static final int METHODID_CREATE_BUCKET = 2; + private static final int METHODID_UPDATE_BUCKET = 3; + private static final int METHODID_DELETE_BUCKET = 4; + private static final int METHODID_UNDELETE_BUCKET = 5; + private static final int METHODID_LIST_VIEWS = 6; + private static final int METHODID_GET_VIEW = 7; + private static final int METHODID_CREATE_VIEW = 8; + private static final int METHODID_UPDATE_VIEW = 9; + private static final int METHODID_DELETE_VIEW = 10; + private static final int METHODID_LIST_SINKS = 11; + private static final int METHODID_GET_SINK = 12; + private static final int METHODID_CREATE_SINK = 13; + private static final int METHODID_UPDATE_SINK = 14; + private static final int METHODID_DELETE_SINK = 15; + private static final int METHODID_LIST_EXCLUSIONS = 16; + private static final int METHODID_GET_EXCLUSION = 17; + private static final int METHODID_CREATE_EXCLUSION = 18; + private static final int METHODID_UPDATE_EXCLUSION = 19; + private static final int METHODID_DELETE_EXCLUSION = 20; + private static final int METHODID_GET_CMEK_SETTINGS = 21; + private static final int METHODID_UPDATE_CMEK_SETTINGS = 22; + private static final int METHODID_GET_SETTINGS = 23; + private static final int METHODID_UPDATE_SETTINGS = 24; + private static final int METHODID_COPY_LOG_ENTRIES = 25; + + 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 ConfigServiceV2ImplBase serviceImpl; + private final int methodId; + + MethodHandlers(ConfigServiceV2ImplBase 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_BUCKETS: + 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, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_BUCKET: + 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, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_BUCKET: + 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, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_VIEWS: + 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, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_VIEW: + 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, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_VIEW: + 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); + break; + case METHODID_GET_SINK: + 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, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SINK: + 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, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_EXCLUSIONS: + 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, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_EXCLUSION: + 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, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_EXCLUSION: + 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, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CMEK_SETTINGS: + 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, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SETTINGS: + 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, + (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(); + } + } + } + + private static abstract class ConfigServiceV2BaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + ConfigServiceV2BaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.logging.v2.LoggingConfigProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("ConfigServiceV2"); + } + } + + private static final class ConfigServiceV2FileDescriptorSupplier + extends ConfigServiceV2BaseDescriptorSupplier { + ConfigServiceV2FileDescriptorSupplier() {} + } + + private static final class ConfigServiceV2MethodDescriptorSupplier + extends ConfigServiceV2BaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + ConfigServiceV2MethodDescriptorSupplier(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 (ConfigServiceV2Grpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ConfigServiceV2FileDescriptorSupplier()) + .addMethod(getListBucketsMethod()) + .addMethod(getGetBucketMethod()) + .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(getListExclusionsMethod()) + .addMethod(getGetExclusionMethod()) + .addMethod(getCreateExclusionMethod()) + .addMethod(getUpdateExclusionMethod()) + .addMethod(getDeleteExclusionMethod()) + .addMethod(getGetCmekSettingsMethod()) + .addMethod(getUpdateCmekSettingsMethod()) + .addMethod(getGetSettingsMethod()) + .addMethod(getUpdateSettingsMethod()) + .addMethod(getCopyLogEntriesMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v2/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 new file mode 100644 index 000000000..013e44a96 --- /dev/null +++ b/owl-bot-staging/v2/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingServiceV2Grpc.java @@ -0,0 +1,765 @@ +package com.google.logging.v2; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Service for ingesting and querying logs.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/logging/v2/logging.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class LoggingServiceV2Grpc { + + private LoggingServiceV2Grpc() {} + + public static final String SERVICE_NAME = "google.logging.v2.LoggingServiceV2"; + + // Static method descriptors that strictly reflect the proto. + 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 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(); + } + } + } + return getDeleteLogMethod; + } + + 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 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(); + } + } + } + return getWriteLogEntriesMethod; + } + + 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 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(); + } + } + } + return getListLogEntriesMethod; + } + + 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 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(); + } + } + } + return getListMonitoredResourceDescriptorsMethod; + } + + 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 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(); + } + } + } + return getListLogsMethod; + } + + 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 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(); + } + } + } + return getTailLogEntriesMethod; + } + + /** + * 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); + } + }; + 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) { + 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); + } + }; + 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) { + 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); + } + }; + return LoggingServiceV2FutureStub.newStub(factory, channel); + } + + /** + *
+   * Service for ingesting and querying logs.
+   * 
+ */ + public static abstract class LoggingServiceV2ImplBase implements io.grpc.BindableService { + + /** + *
+     * 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.
+     * 
+ */ + public 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
+     * 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)
+     * 
+ */ + public 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
+     * entries, see [Exporting
+     * Logs](https://cloud.google.com/logging/docs/export).
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public io.grpc.stub.StreamObserver tailLogEntries( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getTailLogEntriesMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getDeleteLogMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.DeleteLogRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_LOG))) + .addMethod( + getWriteLogEntriesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.WriteLogEntriesRequest, + com.google.logging.v2.WriteLogEntriesResponse>( + this, METHODID_WRITE_LOG_ENTRIES))) + .addMethod( + getListLogEntriesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.ListLogEntriesRequest, + com.google.logging.v2.ListLogEntriesResponse>( + this, METHODID_LIST_LOG_ENTRIES))) + .addMethod( + getListMonitoredResourceDescriptorsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.ListMonitoredResourceDescriptorsRequest, + com.google.logging.v2.ListMonitoredResourceDescriptorsResponse>( + this, METHODID_LIST_MONITORED_RESOURCE_DESCRIPTORS))) + .addMethod( + getListLogsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.ListLogsRequest, + com.google.logging.v2.ListLogsResponse>( + this, METHODID_LIST_LOGS))) + .addMethod( + getTailLogEntriesMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.logging.v2.TailLogEntriesRequest, + com.google.logging.v2.TailLogEntriesResponse>( + this, METHODID_TAIL_LOG_ENTRIES))) + .build(); + } + } + + /** + *
+   * 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) { + super(channel, callOptions); + } + + @java.lang.Override + 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
+     * the delete operation might not be deleted. Entries received after the
+     * delete operation with a timestamp before the operation will be deleted.
+     * 
+ */ + 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
+     * 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)
+     * 
+ */ + 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); + } + + /** + *
+     * 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).
+     * 
+ */ + 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); + } + + /** + *
+     * Lists the descriptors for monitored resource types used by Logging.
+     * 
+ */ + 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); + } + + /** + *
+     * 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, + 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) { + return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( + getChannel().newCall(getTailLogEntriesMethod(), getCallOptions()), responseObserver); + } + } + + /** + *
+   * 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) { + super(channel, callOptions); + } + + @java.lang.Override + protected LoggingServiceV2BlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LoggingServiceV2BlockingStub(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
+     * the delete operation might not be deleted. Entries received after the
+     * delete operation with a timestamp before the operation will be deleted.
+     * 
+ */ + public com.google.protobuf.Empty deleteLog(com.google.logging.v2.DeleteLogRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteLogMethod(), getCallOptions(), request); + } + + /** + *
+     * 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)
+     * 
+ */ + 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
+     * entries, see [Exporting
+     * Logs](https://cloud.google.com/logging/docs/export).
+     * 
+ */ + 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) { + 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) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListLogsMethod(), getCallOptions(), request); + } + } + + /** + *
+   * 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) { + super(channel, callOptions); + } + + @java.lang.Override + protected LoggingServiceV2FutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LoggingServiceV2FutureStub(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
+     * the delete operation might not be deleted. Entries received after the
+     * delete operation with a timestamp before the operation will be deleted.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteLog( + com.google.logging.v2.DeleteLogRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteLogMethod(), getCallOptions()), request); + } + + /** + *
+     * 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)
+     * 
+ */ + 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
+     * entries, see [Exporting
+     * Logs](https://cloud.google.com/logging/docs/export).
+     * 
+ */ + 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 listMonitoredResourceDescriptors( + com.google.logging.v2.ListMonitoredResourceDescriptorsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + 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) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListLogsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_DELETE_LOG = 0; + private static final int METHODID_WRITE_LOG_ENTRIES = 1; + private static final int METHODID_LIST_LOG_ENTRIES = 2; + private static final int METHODID_LIST_MONITORED_RESOURCE_DESCRIPTORS = 3; + private static final int METHODID_LIST_LOGS = 4; + private static final int METHODID_TAIL_LOG_ENTRIES = 5; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final LoggingServiceV2ImplBase serviceImpl; + private final int methodId; + + MethodHandlers(LoggingServiceV2ImplBase 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_DELETE_LOG: + 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); + break; + case METHODID_LIST_LOG_ENTRIES: + 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); + break; + case METHODID_LIST_LOGS: + serviceImpl.listLogs((com.google.logging.v2.ListLogsRequest) 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) { + case METHODID_TAIL_LOG_ENTRIES: + return (io.grpc.stub.StreamObserver) serviceImpl.tailLogEntries( + (io.grpc.stub.StreamObserver) responseObserver); + default: + throw new AssertionError(); + } + } + } + + private static abstract class LoggingServiceV2BaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + LoggingServiceV2BaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.logging.v2.LoggingProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("LoggingServiceV2"); + } + } + + private static final class LoggingServiceV2FileDescriptorSupplier + extends LoggingServiceV2BaseDescriptorSupplier { + LoggingServiceV2FileDescriptorSupplier() {} + } + + private static final class LoggingServiceV2MethodDescriptorSupplier + extends LoggingServiceV2BaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + LoggingServiceV2MethodDescriptorSupplier(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 (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(); + } + } + } + return result; + } +} 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..c5a034fae --- /dev/null +++ b/owl-bot-staging/v2/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/MetricsServiceV2Grpc.java @@ -0,0 +1,647 @@ +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 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 static abstract class MetricsServiceV2ImplBase implements io.grpc.BindableService { + + /** + *
+     * Lists logs-based metrics.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public void deleteLogMetric(com.google.logging.v2.DeleteLogMetricRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteLogMetricMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + 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>( + this, METHODID_LIST_LOG_METRICS))) + .addMethod( + getGetLogMetricMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.GetLogMetricRequest, + com.google.logging.v2.LogMetric>( + this, METHODID_GET_LOG_METRIC))) + .addMethod( + getCreateLogMetricMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.CreateLogMetricRequest, + com.google.logging.v2.LogMetric>( + this, METHODID_CREATE_LOG_METRIC))) + .addMethod( + getUpdateLogMetricMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.UpdateLogMetricRequest, + com.google.logging.v2.LogMetric>( + this, METHODID_UPDATE_LOG_METRIC))) + .addMethod( + getDeleteLogMetricMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.DeleteLogMetricRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_LOG_METRIC))) + .build(); + } + } + + /** + *
+   * 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); + } + } + + /** + *
+   * 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); + } + } + + /** + *
+   * 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 MetricsServiceV2ImplBase serviceImpl; + private final int methodId; + + MethodHandlers(MetricsServiceV2ImplBase 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(); + } + } + } + + 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 String methodName; + + MetricsServiceV2MethodDescriptorSupplier(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/BigQueryOptions.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptions.java similarity index 68% 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 458e38b09..6758c6ea4 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,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BigQueryOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,68 +52,63 @@ private BigQueryOptions( case 0: done = true; break; - case 8: - { - usePartitionedTables_ = input.readBool(); - break; - } - case 24: - { - usesTimestampColumnPartitioning_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 8: { + + usePartitionedTables_ = input.readBool(); + break; + } + case 24: { + + usesTimestampColumnPartitioning_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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_; /** - * - * *
    * Optional. Whether to use [BigQuery's partition
    * tables](https://cloud.google.com/bigquery/docs/partitioned-tables). By
-   * default, Logging creates dated tables based on the log entries' timestamps,
-   * e.g. syslog_20170523. With partitioned tables the date suffix is no longer
-   * present and [special query
+   * default, Cloud Logging creates dated tables based on the log entries'
+   * timestamps, e.g. syslog_20170523. With partitioned tables the date suffix
+   * is no longer present and [special query
    * syntax](https://cloud.google.com/bigquery/docs/querying-partitioned-tables)
    * has to be used instead. In both cases, tables are sharded based on UTC
    * timezone.
    * 
* * bool use_partitioned_tables = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The usePartitionedTables. */ @java.lang.Override @@ -140,20 +119,16 @@ public boolean getUsePartitionedTables() { public static final int USES_TIMESTAMP_COLUMN_PARTITIONING_FIELD_NUMBER = 3; private boolean usesTimestampColumnPartitioning_; /** - * - * *
-   * Output only. True if new timestamp column based partitioning is in use,
-   * false if legacy ingestion-time partitioning is in use.
+   * Output only. True if new timestamp column based partitioning is in use, false if legacy
+   * ingestion-time partitioning is in use.
    * All new sinks will have this field set true and will use timestamp column
    * based partitioning. If use_partitioned_tables is false, this value has no
    * meaning and will be false. Legacy sinks using partitioned tables will have
    * 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 @@ -162,7 +137,6 @@ public boolean getUsesTimestampColumnPartitioning() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -174,7 +148,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (usePartitionedTables_ != false) { output.writeBool(1, usePartitionedTables_); } @@ -191,12 +166,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -206,16 +181,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,136 +204,128 @@ 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) + unknownFields.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() @@ -365,15 +333,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -385,9 +354,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 @@ -406,8 +375,7 @@ 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); + com.google.logging.v2.BigQueryOptions result = new com.google.logging.v2.BigQueryOptions(this); result.usePartitionedTables_ = usePartitionedTables_; result.usesTimestampColumnPartitioning_ = usesTimestampColumnPartitioning_; onBuilt(); @@ -418,39 +386,38 @@ public com.google.logging.v2.BigQueryOptions 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.BigQueryOptions) { - return mergeFrom((com.google.logging.v2.BigQueryOptions) other); + return mergeFrom((com.google.logging.v2.BigQueryOptions)other); } else { super.mergeFrom(other); return this; @@ -494,23 +461,20 @@ public Builder mergeFrom( return this; } - private boolean usePartitionedTables_; + private boolean usePartitionedTables_ ; /** - * - * *
      * Optional. Whether to use [BigQuery's partition
      * tables](https://cloud.google.com/bigquery/docs/partitioned-tables). By
-     * default, Logging creates dated tables based on the log entries' timestamps,
-     * e.g. syslog_20170523. With partitioned tables the date suffix is no longer
-     * present and [special query
+     * default, Cloud Logging creates dated tables based on the log entries'
+     * timestamps, e.g. syslog_20170523. With partitioned tables the date suffix
+     * is no longer present and [special query
      * syntax](https://cloud.google.com/bigquery/docs/querying-partitioned-tables)
      * has to be used instead. In both cases, tables are sharded based on UTC
      * timezone.
      * 
* * bool use_partitioned_tables = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The usePartitionedTables. */ @java.lang.Override @@ -518,72 +482,61 @@ public boolean getUsePartitionedTables() { return usePartitionedTables_; } /** - * - * *
      * Optional. Whether to use [BigQuery's partition
      * tables](https://cloud.google.com/bigquery/docs/partitioned-tables). By
-     * default, Logging creates dated tables based on the log entries' timestamps,
-     * e.g. syslog_20170523. With partitioned tables the date suffix is no longer
-     * present and [special query
+     * default, Cloud Logging creates dated tables based on the log entries'
+     * timestamps, e.g. syslog_20170523. With partitioned tables the date suffix
+     * is no longer present and [special query
      * syntax](https://cloud.google.com/bigquery/docs/querying-partitioned-tables)
      * has to be used instead. In both cases, tables are sharded based on UTC
      * timezone.
      * 
* * bool use_partitioned_tables = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The usePartitionedTables to set. * @return This builder for chaining. */ public Builder setUsePartitionedTables(boolean value) { - + usePartitionedTables_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Whether to use [BigQuery's partition
      * tables](https://cloud.google.com/bigquery/docs/partitioned-tables). By
-     * default, Logging creates dated tables based on the log entries' timestamps,
-     * e.g. syslog_20170523. With partitioned tables the date suffix is no longer
-     * present and [special query
+     * default, Cloud Logging creates dated tables based on the log entries'
+     * timestamps, e.g. syslog_20170523. With partitioned tables the date suffix
+     * is no longer present and [special query
      * syntax](https://cloud.google.com/bigquery/docs/querying-partitioned-tables)
      * has to be used instead. In both cases, tables are sharded based on UTC
      * timezone.
      * 
* * bool use_partitioned_tables = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearUsePartitionedTables() { - + usePartitionedTables_ = false; onChanged(); 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.
+     * Output only. True if new timestamp column based partitioning is in use, false if legacy
+     * ingestion-time partitioning is in use.
      * All new sinks will have this field set true and will use timestamp column
      * based partitioning. If use_partitioned_tables is false, this value has no
      * meaning and will be false. Legacy sinks using partitioned tables will have
      * 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 @@ -591,57 +544,47 @@ 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.
+     * Output only. True if new timestamp column based partitioning is in use, false if legacy
+     * ingestion-time partitioning is in use.
      * All new sinks will have this field set true and will use timestamp column
      * based partitioning. If use_partitioned_tables is false, this value has no
      * meaning and will be false. Legacy sinks using partitioned tables will have
      * 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. */ public Builder setUsesTimestampColumnPartitioning(boolean value) { - + usesTimestampColumnPartitioning_ = value; onChanged(); return this; } /** - * - * *
-     * Output only. True if new timestamp column based partitioning is in use,
-     * false if legacy ingestion-time partitioning is in use.
+     * Output only. True if new timestamp column based partitioning is in use, false if legacy
+     * ingestion-time partitioning is in use.
      * All new sinks will have this field set true and will use timestamp column
      * based partitioning. If use_partitioned_tables is false, this value has no
      * meaning and will be false. Legacy sinks using partitioned tables will have
      * 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() { - + usesTimestampColumnPartitioning_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -651,12 +594,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(); } @@ -665,16 +608,16 @@ 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 { - return new BigQueryOptions(input, extensionRegistry); - } - }; + 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 { + return new BigQueryOptions(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -689,4 +632,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 56% 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 87143a591..436ceb57d 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,63 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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
-   * default, Logging creates dated tables based on the log entries' timestamps,
-   * e.g. syslog_20170523. With partitioned tables the date suffix is no longer
-   * present and [special query
+   * default, Cloud Logging creates dated tables based on the log entries'
+   * timestamps, e.g. syslog_20170523. With partitioned tables the date suffix
+   * is no longer present and [special query
    * syntax](https://cloud.google.com/bigquery/docs/querying-partitioned-tables)
    * has to be used instead. In both cases, tables are sharded based on UTC
    * timezone.
    * 
* * 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.
+   * Output only. True if new timestamp column based partitioning is in use, false if legacy
+   * ingestion-time partitioning is in use.
    * All new sinks will have this field set true and will use timestamp column
    * based partitioning. If use_partitioned_tables is false, this value has no
    * meaning and will be false. Legacy sinks using partitioned tables will have
    * 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/CmekSettings.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettings.java similarity index 62% 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 e5667b6ab..c29b93384 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,49 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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.
- * Note: CMEK for the Logs Router can currently only be configured for GCP
- * organizations. Once configured, it applies to all projects and folders in the
- * GCP organization.
- * See [Enabling CMEK for Logs
+ * 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.
+ * See [Enabling CMEK for Log
  * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for
  * more information.
  * 
* * 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_ = ""; @@ -52,15 +34,16 @@ private CmekSettings() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CmekSettings(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CmekSettings( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -79,72 +62,64 @@ private CmekSettings( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - kmsKeyName_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + kmsKeyName_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - serviceAccountId_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + serviceAccountId_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; 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 @@ -153,29 +128,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 { @@ -186,30 +161,28 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int KMS_KEY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object kmsKeyName_; /** - * - * *
    * The resource name for the configured Cloud KMS key.
    * KMS key name format:
    *     "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
    * For example:
-   *     `"projects/my-project-id/locations/my-region/keyRings/key-ring-name/cryptoKeys/key-name"`
-   * To enable CMEK for the Logs Router, set this field to a valid
+   *   `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key"`
+   * To enable CMEK for the Log Router, set this field to a valid
    * `kms_key_name` for which the associated service account has the required
-   * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key.
+   * cloudkms.cryptoKeyEncrypterDecrypter roles assigned for the key.
    * The Cloud KMS key used by the Log Router can be updated by changing the
-   * `kms_key_name` to a new valid key name. Encryption operations that are in
-   * progress will be completed with the key that was in use when they started.
-   * Decryption operations will be completed using the key that was used at the
-   * time of encryption unless access to that key has been revoked.
-   * To disable CMEK for the Logs Router, set this field to an empty string.
-   * See [Enabling CMEK for Logs
+   * `kms_key_name` to a new valid key name or disabled by setting the key name
+   * to an empty string. Encryption operations that are in progress will be
+   * completed with the key that was in use when they started. Decryption
+   * operations will be completed using the key that was used at the time of
+   * encryption unless access to that key has been revoked.
+   * To disable CMEK for the Log Router, set this field to an empty string.
+   * See [Enabling CMEK for Log
    * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
    * for more information.
    * 
* * string kms_key_name = 2; - * * @return The kmsKeyName. */ @java.lang.Override @@ -218,45 +191,46 @@ 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.
    * KMS key name format:
    *     "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
    * For example:
-   *     `"projects/my-project-id/locations/my-region/keyRings/key-ring-name/cryptoKeys/key-name"`
-   * To enable CMEK for the Logs Router, set this field to a valid
+   *   `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key"`
+   * To enable CMEK for the Log Router, set this field to a valid
    * `kms_key_name` for which the associated service account has the required
-   * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key.
+   * cloudkms.cryptoKeyEncrypterDecrypter roles assigned for the key.
    * The Cloud KMS key used by the Log Router can be updated by changing the
-   * `kms_key_name` to a new valid key name. Encryption operations that are in
-   * progress will be completed with the key that was in use when they started.
-   * Decryption operations will be completed using the key that was used at the
-   * time of encryption unless access to that key has been revoked.
-   * To disable CMEK for the Logs Router, set this field to an empty string.
-   * See [Enabling CMEK for Logs
+   * `kms_key_name` to a new valid key name or disabled by setting the key name
+   * to an empty string. Encryption operations that are in progress will be
+   * completed with the key that was in use when they started. Decryption
+   * operations will be completed using the key that was used at the time of
+   * encryption unless access to that key has been revoked.
+   * To disable CMEK for the Log Router, set this field to an empty string.
+   * See [Enabling CMEK for Log
    * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
    * for more information.
    * 
* * 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 { @@ -267,23 +241,20 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { public static final int SERVICE_ACCOUNT_ID_FIELD_NUMBER = 3; private volatile java.lang.Object serviceAccountId_; /** - * - * *
-   * Output only. The service account that will be used by the Logs Router to access your
+   * Output only. The service account that will be used by the Log Router to access your
    * Cloud KMS key.
-   * Before enabling CMEK for Logs Router, you must first assign the role
-   * `roles/cloudkms.cryptoKeyEncrypterDecrypter` to the service account that
-   * the Logs Router will use to access your Cloud KMS key. Use
+   * Before enabling CMEK for Log Router, you must first assign the
+   * cloudkms.cryptoKeyEncrypterDecrypter role to the service account that
+   * the Log Router will use to access your Cloud KMS key. Use
    * [GetCmekSettings][google.logging.v2.ConfigServiceV2.GetCmekSettings] to
    * obtain the service account ID.
-   * See [Enabling CMEK for Logs
+   * See [Enabling CMEK for Log
    * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
    * for more information.
    * 
* * string service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The serviceAccountId. */ @java.lang.Override @@ -292,38 +263,38 @@ 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 Logs Router to access your
+   * Output only. The service account that will be used by the Log Router to access your
    * Cloud KMS key.
-   * Before enabling CMEK for Logs Router, you must first assign the role
-   * `roles/cloudkms.cryptoKeyEncrypterDecrypter` to the service account that
-   * the Logs Router will use to access your Cloud KMS key. Use
+   * Before enabling CMEK for Log Router, you must first assign the
+   * cloudkms.cryptoKeyEncrypterDecrypter role to the service account that
+   * the Log Router will use to access your Cloud KMS key. Use
    * [GetCmekSettings][google.logging.v2.ConfigServiceV2.GetCmekSettings] to
    * obtain the service account ID.
-   * See [Enabling CMEK for Logs
+   * See [Enabling CMEK for Log
    * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
    * for more information.
    * 
* * 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 { @@ -332,7 +303,6 @@ public com.google.protobuf.ByteString getServiceAccountIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -344,7 +314,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_); } @@ -380,16 +351,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.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 (!getServiceAccountId().equals(other.getServiceAccountId())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getKmsKeyName() + .equals(other.getKmsKeyName())) return false; + if (!getServiceAccountId() + .equals(other.getServiceAccountId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -412,133 +386,125 @@ 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.
-   * Note: CMEK for the Logs Router can currently only be configured for GCP
-   * organizations. Once configured, it applies to all projects and folders in the
-   * GCP organization.
-   * See [Enabling CMEK for Logs
+   * 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.
+   * See [Enabling CMEK for Log
    * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for
    * more information.
    * 
* * 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() @@ -546,15 +512,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -568,9 +535,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 @@ -601,39 +568,38 @@ public com.google.logging.v2.CmekSettings 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.CmekSettings) { - return mergeFrom((com.google.logging.v2.CmekSettings) other); + return mergeFrom((com.google.logging.v2.CmekSettings)other); } else { super.mergeFrom(other); return this; @@ -685,20 +651,18 @@ public Builder mergeFrom( 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; @@ -707,21 +671,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 { @@ -729,61 +692,54 @@ 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); onChanged(); 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -791,36 +747,35 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object kmsKeyName_ = ""; /** - * - * *
      * The resource name for the configured Cloud KMS key.
      * KMS key name format:
      *     "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
      * For example:
-     *     `"projects/my-project-id/locations/my-region/keyRings/key-ring-name/cryptoKeys/key-name"`
-     * To enable CMEK for the Logs Router, set this field to a valid
+     *   `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key"`
+     * To enable CMEK for the Log Router, set this field to a valid
      * `kms_key_name` for which the associated service account has the required
-     * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key.
+     * cloudkms.cryptoKeyEncrypterDecrypter roles assigned for the key.
      * The Cloud KMS key used by the Log Router can be updated by changing the
-     * `kms_key_name` to a new valid key name. Encryption operations that are in
-     * progress will be completed with the key that was in use when they started.
-     * Decryption operations will be completed using the key that was used at the
-     * time of encryption unless access to that key has been revoked.
-     * To disable CMEK for the Logs Router, set this field to an empty string.
-     * See [Enabling CMEK for Logs
+     * `kms_key_name` to a new valid key name or disabled by setting the key name
+     * to an empty string. Encryption operations that are in progress will be
+     * completed with the key that was in use when they started. Decryption
+     * operations will be completed using the key that was used at the time of
+     * encryption unless access to that key has been revoked.
+     * To disable CMEK for the Log Router, set this field to an empty string.
+     * See [Enabling CMEK for Log
      * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
      * for more information.
      * 
* * 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; @@ -829,37 +784,37 @@ public java.lang.String getKmsKeyName() { } } /** - * - * *
      * The resource name for the configured Cloud KMS key.
      * KMS key name format:
      *     "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
      * For example:
-     *     `"projects/my-project-id/locations/my-region/keyRings/key-ring-name/cryptoKeys/key-name"`
-     * To enable CMEK for the Logs Router, set this field to a valid
+     *   `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key"`
+     * To enable CMEK for the Log Router, set this field to a valid
      * `kms_key_name` for which the associated service account has the required
-     * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key.
+     * cloudkms.cryptoKeyEncrypterDecrypter roles assigned for the key.
      * The Cloud KMS key used by the Log Router can be updated by changing the
-     * `kms_key_name` to a new valid key name. Encryption operations that are in
-     * progress will be completed with the key that was in use when they started.
-     * Decryption operations will be completed using the key that was used at the
-     * time of encryption unless access to that key has been revoked.
-     * To disable CMEK for the Logs Router, set this field to an empty string.
-     * See [Enabling CMEK for Logs
+     * `kms_key_name` to a new valid key name or disabled by setting the key name
+     * to an empty string. Encryption operations that are in progress will be
+     * completed with the key that was in use when they started. Decryption
+     * operations will be completed using the key that was used at the time of
+     * encryption unless access to that key has been revoked.
+     * To disable CMEK for the Log Router, set this field to an empty string.
+     * See [Enabling CMEK for Log
      * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
      * for more information.
      * 
* * 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 { @@ -867,109 +822,105 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } } /** - * - * *
      * The resource name for the configured Cloud KMS key.
      * KMS key name format:
      *     "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
      * For example:
-     *     `"projects/my-project-id/locations/my-region/keyRings/key-ring-name/cryptoKeys/key-name"`
-     * To enable CMEK for the Logs Router, set this field to a valid
+     *   `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key"`
+     * To enable CMEK for the Log Router, set this field to a valid
      * `kms_key_name` for which the associated service account has the required
-     * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key.
+     * cloudkms.cryptoKeyEncrypterDecrypter roles assigned for the key.
      * The Cloud KMS key used by the Log Router can be updated by changing the
-     * `kms_key_name` to a new valid key name. Encryption operations that are in
-     * progress will be completed with the key that was in use when they started.
-     * Decryption operations will be completed using the key that was used at the
-     * time of encryption unless access to that key has been revoked.
-     * To disable CMEK for the Logs Router, set this field to an empty string.
-     * See [Enabling CMEK for Logs
+     * `kms_key_name` to a new valid key name or disabled by setting the key name
+     * to an empty string. Encryption operations that are in progress will be
+     * completed with the key that was in use when they started. Decryption
+     * operations will be completed using the key that was used at the time of
+     * encryption unless access to that key has been revoked.
+     * To disable CMEK for the Log Router, set this field to an empty string.
+     * See [Enabling CMEK for Log
      * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
      * for more information.
      * 
* * string kms_key_name = 2; - * * @param value The kmsKeyName to set. * @return This builder for chaining. */ - public Builder setKmsKeyName(java.lang.String value) { + public Builder setKmsKeyName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kmsKeyName_ = value; onChanged(); return this; } /** - * - * *
      * The resource name for the configured Cloud KMS key.
      * KMS key name format:
      *     "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
      * For example:
-     *     `"projects/my-project-id/locations/my-region/keyRings/key-ring-name/cryptoKeys/key-name"`
-     * To enable CMEK for the Logs Router, set this field to a valid
+     *   `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key"`
+     * To enable CMEK for the Log Router, set this field to a valid
      * `kms_key_name` for which the associated service account has the required
-     * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key.
+     * cloudkms.cryptoKeyEncrypterDecrypter roles assigned for the key.
      * The Cloud KMS key used by the Log Router can be updated by changing the
-     * `kms_key_name` to a new valid key name. Encryption operations that are in
-     * progress will be completed with the key that was in use when they started.
-     * Decryption operations will be completed using the key that was used at the
-     * time of encryption unless access to that key has been revoked.
-     * To disable CMEK for the Logs Router, set this field to an empty string.
-     * See [Enabling CMEK for Logs
+     * `kms_key_name` to a new valid key name or disabled by setting the key name
+     * to an empty string. Encryption operations that are in progress will be
+     * completed with the key that was in use when they started. Decryption
+     * operations will be completed using the key that was used at the time of
+     * encryption unless access to that key has been revoked.
+     * To disable CMEK for the Log Router, set this field to an empty string.
+     * See [Enabling CMEK for Log
      * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
      * for more information.
      * 
* * string kms_key_name = 2; - * * @return This builder for chaining. */ public Builder clearKmsKeyName() { - + kmsKeyName_ = getDefaultInstance().getKmsKeyName(); onChanged(); return this; } /** - * - * *
      * The resource name for the configured Cloud KMS key.
      * KMS key name format:
      *     "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
      * For example:
-     *     `"projects/my-project-id/locations/my-region/keyRings/key-ring-name/cryptoKeys/key-name"`
-     * To enable CMEK for the Logs Router, set this field to a valid
+     *   `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key"`
+     * To enable CMEK for the Log Router, set this field to a valid
      * `kms_key_name` for which the associated service account has the required
-     * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key.
+     * cloudkms.cryptoKeyEncrypterDecrypter roles assigned for the key.
      * The Cloud KMS key used by the Log Router can be updated by changing the
-     * `kms_key_name` to a new valid key name. Encryption operations that are in
-     * progress will be completed with the key that was in use when they started.
-     * Decryption operations will be completed using the key that was used at the
-     * time of encryption unless access to that key has been revoked.
-     * To disable CMEK for the Logs Router, set this field to an empty string.
-     * See [Enabling CMEK for Logs
+     * `kms_key_name` to a new valid key name or disabled by setting the key name
+     * to an empty string. Encryption operations that are in progress will be
+     * completed with the key that was in use when they started. Decryption
+     * operations will be completed using the key that was used at the time of
+     * encryption unless access to that key has been revoked.
+     * To disable CMEK for the Log Router, set this field to an empty string.
+     * See [Enabling CMEK for Log
      * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
      * for more information.
      * 
* * 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) { + public Builder setKmsKeyNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKeyName_ = value; onChanged(); return this; @@ -977,29 +928,27 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object serviceAccountId_ = ""; /** - * - * *
-     * Output only. The service account that will be used by the Logs Router to access your
+     * Output only. The service account that will be used by the Log Router to access your
      * Cloud KMS key.
-     * Before enabling CMEK for Logs Router, you must first assign the role
-     * `roles/cloudkms.cryptoKeyEncrypterDecrypter` to the service account that
-     * the Logs Router will use to access your Cloud KMS key. Use
+     * Before enabling CMEK for Log Router, you must first assign the
+     * cloudkms.cryptoKeyEncrypterDecrypter role to the service account that
+     * the Log Router will use to access your Cloud KMS key. Use
      * [GetCmekSettings][google.logging.v2.ConfigServiceV2.GetCmekSettings] to
      * obtain the service account ID.
-     * See [Enabling CMEK for Logs
+     * See [Enabling CMEK for Log
      * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
      * for more information.
      * 
* * 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; @@ -1008,30 +957,29 @@ public java.lang.String getServiceAccountId() { } } /** - * - * *
-     * Output only. The service account that will be used by the Logs Router to access your
+     * Output only. The service account that will be used by the Log Router to access your
      * Cloud KMS key.
-     * Before enabling CMEK for Logs Router, you must first assign the role
-     * `roles/cloudkms.cryptoKeyEncrypterDecrypter` to the service account that
-     * the Logs Router will use to access your Cloud KMS key. Use
+     * Before enabling CMEK for Log Router, you must first assign the
+     * cloudkms.cryptoKeyEncrypterDecrypter role to the service account that
+     * the Log Router will use to access your Cloud KMS key. Use
      * [GetCmekSettings][google.logging.v2.ConfigServiceV2.GetCmekSettings] to
      * obtain the service account ID.
-     * See [Enabling CMEK for Logs
+     * See [Enabling CMEK for Log
      * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
      * for more information.
      * 
* * 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 { @@ -1039,95 +987,88 @@ public com.google.protobuf.ByteString getServiceAccountIdBytes() { } } /** - * - * *
-     * Output only. The service account that will be used by the Logs Router to access your
+     * Output only. The service account that will be used by the Log Router to access your
      * Cloud KMS key.
-     * Before enabling CMEK for Logs Router, you must first assign the role
-     * `roles/cloudkms.cryptoKeyEncrypterDecrypter` to the service account that
-     * the Logs Router will use to access your Cloud KMS key. Use
+     * Before enabling CMEK for Log Router, you must first assign the
+     * cloudkms.cryptoKeyEncrypterDecrypter role to the service account that
+     * the Log Router will use to access your Cloud KMS key. Use
      * [GetCmekSettings][google.logging.v2.ConfigServiceV2.GetCmekSettings] to
      * obtain the service account ID.
-     * See [Enabling CMEK for Logs
+     * See [Enabling CMEK for Log
      * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
      * for more information.
      * 
* * 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) { + public Builder setServiceAccountId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceAccountId_ = value; onChanged(); return this; } /** - * - * *
-     * Output only. The service account that will be used by the Logs Router to access your
+     * Output only. The service account that will be used by the Log Router to access your
      * Cloud KMS key.
-     * Before enabling CMEK for Logs Router, you must first assign the role
-     * `roles/cloudkms.cryptoKeyEncrypterDecrypter` to the service account that
-     * the Logs Router will use to access your Cloud KMS key. Use
+     * Before enabling CMEK for Log Router, you must first assign the
+     * cloudkms.cryptoKeyEncrypterDecrypter role to the service account that
+     * the Log Router will use to access your Cloud KMS key. Use
      * [GetCmekSettings][google.logging.v2.ConfigServiceV2.GetCmekSettings] to
      * obtain the service account ID.
-     * See [Enabling CMEK for Logs
+     * See [Enabling CMEK for Log
      * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
      * for more information.
      * 
* * string service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearServiceAccountId() { - + serviceAccountId_ = getDefaultInstance().getServiceAccountId(); onChanged(); return this; } /** - * - * *
-     * Output only. The service account that will be used by the Logs Router to access your
+     * Output only. The service account that will be used by the Log Router to access your
      * Cloud KMS key.
-     * Before enabling CMEK for Logs Router, you must first assign the role
-     * `roles/cloudkms.cryptoKeyEncrypterDecrypter` to the service account that
-     * the Logs Router will use to access your Cloud KMS key. Use
+     * Before enabling CMEK for Log Router, you must first assign the
+     * cloudkms.cryptoKeyEncrypterDecrypter role to the service account that
+     * the Log Router will use to access your Cloud KMS key. Use
      * [GetCmekSettings][google.logging.v2.ConfigServiceV2.GetCmekSettings] to
      * obtain the service account ID.
-     * See [Enabling CMEK for Logs
+     * See [Enabling CMEK for Log
      * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
      * for more information.
      * 
* * 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) { + public Builder setServiceAccountIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccountId_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1137,12 +1078,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(); } @@ -1151,16 +1092,16 @@ 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 { - return new CmekSettings(input, extensionRegistry); - } - }; + 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 { + return new CmekSettings(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1175,4 +1116,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 72% 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 af9b20244..899281352 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()} 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()} 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()} 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()} 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()} 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()} 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()} 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()} 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 51% 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 19d657c53..60dca8e32 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,150 +1,121 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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.
    * KMS key name format:
    *     "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
    * For example:
-   *     `"projects/my-project-id/locations/my-region/keyRings/key-ring-name/cryptoKeys/key-name"`
-   * To enable CMEK for the Logs Router, set this field to a valid
+   *   `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key"`
+   * To enable CMEK for the Log Router, set this field to a valid
    * `kms_key_name` for which the associated service account has the required
-   * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key.
+   * cloudkms.cryptoKeyEncrypterDecrypter roles assigned for the key.
    * The Cloud KMS key used by the Log Router can be updated by changing the
-   * `kms_key_name` to a new valid key name. Encryption operations that are in
-   * progress will be completed with the key that was in use when they started.
-   * Decryption operations will be completed using the key that was used at the
-   * time of encryption unless access to that key has been revoked.
-   * To disable CMEK for the Logs Router, set this field to an empty string.
-   * See [Enabling CMEK for Logs
+   * `kms_key_name` to a new valid key name or disabled by setting the key name
+   * to an empty string. Encryption operations that are in progress will be
+   * completed with the key that was in use when they started. Decryption
+   * operations will be completed using the key that was used at the time of
+   * encryption unless access to that key has been revoked.
+   * To disable CMEK for the Log Router, set this field to an empty string.
+   * See [Enabling CMEK for Log
    * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
    * for more information.
    * 
* * string kms_key_name = 2; - * * @return The kmsKeyName. */ java.lang.String getKmsKeyName(); /** - * - * *
    * The resource name for the configured Cloud KMS key.
    * KMS key name format:
    *     "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
    * For example:
-   *     `"projects/my-project-id/locations/my-region/keyRings/key-ring-name/cryptoKeys/key-name"`
-   * To enable CMEK for the Logs Router, set this field to a valid
+   *   `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key"`
+   * To enable CMEK for the Log Router, set this field to a valid
    * `kms_key_name` for which the associated service account has the required
-   * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key.
+   * cloudkms.cryptoKeyEncrypterDecrypter roles assigned for the key.
    * The Cloud KMS key used by the Log Router can be updated by changing the
-   * `kms_key_name` to a new valid key name. Encryption operations that are in
-   * progress will be completed with the key that was in use when they started.
-   * Decryption operations will be completed using the key that was used at the
-   * time of encryption unless access to that key has been revoked.
-   * To disable CMEK for the Logs Router, set this field to an empty string.
-   * See [Enabling CMEK for Logs
+   * `kms_key_name` to a new valid key name or disabled by setting the key name
+   * to an empty string. Encryption operations that are in progress will be
+   * completed with the key that was in use when they started. Decryption
+   * operations will be completed using the key that was used at the time of
+   * encryption unless access to that key has been revoked.
+   * To disable CMEK for the Log Router, set this field to an empty string.
+   * See [Enabling CMEK for Log
    * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
    * for more information.
    * 
* * string kms_key_name = 2; - * * @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 Logs Router to access your
+   * Output only. The service account that will be used by the Log Router to access your
    * Cloud KMS key.
-   * Before enabling CMEK for Logs Router, you must first assign the role
-   * `roles/cloudkms.cryptoKeyEncrypterDecrypter` to the service account that
-   * the Logs Router will use to access your Cloud KMS key. Use
+   * Before enabling CMEK for Log Router, you must first assign the
+   * cloudkms.cryptoKeyEncrypterDecrypter role to the service account that
+   * the Log Router will use to access your Cloud KMS key. Use
    * [GetCmekSettings][google.logging.v2.ConfigServiceV2.GetCmekSettings] to
    * obtain the service account ID.
-   * See [Enabling CMEK for Logs
+   * See [Enabling CMEK for Log
    * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
    * for more information.
    * 
* * 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 Logs Router to access your
+   * Output only. The service account that will be used by the Log Router to access your
    * Cloud KMS key.
-   * Before enabling CMEK for Logs Router, you must first assign the role
-   * `roles/cloudkms.cryptoKeyEncrypterDecrypter` to the service account that
-   * the Logs Router will use to access your Cloud KMS key. Use
+   * Before enabling CMEK for Log Router, you must first assign the
+   * cloudkms.cryptoKeyEncrypterDecrypter role to the service account that
+   * the Log Router will use to access your Cloud KMS key. Use
    * [GetCmekSettings][google.logging.v2.ConfigServiceV2.GetCmekSettings] to
    * obtain the service account ID.
-   * See [Enabling CMEK for Logs
+   * See [Enabling CMEK for Log
    * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
    * for more information.
    * 
* * 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/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadata.java new file mode 100644 index 000000000..91bf61cb6 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadata.java @@ -0,0 +1,1614 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.logging.v2.CopyLogEntriesMetadata) + CopyLogEntriesMetadataOrBuilder { +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_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CopyLogEntriesMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CopyLogEntriesMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; + } + case 24: { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 32: { + + cancellationRequested_ = input.readBool(); + break; + } + case 42: { + com.google.logging.v2.CopyLogEntriesRequest.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = input.readMessage(com.google.logging.v2.CopyLogEntriesRequest.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; + } + case 48: { + + progress_ = input.readInt32(); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + writerIdentity_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + 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 + .ensureFieldAccessorsInitialized( + 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 + public boolean hasStartTime() { + return startTime_ != null; + } + /** + *
+   * The create time of an operation.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + *
+   * The create time of an operation.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return getStartTime(); + } + + 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 + public boolean hasEndTime() { + return endTime_ != null; + } + /** + *
+   * The end time of an operation.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + *
+   * The end time of an operation.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return getEndTime(); + } + + public static final int STATE_FIELD_NUMBER = 3; + private int state_; + /** + *
+   * 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() { + 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() { + @SuppressWarnings("deprecation") + com.google.logging.v2.OperationState result = com.google.logging.v2.OperationState.valueOf(state_); + return result == null ? com.google.logging.v2.OperationState.UNRECOGNIZED : result; + } + + public static final int CANCELLATION_REQUESTED_FIELD_NUMBER = 4; + private boolean cancellationRequested_; + /** + *
+   * Identifies whether the user has requested cancellation of the operation.
+   * 
+ * + * bool cancellation_requested = 4; + * @return The cancellationRequested. + */ + @java.lang.Override + public boolean getCancellationRequested() { + return cancellationRequested_; + } + + 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 + 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_; + } + /** + *
+   * CopyLogEntries RPC request.
+   * 
+ * + * .google.logging.v2.CopyLogEntriesRequest request = 5; + */ + @java.lang.Override + public com.google.logging.v2.CopyLogEntriesRequestOrBuilder getRequestOrBuilder() { + return getRequest(); + } + + public static final int PROGRESS_FIELD_NUMBER = 6; + private int progress_; + /** + *
+   * Estimated progress of the operation (0 - 100%).
+   * 
+ * + * int32 progress = 6; + * @return The progress. + */ + @java.lang.Override + public int getProgress() { + return progress_; + } + + public static final int WRITER_IDENTITY_FIELD_NUMBER = 7; + private volatile java.lang.Object writerIdentity_; + /** + *
+   * The IAM identity of a service account that must be granted access to the
+   * destination.
+   * If the service account is not granted permission to the destination within
+   * an hour, the operation will be cancelled.
+   * For example: `"serviceAccount:foo@bar.com"`
+   * 
+ * + * string writer_identity = 7; + * @return The writerIdentity. + */ + @java.lang.Override + public java.lang.String getWriterIdentity() { + java.lang.Object ref = writerIdentity_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + writerIdentity_ = s; + return s; + } + } + /** + *
+   * The IAM identity of a service account that must be granted access to the
+   * destination.
+   * If the service account is not granted permission to the destination within
+   * an hour, the operation will be cancelled.
+   * For example: `"serviceAccount:foo@bar.com"`
+   * 
+ * + * string writer_identity = 7; + * @return The bytes for writerIdentity. + */ + @java.lang.Override + 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); + writerIdentity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (startTime_ != null) { + output.writeMessage(1, getStartTime()); + } + if (endTime_ != null) { + output.writeMessage(2, getEndTime()); + } + if (state_ != com.google.logging.v2.OperationState.OPERATION_STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, state_); + } + if (cancellationRequested_ != false) { + output.writeBool(4, cancellationRequested_); + } + if (request_ != null) { + output.writeMessage(5, getRequest()); + } + if (progress_ != 0) { + output.writeInt32(6, progress_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(writerIdentity_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, writerIdentity_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (startTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStartTime()); + } + if (endTime_ != null) { + 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_); + } + if (cancellationRequested_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, cancellationRequested_); + } + if (request_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getRequest()); + } + if (progress_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, progress_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(writerIdentity_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, writerIdentity_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.logging.v2.CopyLogEntriesMetadata)) { + return super.equals(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 (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (state_ != other.state_) return false; + if (getCancellationRequested() + != other.getCancellationRequested()) return false; + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest() + .equals(other.getRequest())) return false; + } + if (getProgress() + != other.getProgress()) return false; + if (!getWriterIdentity() + .equals(other.getWriterIdentity())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().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()); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + hash = (37 * hash) + PROGRESS_FIELD_NUMBER; + hash = (53 * hash) + getProgress(); + hash = (37 * hash) + WRITER_IDENTITY_FIELD_NUMBER; + hash = (53 * hash) + getWriterIdentity().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + 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) + 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) + 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); + } + public static com.google.logging.v2.CopyLogEntriesMetadata parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + 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); + } + + // Construct using com.google.logging.v2.CopyLogEntriesMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (startTimeBuilder_ == null) { + startTime_ = null; + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + if (endTimeBuilder_ == null) { + endTime_ = null; + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + state_ = 0; + + cancellationRequested_ = false; + + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + progress_ = 0; + + writerIdentity_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CopyLogEntriesMetadata_descriptor; + } + + @java.lang.Override + public com.google.logging.v2.CopyLogEntriesMetadata getDefaultInstanceForType() { + return com.google.logging.v2.CopyLogEntriesMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.logging.v2.CopyLogEntriesMetadata build() { + com.google.logging.v2.CopyLogEntriesMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.logging.v2.CopyLogEntriesMetadata buildPartial() { + com.google.logging.v2.CopyLogEntriesMetadata result = new com.google.logging.v2.CopyLogEntriesMetadata(this); + if (startTimeBuilder_ == null) { + result.startTime_ = startTime_; + } else { + result.startTime_ = startTimeBuilder_.build(); + } + if (endTimeBuilder_ == null) { + result.endTime_ = endTime_; + } else { + result.endTime_ = endTimeBuilder_.build(); + } + result.state_ = state_; + result.cancellationRequested_ = cancellationRequested_; + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.progress_ = progress_; + result.writerIdentity_ = writerIdentity_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.logging.v2.CopyLogEntriesMetadata) { + return mergeFrom((com.google.logging.v2.CopyLogEntriesMetadata)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.logging.v2.CopyLogEntriesMetadata other) { + if (other == com.google.logging.v2.CopyLogEntriesMetadata.getDefaultInstance()) return this; + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.getCancellationRequested() != false) { + setCancellationRequested(other.getCancellationRequested()); + } + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getProgress() != 0) { + setProgress(other.getProgress()); + } + if (!other.getWriterIdentity().isEmpty()) { + writerIdentity_ = other.writerIdentity_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.logging.v2.CopyLogEntriesMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.logging.v2.CopyLogEntriesMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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_; + /** + *
+     * The create time of an operation.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return startTimeBuilder_ != null || startTime_ != null; + } + /** + *
+     * The create time of an operation.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + *
+     * The create time of an operation.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + onChanged(); + } else { + startTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The create time of an operation.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + onChanged(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The create time of an operation.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (startTime_ != null) { + startTime_ = + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + } else { + startTime_ = value; + } + onChanged(); + } else { + startTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The create time of an operation.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder clearStartTime() { + if (startTimeBuilder_ == null) { + startTime_ = null; + onChanged(); + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * The create time of an operation.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + *
+     * The create time of an operation.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + *
+     * The create time of an operation.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + startTime_ = null; + } + return startTimeBuilder_; + } + + 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_; + /** + *
+     * The end time of an operation.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return endTimeBuilder_ != null || endTime_ != null; + } + /** + *
+     * The end time of an operation.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + *
+     * The end time of an operation.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + onChanged(); + } else { + endTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * The end time of an operation.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + onChanged(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * The end time of an operation.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (endTime_ != null) { + endTime_ = + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + } else { + endTime_ = value; + } + onChanged(); + } else { + endTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * The end time of an operation.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder clearEndTime() { + if (endTimeBuilder_ == null) { + endTime_ = null; + onChanged(); + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * The end time of an operation.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + *
+     * The end time of an operation.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + *
+     * The end time of an operation.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + endTime_ = null; + } + return endTimeBuilder_; + } + + 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() { + 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. + */ + public Builder setStateValue(int value) { + + state_ = value; + onChanged(); + 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() { + @SuppressWarnings("deprecation") + com.google.logging.v2.OperationState result = com.google.logging.v2.OperationState.valueOf(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. + */ + public Builder setState(com.google.logging.v2.OperationState value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * State of an operation.
+     * 
+ * + * .google.logging.v2.OperationState state = 3; + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private boolean cancellationRequested_ ; + /** + *
+     * Identifies whether the user has requested cancellation of the operation.
+     * 
+ * + * bool cancellation_requested = 4; + * @return The cancellationRequested. + */ + @java.lang.Override + 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. + */ + public Builder setCancellationRequested(boolean value) { + + cancellationRequested_ = value; + onChanged(); + return this; + } + /** + *
+     * Identifies whether the user has requested cancellation of the operation.
+     * 
+ * + * bool cancellation_requested = 4; + * @return This builder for chaining. + */ + public Builder clearCancellationRequested() { + + cancellationRequested_ = false; + onChanged(); + return this; + } + + 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_; + /** + *
+     * CopyLogEntries RPC request.
+     * 
+ * + * .google.logging.v2.CopyLogEntriesRequest request = 5; + * @return Whether the request field is set. + */ + public boolean hasRequest() { + return requestBuilder_ != null || request_ != null; + } + /** + *
+     * 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_; + } else { + return requestBuilder_.getMessage(); + } + } + /** + *
+     * CopyLogEntries RPC request.
+     * 
+ * + * .google.logging.v2.CopyLogEntriesRequest request = 5; + */ + public Builder setRequest(com.google.logging.v2.CopyLogEntriesRequest value) { + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * CopyLogEntries RPC request.
+     * 
+ * + * .google.logging.v2.CopyLogEntriesRequest request = 5; + */ + public Builder setRequest( + com.google.logging.v2.CopyLogEntriesRequest.Builder builderForValue) { + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * CopyLogEntries RPC request.
+     * 
+ * + * .google.logging.v2.CopyLogEntriesRequest request = 5; + */ + public Builder mergeRequest(com.google.logging.v2.CopyLogEntriesRequest value) { + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + com.google.logging.v2.CopyLogEntriesRequest.newBuilder(request_).mergeFrom(value).buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * CopyLogEntries RPC request.
+     * 
+ * + * .google.logging.v2.CopyLogEntriesRequest request = 5; + */ + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + + return this; + } + /** + *
+     * CopyLogEntries RPC request.
+     * 
+ * + * .google.logging.v2.CopyLogEntriesRequest request = 5; + */ + public com.google.logging.v2.CopyLogEntriesRequest.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + *
+     * CopyLogEntries RPC request.
+     * 
+ * + * .google.logging.v2.CopyLogEntriesRequest request = 5; + */ + public com.google.logging.v2.CopyLogEntriesRequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null ? + com.google.logging.v2.CopyLogEntriesRequest.getDefaultInstance() : request_; + } + } + /** + *
+     * CopyLogEntries RPC request.
+     * 
+ * + * .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> + 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()); + request_ = null; + } + return requestBuilder_; + } + + private int progress_ ; + /** + *
+     * Estimated progress of the operation (0 - 100%).
+     * 
+ * + * int32 progress = 6; + * @return The progress. + */ + @java.lang.Override + 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. + */ + public Builder setProgress(int value) { + + progress_ = value; + onChanged(); + return this; + } + /** + *
+     * Estimated progress of the operation (0 - 100%).
+     * 
+ * + * int32 progress = 6; + * @return This builder for chaining. + */ + public Builder clearProgress() { + + progress_ = 0; + onChanged(); + return this; + } + + private java.lang.Object writerIdentity_ = ""; + /** + *
+     * The IAM identity of a service account that must be granted access to the
+     * destination.
+     * If the service account is not granted permission to the destination within
+     * an hour, the operation will be cancelled.
+     * For example: `"serviceAccount:foo@bar.com"`
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + writerIdentity_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * The IAM identity of a service account that must be granted access to the
+     * destination.
+     * If the service account is not granted permission to the destination within
+     * an hour, the operation will be cancelled.
+     * For example: `"serviceAccount:foo@bar.com"`
+     * 
+ * + * string writer_identity = 7; + * @return The bytes for writerIdentity. + */ + 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); + writerIdentity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * The IAM identity of a service account that must be granted access to the
+     * destination.
+     * If the service account is not granted permission to the destination within
+     * an hour, the operation will be cancelled.
+     * For example: `"serviceAccount:foo@bar.com"`
+     * 
+ * + * 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(); + } + + writerIdentity_ = value; + onChanged(); + return this; + } + /** + *
+     * The IAM identity of a service account that must be granted access to the
+     * destination.
+     * If the service account is not granted permission to the destination within
+     * an hour, the operation will be cancelled.
+     * For example: `"serviceAccount:foo@bar.com"`
+     * 
+ * + * string writer_identity = 7; + * @return This builder for chaining. + */ + public Builder clearWriterIdentity() { + + writerIdentity_ = getDefaultInstance().getWriterIdentity(); + onChanged(); + return this; + } + /** + *
+     * The IAM identity of a service account that must be granted access to the
+     * destination.
+     * If the service account is not granted permission to the destination within
+     * an hour, the operation will be cancelled.
+     * For example: `"serviceAccount:foo@bar.com"`
+     * 
+ * + * 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(); + } + checkByteStringIsUtf8(value); + + writerIdentity_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.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(); + } + + 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 { + return new CopyLogEntriesMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.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/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadataOrBuilder.java new file mode 100644 index 000000000..d1900b701 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadataOrBuilder.java @@ -0,0 +1,157 @@ +// 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 + // @@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.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + 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.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + 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.
+   * 
+ * + * .google.logging.v2.CopyLogEntriesRequest request = 5; + */ + 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.
+   * If the service account is not granted permission to the destination within
+   * an hour, the operation will be cancelled.
+   * For example: `"serviceAccount:foo@bar.com"`
+   * 
+ * + * 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.
+   * If the service account is not granted permission to the destination within
+   * an hour, the operation will be cancelled.
+   * For example: `"serviceAccount:foo@bar.com"`
+   * 
+ * + * string writer_identity = 7; + * @return The bytes for writerIdentity. + */ + 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/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequest.java new file mode 100644 index 000000000..fc2a34794 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequest.java @@ -0,0 +1,946 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.logging.v2.CopyLogEntriesRequest) + CopyLogEntriesRequestOrBuilder { +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_ = ""; + destination_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CopyLogEntriesRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CopyLogEntriesRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + destination_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + 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 + .ensureFieldAccessorsInitialized( + com.google.logging.v2.CopyLogEntriesRequest.class, com.google.logging.v2.CopyLogEntriesRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * Required. Log bucket from which to copy log entries.
+   * For example:
+   *   `"projects/my-project/locations/global/buckets/my-source-bucket"`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Required. Log bucket from which to copy log entries.
+   * For example:
+   *   `"projects/my-project/locations/global/buckets/my-source-bucket"`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for name. + */ + @java.lang.Override + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 3; + 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 + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + *
+   * 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() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESTINATION_FIELD_NUMBER = 4; + 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 + public java.lang.String getDestination() { + java.lang.Object ref = destination_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + 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() { + 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); + destination_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destination_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, destination_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destination_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, destination_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.logging.v2.CopyLogEntriesRequest)) { + return super.equals(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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + DESTINATION_FIELD_NUMBER; + hash = (53 * hash) + getDestination().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + 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) + 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) + 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); + } + public static com.google.logging.v2.CopyLogEntriesRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + 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); + } + + // Construct using com.google.logging.v2.CopyLogEntriesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + filter_ = ""; + + destination_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CopyLogEntriesRequest_descriptor; + } + + @java.lang.Override + public com.google.logging.v2.CopyLogEntriesRequest getDefaultInstanceForType() { + return com.google.logging.v2.CopyLogEntriesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.logging.v2.CopyLogEntriesRequest build() { + com.google.logging.v2.CopyLogEntriesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.logging.v2.CopyLogEntriesRequest buildPartial() { + com.google.logging.v2.CopyLogEntriesRequest result = new com.google.logging.v2.CopyLogEntriesRequest(this); + result.name_ = name_; + result.filter_ = filter_; + result.destination_ = destination_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.logging.v2.CopyLogEntriesRequest) { + return mergeFrom((com.google.logging.v2.CopyLogEntriesRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.logging.v2.CopyLogEntriesRequest other) { + if (other == com.google.logging.v2.CopyLogEntriesRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + if (!other.getDestination().isEmpty()) { + destination_ = other.destination_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.logging.v2.CopyLogEntriesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.logging.v2.CopyLogEntriesRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * Required. Log bucket from which to copy log entries.
+     * For example:
+     *   `"projects/my-project/locations/global/buckets/my-source-bucket"`
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. Log bucket from which to copy log entries.
+     * For example:
+     *   `"projects/my-project/locations/global/buckets/my-source-bucket"`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. Log bucket from which to copy log entries.
+     * For example:
+     *   `"projects/my-project/locations/global/buckets/my-source-bucket"`
+     * 
+ * + * 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(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. Log bucket from which to copy log entries.
+     * For example:
+     *   `"projects/my-project/locations/global/buckets/my-source-bucket"`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * Required. Log bucket from which to copy log entries.
+     * For example:
+     *   `"projects/my-project/locations/global/buckets/my-source-bucket"`
+     * 
+ * + * 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(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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(); + } + + filter_ = value; + 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() { + + filter_ = getDefaultInstance().getFilter(); + 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]; + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filter_ = value; + onChanged(); + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + destination_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = destination_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + destination_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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(); + } + + destination_ = value; + 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() { + + destination_ = getDefaultInstance().getDestination(); + onChanged(); + 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(); + } + checkByteStringIsUtf8(value); + + destination_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.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(); + } + + 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 { + return new CopyLogEntriesRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.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/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequestOrBuilder.java new file mode 100644 index 000000000..7e65051c3 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequestOrBuilder.java @@ -0,0 +1,75 @@ +// 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 + // @@protoc_insertion_point(interface_extends:google.logging.v2.CopyLogEntriesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Log bucket from which to copy log entries.
+   * For example:
+   *   `"projects/my-project/locations/global/buckets/my-source-bucket"`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Log bucket from which to copy log entries.
+   * For example:
+   *   `"projects/my-project/locations/global/buckets/my-source-bucket"`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for name. + */ + 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(); + + /** + *
+   * 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(); +} diff --git a/owl-bot-staging/v2/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 new file mode 100644 index 000000000..fb2ac6a5d --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponse.java @@ -0,0 +1,508 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.logging.v2.CopyLogEntriesResponse) + CopyLogEntriesResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use CopyLogEntriesResponse.newBuilder() to construct. + private CopyLogEntriesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CopyLogEntriesResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CopyLogEntriesResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CopyLogEntriesResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + logEntriesCopiedCount_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + 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 + .ensureFieldAccessorsInitialized( + 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_; + /** + *
+   * Number of log entries copied.
+   * 
+ * + * int64 log_entries_copied_count = 1; + * @return The logEntriesCopiedCount. + */ + @java.lang.Override + public long getLogEntriesCopiedCount() { + return logEntriesCopiedCount_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (logEntriesCopiedCount_ != 0L) { + output.writeInt64(1, logEntriesCopiedCount_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (logEntriesCopiedCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, logEntriesCopiedCount_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.logging.v2.CopyLogEntriesResponse)) { + return super.equals(obj); + } + com.google.logging.v2.CopyLogEntriesResponse other = (com.google.logging.v2.CopyLogEntriesResponse) obj; + + if (getLogEntriesCopiedCount() + != other.getLogEntriesCopiedCount()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LOG_ENTRIES_COPIED_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getLogEntriesCopiedCount()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + 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) + 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) + 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); + } + public static com.google.logging.v2.CopyLogEntriesResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + 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); + } + + // Construct using com.google.logging.v2.CopyLogEntriesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + logEntriesCopiedCount_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CopyLogEntriesResponse_descriptor; + } + + @java.lang.Override + public com.google.logging.v2.CopyLogEntriesResponse getDefaultInstanceForType() { + return com.google.logging.v2.CopyLogEntriesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.logging.v2.CopyLogEntriesResponse build() { + com.google.logging.v2.CopyLogEntriesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.logging.v2.CopyLogEntriesResponse buildPartial() { + com.google.logging.v2.CopyLogEntriesResponse result = new com.google.logging.v2.CopyLogEntriesResponse(this); + result.logEntriesCopiedCount_ = logEntriesCopiedCount_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.logging.v2.CopyLogEntriesResponse) { + return mergeFrom((com.google.logging.v2.CopyLogEntriesResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.logging.v2.CopyLogEntriesResponse other) { + if (other == com.google.logging.v2.CopyLogEntriesResponse.getDefaultInstance()) return this; + if (other.getLogEntriesCopiedCount() != 0L) { + setLogEntriesCopiedCount(other.getLogEntriesCopiedCount()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.logging.v2.CopyLogEntriesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.logging.v2.CopyLogEntriesResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long logEntriesCopiedCount_ ; + /** + *
+     * Number of log entries copied.
+     * 
+ * + * int64 log_entries_copied_count = 1; + * @return The logEntriesCopiedCount. + */ + @java.lang.Override + 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. + */ + public Builder setLogEntriesCopiedCount(long value) { + + logEntriesCopiedCount_ = value; + onChanged(); + return this; + } + /** + *
+     * Number of log entries copied.
+     * 
+ * + * int64 log_entries_copied_count = 1; + * @return This builder for chaining. + */ + public Builder clearLogEntriesCopiedCount() { + + logEntriesCopiedCount_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.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(); + } + + 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 { + return new CopyLogEntriesResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.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 66% 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 bcd8df515..80d873616 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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,15 +26,16 @@ private CreateBucketRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateBucketRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateBucketRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,84 +54,74 @@ private CreateBucketRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - bucketId_ = s; - break; + bucketId_ = s; + break; + } + case 26: { + com.google.logging.v2.LogBucket.Builder subBuilder = null; + if (bucket_ != null) { + subBuilder = bucket_.toBuilder(); } - case 26: - { - com.google.logging.v2.LogBucket.Builder subBuilder = null; - if (bucket_ != null) { - subBuilder = bucket_.toBuilder(); - } - bucket_ = - input.readMessage(com.google.logging.v2.LogBucket.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(bucket_); - bucket_ = subBuilder.buildPartial(); - } - - break; + bucket_ = input.readMessage(com.google.logging.v2.LogBucket.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(bucket_); + bucket_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; private volatile java.lang.Object parent_; /** - * - * *
-   * Required. The resource in which to create the bucket:
+   * Required. The resource in which to create the log bucket:
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
-   * Example: `"projects/my-logging-project/locations/global"`
+   * For example:
+   *   `"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 @@ -157,33 +130,32 @@ 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 bucket:
+   * Required. The resource in which to create the log bucket:
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
-   * Example: `"projects/my-logging-project/locations/global"`
+   * For example:
+   *   `"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 { @@ -194,16 +166,13 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int BUCKET_ID_FIELD_NUMBER = 2; 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,
-   * underscores, hyphens, and periods.
+   * Required. A client-assigned identifier such as `"my-bucket"`. Identifiers are limited
+   * to 100 characters and can include only letters, digits, underscores,
+   * hyphens, and periods.
    * 
* * string bucket_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bucketId. */ @java.lang.Override @@ -212,31 +181,31 @@ 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,
-   * underscores, hyphens, and periods.
+   * Required. A client-assigned identifier such as `"my-bucket"`. Identifiers are limited
+   * to 100 characters and can include only letters, digits, underscores,
+   * hyphens, and periods.
    * 
* * 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 { @@ -247,8 +216,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 bucket is
@@ -256,7 +223,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 @@ -264,8 +230,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 bucket is
@@ -273,7 +237,6 @@ public boolean hasBucket() {
    * 
* * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bucket. */ @java.lang.Override @@ -281,8 +244,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 bucket is
@@ -297,7 +258,6 @@ public com.google.logging.v2.LogBucketOrBuilder getBucketOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -309,7 +269,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_);
     }
@@ -335,7 +296,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -345,19 +307,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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -383,127 +347,118 @@ 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() @@ -511,15 +466,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -537,9 +493,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_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 @@ -558,8 +514,7 @@ 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); + com.google.logging.v2.CreateBucketRequest result = new com.google.logging.v2.CreateBucketRequest(this); result.parent_ = parent_; result.bucketId_ = bucketId_; if (bucketBuilder_ == null) { @@ -575,39 +530,38 @@ public com.google.logging.v2.CreateBucketRequest 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.CreateBucketRequest) { - return mergeFrom((com.google.logging.v2.CreateBucketRequest) other); + return mergeFrom((com.google.logging.v2.CreateBucketRequest)other); } else { super.mergeFrom(other); return this; @@ -658,24 +612,21 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
-     * Required. The resource in which to create the bucket:
+     * Required. The resource in which to create the log bucket:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
-     * Example: `"projects/my-logging-project/locations/global"`
+     * For example:
+     *   `"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; @@ -684,25 +635,23 @@ public java.lang.String getParent() { } } /** - * - * *
-     * Required. The resource in which to create the bucket:
+     * Required. The resource in which to create the log bucket:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
-     * Example: `"projects/my-logging-project/locations/global"`
+     * For example:
+     *   `"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 { @@ -710,73 +659,63 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
-     * Required. The resource in which to create the bucket:
+     * Required. The resource in which to create the log bucket:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
-     * Example: `"projects/my-logging-project/locations/global"`
+     * For example:
+     *   `"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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
-     * Required. The resource in which to create the bucket:
+     * Required. The resource in which to create the log bucket:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
-     * Example: `"projects/my-logging-project/locations/global"`
+     * For example:
+     *   `"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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
-     * Required. The resource in which to create the bucket:
+     * Required. The resource in which to create the log bucket:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
-     * Example: `"projects/my-logging-project/locations/global"`
+     * For example:
+     *   `"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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -784,22 +723,20 @@ 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,
-     * underscores, hyphens, and periods.
+     * Required. A client-assigned identifier such as `"my-bucket"`. Identifiers are limited
+     * to 100 characters and can include only letters, digits, underscores,
+     * hyphens, and periods.
      * 
* * 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; @@ -808,23 +745,22 @@ 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,
-     * underscores, hyphens, and periods.
+     * Required. A client-assigned identifier such as `"my-bucket"`. Identifiers are limited
+     * to 100 characters and can include only letters, digits, underscores,
+     * hyphens, and periods.
      * 
* * 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 { @@ -832,67 +768,60 @@ 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,
-     * underscores, hyphens, and periods.
+     * Required. A client-assigned identifier such as `"my-bucket"`. Identifiers are limited
+     * to 100 characters and can include only letters, digits, underscores,
+     * hyphens, and periods.
      * 
* * 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) { + public Builder setBucketId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + bucketId_ = value; onChanged(); return this; } /** - * - * *
-     * Required. A client-assigned identifier such as `"my-bucket"`. Identifiers are
-     * limited to 100 characters and can include only letters, digits,
-     * underscores, hyphens, and periods.
+     * Required. A client-assigned identifier such as `"my-bucket"`. Identifiers are limited
+     * to 100 characters and can include only letters, digits, underscores,
+     * hyphens, and periods.
      * 
* * string bucket_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearBucketId() { - + bucketId_ = getDefaultInstance().getBucketId(); onChanged(); return this; } /** - * - * *
-     * Required. A client-assigned identifier such as `"my-bucket"`. Identifiers are
-     * limited to 100 characters and can include only letters, digits,
-     * underscores, hyphens, and periods.
+     * Required. A client-assigned identifier such as `"my-bucket"`. Identifiers are limited
+     * to 100 characters and can include only letters, digits, underscores,
+     * hyphens, and periods.
      * 
* * 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) { + public Builder setBucketIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bucketId_ = value; onChanged(); return this; @@ -900,39 +829,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 bucketBuilder_ != null || 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 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() { @@ -943,16 +861,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) { @@ -968,18 +883,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(); onChanged(); @@ -990,22 +903,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 (bucket_ != null) { bucket_ = - com.google.logging.v2.LogBucket.newBuilder(bucket_).mergeFrom(value).buildPartial(); + com.google.logging.v2.LogBucket.newBuilder(bucket_).mergeFrom(value).buildPartial(); } else { bucket_ = value; } @@ -1017,16 +927,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() { if (bucketBuilder_ == null) { @@ -1040,72 +947,61 @@ 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() { - + onChanged(); 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); } @@ -1115,12 +1011,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(); } @@ -1129,16 +1025,16 @@ 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 { - return new CreateBucketRequest(input, extensionRegistry); - } - }; + 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 { + return new CreateBucketRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1153,4 +1049,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 57% 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 f57d83413..cc9ee5501 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,93 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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 bucket:
+   * Required. The resource in which to create the log bucket:
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
-   * Example: `"projects/my-logging-project/locations/global"`
+   * For example:
+   *   `"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 bucket:
+   * Required. The resource in which to create the log bucket:
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
-   * Example: `"projects/my-logging-project/locations/global"`
+   * For example:
+   *   `"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,
-   * underscores, hyphens, and periods.
+   * Required. A client-assigned identifier such as `"my-bucket"`. Identifiers are limited
+   * to 100 characters and can include only letters, digits, underscores,
+   * hyphens, and periods.
    * 
* * 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,
-   * underscores, hyphens, and periods.
+   * Required. A client-assigned identifier such as `"my-bucket"`. Identifiers are limited
+   * to 100 characters and can include only letters, digits, underscores,
+   * hyphens, and periods.
    * 
* * 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 bucket is
@@ -95,13 +65,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 bucket is
@@ -109,13 +76,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 bucket is
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 bd56bbb13..61e2b5655 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,57 +1,40 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateExclusionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,80 +53,72 @@ private CreateExclusionRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.logging.v2.LogExclusion.Builder subBuilder = null; + if (exclusion_ != null) { + subBuilder = exclusion_.toBuilder(); } - case 18: - { - com.google.logging.v2.LogExclusion.Builder subBuilder = null; - if (exclusion_ != null) { - subBuilder = exclusion_.toBuilder(); - } - exclusion_ = - input.readMessage(com.google.logging.v2.LogExclusion.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(exclusion_); - exclusion_ = subBuilder.buildPartial(); - } - - break; + exclusion_ = input.readMessage(com.google.logging.v2.LogExclusion.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(exclusion_); + exclusion_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource in which to create the exclusion:
    *     "projects/[PROJECT_ID]"
    *     "organizations/[ORGANIZATION_ID]"
    *     "billingAccounts/[BILLING_ACCOUNT_ID]"
    *     "folders/[FOLDER_ID]"
-   * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
+   * For examples:
+   *   `"projects/my-logging-project"`
+   *   `"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 @@ -152,36 +127,36 @@ 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:
    *     "projects/[PROJECT_ID]"
    *     "organizations/[ORGANIZATION_ID]"
    *     "billingAccounts/[BILLING_ACCOUNT_ID]"
    *     "folders/[FOLDER_ID]"
-   * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
+   * For examples:
+   *   `"projects/my-logging-project"`
+   *   `"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 { @@ -192,16 +167,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 @@ -209,34 +180,25 @@ 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() { @@ -244,7 +206,6 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -256,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(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -276,7 +238,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -286,18 +249,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -321,127 +285,118 @@ 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() @@ -449,15 +404,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -473,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_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 @@ -494,8 +450,7 @@ 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); + com.google.logging.v2.CreateExclusionRequest result = new com.google.logging.v2.CreateExclusionRequest(this); result.parent_ = parent_; if (exclusionBuilder_ == null) { result.exclusion_ = exclusion_; @@ -510,39 +465,38 @@ public com.google.logging.v2.CreateExclusionRequest 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.CreateExclusionRequest) { - return mergeFrom((com.google.logging.v2.CreateExclusionRequest) other); + return mergeFrom((com.google.logging.v2.CreateExclusionRequest)other); } else { super.mergeFrom(other); return this; @@ -589,27 +543,25 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource in which to create the exclusion:
      *     "projects/[PROJECT_ID]"
      *     "organizations/[ORGANIZATION_ID]"
      *     "billingAccounts/[BILLING_ACCOUNT_ID]"
      *     "folders/[FOLDER_ID]"
-     * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
+     * For examples:
+     *   `"projects/my-logging-project"`
+     *   `"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; @@ -618,28 +570,27 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource in which to create the exclusion:
      *     "projects/[PROJECT_ID]"
      *     "organizations/[ORGANIZATION_ID]"
      *     "billingAccounts/[BILLING_ACCOUNT_ID]"
      *     "folders/[FOLDER_ID]"
-     * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
+     * For examples:
+     *   `"projects/my-logging-project"`
+     *   `"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 { @@ -647,82 +598,75 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource in which to create the exclusion:
      *     "projects/[PROJECT_ID]"
      *     "organizations/[ORGANIZATION_ID]"
      *     "billingAccounts/[BILLING_ACCOUNT_ID]"
      *     "folders/[FOLDER_ID]"
-     * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
+     * For examples:
+     *   `"projects/my-logging-project"`
+     *   `"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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource in which to create the exclusion:
      *     "projects/[PROJECT_ID]"
      *     "organizations/[ORGANIZATION_ID]"
      *     "billingAccounts/[BILLING_ACCOUNT_ID]"
      *     "folders/[FOLDER_ID]"
-     * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
+     * For examples:
+     *   `"projects/my-logging-project"`
+     *   `"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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource in which to create the exclusion:
      *     "projects/[PROJECT_ID]"
      *     "organizations/[ORGANIZATION_ID]"
      *     "billingAccounts/[BILLING_ACCOUNT_ID]"
      *     "folders/[FOLDER_ID]"
-     * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
+     * For examples:
+     *   `"projects/my-logging-project"`
+     *   `"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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -730,61 +674,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 exclusionBuilder_ != null || 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. */ 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) { @@ -800,18 +725,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(); onChanged(); @@ -822,24 +744,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 (exclusion_ != null) { exclusion_ = - com.google.logging.v2.LogExclusion.newBuilder(exclusion_) - .mergeFrom(value) - .buildPartial(); + com.google.logging.v2.LogExclusion.newBuilder(exclusion_).mergeFrom(value).buildPartial(); } else { exclusion_ = value; } @@ -851,16 +767,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() { if (exclusionBuilder_ == null) { @@ -874,74 +786,58 @@ 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() { - + onChanged(); 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); } @@ -951,12 +847,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(); } @@ -965,16 +861,16 @@ 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 { - return new CreateExclusionRequest(input, extensionRegistry); - } - }; + 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 { + return new CreateExclusionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -989,4 +885,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 57% 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 c9f581052..ef8d90781 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,105 +1,73 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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:
    *     "projects/[PROJECT_ID]"
    *     "organizations/[ORGANIZATION_ID]"
    *     "billingAccounts/[BILLING_ACCOUNT_ID]"
    *     "folders/[FOLDER_ID]"
-   * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
+   * For examples:
+   *   `"projects/my-logging-project"`
+   *   `"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:
    *     "projects/[PROJECT_ID]"
    *     "organizations/[ORGANIZATION_ID]"
    *     "billingAccounts/[BILLING_ACCOUNT_ID]"
    *     "folders/[FOLDER_ID]"
-   * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
+   * For examples:
+   *   `"projects/my-logging-project"`
+   *   `"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/CreateLogMetricRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequest.java similarity index 68% 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 a24f55c23..b4a64ebbe 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,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateLogMetricRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,77 +53,67 @@ private CreateLogMetricRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.logging.v2.LogMetric.Builder subBuilder = null; + if (metric_ != null) { + subBuilder = metric_.toBuilder(); } - case 18: - { - com.google.logging.v2.LogMetric.Builder subBuilder = null; - if (metric_ != null) { - subBuilder = metric_.toBuilder(); - } - metric_ = - input.readMessage(com.google.logging.v2.LogMetric.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metric_); - metric_ = subBuilder.buildPartial(); - } - - break; + metric_ = input.readMessage(com.google.logging.v2.LogMetric.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metric_); + metric_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; private volatile java.lang.Object 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.
    * 
* - * - * string parent = 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 @@ -149,33 +122,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 resource name of the project in which to create the metric:
    *     "projects/[PROJECT_ID]"
    * 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 { @@ -186,15 +157,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 @@ -202,15 +170,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 @@ -218,8 +183,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.
@@ -233,7 +196,6 @@ public com.google.logging.v2.LogMetricOrBuilder getMetricOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -245,7 +207,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 +228,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -275,18 +239,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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -310,127 +275,118 @@ 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() @@ -438,15 +394,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -462,9 +419,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 @@ -483,8 +440,7 @@ 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); + com.google.logging.v2.CreateLogMetricRequest result = new com.google.logging.v2.CreateLogMetricRequest(this); result.parent_ = parent_; if (metricBuilder_ == null) { result.metric_ = metric_; @@ -499,39 +455,38 @@ public com.google.logging.v2.CreateLogMetricRequest 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.CreateLogMetricRequest) { - return mergeFrom((com.google.logging.v2.CreateLogMetricRequest) other); + return mergeFrom((com.google.logging.v2.CreateLogMetricRequest)other); } else { super.mergeFrom(other); return this; @@ -578,24 +533,20 @@ public Builder mergeFrom( private java.lang.Object 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.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -604,25 +555,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * 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.
      * 
* - * - * string parent = 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,73 +578,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * 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.
      * 
* - * - * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * 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.
      * 
* - * - * string 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * 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.
      * 
* - * - * 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -704,37 +639,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 metricBuilder_ != null || 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]; - * - * + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The metric. */ public com.google.logging.v2.LogMetric getMetric() { @@ -745,15 +669,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) { @@ -769,17 +690,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(); onChanged(); @@ -790,21 +709,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 (metric_ != null) { metric_ = - com.google.logging.v2.LogMetric.newBuilder(metric_).mergeFrom(value).buildPartial(); + com.google.logging.v2.LogMetric.newBuilder(metric_).mergeFrom(value).buildPartial(); } else { metric_ = value; } @@ -816,15 +732,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() { if (metricBuilder_ == null) { @@ -838,69 +751,58 @@ 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() { - + onChanged(); 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); } @@ -910,12 +812,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(); } @@ -924,16 +826,16 @@ 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 { - return new CreateLogMetricRequest(input, extensionRegistry); - } - }; + 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 { + return new CreateLogMetricRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -948,4 +850,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 f11b3761a..1fd0680a1 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,90 +1,57 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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:
    *     "projects/[PROJECT_ID]"
    * 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:
    *     "projects/[PROJECT_ID]"
    * 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 70%
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 ed85736b9..3e05c9f0e 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,57 +1,40 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateSinkRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,84 +53,77 @@ private CreateSinkRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - com.google.logging.v2.LogSink.Builder subBuilder = null; - if (sink_ != null) { - subBuilder = sink_.toBuilder(); - } - sink_ = input.readMessage(com.google.logging.v2.LogSink.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sink_); - sink_ = subBuilder.buildPartial(); - } - - break; + parent_ = s; + break; + } + case 18: { + com.google.logging.v2.LogSink.Builder subBuilder = null; + if (sink_ != null) { + subBuilder = sink_.toBuilder(); } - case 24: - { - uniqueWriterIdentity_ = input.readBool(); - break; + sink_ = input.readMessage(com.google.logging.v2.LogSink.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sink_); + sink_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 24: { + + uniqueWriterIdentity_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The resource in which to create the sink:
    *     "projects/[PROJECT_ID]"
    *     "organizations/[ORGANIZATION_ID]"
    *     "billingAccounts/[BILLING_ACCOUNT_ID]"
    *     "folders/[FOLDER_ID]"
-   * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
+   * For examples:
+   *   `"projects/my-project"`
+   *   `"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 @@ -156,36 +132,36 @@ 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:
    *     "projects/[PROJECT_ID]"
    *     "organizations/[ORGANIZATION_ID]"
    *     "billingAccounts/[BILLING_ACCOUNT_ID]"
    *     "folders/[FOLDER_ID]"
-   * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
+   * For examples:
+   *   `"projects/my-project"`
+   *   `"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 { @@ -196,15 +172,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 @@ -212,15 +185,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 @@ -228,8 +198,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.
@@ -245,15 +213,13 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() {
   public static final int UNIQUE_WRITER_IDENTITY_FIELD_NUMBER = 3;
   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
    * sink's parent is a project, then the value returned as `writer_identity` is
-   * the same group or service account used by Logging before the addition of
-   * writer identities to this API. The sink's destination must be in the same
-   * project as the sink itself.
+   * the same group or service account used by Cloud Logging before the addition
+   * of writer identities to this API. The sink's destination must be in the
+   * same project as the sink itself.
    * If this field is set to true, or if the sink is owned by a non-project
    * resource such as an organization, then the value of `writer_identity` will
    * be a unique service account used only for exports from the new sink. For
@@ -261,7 +227,6 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() {
    * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The uniqueWriterIdentity. */ @java.lang.Override @@ -270,7 +235,6 @@ public boolean getUniqueWriterIdentity() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -282,7 +246,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_); } @@ -305,10 +270,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -318,19 +285,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -349,133 +319,125 @@ 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) + unknownFields.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() @@ -483,15 +445,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -509,9 +472,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 @@ -530,8 +493,7 @@ 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); + com.google.logging.v2.CreateSinkRequest result = new com.google.logging.v2.CreateSinkRequest(this); result.parent_ = parent_; if (sinkBuilder_ == null) { result.sink_ = sink_; @@ -547,39 +509,38 @@ public com.google.logging.v2.CreateSinkRequest 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.CreateSinkRequest) { - return mergeFrom((com.google.logging.v2.CreateSinkRequest) other); + return mergeFrom((com.google.logging.v2.CreateSinkRequest)other); } else { super.mergeFrom(other); return this; @@ -629,27 +590,25 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The resource in which to create the sink:
      *     "projects/[PROJECT_ID]"
      *     "organizations/[ORGANIZATION_ID]"
      *     "billingAccounts/[BILLING_ACCOUNT_ID]"
      *     "folders/[FOLDER_ID]"
-     * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
+     * For examples:
+     *   `"projects/my-project"`
+     *   `"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; @@ -658,28 +617,27 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource in which to create the sink:
      *     "projects/[PROJECT_ID]"
      *     "organizations/[ORGANIZATION_ID]"
      *     "billingAccounts/[BILLING_ACCOUNT_ID]"
      *     "folders/[FOLDER_ID]"
-     * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
+     * For examples:
+     *   `"projects/my-project"`
+     *   `"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 { @@ -687,82 +645,75 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource in which to create the sink:
      *     "projects/[PROJECT_ID]"
      *     "organizations/[ORGANIZATION_ID]"
      *     "billingAccounts/[BILLING_ACCOUNT_ID]"
      *     "folders/[FOLDER_ID]"
-     * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
+     * For examples:
+     *   `"projects/my-project"`
+     *   `"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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource in which to create the sink:
      *     "projects/[PROJECT_ID]"
      *     "organizations/[ORGANIZATION_ID]"
      *     "billingAccounts/[BILLING_ACCOUNT_ID]"
      *     "folders/[FOLDER_ID]"
-     * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
+     * For examples:
+     *   `"projects/my-project"`
+     *   `"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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The resource in which to create the sink:
      *     "projects/[PROJECT_ID]"
      *     "organizations/[ORGANIZATION_ID]"
      *     "billingAccounts/[BILLING_ACCOUNT_ID]"
      *     "folders/[FOLDER_ID]"
-     * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
+     * For examples:
+     *   `"projects/my-project"`
+     *   `"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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -770,35 +721,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 sinkBuilder_ != null || 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. */ public com.google.logging.v2.LogSink getSink() { @@ -809,8 +751,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.
@@ -832,8 +772,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.
@@ -841,7 +779,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();
         onChanged();
@@ -852,8 +791,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.
@@ -864,7 +801,8 @@ public Builder setSink(com.google.logging.v2.LogSink.Builder builderForValue) {
     public Builder mergeSink(com.google.logging.v2.LogSink value) {
       if (sinkBuilder_ == null) {
         if (sink_ != null) {
-          sink_ = com.google.logging.v2.LogSink.newBuilder(sink_).mergeFrom(value).buildPartial();
+          sink_ =
+            com.google.logging.v2.LogSink.newBuilder(sink_).mergeFrom(value).buildPartial();
         } else {
           sink_ = value;
         }
@@ -876,8 +814,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.
@@ -897,8 +833,6 @@ public Builder clearSink() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The new sink, whose `name` parameter is a sink identifier that
      * is not already in use.
@@ -907,13 +841,11 @@ public Builder clearSink() {
      * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED];
      */
     public com.google.logging.v2.LogSink.Builder getSinkBuilder() {
-
+      
       onChanged();
       return getSinkFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Required. The new sink, whose `name` parameter is a sink identifier that
      * is not already in use.
@@ -925,12 +857,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.
@@ -939,33 +870,28 @@ 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
      * sink's parent is a project, then the value returned as `writer_identity` is
-     * the same group or service account used by Logging before the addition of
-     * writer identities to this API. The sink's destination must be in the same
-     * project as the sink itself.
+     * the same group or service account used by Cloud Logging before the addition
+     * of writer identities to this API. The sink's destination must be in the
+     * same project as the sink itself.
      * If this field is set to true, or if the sink is owned by a non-project
      * resource such as an organization, then the value of `writer_identity` will
      * be a unique service account used only for exports from the new sink. For
@@ -973,7 +899,6 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() {
      * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The uniqueWriterIdentity. */ @java.lang.Override @@ -981,15 +906,13 @@ 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
      * sink's parent is a project, then the value returned as `writer_identity` is
-     * the same group or service account used by Logging before the addition of
-     * writer identities to this API. The sink's destination must be in the same
-     * project as the sink itself.
+     * the same group or service account used by Cloud Logging before the addition
+     * of writer identities to this API. The sink's destination must be in the
+     * same project as the sink itself.
      * If this field is set to true, or if the sink is owned by a non-project
      * resource such as an organization, then the value of `writer_identity` will
      * be a unique service account used only for exports from the new sink. For
@@ -997,26 +920,23 @@ public boolean getUniqueWriterIdentity() {
      * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The uniqueWriterIdentity to set. * @return This builder for chaining. */ public Builder setUniqueWriterIdentity(boolean value) { - + uniqueWriterIdentity_ = value; onChanged(); 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
      * sink's parent is a project, then the value returned as `writer_identity` is
-     * the same group or service account used by Logging before the addition of
-     * writer identities to this API. The sink's destination must be in the same
-     * project as the sink itself.
+     * the same group or service account used by Cloud Logging before the addition
+     * of writer identities to this API. The sink's destination must be in the
+     * same project as the sink itself.
      * If this field is set to true, or if the sink is owned by a non-project
      * resource such as an organization, then the value of `writer_identity` will
      * be a unique service account used only for exports from the new sink. For
@@ -1024,18 +944,17 @@ public Builder setUniqueWriterIdentity(boolean value) {
      * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearUniqueWriterIdentity() { - + uniqueWriterIdentity_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1045,12 +964,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(); } @@ -1059,16 +978,16 @@ 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 { - return new CreateSinkRequest(input, extensionRegistry); - } - }; + 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 { + return new CreateSinkRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1083,4 +1002,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 64% 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 360545587..8ee8ce033 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,96 +1,67 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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:
    *     "projects/[PROJECT_ID]"
    *     "organizations/[ORGANIZATION_ID]"
    *     "billingAccounts/[BILLING_ACCOUNT_ID]"
    *     "folders/[FOLDER_ID]"
-   * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
+   * For examples:
+   *   `"projects/my-project"`
+   *   `"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:
    *     "projects/[PROJECT_ID]"
    *     "organizations/[ORGANIZATION_ID]"
    *     "billingAccounts/[BILLING_ACCOUNT_ID]"
    *     "folders/[FOLDER_ID]"
-   * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
+   * For examples:
+   *   `"projects/my-project"`
+   *   `"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.
@@ -101,15 +72,13 @@ 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
    * sink's parent is a project, then the value returned as `writer_identity` is
-   * the same group or service account used by Logging before the addition of
-   * writer identities to this API. The sink's destination must be in the same
-   * project as the sink itself.
+   * the same group or service account used by Cloud Logging before the addition
+   * of writer identities to this API. The sink's destination must be in the
+   * same project as the sink itself.
    * If this field is set to true, or if the sink is owned by a non-project
    * resource such as an organization, then the value of `writer_identity` will
    * be a unique service account used only for exports from the new sink. For
@@ -117,7 +86,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 69% 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 d1c315098..2b794e5fd 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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,15 +26,16 @@ private CreateViewRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateViewRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateViewRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,82 +54,74 @@ private CreateViewRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - viewId_ = s; - break; + viewId_ = s; + break; + } + case 26: { + com.google.logging.v2.LogView.Builder subBuilder = null; + if (view_ != null) { + subBuilder = view_.toBuilder(); } - case 26: - { - com.google.logging.v2.LogView.Builder subBuilder = null; - if (view_ != null) { - subBuilder = view_.toBuilder(); - } - view_ = input.readMessage(com.google.logging.v2.LogView.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(view_); - view_ = subBuilder.buildPartial(); - } - - break; + view_ = input.readMessage(com.google.logging.v2.LogView.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(view_); + view_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The bucket in which to create the view
-   *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
-   * Example:
-   * `"projects/my-logging-project/locations/my-location/buckets/my-bucket"`
+   *     `"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"`
+   * For example:
+   *   `"projects/my-project/locations/global/buckets/my-bucket"`
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ @java.lang.Override @@ -155,32 +130,32 @@ 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
-   *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
-   * Example:
-   * `"projects/my-logging-project/locations/my-location/buckets/my-bucket"`
+   *     `"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"`
+   * For example:
+   *   `"projects/my-project/locations/global/buckets/my-bucket"`
    * 
* * 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 { @@ -191,14 +166,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int VIEW_ID_FIELD_NUMBER = 2; private volatile java.lang.Object viewId_; /** - * - * *
    * Required. The id to use for this view.
    * 
* * string view_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The viewId. */ @java.lang.Override @@ -207,29 +179,29 @@ 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. The id to use for this view.
    * 
* * 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 { @@ -240,14 +212,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 @@ -255,14 +224,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 @@ -270,8 +236,6 @@ public com.google.logging.v2.LogView getView() { return view_ == null ? com.google.logging.v2.LogView.getDefaultInstance() : view_; } /** - * - * *
    * Required. The new view.
    * 
@@ -284,7 +248,6 @@ public com.google.logging.v2.LogViewOrBuilder getViewOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -296,7 +259,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -322,7 +286,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -332,18 +297,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -369,127 +337,118 @@ 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() @@ -497,15 +456,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -523,9 +483,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 @@ -544,8 +504,7 @@ 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); + com.google.logging.v2.CreateViewRequest result = new com.google.logging.v2.CreateViewRequest(this); result.parent_ = parent_; result.viewId_ = viewId_; if (viewBuilder_ == null) { @@ -561,39 +520,38 @@ public com.google.logging.v2.CreateViewRequest 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.CreateViewRequest) { - return mergeFrom((com.google.logging.v2.CreateViewRequest) other); + return mergeFrom((com.google.logging.v2.CreateViewRequest)other); } else { super.mergeFrom(other); return this; @@ -644,23 +602,21 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The bucket in which to create the view
-     *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
-     * Example:
-     * `"projects/my-logging-project/locations/my-location/buckets/my-bucket"`
+     *     `"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"`
+     * For example:
+     *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* * 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; @@ -669,24 +625,23 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The bucket in which to create the view
-     *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
-     * Example:
-     * `"projects/my-logging-project/locations/my-location/buckets/my-bucket"`
+     *     `"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"`
+     * For example:
+     *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* * 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 { @@ -694,70 +649,63 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The bucket in which to create the view
-     *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
-     * Example:
-     * `"projects/my-logging-project/locations/my-location/buckets/my-bucket"`
+     *     `"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"`
+     * For example:
+     *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The bucket in which to create the view
-     *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
-     * Example:
-     * `"projects/my-logging-project/locations/my-location/buckets/my-bucket"`
+     *     `"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"`
+     * For example:
+     *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The bucket in which to create the view
-     *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
-     * Example:
-     * `"projects/my-logging-project/locations/my-location/buckets/my-bucket"`
+     *     `"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"`
+     * For example:
+     *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* * 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -765,20 +713,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object viewId_ = ""; /** - * - * *
      * Required. The id to use for this view.
      * 
* * 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; @@ -787,21 +733,20 @@ public java.lang.String getViewId() { } } /** - * - * *
      * Required. The id to use for this view.
      * 
* * 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 { @@ -809,61 +754,54 @@ public com.google.protobuf.ByteString getViewIdBytes() { } } /** - * - * *
      * Required. The id to use for this view.
      * 
* * 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) { + public Builder setViewId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + viewId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The id to use for this view.
      * 
* * string view_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearViewId() { - + viewId_ = getDefaultInstance().getViewId(); onChanged(); return this; } /** - * - * *
      * Required. The id to use for this view.
      * 
* * 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) { + public Builder setViewIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + viewId_ = value; onChanged(); return this; @@ -871,33 +809,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 viewBuilder_ != null || view_ != null; } /** - * - * *
      * 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() { @@ -908,8 +837,6 @@ public com.google.logging.v2.LogView getView() { } } /** - * - * *
      * Required. The new view.
      * 
@@ -930,15 +857,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(); onChanged(); @@ -949,8 +875,6 @@ public Builder setView(com.google.logging.v2.LogView.Builder builderForValue) { return this; } /** - * - * *
      * Required. The new view.
      * 
@@ -960,7 +884,8 @@ public Builder setView(com.google.logging.v2.LogView.Builder builderForValue) { public Builder mergeView(com.google.logging.v2.LogView value) { if (viewBuilder_ == null) { if (view_ != null) { - view_ = com.google.logging.v2.LogView.newBuilder(view_).mergeFrom(value).buildPartial(); + view_ = + com.google.logging.v2.LogView.newBuilder(view_).mergeFrom(value).buildPartial(); } else { view_ = value; } @@ -972,8 +897,6 @@ public Builder mergeView(com.google.logging.v2.LogView value) { return this; } /** - * - * *
      * Required. The new view.
      * 
@@ -992,8 +915,6 @@ public Builder clearView() { return this; } /** - * - * *
      * Required. The new view.
      * 
@@ -1001,13 +922,11 @@ public Builder clearView() { * .google.logging.v2.LogView view = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.logging.v2.LogView.Builder getViewBuilder() { - + onChanged(); return getViewFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The new view.
      * 
@@ -1018,12 +937,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.
      * 
@@ -1031,24 +949,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); } @@ -1058,12 +973,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(); } @@ -1072,16 +987,16 @@ 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 { - return new CreateViewRequest(input, extensionRegistry); - } - }; + 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 { + return new CreateViewRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1096,4 +1011,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 60% 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 3258e6659..8cb5b37cb 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,111 +1,77 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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
-   *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
-   * Example:
-   * `"projects/my-logging-project/locations/my-location/buckets/my-bucket"`
+   *     `"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"`
+   * For example:
+   *   `"projects/my-project/locations/global/buckets/my-bucket"`
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The bucket in which to create the view
-   *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
-   * Example:
-   * `"projects/my-logging-project/locations/my-location/buckets/my-bucket"`
+   *     `"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"`
+   * For example:
+   *   `"projects/my-project/locations/global/buckets/my-bucket"`
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The id to use for this view.
    * 
* * string view_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The viewId. */ java.lang.String getViewId(); /** - * - * *
    * Required. The id to use for this view.
    * 
* * 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 03b5fd903..4fcfb7058 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,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteBucketRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,66 +53,58 @@ private DeleteBucketRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; private volatile java.lang.Object name_; /** - * - * *
    * Required. The full resource name of the bucket to delete.
    *     "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]"
-   * Example:
-   * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`.
+   * For example:
+   *   `"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 @@ -138,37 +113,35 @@ 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.
    *     "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]"
-   * Example:
-   * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`.
+   * For example:
+   *   `"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 { @@ -177,7 +150,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -189,7 +161,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_); } @@ -213,15 +186,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -240,127 +213,118 @@ 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() @@ -368,15 +332,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -386,9 +351,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 @@ -407,8 +372,7 @@ 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); + com.google.logging.v2.DeleteBucketRequest result = new com.google.logging.v2.DeleteBucketRequest(this); result.name_ = name_; onBuilt(); return result; @@ -418,39 +382,38 @@ public com.google.logging.v2.DeleteBucketRequest 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.DeleteBucketRequest) { - return mergeFrom((com.google.logging.v2.DeleteBucketRequest) other); + return mergeFrom((com.google.logging.v2.DeleteBucketRequest)other); } else { super.mergeFrom(other); return this; @@ -494,28 +457,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The full resource name of the bucket to delete.
      *     "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]"
-     * Example:
-     * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`.
+     * For example:
+     *   `"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; @@ -524,29 +483,26 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The full resource name of the bucket to delete.
      *     "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]"
-     * Example:
-     * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`.
+     * For example:
+     *   `"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 { @@ -554,92 +510,79 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The full resource name of the bucket to delete.
      *     "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]"
-     * Example:
-     * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`.
+     * For example:
+     *   `"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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The full resource name of the bucket to delete.
      *     "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]"
-     * Example:
-     * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`.
+     * For example:
+     *   `"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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The full resource name of the bucket to delete.
      *     "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]"
-     * Example:
-     * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`.
+     * For example:
+     *   `"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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -649,12 +592,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(); } @@ -663,16 +606,16 @@ 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 { - return new DeleteBucketRequest(input, extensionRegistry); - } - }; + 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 { + return new DeleteBucketRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -687,4 +630,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 51% 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 ed0af6f2e..4b4ac5ea3 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,66 +1,41 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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.
    *     "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]"
-   * Example:
-   * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`.
+   * For example:
+   *   `"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.
    *     "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]"
-   * Example:
-   * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`.
+   * For example:
+   *   `"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 7f19f57b6..15e19d2b8 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,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteExclusionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,65 +53,58 @@ private DeleteExclusionRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; private volatile java.lang.Object 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]"
-   * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
+   * For example:
+   *   `"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 @@ -137,36 +113,35 @@ 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:
    *     "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]"
-   * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
+   * For example:
+   *   `"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 { @@ -175,7 +150,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -187,7 +161,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_); } @@ -211,15 +186,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -238,127 +213,118 @@ 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() @@ -366,15 +332,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -384,9 +351,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 @@ -405,8 +372,7 @@ 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); + com.google.logging.v2.DeleteExclusionRequest result = new com.google.logging.v2.DeleteExclusionRequest(this); result.name_ = name_; onBuilt(); return result; @@ -416,39 +382,38 @@ public com.google.logging.v2.DeleteExclusionRequest 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.DeleteExclusionRequest) { - return mergeFrom((com.google.logging.v2.DeleteExclusionRequest) other); + return mergeFrom((com.google.logging.v2.DeleteExclusionRequest)other); } else { super.mergeFrom(other); return this; @@ -492,27 +457,24 @@ public Builder mergeFrom( private java.lang.Object 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]"
-     * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
+     * For example:
+     *   `"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; @@ -521,28 +483,26 @@ public java.lang.String getName() { } } /** - * - * *
      * 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]"
-     * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
+     * For example:
+     *   `"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 { @@ -550,89 +510,79 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * 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]"
-     * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
+     * For example:
+     *   `"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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * 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]"
-     * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
+     * For example:
+     *   `"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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * 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]"
-     * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
+     * For example:
+     *   `"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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -642,12 +592,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(); } @@ -656,16 +606,16 @@ 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 { - return new DeleteExclusionRequest(input, extensionRegistry); - } - }; + 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 { + return new DeleteExclusionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -680,4 +630,6 @@ 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/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequestOrBuilder.java new file mode 100644 index 000000000..ec4dc6d95 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequestOrBuilder.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 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:
+   *     "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"`
+   * 
+ * + * 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:
+   *     "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"`
+   * 
+ * + * 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/DeleteLogMetricRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequest.java similarity index 65% 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 88f1381cf..6eac2a421 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,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteLogMetricRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,61 +53,53 @@ private DeleteLogMetricRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - metricName_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + metricName_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; 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 @@ -133,32 +108,30 @@ 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 { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getMetricNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,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(metricName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricName_); } @@ -203,15 +176,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -230,127 +203,118 @@ 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() @@ -358,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +341,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 @@ -397,8 +362,7 @@ 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); + com.google.logging.v2.DeleteLogMetricRequest result = new com.google.logging.v2.DeleteLogMetricRequest(this); result.metricName_ = metricName_; onBuilt(); return result; @@ -408,39 +372,38 @@ public com.google.logging.v2.DeleteLogMetricRequest 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.DeleteLogMetricRequest) { - return mergeFrom((com.google.logging.v2.DeleteLogMetricRequest) other); + return mergeFrom((com.google.logging.v2.DeleteLogMetricRequest)other); } else { super.mergeFrom(other); return this; @@ -484,23 +447,19 @@ public Builder mergeFrom( 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; @@ -509,24 +468,21 @@ 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 { @@ -534,77 +490,64 @@ 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) { + public Builder setMetricName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + metricName_ = value; 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() { - + metricName_ = getDefaultInstance().getMetricName(); 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) = { ... } * @param value The bytes for metricName to set. * @return This builder for chaining. */ - public Builder setMetricNameBytes(com.google.protobuf.ByteString value) { + public Builder setMetricNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + metricName_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -614,12 +557,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(); } @@ -628,16 +571,16 @@ 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 { - return new DeleteLogMetricRequest(input, extensionRegistry); - } - }; + 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 { + return new DeleteLogMetricRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -652,4 +595,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..8a30d8296 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequestOrBuilder.java @@ -0,0 +1,31 @@ +// 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 61% 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 ae29efc7b..cb435bd8b 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,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteLogRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,69 +53,61 @@ private DeleteLogRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - logName_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + logName_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; private volatile java.lang.Object 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]"
+   * * `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/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
+   * `"organizations/123/logs/cloudaudit.googleapis.com%2Factivity"`.
    * For more information about log names, see
    * [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 @@ -141,40 +116,38 @@ 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:
-   *     "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]"
+   * * `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/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
+   * `"organizations/123/logs/cloudaudit.googleapis.com%2Factivity"`.
    * For more information about log names, see
    * [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 { @@ -183,7 +156,6 @@ public com.google.protobuf.ByteString getLogNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -195,7 +167,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, logName_); } @@ -219,14 +192,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -245,127 +219,118 @@ 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() @@ -373,15 +338,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -391,9 +357,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 @@ -412,8 +378,7 @@ 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); + com.google.logging.v2.DeleteLogRequest result = new com.google.logging.v2.DeleteLogRequest(this); result.logName_ = logName_; onBuilt(); return result; @@ -423,39 +388,38 @@ public com.google.logging.v2.DeleteLogRequest 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.DeleteLogRequest) { - return mergeFrom((com.google.logging.v2.DeleteLogRequest) other); + return mergeFrom((com.google.logging.v2.DeleteLogRequest)other); } else { super.mergeFrom(other); return this; @@ -499,31 +463,27 @@ public Builder mergeFrom( private java.lang.Object 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]"
+     * * `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/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
+     * `"organizations/123/logs/cloudaudit.googleapis.com%2Factivity"`.
      * For more information about log names, see
      * [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; @@ -532,32 +492,29 @@ public java.lang.String getLogName() { } } /** - * - * *
      * 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]"
+     * * `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/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
+     * `"organizations/123/logs/cloudaudit.googleapis.com%2Factivity"`.
      * For more information about log names, see
      * [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 { @@ -565,101 +522,88 @@ public com.google.protobuf.ByteString getLogNameBytes() { } } /** - * - * *
      * 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]"
+     * * `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/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
+     * `"organizations/123/logs/cloudaudit.googleapis.com%2Factivity"`.
      * For more information about log names, see
      * [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) { + public Builder setLogName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + logName_ = value; onChanged(); return this; } /** - * - * *
      * 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]"
+     * * `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/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
+     * `"organizations/123/logs/cloudaudit.googleapis.com%2Factivity"`.
      * For more information about log names, see
      * [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() { - + logName_ = getDefaultInstance().getLogName(); onChanged(); return this; } /** - * - * *
      * 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]"
+     * * `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/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
+     * `"organizations/123/logs/cloudaudit.googleapis.com%2Factivity"`.
      * For more information about log names, see
      * [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) { + public Builder setLogNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + logName_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -669,12 +613,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(); } @@ -683,16 +627,16 @@ 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 { - return new DeleteLogRequest(input, extensionRegistry); - } - }; + 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 { + return new DeleteLogRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -707,4 +651,6 @@ 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/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequestOrBuilder.java new file mode 100644 index 000000000..4316542c4 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequestOrBuilder.java @@ -0,0 +1,47 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/v2/logging.proto + +package com.google.logging.v2; + +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:
+   * * `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].
+   * 
+ * + * 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:
+   * * `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].
+   * 
+ * + * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for logName. + */ + 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 67% 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 dc33d8ab0..736e916cf 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,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteSinkRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,52 +53,47 @@ private DeleteSinkRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - sinkName_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + sinkName_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; private volatile java.lang.Object sinkName_; /** - * - * *
    * Required. The full resource name of the sink to delete, including the parent
    * resource and the sink identifier:
@@ -123,13 +101,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *     "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
    *     "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
    *     "folders/[FOLDER_ID]/sinks/[SINK_ID]"
-   * Example: `"projects/my-project-id/sinks/my-sink-id"`.
+   * For example:
+   *   `"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 @@ -138,15 +114,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:
@@ -154,21 +129,21 @@ public java.lang.String getSinkName() {
    *     "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
    *     "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
    *     "folders/[FOLDER_ID]/sinks/[SINK_ID]"
-   * Example: `"projects/my-project-id/sinks/my-sink-id"`.
+   * For example:
+   *   `"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 { @@ -177,7 +152,6 @@ public com.google.protobuf.ByteString getSinkNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -189,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(sinkName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sinkName_); } @@ -213,14 +188,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -239,127 +215,118 @@ 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() @@ -367,15 +334,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -385,9 +353,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 @@ -406,8 +374,7 @@ 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); + com.google.logging.v2.DeleteSinkRequest result = new com.google.logging.v2.DeleteSinkRequest(this); result.sinkName_ = sinkName_; onBuilt(); return result; @@ -417,39 +384,38 @@ public com.google.logging.v2.DeleteSinkRequest 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.DeleteSinkRequest) { - return mergeFrom((com.google.logging.v2.DeleteSinkRequest) other); + return mergeFrom((com.google.logging.v2.DeleteSinkRequest)other); } else { super.mergeFrom(other); return this; @@ -493,8 +459,6 @@ public Builder mergeFrom( private java.lang.Object sinkName_ = ""; /** - * - * *
      * Required. The full resource name of the sink to delete, including the parent
      * resource and the sink identifier:
@@ -502,19 +466,18 @@ public Builder mergeFrom(
      *     "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
      *     "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
      *     "folders/[FOLDER_ID]/sinks/[SINK_ID]"
-     * Example: `"projects/my-project-id/sinks/my-sink-id"`.
+     * For example:
+     *   `"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; @@ -523,8 +486,6 @@ public java.lang.String getSinkName() { } } /** - * - * *
      * Required. The full resource name of the sink to delete, including the parent
      * resource and the sink identifier:
@@ -532,20 +493,20 @@ public java.lang.String getSinkName() {
      *     "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
      *     "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
      *     "folders/[FOLDER_ID]/sinks/[SINK_ID]"
-     * Example: `"projects/my-project-id/sinks/my-sink-id"`.
+     * For example:
+     *   `"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 { @@ -553,8 +514,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:
@@ -562,28 +521,25 @@ public com.google.protobuf.ByteString getSinkNameBytes() {
      *     "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
      *     "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
      *     "folders/[FOLDER_ID]/sinks/[SINK_ID]"
-     * Example: `"projects/my-project-id/sinks/my-sink-id"`.
+     * For example:
+     *   `"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) { + public Builder setSinkName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sinkName_ = value; onChanged(); return this; } /** - * - * *
      * Required. The full resource name of the sink to delete, including the parent
      * resource and the sink identifier:
@@ -591,24 +547,20 @@ public Builder setSinkName(java.lang.String value) {
      *     "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
      *     "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
      *     "folders/[FOLDER_ID]/sinks/[SINK_ID]"
-     * Example: `"projects/my-project-id/sinks/my-sink-id"`.
+     * For example:
+     *   `"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() { - + sinkName_ = getDefaultInstance().getSinkName(); onChanged(); return this; } /** - * - * *
      * Required. The full resource name of the sink to delete, including the parent
      * resource and the sink identifier:
@@ -616,29 +568,28 @@ public Builder clearSinkName() {
      *     "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
      *     "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
      *     "folders/[FOLDER_ID]/sinks/[SINK_ID]"
-     * Example: `"projects/my-project-id/sinks/my-sink-id"`.
+     * For example:
+     *   `"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) { + public Builder setSinkNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sinkName_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -648,12 +599,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(); } @@ -662,16 +613,16 @@ 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 { - return new DeleteSinkRequest(input, extensionRegistry); - } - }; + 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 { + return new DeleteSinkRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -686,4 +637,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 50% 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 75186cb69..911e93136 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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:
@@ -33,19 +15,15 @@ public interface DeleteSinkRequestOrBuilder
    *     "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
    *     "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
    *     "folders/[FOLDER_ID]/sinks/[SINK_ID]"
-   * Example: `"projects/my-project-id/sinks/my-sink-id"`.
+   * For example:
+   *   `"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:
@@ -53,14 +31,13 @@ public interface DeleteSinkRequestOrBuilder
    *     "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
    *     "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
    *     "folders/[FOLDER_ID]/sinks/[SINK_ID]"
-   * Example: `"projects/my-project-id/sinks/my-sink-id"`.
+   * For example:
+   *   `"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 63% 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 1752b0b17..58dd2a4e2 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,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteViewRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,63 +53,55 @@ private DeleteViewRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; private volatile java.lang.Object name_; /** - * - * *
    * Required. The full resource name of the view to delete:
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-   * Example:
-   *    `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-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) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,34 +110,32 @@ 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:
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-   * Example:
-   *    `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-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) = { ... } - * - * + * 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 { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,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_); } @@ -207,14 +180,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,127 +207,118 @@ 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() @@ -361,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -379,9 +345,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 @@ -400,8 +366,7 @@ 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); + com.google.logging.v2.DeleteViewRequest result = new com.google.logging.v2.DeleteViewRequest(this); result.name_ = name_; onBuilt(); return result; @@ -411,39 +376,38 @@ public com.google.logging.v2.DeleteViewRequest 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.DeleteViewRequest) { - return mergeFrom((com.google.logging.v2.DeleteViewRequest) other); + return mergeFrom((com.google.logging.v2.DeleteViewRequest)other); } else { super.mergeFrom(other); return this; @@ -487,25 +451,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The full resource name of the view to delete:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     * Example:
-     *    `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-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) = { ... } - * - * + * 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; @@ -514,26 +474,23 @@ public 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]"
-     * Example:
-     *    `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-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) = { ... } - * - * + * 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 { @@ -541,83 +498,70 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The full resource name of the view to delete:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     * Example:
-     *    `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-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) = { ... } - * - * + * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The full resource name of the view to delete:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     * Example:
-     *    `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-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) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The full resource name of the view to delete:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     * Example:
-     *    `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-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) = { ... } - * - * + * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -627,12 +571,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(); } @@ -641,16 +585,16 @@ 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 { - return new DeleteViewRequest(input, extensionRegistry); - } - }; + 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 { + return new DeleteViewRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -665,4 +609,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..d34a96a00 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequestOrBuilder.java @@ -0,0 +1,35 @@ +// 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 9b42b0a4d..6fb38e922 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,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetBucketRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,66 +53,58 @@ private GetBucketRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the bucket:
    *     "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]"
-   * Example:
-   * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`.
+   * For example:
+   *   `"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 @@ -138,37 +113,35 @@ 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:
    *     "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]"
-   * Example:
-   * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`.
+   * For example:
+   *   `"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 { @@ -177,7 +150,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -189,7 +161,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_); } @@ -213,14 +186,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -239,127 +213,118 @@ 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() @@ -367,15 +332,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -385,9 +351,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 @@ -406,8 +372,7 @@ 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); + com.google.logging.v2.GetBucketRequest result = new com.google.logging.v2.GetBucketRequest(this); result.name_ = name_; onBuilt(); return result; @@ -417,39 +382,38 @@ public com.google.logging.v2.GetBucketRequest 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.GetBucketRequest) { - return mergeFrom((com.google.logging.v2.GetBucketRequest) other); + return mergeFrom((com.google.logging.v2.GetBucketRequest)other); } else { super.mergeFrom(other); return this; @@ -493,28 +457,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the bucket:
      *     "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]"
-     * Example:
-     * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`.
+     * For example:
+     *   `"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; @@ -523,29 +483,26 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the bucket:
      *     "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]"
-     * Example:
-     * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`.
+     * For example:
+     *   `"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 { @@ -553,92 +510,79 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the bucket:
      *     "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]"
-     * Example:
-     * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`.
+     * For example:
+     *   `"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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the bucket:
      *     "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]"
-     * Example:
-     * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`.
+     * For example:
+     *   `"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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the bucket:
      *     "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]"
-     * Example:
-     * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`.
+     * For example:
+     *   `"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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -648,12 +592,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(); } @@ -662,16 +606,16 @@ 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 { - return new GetBucketRequest(input, extensionRegistry); - } - }; + 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 { + return new GetBucketRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -686,4 +630,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 50% 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 41d68d9a1..11399928e 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,66 +1,41 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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:
    *     "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]"
-   * Example:
-   * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`.
+   * For example:
+   *   `"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:
    *     "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]"
-   * Example:
-   * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`.
+   * For example:
+   *   `"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 63% 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 e7e05708a..4ed49570e 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,61 +1,44 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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].
- * See [Enabling CMEK for Logs
+ * See [Enabling CMEK for Log
  * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for
  * more information.
  * 
* * 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetCmekSettingsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -74,68 +57,62 @@ private GetCmekSettingsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource for which to retrieve CMEK settings.
    *     "projects/[PROJECT_ID]/cmekSettings"
    *     "organizations/[ORGANIZATION_ID]/cmekSettings"
    *     "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
    *     "folders/[FOLDER_ID]/cmekSettings"
-   * Example: `"organizations/12345/cmekSettings"`.
-   * Note: CMEK for the Logs Router can currently only be configured for GCP
-   * organizations. Once configured, it applies to all projects and folders in
-   * the GCP organization.
+   * For example:
+   *   `"organizations/12345/cmekSettings"`
+   * 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.
    * 
* - * - * string name = 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 @@ -144,39 +121,39 @@ 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.
    *     "projects/[PROJECT_ID]/cmekSettings"
    *     "organizations/[ORGANIZATION_ID]/cmekSettings"
    *     "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
    *     "folders/[FOLDER_ID]/cmekSettings"
-   * Example: `"organizations/12345/cmekSettings"`.
-   * Note: CMEK for the Logs Router can currently only be configured for GCP
-   * organizations. Once configured, it applies to all projects and folders in
-   * the GCP organization.
+   * For example:
+   *   `"organizations/12345/cmekSettings"`
+   * 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.
    * 
* - * - * string name = 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 { @@ -185,7 +162,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -197,7 +173,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -221,15 +198,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -248,131 +225,122 @@ 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].
-   * See [Enabling CMEK for Logs
+   * See [Enabling CMEK for Log
    * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for
    * more information.
    * 
* * 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() @@ -380,15 +348,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -398,9 +367,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 @@ -419,8 +388,7 @@ 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); + com.google.logging.v2.GetCmekSettingsRequest result = new com.google.logging.v2.GetCmekSettingsRequest(this); result.name_ = name_; onBuilt(); return result; @@ -430,39 +398,38 @@ public com.google.logging.v2.GetCmekSettingsRequest 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.GetCmekSettingsRequest) { - return mergeFrom((com.google.logging.v2.GetCmekSettingsRequest) other); + return mergeFrom((com.google.logging.v2.GetCmekSettingsRequest)other); } else { super.mergeFrom(other); return this; @@ -506,30 +473,28 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource for which to retrieve CMEK settings.
      *     "projects/[PROJECT_ID]/cmekSettings"
      *     "organizations/[ORGANIZATION_ID]/cmekSettings"
      *     "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
      *     "folders/[FOLDER_ID]/cmekSettings"
-     * Example: `"organizations/12345/cmekSettings"`.
-     * Note: CMEK for the Logs Router can currently only be configured for GCP
-     * organizations. Once configured, it applies to all projects and folders in
-     * the GCP organization.
+     * For example:
+     *   `"organizations/12345/cmekSettings"`
+     * 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.
      * 
* - * - * string name = 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; @@ -538,31 +503,30 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource for which to retrieve CMEK settings.
      *     "projects/[PROJECT_ID]/cmekSettings"
      *     "organizations/[ORGANIZATION_ID]/cmekSettings"
      *     "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
      *     "folders/[FOLDER_ID]/cmekSettings"
-     * Example: `"organizations/12345/cmekSettings"`.
-     * Note: CMEK for the Logs Router can currently only be configured for GCP
-     * organizations. Once configured, it applies to all projects and folders in
-     * the GCP organization.
+     * For example:
+     *   `"organizations/12345/cmekSettings"`
+     * 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.
      * 
* - * - * string name = 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 { @@ -570,98 +534,91 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource for which to retrieve CMEK settings.
      *     "projects/[PROJECT_ID]/cmekSettings"
      *     "organizations/[ORGANIZATION_ID]/cmekSettings"
      *     "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
      *     "folders/[FOLDER_ID]/cmekSettings"
-     * Example: `"organizations/12345/cmekSettings"`.
-     * Note: CMEK for the Logs Router can currently only be configured for GCP
-     * organizations. Once configured, it applies to all projects and folders in
-     * the GCP organization.
+     * For example:
+     *   `"organizations/12345/cmekSettings"`
+     * 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.
      * 
* - * - * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource for which to retrieve CMEK settings.
      *     "projects/[PROJECT_ID]/cmekSettings"
      *     "organizations/[ORGANIZATION_ID]/cmekSettings"
      *     "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
      *     "folders/[FOLDER_ID]/cmekSettings"
-     * Example: `"organizations/12345/cmekSettings"`.
-     * Note: CMEK for the Logs Router can currently only be configured for GCP
-     * organizations. Once configured, it applies to all projects and folders in
-     * the GCP organization.
+     * For example:
+     *   `"organizations/12345/cmekSettings"`
+     * 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.
      * 
* - * - * string 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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource for which to retrieve CMEK settings.
      *     "projects/[PROJECT_ID]/cmekSettings"
      *     "organizations/[ORGANIZATION_ID]/cmekSettings"
      *     "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
      *     "folders/[FOLDER_ID]/cmekSettings"
-     * Example: `"organizations/12345/cmekSettings"`.
-     * Note: CMEK for the Logs Router can currently only be configured for GCP
-     * organizations. Once configured, it applies to all projects and folders in
-     * the GCP organization.
+     * For example:
+     *   `"organizations/12345/cmekSettings"`
+     * 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.
      * 
* - * - * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -671,12 +628,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(); } @@ -685,16 +642,16 @@ 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 { - return new GetCmekSettingsRequest(input, extensionRegistry); - } - }; + 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 { + return new GetCmekSettingsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -709,4 +666,6 @@ 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/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequestOrBuilder.java new file mode 100644 index 000000000..f55f35128 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequestOrBuilder.java @@ -0,0 +1,49 @@ +// 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 + // @@protoc_insertion_point(interface_extends:google.logging.v2.GetCmekSettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource for which to retrieve CMEK settings.
+   *     "projects/[PROJECT_ID]/cmekSettings"
+   *     "organizations/[ORGANIZATION_ID]/cmekSettings"
+   *     "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
+   *     "folders/[FOLDER_ID]/cmekSettings"
+   * For example:
+   *   `"organizations/12345/cmekSettings"`
+   * 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.
+   * 
+ * + * 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.
+   *     "projects/[PROJECT_ID]/cmekSettings"
+   *     "organizations/[ORGANIZATION_ID]/cmekSettings"
+   *     "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
+   *     "folders/[FOLDER_ID]/cmekSettings"
+   * For example:
+   *   `"organizations/12345/cmekSettings"`
+   * 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.
+   * 
+ * + * 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/GetExclusionRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequest.java similarity index 66% 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 bd275456f..20e624723 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,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetExclusionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,65 +53,58 @@ private GetExclusionRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; private volatile java.lang.Object 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]"
-   * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
+   * For example:
+   *   `"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 @@ -137,36 +113,35 @@ 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:
    *     "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]"
-   * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
+   * For example:
+   *   `"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 { @@ -175,7 +150,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -187,7 +161,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_); } @@ -211,15 +186,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -238,127 +213,118 @@ 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() @@ -366,15 +332,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -384,9 +351,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 @@ -405,8 +372,7 @@ 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); + com.google.logging.v2.GetExclusionRequest result = new com.google.logging.v2.GetExclusionRequest(this); result.name_ = name_; onBuilt(); return result; @@ -416,39 +382,38 @@ public com.google.logging.v2.GetExclusionRequest 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.GetExclusionRequest) { - return mergeFrom((com.google.logging.v2.GetExclusionRequest) other); + return mergeFrom((com.google.logging.v2.GetExclusionRequest)other); } else { super.mergeFrom(other); return this; @@ -492,27 +457,24 @@ public Builder mergeFrom( private java.lang.Object 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]"
-     * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
+     * For example:
+     *   `"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; @@ -521,28 +483,26 @@ public java.lang.String getName() { } } /** - * - * *
      * 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]"
-     * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
+     * For example:
+     *   `"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 { @@ -550,89 +510,79 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * 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]"
-     * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
+     * For example:
+     *   `"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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * 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]"
-     * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
+     * For example:
+     *   `"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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * 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]"
-     * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
+     * For example:
+     *   `"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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -642,12 +592,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(); } @@ -656,16 +606,16 @@ 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 { - return new GetExclusionRequest(input, extensionRegistry); - } - }; + 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 { + return new GetExclusionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -680,4 +630,6 @@ 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/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequestOrBuilder.java new file mode 100644 index 000000000..5e37b339c --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequestOrBuilder.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 GetExclusionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.logging.v2.GetExclusionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * 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"`
+   * 
+ * + * 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:
+   *     "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"`
+   * 
+ * + * 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/GetLogMetricRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequest.java similarity index 65% 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 166b6932a..59d6f7eb9 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,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetLogMetricRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,61 +53,53 @@ private GetLogMetricRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - metricName_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + metricName_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; 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 @@ -133,32 +108,30 @@ 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 { @@ -167,7 +140,6 @@ public com.google.protobuf.ByteString getMetricNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -179,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(metricName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricName_); } @@ -203,15 +176,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -230,127 +203,118 @@ 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() @@ -358,15 +322,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -376,9 +341,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 @@ -397,8 +362,7 @@ 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); + com.google.logging.v2.GetLogMetricRequest result = new com.google.logging.v2.GetLogMetricRequest(this); result.metricName_ = metricName_; onBuilt(); return result; @@ -408,39 +372,38 @@ public com.google.logging.v2.GetLogMetricRequest 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.GetLogMetricRequest) { - return mergeFrom((com.google.logging.v2.GetLogMetricRequest) other); + return mergeFrom((com.google.logging.v2.GetLogMetricRequest)other); } else { super.mergeFrom(other); return this; @@ -484,23 +447,19 @@ public Builder mergeFrom( 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; @@ -509,24 +468,21 @@ 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 { @@ -534,77 +490,64 @@ 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) { + public Builder setMetricName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + metricName_ = value; 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() { - + metricName_ = getDefaultInstance().getMetricName(); 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) = { ... } * @param value The bytes for metricName to set. * @return This builder for chaining. */ - public Builder setMetricNameBytes(com.google.protobuf.ByteString value) { + public Builder setMetricNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + metricName_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -614,12 +557,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(); } @@ -628,16 +571,16 @@ 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 { - return new GetLogMetricRequest(input, extensionRegistry); - } - }; + 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 { + return new GetLogMetricRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -652,4 +595,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..2c437f6cb --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequestOrBuilder.java @@ -0,0 +1,31 @@ +// 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/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequest.java new file mode 100644 index 000000000..03b47590d --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequest.java @@ -0,0 +1,671 @@ +// 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].
+ * See [Enabling CMEK for Log
+ * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for
+ * more information.
+ * 
+ * + * Protobuf type {@code google.logging.v2.GetSettingsRequest} + */ +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; + // 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) { + return new GetSettingsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetSettingsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + 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 + .ensureFieldAccessorsInitialized( + com.google.logging.v2.GetSettingsRequest.class, com.google.logging.v2.GetSettingsRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object 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.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * 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.
+   * 
+ * + * 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() { + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + 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) + 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) + 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); + } + public static com.google.logging.v2.GetSettingsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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].
+   * See [Enabling CMEK for Log
+   * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for
+   * more information.
+   * 
+ * + * Protobuf type {@code google.logging.v2.GetSettingsRequest} + */ + 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; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + 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); + } + + // Construct using com.google.logging.v2.GetSettingsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_GetSettingsRequest_descriptor; + } + + @java.lang.Override + public com.google.logging.v2.GetSettingsRequest getDefaultInstanceForType() { + return com.google.logging.v2.GetSettingsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.logging.v2.GetSettingsRequest build() { + com.google.logging.v2.GetSettingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.logging.v2.GetSettingsRequest buildPartial() { + com.google.logging.v2.GetSettingsRequest result = new com.google.logging.v2.GetSettingsRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.logging.v2.GetSettingsRequest) { + return mergeFrom((com.google.logging.v2.GetSettingsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.logging.v2.GetSettingsRequest other) { + if (other == com.google.logging.v2.GetSettingsRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.logging.v2.GetSettingsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.logging.v2.GetSettingsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object 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.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. 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.
+     * 
+ * + * 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(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * 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.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * 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.
+     * 
+ * + * 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(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.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(); + } + + 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 { + return new GetSettingsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.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/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequestOrBuilder.java new file mode 100644 index 000000000..97343aab4 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequestOrBuilder.java @@ -0,0 +1,49 @@ +// 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 + // @@protoc_insertion_point(interface_extends:google.logging.v2.GetSettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * 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.
+   * 
+ * + * 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.
+   *     "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.
+   * 
+ * + * 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/GetSinkRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequest.java similarity index 66% 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 81d05b353..7d54900c4 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,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetSinkRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,65 +53,58 @@ private GetSinkRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - sinkName_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + sinkName_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; private volatile java.lang.Object 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]"
-   * Example: `"projects/my-project-id/sinks/my-sink-id"`.
+   * For example:
+   *   `"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 @@ -137,36 +113,35 @@ 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:
    *     "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]"
-   * Example: `"projects/my-project-id/sinks/my-sink-id"`.
+   * For example:
+   *   `"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 { @@ -175,7 +150,6 @@ public com.google.protobuf.ByteString getSinkNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -187,7 +161,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_); } @@ -211,14 +186,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -237,126 +213,118 @@ 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() @@ -364,15 +332,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -382,9 +351,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.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 @@ -413,39 +382,38 @@ public com.google.logging.v2.GetSinkRequest 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.GetSinkRequest) { - return mergeFrom((com.google.logging.v2.GetSinkRequest) other); + return mergeFrom((com.google.logging.v2.GetSinkRequest)other); } else { super.mergeFrom(other); return this; @@ -489,27 +457,24 @@ public Builder mergeFrom( private java.lang.Object 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]"
-     * Example: `"projects/my-project-id/sinks/my-sink-id"`.
+     * For example:
+     *   `"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; @@ -518,28 +483,26 @@ public java.lang.String getSinkName() { } } /** - * - * *
      * 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]"
-     * Example: `"projects/my-project-id/sinks/my-sink-id"`.
+     * For example:
+     *   `"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,89 +510,79 @@ public com.google.protobuf.ByteString getSinkNameBytes() { } } /** - * - * *
      * 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]"
-     * Example: `"projects/my-project-id/sinks/my-sink-id"`.
+     * For example:
+     *   `"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) { + public Builder setSinkName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sinkName_ = value; onChanged(); return this; } /** - * - * *
      * 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]"
-     * Example: `"projects/my-project-id/sinks/my-sink-id"`.
+     * For example:
+     *   `"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() { - + sinkName_ = getDefaultInstance().getSinkName(); onChanged(); return this; } /** - * - * *
      * 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]"
-     * Example: `"projects/my-project-id/sinks/my-sink-id"`.
+     * For example:
+     *   `"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) { + public Builder setSinkNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sinkName_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -639,12 +592,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(); } @@ -653,16 +606,16 @@ 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 { - return new GetSinkRequest(input, extensionRegistry); - } - }; + 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 { + return new GetSinkRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -677,4 +630,6 @@ 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/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequestOrBuilder.java new file mode 100644 index 000000000..4de6e031f --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequestOrBuilder.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 GetSinkRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.logging.v2.GetSinkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * 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"`
+   * 
+ * + * 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:
+   *     "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"`
+   * 
+ * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for sinkName. + */ + 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 63% 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 57a082f47..36a9a68fb 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,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetViewRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,63 +53,55 @@ private GetViewRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name of the policy:
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-   * Example:
-   * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-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) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,34 +110,32 @@ 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:
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-   * Example:
-   * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-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) = { ... } - * - * + * 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 { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,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_); } @@ -207,14 +180,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,126 +207,118 @@ 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() @@ -360,15 +326,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -378,9 +345,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 @@ -409,39 +376,38 @@ public com.google.logging.v2.GetViewRequest 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.GetViewRequest) { - return mergeFrom((com.google.logging.v2.GetViewRequest) other); + return mergeFrom((com.google.logging.v2.GetViewRequest)other); } else { super.mergeFrom(other); return this; @@ -485,25 +451,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name of the policy:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     * Example:
-     * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-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) = { ... } - * - * + * 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; @@ -512,26 +474,23 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name of the policy:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     * Example:
-     * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-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) = { ... } - * - * + * 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 { @@ -539,83 +498,70 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name of the policy:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     * Example:
-     * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-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) = { ... } - * - * + * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the policy:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     * Example:
-     * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-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) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the policy:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     * Example:
-     * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-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) = { ... } - * - * + * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -625,12 +571,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(); } @@ -639,16 +585,16 @@ 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 { - return new GetViewRequest(input, extensionRegistry); - } - }; + 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 { + return new GetViewRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -663,4 +609,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..73484dc2e --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequestOrBuilder.java @@ -0,0 +1,35 @@ +// 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/LifecycleState.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LifecycleState.java similarity index 61% 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 f19d1e1ab..b9818a847 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,47 +1,27 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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.
+   * Unspecified state. This is only used/useful for distinguishing unset
+   * values.
    * 
* * LIFECYCLE_STATE_UNSPECIFIED = 0; */ LIFECYCLE_STATE_UNSPECIFIED(0), /** - * - * *
    * The normal and active state.
    * 
@@ -50,10 +30,9 @@ public enum LifecycleState implements com.google.protobuf.ProtocolMessageEnum { */ ACTIVE(1), /** - * - * *
-   * The bucket has been marked for deletion by the user.
+   * 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.
    * 
* * DELETE_REQUESTED = 2; @@ -63,19 +42,15 @@ public enum LifecycleState implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
-   * Unspecified state.  This is only used/useful for distinguishing
-   * unset values.
+   * Unspecified state. This is only used/useful for distinguishing unset
+   * values.
    * 
* * LIFECYCLE_STATE_UNSPECIFIED = 0; */ public static final int LIFECYCLE_STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * The normal and active state.
    * 
@@ -84,16 +59,16 @@ public enum LifecycleState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTIVE_VALUE = 1; /** - * - * *
-   * The bucket has been marked for deletion by the user.
+   * 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.
    * 
* * DELETE_REQUESTED = 2; */ public static final int DELETE_REQUESTED_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -118,49 +93,49 @@ 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; - default: - return null; + case 0: return LIFECYCLE_STATE_UNSPECIFIED; + case 1: return ACTIVE; + case 2: return DELETE_REQUESTED; + 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(0); } 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; @@ -176,3 +151,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/ListBucketsRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsRequest.java similarity index 66% 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 4291254d7..228f95aa9 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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,15 +26,16 @@ private ListBucketsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListBucketsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListBucketsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,64 +54,58 @@ private ListBucketsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 24: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource whose buckets are to be listed:
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
@@ -140,10 +117,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 @@ -152,15 +126,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:
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
@@ -172,18 +145,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 { @@ -194,17 +166,14 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; 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
-   * `nextPageToken` from the previous response. The values of other method
-   * parameters should be identical to those in the previous call.
+   * Optional. If present, then retrieve the next batch of results from the preceding call
+   * to this method. `pageToken` must be the value of `nextPageToken` from the
+   * previous response. The values of other method parameters should be
+   * identical to those in the previous call.
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -213,32 +182,32 @@ 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
-   * `nextPageToken` from the previous response. The values of other method
-   * parameters should be identical to those in the previous call.
+   * Optional. If present, then retrieve the next batch of results from the preceding call
+   * to this method. `pageToken` must be the value of `nextPageToken` from the
+   * previous response. The values of other method parameters should be
+   * identical to those in the previous call.
    * 
* * 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 { @@ -249,16 +218,13 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; 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
-   * response indicates that more results might be available.
+   * Optional. The maximum number of results to return from this request. Non-positive
+   * values are ignored. The presence of `nextPageToken` in the response
+   * indicates that more results might be available.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -267,7 +233,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -279,7 +244,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_); } @@ -305,7 +271,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -315,16 +282,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -347,127 +317,118 @@ 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() @@ -475,15 +436,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -497,9 +459,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 @@ -518,8 +480,7 @@ 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); + com.google.logging.v2.ListBucketsRequest result = new com.google.logging.v2.ListBucketsRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -531,39 +492,38 @@ public com.google.logging.v2.ListBucketsRequest 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.ListBucketsRequest) { - return mergeFrom((com.google.logging.v2.ListBucketsRequest) other); + return mergeFrom((com.google.logging.v2.ListBucketsRequest)other); } else { super.mergeFrom(other); return this; @@ -614,8 +574,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource whose buckets are to be listed:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
@@ -627,16 +585,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; @@ -645,8 +601,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource whose buckets are to be listed:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
@@ -658,17 +612,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 { @@ -676,8 +629,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource whose buckets are to be listed:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
@@ -689,25 +640,21 @@ 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource whose buckets are to be listed:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
@@ -719,21 +666,16 @@ 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource whose buckets are to be listed:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
@@ -745,19 +687,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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -765,23 +705,21 @@ 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
-     * `nextPageToken` from the previous response. The values of other method
-     * parameters should be identical to those in the previous call.
+     * Optional. If present, then retrieve the next batch of results from the preceding call
+     * to this method. `pageToken` must be the value of `nextPageToken` from the
+     * previous response. The values of other method parameters should be
+     * identical to those in the previous call.
      * 
* * 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; @@ -790,24 +728,23 @@ 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
-     * `nextPageToken` from the previous response. The values of other method
-     * parameters should be identical to those in the previous call.
+     * Optional. If present, then retrieve the next batch of results from the preceding call
+     * to this method. `pageToken` must be the value of `nextPageToken` from the
+     * previous response. The values of other method parameters should be
+     * identical to those in the previous call.
      * 
* * 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 { @@ -815,87 +752,77 @@ 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
-     * `nextPageToken` from the previous response. The values of other method
-     * parameters should be identical to those in the previous call.
+     * Optional. If present, then retrieve the next batch of results from the preceding call
+     * to this method. `pageToken` must be the value of `nextPageToken` from the
+     * previous response. The values of other method parameters should be
+     * identical to those in the previous call.
      * 
* * 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) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; 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
-     * `nextPageToken` from the previous response. The values of other method
-     * parameters should be identical to those in the previous call.
+     * Optional. If present, then retrieve the next batch of results from the preceding call
+     * to this method. `pageToken` must be the value of `nextPageToken` from the
+     * previous response. The values of other method parameters should be
+     * identical to those in the previous call.
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); 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
-     * `nextPageToken` from the previous response. The values of other method
-     * parameters should be identical to those in the previous call.
+     * Optional. If present, then retrieve the next batch of results from the preceding call
+     * to this method. `pageToken` must be the value of `nextPageToken` from the
+     * previous response. The values of other method parameters should be
+     * identical to those in the previous call.
      * 
* * 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) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); 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
-     * response indicates that more results might be available.
+     * Optional. The maximum number of results to return from this request. Non-positive
+     * values are ignored. The presence of `nextPageToken` in the response
+     * indicates that more results might be available.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -903,47 +830,41 @@ 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
-     * response indicates that more results might be available.
+     * Optional. The maximum number of results to return from this request. Non-positive
+     * values are ignored. The presence of `nextPageToken` in the response
+     * indicates that more results might be available.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
-     * Optional. The maximum number of results to return from this request.
-     * Non-positive values are ignored. The presence of `nextPageToken` in the
-     * response indicates that more results might be available.
+     * Optional. The maximum number of results to return from this request. Non-positive
+     * values are ignored. The presence of `nextPageToken` in the response
+     * indicates that more results might be available.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 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); } @@ -953,12 +874,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(); } @@ -967,16 +888,16 @@ 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 { - return new ListBucketsRequest(input, extensionRegistry); - } - }; + 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 { + return new ListBucketsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -991,4 +912,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 55% 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 0f895cf02..ef71fdde8 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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:
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
@@ -37,16 +19,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:
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
@@ -58,56 +35,46 @@ 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
-   * `nextPageToken` from the previous response. The values of other method
-   * parameters should be identical to those in the previous call.
+   * Optional. If present, then retrieve the next batch of results from the preceding call
+   * to this method. `pageToken` must be the value of `nextPageToken` from the
+   * previous response. The values of other method parameters should be
+   * identical to those in the previous call.
    * 
* * 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
-   * `nextPageToken` from the previous response. The values of other method
-   * parameters should be identical to those in the previous call.
+   * Optional. If present, then retrieve the next batch of results from the preceding call
+   * to this method. `pageToken` must be the value of `nextPageToken` from the
+   * previous response. The values of other method parameters should be
+   * identical to those in the previous call.
    * 
* * 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
-   * response indicates that more results might be available.
+   * Optional. The maximum number of results to return from this request. Non-positive
+   * values are ignored. The presence of `nextPageToken` in the response
+   * indicates that more results might be available.
    * 
* * 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 73% 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 c4f4935e2..594406209 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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,15 +26,16 @@ private ListBucketsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListBucketsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListBucketsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,36 +55,35 @@ private ListBucketsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - buckets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - buckets_.add( - input.readMessage(com.google.logging.v2.LogBucket.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + buckets_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + buckets_.add( + input.readMessage(com.google.logging.v2.LogBucket.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { buckets_ = java.util.Collections.unmodifiableList(buckets_); @@ -110,27 +92,22 @@ private ListBucketsResponse( makeExtensionsImmutable(); } } - - 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; private java.util.List buckets_; /** - * - * *
    * A list of buckets.
    * 
@@ -142,8 +119,6 @@ public java.util.List getBucketsList() { return buckets_; } /** - * - * *
    * A list of buckets.
    * 
@@ -151,13 +126,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.
    * 
@@ -169,8 +142,6 @@ public int getBucketsCount() { return buckets_.size(); } /** - * - * *
    * A list of buckets.
    * 
@@ -182,8 +153,6 @@ public com.google.logging.v2.LogBucket getBuckets(int index) { return buckets_.get(index); } /** - * - * *
    * A list of buckets.
    * 
@@ -191,15 +160,14 @@ 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; 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
@@ -207,7 +175,6 @@ public com.google.logging.v2.LogBucketOrBuilder getBucketsOrBuilder(int index) {
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -216,15 +183,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
@@ -232,15 +198,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 { @@ -249,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < buckets_.size(); i++) { output.writeMessage(1, buckets_.get(i)); } @@ -278,7 +245,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_); @@ -291,16 +259,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -323,127 +292,118 @@ 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() @@ -451,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getBucketsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -477,9 +437,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 @@ -498,8 +458,7 @@ 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); int from_bitField0_ = bitField0_; if (bucketsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -519,39 +478,38 @@ public com.google.logging.v2.ListBucketsResponse 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.ListBucketsResponse) { - return mergeFrom((com.google.logging.v2.ListBucketsResponse) other); + return mergeFrom((com.google.logging.v2.ListBucketsResponse)other); } else { super.mergeFrom(other); return this; @@ -578,10 +536,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_); } @@ -619,28 +576,21 @@ public Builder mergeFrom( } 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.
      * 
@@ -655,8 +605,6 @@ public java.util.List getBucketsList() { } } /** - * - * *
      * A list of buckets.
      * 
@@ -671,8 +619,6 @@ public int getBucketsCount() { } } /** - * - * *
      * A list of buckets.
      * 
@@ -687,15 +633,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(); @@ -709,15 +654,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()); @@ -728,8 +672,6 @@ public Builder setBuckets(int index, com.google.logging.v2.LogBucket.Builder bui return this; } /** - * - * *
      * A list of buckets.
      * 
@@ -750,15 +692,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(); @@ -772,15 +713,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()); @@ -791,15 +731,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()); @@ -810,8 +749,6 @@ public Builder addBuckets(int index, com.google.logging.v2.LogBucket.Builder bui return this; } /** - * - * *
      * A list of buckets.
      * 
@@ -822,7 +759,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); @@ -830,8 +768,6 @@ public Builder addAllBuckets( return this; } /** - * - * *
      * A list of buckets.
      * 
@@ -849,8 +785,6 @@ public Builder clearBuckets() { return this; } /** - * - * *
      * A list of buckets.
      * 
@@ -868,44 +802,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 { @@ -913,8 +842,6 @@ public com.google.logging.v2.LogBucketOrBuilder getBucketsOrBuilder(int index) { } } /** - * - * *
      * A list of buckets.
      * 
@@ -922,47 +849,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_; @@ -970,8 +892,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
@@ -979,13 +899,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; @@ -994,8 +914,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
@@ -1003,14 +921,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 { @@ -1018,8 +937,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
@@ -1027,22 +944,20 @@ 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) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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
@@ -1050,18 +965,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); 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
@@ -1069,23 +981,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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1095,12 +1007,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(); } @@ -1109,16 +1021,16 @@ 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 { - return new ListBucketsResponse(input, extensionRegistry); - } - }; + 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 { + return new ListBucketsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1133,4 +1045,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 2133deb62..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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 71% 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 75e5b08fe..3765da6ea 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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,15 +26,16 @@ private ListExclusionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListExclusionsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListExclusionsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,64 +54,58 @@ private ListExclusionsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 24: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource whose exclusions are to be listed.
    *     "projects/[PROJECT_ID]"
@@ -137,10 +114,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 @@ -149,15 +123,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.
    *     "projects/[PROJECT_ID]"
@@ -166,18 +139,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 { @@ -188,8 +160,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; 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
@@ -198,7 +168,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -207,15 +176,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
@@ -224,15 +192,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 { @@ -243,8 +212,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; 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
@@ -252,7 +219,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -261,7 +227,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -273,7 +238,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_); } @@ -299,7 +265,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -309,17 +276,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -342,127 +311,118 @@ 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() @@ -470,15 +430,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -492,9 +453,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 @@ -513,8 +474,7 @@ 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); + com.google.logging.v2.ListExclusionsRequest result = new com.google.logging.v2.ListExclusionsRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -526,39 +486,38 @@ public com.google.logging.v2.ListExclusionsRequest 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.ListExclusionsRequest) { - return mergeFrom((com.google.logging.v2.ListExclusionsRequest) other); + return mergeFrom((com.google.logging.v2.ListExclusionsRequest)other); } else { super.mergeFrom(other); return this; @@ -609,8 +568,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource whose exclusions are to be listed.
      *     "projects/[PROJECT_ID]"
@@ -619,16 +576,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; @@ -637,8 +592,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource whose exclusions are to be listed.
      *     "projects/[PROJECT_ID]"
@@ -647,17 +600,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 { @@ -665,8 +617,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource whose exclusions are to be listed.
      *     "projects/[PROJECT_ID]"
@@ -675,25 +625,21 @@ 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource whose exclusions are to be listed.
      *     "projects/[PROJECT_ID]"
@@ -702,21 +648,16 @@ 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource whose exclusions are to be listed.
      *     "projects/[PROJECT_ID]"
@@ -725,19 +666,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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -745,8 +684,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
@@ -755,13 +692,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; @@ -770,8 +707,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
@@ -780,14 +715,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 { @@ -795,8 +731,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
@@ -805,22 +739,20 @@ 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) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; 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
@@ -829,18 +761,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); 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
@@ -849,25 +778,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) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); 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
@@ -875,7 +802,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -883,8 +809,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
@@ -892,19 +816,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -912,18 +833,17 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 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); } @@ -933,12 +853,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(); } @@ -947,16 +867,16 @@ 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 { - return new ListExclusionsRequest(input, extensionRegistry); - } - }; + 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 { + return new ListExclusionsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -971,4 +891,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 3f41330e7..3ff96567c 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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.
    *     "projects/[PROJECT_ID]"
@@ -34,16 +16,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.
    *     "projects/[PROJECT_ID]"
@@ -52,17 +29,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
@@ -71,13 +44,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
@@ -86,14 +56,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
@@ -101,7 +69,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 74% 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 72fd5f107..4f41046f2 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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,15 +26,16 @@ private ListExclusionsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListExclusionsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListExclusionsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,37 +55,35 @@ private ListExclusionsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - exclusions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - exclusions_.add( - input.readMessage( - com.google.logging.v2.LogExclusion.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + exclusions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + exclusions_.add( + input.readMessage(com.google.logging.v2.LogExclusion.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { exclusions_ = java.util.Collections.unmodifiableList(exclusions_); @@ -111,27 +92,22 @@ private ListExclusionsResponse( makeExtensionsImmutable(); } } - - 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; private java.util.List exclusions_; /** - * - * *
    * A list of exclusions.
    * 
@@ -143,8 +119,6 @@ public java.util.List getExclusionsList() { return exclusions_; } /** - * - * *
    * A list of exclusions.
    * 
@@ -152,13 +126,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.
    * 
@@ -170,8 +142,6 @@ public int getExclusionsCount() { return exclusions_.size(); } /** - * - * *
    * A list of exclusions.
    * 
@@ -183,8 +153,6 @@ public com.google.logging.v2.LogExclusion getExclusions(int index) { return exclusions_.get(index); } /** - * - * *
    * A list of exclusions.
    * 
@@ -192,15 +160,14 @@ 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; 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
@@ -208,7 +175,6 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder(int in
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -217,15 +183,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
@@ -233,15 +198,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 { @@ -250,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -262,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < exclusions_.size(); i++) { output.writeMessage(1, exclusions_.get(i)); } @@ -279,7 +245,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_); @@ -292,16 +259,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -324,127 +292,118 @@ 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() @@ -452,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getExclusionsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -478,9 +437,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 @@ -499,8 +458,7 @@ 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); int from_bitField0_ = bitField0_; if (exclusionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -520,39 +478,38 @@ public com.google.logging.v2.ListExclusionsResponse 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.ListExclusionsResponse) { - return mergeFrom((com.google.logging.v2.ListExclusionsResponse) other); + return mergeFrom((com.google.logging.v2.ListExclusionsResponse)other); } else { super.mergeFrom(other); return this; @@ -579,10 +536,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_); } @@ -620,28 +576,21 @@ public Builder mergeFrom( } 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.
      * 
@@ -656,8 +605,6 @@ public java.util.List getExclusionsList() { } } /** - * - * *
      * A list of exclusions.
      * 
@@ -672,8 +619,6 @@ public int getExclusionsCount() { } } /** - * - * *
      * A list of exclusions.
      * 
@@ -688,15 +633,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(); @@ -710,8 +654,6 @@ public Builder setExclusions(int index, com.google.logging.v2.LogExclusion value return this; } /** - * - * *
      * A list of exclusions.
      * 
@@ -730,8 +672,6 @@ public Builder setExclusions( return this; } /** - * - * *
      * A list of exclusions.
      * 
@@ -752,15 +692,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(); @@ -774,15 +713,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()); @@ -793,8 +731,6 @@ public Builder addExclusions(com.google.logging.v2.LogExclusion.Builder builderF return this; } /** - * - * *
      * A list of exclusions.
      * 
@@ -813,8 +749,6 @@ public Builder addExclusions( return this; } /** - * - * *
      * A list of exclusions.
      * 
@@ -825,7 +759,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); @@ -833,8 +768,6 @@ public Builder addAllExclusions( return this; } /** - * - * *
      * A list of exclusions.
      * 
@@ -852,8 +785,6 @@ public Builder clearExclusions() { return this; } /** - * - * *
      * A list of exclusions.
      * 
@@ -871,44 +802,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 { @@ -916,8 +842,6 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder(int in } } /** - * - * *
      * A list of exclusions.
      * 
@@ -925,47 +849,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_; @@ -973,8 +892,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
@@ -982,13 +899,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; @@ -997,8 +914,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
@@ -1006,14 +921,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 +937,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
@@ -1030,22 +944,20 @@ 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) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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
@@ -1053,18 +965,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); 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
@@ -1072,23 +981,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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1098,12 +1007,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(); } @@ -1112,16 +1021,16 @@ 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 { - return new ListExclusionsResponse(input, extensionRegistry); - } - }; + 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 { + return new ListExclusionsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1136,4 +1045,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 da8b8fff5..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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/ListLogEntriesRequest.java b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequest.java similarity index 64% 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 bde9e3bae..d8d8a54ce 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,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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.EMPTY; filter_ = ""; @@ -46,15 +28,16 @@ private ListLogEntriesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListLogEntriesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListLogEntriesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -74,55 +57,52 @@ private ListLogEntriesRequest( case 0: done = true; break; - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - case 32: - { - pageSize_ = input.readInt32(); - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + orderBy_ = s; + break; + } + case 32: { - pageToken_ = s; - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - resourceNames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - resourceNames_.add(s); - break; + pageSize_ = input.readInt32(); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + resourceNames_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + resourceNames_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { resourceNames_ = resourceNames_.getUnmodifiableView(); @@ -131,100 +111,83 @@ private ListLogEntriesRequest( makeExtensionsImmutable(); } } - - 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; private com.google.protobuf.LazyStringList 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]
-   *   organization/[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/[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.
    * 
* - * - * 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:
-   *     "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]
-   *   organization/[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/[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.
    * 
* - * - * 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:
-   *     "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]
-   *   organization/[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/[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.
    * 
* - * - * 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. */ @@ -232,39 +195,33 @@ 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:
-   *     "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]
-   *   organization/[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/[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.
    * 
* - * - * 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; private volatile java.lang.Object filter_; /** - * - * *
    * Optional. A filter that chooses which log entries to return.  See [Advanced
    * Logs Queries](https://cloud.google.com/logging/docs/view/advanced-queries).
@@ -276,7 +233,6 @@ public com.google.protobuf.ByteString getResourceNamesBytes(int index) {
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -285,15 +241,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Optional. A filter that chooses which log entries to return.  See [Advanced
    * Logs Queries](https://cloud.google.com/logging/docs/view/advanced-queries).
@@ -305,15 +260,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 { @@ -324,8 +280,6 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int ORDER_BY_FIELD_NUMBER = 3; 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
@@ -336,7 +290,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * string order_by = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The orderBy. */ @java.lang.Override @@ -345,15 +298,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
@@ -364,15 +316,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 { @@ -383,17 +336,14 @@ public com.google.protobuf.ByteString getOrderByBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; 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 rejected. The presence of `next_page_token` in the
-   * response indicates that more results might be available.
+   * 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 rejected. The
+   * presence of `next_page_token` in the response indicates that more results
+   * might be available.
    * 
* * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -404,8 +354,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 5; 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
@@ -414,7 +362,6 @@ public int getPageSize() {
    * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -423,15 +370,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
@@ -440,15 +386,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 { @@ -457,7 +404,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -469,7 +415,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_); } @@ -501,7 +448,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_); @@ -522,19 +470,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -563,127 +515,118 @@ 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() @@ -691,15 +634,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -717,9 +661,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 @@ -738,8 +682,7 @@ 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); + com.google.logging.v2.ListLogEntriesRequest result = new com.google.logging.v2.ListLogEntriesRequest(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { resourceNames_ = resourceNames_.getUnmodifiableView(); @@ -758,39 +701,38 @@ public com.google.logging.v2.ListLogEntriesRequest 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.ListLogEntriesRequest) { - return mergeFrom((com.google.logging.v2.ListLogEntriesRequest) other); + return mergeFrom((com.google.logging.v2.ListLogEntriesRequest)other); } else { super.mergeFrom(other); return this; @@ -852,94 +794,77 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList resourceNames_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList resourceNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureResourceNamesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { resourceNames_ = new com.google.protobuf.LazyStringArrayList(resourceNames_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * 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]
-     *   organization/[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/[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.
      * 
* - * - * 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_.getUnmodifiableView(); } /** - * - * *
      * 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]
-     *   organization/[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/[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.
      * 
* - * - * 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:
-     *     "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]
-     *   organization/[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/[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.
      * 
* - * - * 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. */ @@ -947,155 +872,135 @@ 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:
-     *     "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]
-     *   organization/[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/[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.
      * 
* - * - * 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:
-     *     "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]
-     *   organization/[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/[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.
      * 
* - * - * 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) { + public Builder setResourceNames( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureResourceNamesIsMutable(); + throw new NullPointerException(); + } + ensureResourceNamesIsMutable(); resourceNames_.set(index, value); onChanged(); return this; } /** - * - * *
      * 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]
-     *   organization/[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/[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.
      * 
* - * - * 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) { + public Builder addResourceNames( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureResourceNamesIsMutable(); + throw new NullPointerException(); + } + ensureResourceNamesIsMutable(); resourceNames_.add(value); onChanged(); return this; } /** - * - * *
      * 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]
-     *   organization/[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/[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.
      * 
* - * - * 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_); onChanged(); return this; } /** - * - * *
      * 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]
-     *   organization/[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/[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.
      * 
* - * - * 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() { @@ -1105,35 +1010,31 @@ public Builder clearResourceNames() { return this; } /** - * - * *
      * 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]
-     *   organization/[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/[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.
      * 
* - * - * 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) { + public Builder addResourceNamesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureResourceNamesIsMutable(); resourceNames_.add(value); onChanged(); @@ -1142,8 +1043,6 @@ public Builder addResourceNamesBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. A filter that chooses which log entries to return.  See [Advanced
      * Logs Queries](https://cloud.google.com/logging/docs/view/advanced-queries).
@@ -1155,13 +1054,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; @@ -1170,8 +1069,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. A filter that chooses which log entries to return.  See [Advanced
      * Logs Queries](https://cloud.google.com/logging/docs/view/advanced-queries).
@@ -1183,14 +1080,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 { @@ -1198,8 +1096,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. A filter that chooses which log entries to return.  See [Advanced
      * Logs Queries](https://cloud.google.com/logging/docs/view/advanced-queries).
@@ -1211,22 +1107,20 @@ 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) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Optional. A filter that chooses which log entries to return.  See [Advanced
      * Logs Queries](https://cloud.google.com/logging/docs/view/advanced-queries).
@@ -1238,18 +1132,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Optional. A filter that chooses which log entries to return.  See [Advanced
      * Logs Queries](https://cloud.google.com/logging/docs/view/advanced-queries).
@@ -1261,16 +1152,16 @@ 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) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1278,8 +1169,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
@@ -1290,13 +1179,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; @@ -1305,8 +1194,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
@@ -1317,14 +1204,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 { @@ -1332,8 +1220,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
@@ -1344,22 +1230,20 @@ 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) { + public Builder setOrderBy( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** - * - * *
      * Optional. How the results should be sorted.  Presently, the only permitted
      * values are `"timestamp asc"` (default) and `"timestamp desc"`. The first
@@ -1370,18 +1254,15 @@ public Builder setOrderBy(java.lang.String value) {
      * 
* * string order_by = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** - * - * *
      * Optional. How the results should be sorted.  Presently, the only permitted
      * values are `"timestamp asc"` (default) and `"timestamp desc"`. The first
@@ -1392,34 +1273,31 @@ 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) { + public Builder setOrderByBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); 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 rejected. The presence of `next_page_token` in the
-     * response indicates that more results might be available.
+     * 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 rejected. The
+     * presence of `next_page_token` in the response indicates that more results
+     * might be available.
      * 
* * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -1427,42 +1305,36 @@ 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 rejected. The presence of `next_page_token` in the
-     * response indicates that more results might be available.
+     * 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 rejected. The
+     * presence of `next_page_token` in the response indicates that more results
+     * might be available.
      * 
* * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); 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 rejected. The presence of `next_page_token` in the
-     * response indicates that more results might be available.
+     * 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 rejected. The
+     * presence of `next_page_token` in the response indicates that more results
+     * might be available.
      * 
* * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -1470,8 +1342,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
@@ -1480,13 +1350,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; @@ -1495,8 +1365,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
@@ -1505,14 +1373,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 { @@ -1520,8 +1389,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
@@ -1530,22 +1397,20 @@ 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) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; 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
@@ -1554,18 +1419,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); 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
@@ -1574,23 +1436,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) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1600,12 +1462,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(); } @@ -1614,16 +1476,16 @@ 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 { - return new ListLogEntriesRequest(input, extensionRegistry); - } - }; + 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 { + return new ListLogEntriesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1638,4 +1500,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 55% 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 85e8e89b3..618722f59 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,134 +1,98 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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:
-   *     "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]
-   *   organization/[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/[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.
    * 
* - * - * 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:
-   *     "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]
-   *   organization/[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/[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.
    * 
* - * - * 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:
-   *     "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]
-   *   organization/[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/[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.
    * 
* - * - * 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:
-   *     "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]
-   *   organization/[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/[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.
    * 
* - * - * 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. A filter that chooses which log entries to return.  See [Advanced
    * Logs Queries](https://cloud.google.com/logging/docs/view/advanced-queries).
@@ -140,13 +104,10 @@ public interface ListLogEntriesRequestOrBuilder
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Optional. A filter that chooses which log entries to return.  See [Advanced
    * Logs Queries](https://cloud.google.com/logging/docs/view/advanced-queries).
@@ -158,14 +119,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
@@ -176,13 +135,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
@@ -193,30 +149,25 @@ 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 rejected. The presence of `next_page_token` in the
-   * response indicates that more results might be available.
+   * 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 rejected. The
+   * presence of `next_page_token` in the response indicates that more results
+   * might be available.
    * 
* * 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
@@ -225,13 +176,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
@@ -240,8 +188,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 78% 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 a10f63b56..27d095329 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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,15 +26,16 @@ private ListLogEntriesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListLogEntriesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListLogEntriesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,36 +55,35 @@ private ListLogEntriesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - entries_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - entries_.add( - input.readMessage(com.google.logging.v2.LogEntry.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + entries_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + entries_.add( + input.readMessage(com.google.logging.v2.LogEntry.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { entries_ = java.util.Collections.unmodifiableList(entries_); @@ -110,27 +92,22 @@ private ListLogEntriesResponse( makeExtensionsImmutable(); } } - - 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; 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
@@ -144,8 +121,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
@@ -155,13 +130,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
@@ -175,8 +148,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
@@ -190,8 +161,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
@@ -201,15 +170,14 @@ 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;
   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
@@ -223,7 +191,6 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index) {
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -232,15 +199,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
@@ -254,15 +220,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 { @@ -271,7 +238,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -283,7 +249,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)); } @@ -300,7 +267,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_); @@ -313,16 +281,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -345,127 +314,118 @@ 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() @@ -473,17 +433,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getEntriesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -499,9 +459,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 @@ -520,8 +480,7 @@ 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); int from_bitField0_ = bitField0_; if (entriesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -541,39 +500,38 @@ public com.google.logging.v2.ListLogEntriesResponse 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.ListLogEntriesResponse) { - return mergeFrom((com.google.logging.v2.ListLogEntriesResponse) other); + return mergeFrom((com.google.logging.v2.ListLogEntriesResponse)other); } else { super.mergeFrom(other); return this; @@ -600,10 +558,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_); } @@ -641,28 +598,21 @@ public Builder mergeFrom( } 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
@@ -679,8 +629,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
@@ -697,8 +645,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
@@ -715,8 +661,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
@@ -725,7 +669,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();
@@ -739,8 +684,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
@@ -749,7 +692,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());
@@ -760,8 +704,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
@@ -784,8 +726,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
@@ -794,7 +734,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();
@@ -808,8 +749,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
@@ -818,7 +757,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());
@@ -829,8 +769,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
@@ -839,7 +777,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());
@@ -850,8 +789,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
@@ -864,7 +801,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);
@@ -872,8 +810,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
@@ -893,8 +829,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
@@ -914,8 +848,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
@@ -924,12 +856,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
@@ -938,16 +869,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
@@ -956,8 +885,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 {
@@ -965,8 +894,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
@@ -976,12 +903,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
@@ -990,13 +915,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
@@ -1005,22 +929,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_;
@@ -1028,8 +950,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
@@ -1043,13 +963,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; @@ -1058,8 +978,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
@@ -1073,14 +991,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 { @@ -1088,8 +1007,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
@@ -1103,22 +1020,20 @@ 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) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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
@@ -1132,18 +1047,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); 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
@@ -1157,23 +1069,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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1183,12 +1095,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(); } @@ -1197,16 +1109,16 @@ 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 { - return new ListLogEntriesResponse(input, extensionRegistry); - } - }; + 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 { + return new ListLogEntriesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1221,4 +1133,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 22b524420..c520cd30b 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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
@@ -100,13 +75,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
@@ -120,8 +92,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 71% 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 c41736ad9..73d451122 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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,15 +26,16 @@ private ListLogMetricsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListLogMetricsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListLogMetricsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,73 +54,64 @@ private ListLogMetricsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 24: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; 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 @@ -146,32 +120,30 @@ 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 { @@ -182,8 +154,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; 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
@@ -192,7 +162,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -201,15 +170,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
@@ -218,15 +186,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 { @@ -237,8 +206,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; 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
@@ -246,7 +213,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -255,7 +221,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,7 +232,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_); } @@ -293,7 +259,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -303,17 +270,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -336,127 +305,118 @@ 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() @@ -464,15 +424,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -486,9 +447,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 @@ -507,8 +468,7 @@ 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); + com.google.logging.v2.ListLogMetricsRequest result = new com.google.logging.v2.ListLogMetricsRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -520,39 +480,38 @@ public com.google.logging.v2.ListLogMetricsRequest 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.ListLogMetricsRequest) { - return mergeFrom((com.google.logging.v2.ListLogMetricsRequest) other); + return mergeFrom((com.google.logging.v2.ListLogMetricsRequest)other); } else { super.mergeFrom(other); return this; @@ -603,23 +562,19 @@ public Builder mergeFrom( 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; @@ -628,24 +583,21 @@ 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 { @@ -653,70 +605,57 @@ 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -724,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
@@ -734,13 +671,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; @@ -749,8 +686,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
@@ -759,14 +694,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 { @@ -774,8 +710,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
@@ -784,22 +718,20 @@ 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) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; 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
@@ -808,18 +740,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); 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
@@ -828,25 +757,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) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); 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
@@ -854,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 @@ -862,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
@@ -871,19 +795,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -891,18 +812,17 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 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); } @@ -912,12 +832,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(); } @@ -926,16 +846,16 @@ 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 { - return new ListLogMetricsRequest(input, extensionRegistry); - } - }; + 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 { + return new ListLogMetricsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -950,4 +870,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 63% 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 7bc9456dc..1a370a1ff 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,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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
@@ -65,13 +38,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
@@ -80,14 +50,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
@@ -95,7 +63,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 74% 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 73f35f69f..6cdf31a57 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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,15 +26,16 @@ private ListLogMetricsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListLogMetricsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListLogMetricsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,36 +55,35 @@ private ListLogMetricsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - metrics_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - metrics_.add( - input.readMessage(com.google.logging.v2.LogMetric.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + metrics_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + metrics_.add( + input.readMessage(com.google.logging.v2.LogMetric.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { metrics_ = java.util.Collections.unmodifiableList(metrics_); @@ -110,27 +92,22 @@ private ListLogMetricsResponse( makeExtensionsImmutable(); } } - - 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; private java.util.List metrics_; /** - * - * *
    * A list of logs-based metrics.
    * 
@@ -142,8 +119,6 @@ public java.util.List getMetricsList() { return metrics_; } /** - * - * *
    * A list of logs-based metrics.
    * 
@@ -151,13 +126,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.
    * 
@@ -169,8 +142,6 @@ public int getMetricsCount() { return metrics_.size(); } /** - * - * *
    * A list of logs-based metrics.
    * 
@@ -182,8 +153,6 @@ public com.google.logging.v2.LogMetric getMetrics(int index) { return metrics_.get(index); } /** - * - * *
    * A list of logs-based metrics.
    * 
@@ -191,15 +160,14 @@ 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; 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
@@ -207,7 +175,6 @@ public com.google.logging.v2.LogMetricOrBuilder getMetricsOrBuilder(int index) {
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -216,15 +183,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
@@ -232,15 +198,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 { @@ -249,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < metrics_.size(); i++) { output.writeMessage(1, metrics_.get(i)); } @@ -278,7 +245,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_); @@ -291,16 +259,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -323,127 +292,118 @@ 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() @@ -451,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getMetricsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -477,9 +437,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 @@ -498,8 +458,7 @@ 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); int from_bitField0_ = bitField0_; if (metricsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -519,39 +478,38 @@ public com.google.logging.v2.ListLogMetricsResponse 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.ListLogMetricsResponse) { - return mergeFrom((com.google.logging.v2.ListLogMetricsResponse) other); + return mergeFrom((com.google.logging.v2.ListLogMetricsResponse)other); } else { super.mergeFrom(other); return this; @@ -578,10 +536,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_); } @@ -619,28 +576,21 @@ public Builder mergeFrom( } 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.
      * 
@@ -655,8 +605,6 @@ public java.util.List getMetricsList() { } } /** - * - * *
      * A list of logs-based metrics.
      * 
@@ -671,8 +619,6 @@ public int getMetricsCount() { } } /** - * - * *
      * A list of logs-based metrics.
      * 
@@ -687,15 +633,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(); @@ -709,15 +654,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()); @@ -728,8 +672,6 @@ public Builder setMetrics(int index, com.google.logging.v2.LogMetric.Builder bui return this; } /** - * - * *
      * A list of logs-based metrics.
      * 
@@ -750,15 +692,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(); @@ -772,15 +713,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()); @@ -791,15 +731,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()); @@ -810,8 +749,6 @@ public Builder addMetrics(int index, com.google.logging.v2.LogMetric.Builder bui return this; } /** - * - * *
      * A list of logs-based metrics.
      * 
@@ -822,7 +759,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); @@ -830,8 +768,6 @@ public Builder addAllMetrics( return this; } /** - * - * *
      * A list of logs-based metrics.
      * 
@@ -849,8 +785,6 @@ public Builder clearMetrics() { return this; } /** - * - * *
      * A list of logs-based metrics.
      * 
@@ -868,44 +802,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 { @@ -913,8 +842,6 @@ public com.google.logging.v2.LogMetricOrBuilder getMetricsOrBuilder(int index) { } } /** - * - * *
      * A list of logs-based metrics.
      * 
@@ -922,47 +849,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_; @@ -970,8 +892,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
@@ -979,13 +899,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; @@ -994,8 +914,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
@@ -1003,14 +921,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 { @@ -1018,8 +937,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
@@ -1027,22 +944,20 @@ 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) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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
@@ -1050,18 +965,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); 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
@@ -1069,23 +981,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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1095,12 +1007,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(); } @@ -1109,16 +1021,16 @@ 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 { - return new ListLogMetricsResponse(input, extensionRegistry); - } - }; + 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 { + return new ListLogMetricsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1133,4 +1045,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 666ff3467..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 59% 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 652a8eae3..06e04a1c0 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,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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_ = ""; pageToken_ = ""; @@ -45,15 +27,16 @@ private ListLogsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListLogsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListLogsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,48 +56,46 @@ private ListLogsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - resourceNames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - resourceNames_.add(s); - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + resourceNames_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + resourceNames_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { resourceNames_ = resourceNames_.getUnmodifiableView(); @@ -123,39 +104,31 @@ private ListLogsRequest( makeExtensionsImmutable(); } } - - 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; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The resource name that owns the logs:
-   *     "projects/[PROJECT_ID]"
-   *     "organizations/[ORGANIZATION_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-   *     "folders/[FOLDER_ID]"
+   * *  `projects/[PROJECT_ID]`
+   * *  `organizations/[ORGANIZATION_ID]`
+   * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+   * *  `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 @@ -164,35 +137,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 resource name that owns the logs:
-   *     "projects/[PROJECT_ID]"
-   *     "organizations/[ORGANIZATION_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-   *     "folders/[FOLDER_ID]"
+   * *  `projects/[PROJECT_ID]`
+   * *  `organizations/[ORGANIZATION_ID]`
+   * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+   * *  `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 { @@ -203,8 +174,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; 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
@@ -212,7 +181,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -223,8 +191,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; 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
@@ -233,7 +199,6 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -242,15 +207,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
@@ -259,15 +223,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 { @@ -278,69 +243,61 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int RESOURCE_NAMES_FIELD_NUMBER = 8; private com.google.protobuf.LazyStringList resourceNames_; /** - * - * *
    * Optional. The resource name that owns the logs:
-   *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   organization/[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/[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]`
    * To support legacy queries, it could also be:
-   *     "projects/[PROJECT_ID]"
-   *     "organizations/[ORGANIZATION_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-   *     "folders/[FOLDER_ID]"
+   * *  `projects/[PROJECT_ID]`
+   * *  `organizations/[ORGANIZATION_ID]`
+   * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+   * *  `folders/[FOLDER_ID]`
    * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * 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. The resource name that owns the logs:
-   *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   organization/[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/[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]`
    * To support legacy queries, it could also be:
-   *     "projects/[PROJECT_ID]"
-   *     "organizations/[ORGANIZATION_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-   *     "folders/[FOLDER_ID]"
+   * *  `projects/[PROJECT_ID]`
+   * *  `organizations/[ORGANIZATION_ID]`
+   * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+   * *  `folders/[FOLDER_ID]`
    * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * 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. The resource name that owns the logs:
-   *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   organization/[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/[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]`
    * To support legacy queries, it could also be:
-   *     "projects/[PROJECT_ID]"
-   *     "organizations/[ORGANIZATION_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-   *     "folders/[FOLDER_ID]"
+   * *  `projects/[PROJECT_ID]`
+   * *  `organizations/[ORGANIZATION_ID]`
+   * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+   * *  `folders/[FOLDER_ID]`
    * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * 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. */ @@ -348,32 +305,29 @@ public java.lang.String getResourceNames(int index) { return resourceNames_.get(index); } /** - * - * *
    * Optional. The resource name that owns the logs:
-   *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   organization/[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/[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]`
    * To support legacy queries, it could also be:
-   *     "projects/[PROJECT_ID]"
-   *     "organizations/[ORGANIZATION_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-   *     "folders/[FOLDER_ID]"
+   * *  `projects/[PROJECT_ID]`
+   * *  `organizations/[ORGANIZATION_ID]`
+   * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+   * *  `folders/[FOLDER_ID]`
    * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * 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); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -385,7 +339,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_); } @@ -411,7 +366,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_); @@ -432,17 +388,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 (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getResourceNamesList().equals(other.getResourceNamesList())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (!getResourceNamesList() + .equals(other.getResourceNamesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -469,126 +429,118 @@ 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() @@ -596,15 +548,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -620,9 +573,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_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 @@ -641,8 +594,7 @@ 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); + com.google.logging.v2.ListLogsRequest result = new com.google.logging.v2.ListLogsRequest(this); int from_bitField0_ = bitField0_; result.parent_ = parent_; result.pageSize_ = pageSize_; @@ -660,39 +612,38 @@ public com.google.logging.v2.ListLogsRequest 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.ListLogsRequest) { - return mergeFrom((com.google.logging.v2.ListLogsRequest) other); + return mergeFrom((com.google.logging.v2.ListLogsRequest)other); } else { super.mergeFrom(other); return this; @@ -750,31 +701,26 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The resource name that owns the logs:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
+     * *  `projects/[PROJECT_ID]`
+     * *  `organizations/[ORGANIZATION_ID]`
+     * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+     * *  `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; @@ -783,27 +729,24 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource name that owns the logs:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
+     * *  `projects/[PROJECT_ID]`
+     * *  `organizations/[ORGANIZATION_ID]`
+     * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+     * *  `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 { @@ -811,88 +754,73 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource name that owns the logs:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
+     * *  `projects/[PROJECT_ID]`
+     * *  `organizations/[ORGANIZATION_ID]`
+     * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+     * *  `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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name that owns the logs:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
+     * *  `projects/[PROJECT_ID]`
+     * *  `organizations/[ORGANIZATION_ID]`
+     * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+     * *  `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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The resource name that owns the logs:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
+     * *  `projects/[PROJECT_ID]`
+     * *  `organizations/[ORGANIZATION_ID]`
+     * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+     * *  `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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); 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
@@ -900,7 +828,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -908,8 +835,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
@@ -917,19 +842,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored.  The presence of `nextPageToken` in the
@@ -937,11 +859,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -949,8 +870,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
@@ -959,13 +878,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; @@ -974,8 +893,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
@@ -984,14 +901,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 { @@ -999,8 +917,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
@@ -1009,22 +925,20 @@ 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) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; 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
@@ -1033,18 +947,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); 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
@@ -1053,94 +964,84 @@ 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) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList resourceNames_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList resourceNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureResourceNamesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { resourceNames_ = new com.google.protobuf.LazyStringArrayList(resourceNames_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Optional. The resource name that owns the logs:
-     *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   organization/[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/[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]`
      * To support legacy queries, it could also be:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
+     * *  `projects/[PROJECT_ID]`
+     * *  `organizations/[ORGANIZATION_ID]`
+     * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+     * *  `folders/[FOLDER_ID]`
      * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * 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_.getUnmodifiableView(); } /** - * - * *
      * Optional. The resource name that owns the logs:
-     *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   organization/[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/[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]`
      * To support legacy queries, it could also be:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
+     * *  `projects/[PROJECT_ID]`
+     * *  `organizations/[ORGANIZATION_ID]`
+     * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+     * *  `folders/[FOLDER_ID]`
      * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * 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. The resource name that owns the logs:
-     *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   organization/[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/[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]`
      * To support legacy queries, it could also be:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
+     * *  `projects/[PROJECT_ID]`
+     * *  `organizations/[ORGANIZATION_ID]`
+     * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+     * *  `folders/[FOLDER_ID]`
      * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * 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. */ @@ -1148,135 +1049,125 @@ public java.lang.String getResourceNames(int index) { return resourceNames_.get(index); } /** - * - * *
      * Optional. The resource name that owns the logs:
-     *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   organization/[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/[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]`
      * To support legacy queries, it could also be:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
+     * *  `projects/[PROJECT_ID]`
+     * *  `organizations/[ORGANIZATION_ID]`
+     * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+     * *  `folders/[FOLDER_ID]`
      * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * 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. The resource name that owns the logs:
-     *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   organization/[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/[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]`
      * To support legacy queries, it could also be:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
+     * *  `projects/[PROJECT_ID]`
+     * *  `organizations/[ORGANIZATION_ID]`
+     * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+     * *  `folders/[FOLDER_ID]`
      * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * 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) { + public Builder setResourceNames( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureResourceNamesIsMutable(); + throw new NullPointerException(); + } + ensureResourceNamesIsMutable(); resourceNames_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. The resource name that owns the logs:
-     *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   organization/[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/[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]`
      * To support legacy queries, it could also be:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
+     * *  `projects/[PROJECT_ID]`
+     * *  `organizations/[ORGANIZATION_ID]`
+     * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+     * *  `folders/[FOLDER_ID]`
      * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * 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) { + public Builder addResourceNames( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureResourceNamesIsMutable(); + throw new NullPointerException(); + } + ensureResourceNamesIsMutable(); resourceNames_.add(value); onChanged(); return this; } /** - * - * *
      * Optional. The resource name that owns the logs:
-     *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   organization/[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/[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]`
      * To support legacy queries, it could also be:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
+     * *  `projects/[PROJECT_ID]`
+     * *  `organizations/[ORGANIZATION_ID]`
+     * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+     * *  `folders/[FOLDER_ID]`
      * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * 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_); onChanged(); return this; } /** - * - * *
      * Optional. The resource name that owns the logs:
-     *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   organization/[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/[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]`
      * To support legacy queries, it could also be:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
+     * *  `projects/[PROJECT_ID]`
+     * *  `organizations/[ORGANIZATION_ID]`
+     * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+     * *  `folders/[FOLDER_ID]`
      * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearResourceNames() { @@ -1286,39 +1177,37 @@ public Builder clearResourceNames() { return this; } /** - * - * *
      * Optional. The resource name that owns the logs:
-     *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   organization/[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/[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]`
      * To support legacy queries, it could also be:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
+     * *  `projects/[PROJECT_ID]`
+     * *  `organizations/[ORGANIZATION_ID]`
+     * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+     * *  `folders/[FOLDER_ID]`
      * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL]; - * + * 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) { + public Builder addResourceNamesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureResourceNamesIsMutable(); resourceNames_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1328,12 +1217,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(); } @@ -1342,16 +1231,16 @@ 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 { - return new ListLogsRequest(input, extensionRegistry); - } - }; + 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 { + return new ListLogsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1366,4 +1255,6 @@ 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/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequestOrBuilder.java new file mode 100644 index 000000000..e2c58392a --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequestOrBuilder.java @@ -0,0 +1,152 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/v2/logging.proto + +package com.google.logging.v2; + +public interface ListLogsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.logging.v2.ListLogsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name that owns the logs:
+   * *  `projects/[PROJECT_ID]`
+   * *  `organizations/[ORGANIZATION_ID]`
+   * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+   * *  `folders/[FOLDER_ID]`
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. The resource name that owns the logs:
+   * *  `projects/[PROJECT_ID]`
+   * *  `organizations/[ORGANIZATION_ID]`
+   * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+   * *  `folders/[FOLDER_ID]`
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Optional. The maximum number of results to return from this request.
+   * Non-positive values are ignored.  The presence of `nextPageToken` in the
+   * response indicates that more results might be available.
+   * 
+ * + * 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
+   * `nextPageToken` from the previous response.  The values of other method
+   * parameters should be identical to those in the previous call.
+   * 
+ * + * 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
+   * `nextPageToken` from the previous response.  The values of other method
+   * parameters should be identical to those in the previous call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString + getPageTokenBytes(); + + /** + *
+   * Optional. The resource name that owns the logs:
+   *  * `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]`
+   * To support legacy queries, it could also be:
+   * *  `projects/[PROJECT_ID]`
+   * *  `organizations/[ORGANIZATION_ID]`
+   * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+   * *  `folders/[FOLDER_ID]`
+   * 
+ * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * @return A list containing the resourceNames. + */ + java.util.List + getResourceNamesList(); + /** + *
+   * Optional. The resource name that owns the logs:
+   *  * `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]`
+   * To support legacy queries, it could also be:
+   * *  `projects/[PROJECT_ID]`
+   * *  `organizations/[ORGANIZATION_ID]`
+   * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+   * *  `folders/[FOLDER_ID]`
+   * 
+ * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * @return The count of resourceNames. + */ + int getResourceNamesCount(); + /** + *
+   * Optional. The resource name that owns the logs:
+   *  * `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]`
+   * To support legacy queries, it could also be:
+   * *  `projects/[PROJECT_ID]`
+   * *  `organizations/[ORGANIZATION_ID]`
+   * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+   * *  `folders/[FOLDER_ID]`
+   * 
+ * + * 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. The resource name that owns the logs:
+   *  * `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]`
+   * To support legacy queries, it could also be:
+   * *  `projects/[PROJECT_ID]`
+   * *  `organizations/[ORGANIZATION_ID]`
+   * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+   * *  `folders/[FOLDER_ID]`
+   * 
+ * + * 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); +} 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 74% 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 1bec6134c..d0754742c 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,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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.EMPTY; nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListLogsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListLogsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListLogsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,36 +55,35 @@ private ListLogsResponse( case 0: done = true; break; - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - logNames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - logNames_.add(s); - break; + nextPageToken_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + logNames_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + logNames_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { logNames_ = logNames_.getUnmodifiableView(); @@ -110,27 +92,22 @@ private ListLogsResponse( makeExtensionsImmutable(); } } - - 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; private com.google.protobuf.LazyStringList logNames_; /** - * - * *
    * A list of log names. For example,
    * `"projects/my-project/logs/syslog"` or
@@ -138,15 +115,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
@@ -154,15 +129,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
@@ -170,7 +142,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. */ @@ -178,8 +149,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
@@ -187,19 +156,17 @@ 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; 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
@@ -207,7 +174,6 @@ public com.google.protobuf.ByteString getLogNamesBytes(int index) {
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -216,15 +182,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
@@ -232,15 +197,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 { @@ -249,7 +215,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,7 +226,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_); } @@ -296,15 +262,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -327,127 +295,118 @@ 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() @@ -455,15 +414,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -475,9 +435,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_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 @@ -496,8 +456,7 @@ 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); + com.google.logging.v2.ListLogsResponse result = new com.google.logging.v2.ListLogsResponse(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { logNames_ = logNames_.getUnmodifiableView(); @@ -513,39 +472,38 @@ public com.google.logging.v2.ListLogsResponse 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.ListLogsResponse) { - return mergeFrom((com.google.logging.v2.ListLogsResponse) other); + return mergeFrom((com.google.logging.v2.ListLogsResponse)other); } else { super.mergeFrom(other); return this; @@ -596,21 +554,16 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList logNames_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList logNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureLogNamesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { logNames_ = new com.google.protobuf.LazyStringArrayList(logNames_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * A list of log names. For example,
      * `"projects/my-project/logs/syslog"` or
@@ -618,15 +571,13 @@ 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() { return logNames_.getUnmodifiableView(); } /** - * - * *
      * A list of log names. For example,
      * `"projects/my-project/logs/syslog"` or
@@ -634,15 +585,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
@@ -650,7 +598,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. */ @@ -658,8 +605,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
@@ -667,16 +612,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
@@ -684,23 +627,21 @@ 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) { + public Builder setLogNames( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLogNamesIsMutable(); + throw new NullPointerException(); + } + ensureLogNamesIsMutable(); logNames_.set(index, value); onChanged(); return this; } /** - * - * *
      * A list of log names. For example,
      * `"projects/my-project/logs/syslog"` or
@@ -708,22 +649,20 @@ 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) { + public Builder addLogNames( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLogNamesIsMutable(); + throw new NullPointerException(); + } + ensureLogNamesIsMutable(); logNames_.add(value); onChanged(); return this; } /** - * - * *
      * A list of log names. For example,
      * `"projects/my-project/logs/syslog"` or
@@ -731,19 +670,18 @@ 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_); onChanged(); return this; } /** - * - * *
      * A list of log names. For example,
      * `"projects/my-project/logs/syslog"` or
@@ -751,7 +689,6 @@ public Builder addAllLogNames(java.lang.Iterable values) {
      * 
* * repeated string log_names = 3; - * * @return This builder for chaining. */ public Builder clearLogNames() { @@ -761,8 +698,6 @@ public Builder clearLogNames() { return this; } /** - * - * *
      * A list of log names. For example,
      * `"projects/my-project/logs/syslog"` or
@@ -770,15 +705,15 @@ 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) { + public Builder addLogNamesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureLogNamesIsMutable(); logNames_.add(value); onChanged(); @@ -787,8 +722,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
@@ -796,13 +729,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; @@ -811,8 +744,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
@@ -820,14 +751,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 { @@ -835,8 +767,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
@@ -844,22 +774,20 @@ 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) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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
@@ -867,18 +795,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); 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
@@ -886,23 +811,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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -912,12 +837,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(); } @@ -926,16 +851,16 @@ 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 { - return new ListLogsResponse(input, extensionRegistry); - } - }; + 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 { + return new ListLogsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -950,4 +875,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 881527c08..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 71% 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 906300070..58affcf0b 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,59 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListMonitoredResourceDescriptorsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,57 +53,52 @@ private ListMonitoredResourceDescriptorsRequest( case 0: done = true; break; - case 8: - { - pageSize_ = input.readInt32(); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + case 8: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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_; /** - * - * *
    * Optional. The maximum number of results to return from this request.
    * Non-positive values are ignored.  The presence of `nextPageToken` in the
@@ -130,7 +106,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 @@ -141,8 +116,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; 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 +124,6 @@ public int getPageSize() {
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -160,15 +132,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 +148,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 { @@ -194,7 +166,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -206,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 (pageSize_ != 0) { output.writeInt32(1, pageSize_); } @@ -223,7 +195,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_); @@ -236,16 +209,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -267,127 +241,117 @@ 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() @@ -395,15 +359,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -415,14 +380,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(); } @@ -437,8 +401,7 @@ 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); + com.google.logging.v2.ListMonitoredResourceDescriptorsRequest result = new com.google.logging.v2.ListMonitoredResourceDescriptorsRequest(this); result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; onBuilt(); @@ -449,39 +412,38 @@ public com.google.logging.v2.ListMonitoredResourceDescriptorsRequest buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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; @@ -489,9 +451,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()); } @@ -518,9 +478,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.logging.v2.ListMonitoredResourceDescriptorsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.logging.v2.ListMonitoredResourceDescriptorsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -530,10 +488,8 @@ public Builder mergeFrom( 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
@@ -541,7 +497,6 @@ public Builder mergeFrom(
      * 
* * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -549,8 +504,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
@@ -558,19 +511,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored.  The presence of `nextPageToken` in the
@@ -578,11 +528,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -590,8 +539,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
@@ -600,13 +547,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; @@ -615,8 +562,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
@@ -625,14 +570,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 { @@ -640,8 +586,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
@@ -650,22 +594,20 @@ 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) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; 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
@@ -674,18 +616,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); 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
@@ -694,23 +633,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) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -720,13 +659,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(); } @@ -735,16 +673,16 @@ 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 { - return new ListMonitoredResourceDescriptorsRequest(input, extensionRegistry); - } - }; + 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 { + return new ListMonitoredResourceDescriptorsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -759,4 +697,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 193bf02e2..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 74% 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 8724aba3a..c65445cec 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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,15 +26,16 @@ private ListMonitoredResourceDescriptorsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListMonitoredResourceDescriptorsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListMonitoredResourceDescriptorsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -74,38 +55,35 @@ private ListMonitoredResourceDescriptorsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - resourceDescriptors_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - resourceDescriptors_.add( - input.readMessage( - com.google.api.MonitoredResourceDescriptor.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + resourceDescriptors_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + resourceDescriptors_.add( + input.readMessage(com.google.api.MonitoredResourceDescriptor.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { resourceDescriptors_ = java.util.Collections.unmodifiableList(resourceDescriptors_); @@ -114,27 +92,22 @@ private ListMonitoredResourceDescriptorsResponse( makeExtensionsImmutable(); } } - - 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; private java.util.List resourceDescriptors_; /** - * - * *
    * A list of resource descriptors.
    * 
@@ -146,8 +119,6 @@ public java.util.List getResourceDes return resourceDescriptors_; } /** - * - * *
    * A list of resource descriptors.
    * 
@@ -155,13 +126,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.
    * 
@@ -173,8 +142,6 @@ public int getResourceDescriptorsCount() { return resourceDescriptors_.size(); } /** - * - * *
    * A list of resource descriptors.
    * 
@@ -186,8 +153,6 @@ public com.google.api.MonitoredResourceDescriptor getResourceDescriptors(int ind return resourceDescriptors_.get(index); } /** - * - * *
    * A list of resource descriptors.
    * 
@@ -203,8 +168,6 @@ public com.google.api.MonitoredResourceDescriptorOrBuilder getResourceDescriptor public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; 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
@@ -212,7 +175,6 @@ public com.google.api.MonitoredResourceDescriptorOrBuilder getResourceDescriptor
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -221,15 +183,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
@@ -237,15 +198,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 { @@ -254,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -266,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < resourceDescriptors_.size(); i++) { output.writeMessage(1, resourceDescriptors_.get(i)); } @@ -283,8 +245,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_); @@ -297,16 +259,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -330,127 +293,117 @@ 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() @@ -458,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getResourceDescriptorsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -484,14 +437,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(); } @@ -506,8 +458,7 @@ 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); int from_bitField0_ = bitField0_; if (resourceDescriptorsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -527,39 +478,38 @@ public com.google.logging.v2.ListMonitoredResourceDescriptorsResponse buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.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; @@ -567,9 +517,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()) { @@ -588,10 +536,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_); } @@ -620,9 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.logging.v2.ListMonitoredResourceDescriptorsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.logging.v2.ListMonitoredResourceDescriptorsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -631,30 +576,21 @@ public Builder mergeFrom( } 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.
      * 
@@ -669,8 +605,6 @@ public java.util.List getResourceDes } } /** - * - * *
      * A list of resource descriptors.
      * 
@@ -685,8 +619,6 @@ public int getResourceDescriptorsCount() { } } /** - * - * *
      * A list of resource descriptors.
      * 
@@ -701,8 +633,6 @@ public com.google.api.MonitoredResourceDescriptor getResourceDescriptors(int ind } } /** - * - * *
      * A list of resource descriptors.
      * 
@@ -724,8 +654,6 @@ public Builder setResourceDescriptors( return this; } /** - * - * *
      * A list of resource descriptors.
      * 
@@ -744,8 +672,6 @@ public Builder setResourceDescriptors( return this; } /** - * - * *
      * A list of resource descriptors.
      * 
@@ -766,8 +692,6 @@ public Builder addResourceDescriptors(com.google.api.MonitoredResourceDescriptor return this; } /** - * - * *
      * A list of resource descriptors.
      * 
@@ -789,8 +713,6 @@ public Builder addResourceDescriptors( return this; } /** - * - * *
      * A list of resource descriptors.
      * 
@@ -809,8 +731,6 @@ public Builder addResourceDescriptors( return this; } /** - * - * *
      * A list of resource descriptors.
      * 
@@ -829,8 +749,6 @@ public Builder addResourceDescriptors( return this; } /** - * - * *
      * A list of resource descriptors.
      * 
@@ -841,7 +759,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); @@ -849,8 +768,6 @@ public Builder addAllResourceDescriptors( return this; } /** - * - * *
      * A list of resource descriptors.
      * 
@@ -868,8 +785,6 @@ public Builder clearResourceDescriptors() { return this; } /** - * - * *
      * A list of resource descriptors.
      * 
@@ -887,8 +802,6 @@ public Builder removeResourceDescriptors(int index) { return this; } /** - * - * *
      * A list of resource descriptors.
      * 
@@ -900,8 +813,6 @@ public com.google.api.MonitoredResourceDescriptor.Builder getResourceDescriptors return getResourceDescriptorsFieldBuilder().getBuilder(index); } /** - * - * *
      * A list of resource descriptors.
      * 
@@ -911,22 +822,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 { @@ -934,8 +842,6 @@ public com.google.api.MonitoredResourceDescriptorOrBuilder getResourceDescriptor } } /** - * - * *
      * A list of resource descriptors.
      * 
@@ -943,12 +849,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.
      * 
@@ -957,34 +861,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(), @@ -996,8 +892,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
@@ -1005,13 +899,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; @@ -1020,8 +914,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
@@ -1029,14 +921,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 { @@ -1044,8 +937,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
@@ -1053,22 +944,20 @@ 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) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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
@@ -1076,18 +965,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); 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
@@ -1095,23 +981,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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1121,32 +1007,30 @@ 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 { - return new ListMonitoredResourceDescriptorsResponse(input, extensionRegistry); - } - }; + 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 { + return new ListMonitoredResourceDescriptorsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1158,8 +1042,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 f28ba92c4..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 72% 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 3c4387ce3..a1123673d 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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,15 +26,16 @@ private ListSinksRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSinksRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListSinksRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,64 +54,58 @@ private ListSinksRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 24: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource whose sinks are to be listed:
    *     "projects/[PROJECT_ID]"
@@ -137,10 +114,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 @@ -149,15 +123,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:
    *     "projects/[PROJECT_ID]"
@@ -166,18 +139,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 { @@ -188,8 +160,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; 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
@@ -198,7 +168,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -207,15 +176,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
@@ -224,15 +192,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 { @@ -243,8 +212,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; 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
@@ -252,7 +219,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -261,7 +227,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -273,7 +238,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_); } @@ -299,7 +265,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -309,16 +276,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -341,127 +311,118 @@ 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() @@ -469,15 +430,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -491,9 +453,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 @@ -512,8 +474,7 @@ 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); + com.google.logging.v2.ListSinksRequest result = new com.google.logging.v2.ListSinksRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -525,39 +486,38 @@ public com.google.logging.v2.ListSinksRequest 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.ListSinksRequest) { - return mergeFrom((com.google.logging.v2.ListSinksRequest) other); + return mergeFrom((com.google.logging.v2.ListSinksRequest)other); } else { super.mergeFrom(other); return this; @@ -608,8 +568,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource whose sinks are to be listed:
      *     "projects/[PROJECT_ID]"
@@ -618,16 +576,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; @@ -636,8 +592,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource whose sinks are to be listed:
      *     "projects/[PROJECT_ID]"
@@ -646,17 +600,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 { @@ -664,8 +617,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource whose sinks are to be listed:
      *     "projects/[PROJECT_ID]"
@@ -674,25 +625,21 @@ 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource whose sinks are to be listed:
      *     "projects/[PROJECT_ID]"
@@ -701,21 +648,16 @@ 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource whose sinks are to be listed:
      *     "projects/[PROJECT_ID]"
@@ -724,19 +666,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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -744,8 +684,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
@@ -754,13 +692,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; @@ -769,8 +707,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
@@ -779,14 +715,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 { @@ -794,8 +731,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
@@ -804,22 +739,20 @@ 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) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; 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
@@ -828,18 +761,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); 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
@@ -848,25 +778,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) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); 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
@@ -874,7 +802,6 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -882,8 +809,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
@@ -891,19 +816,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -911,18 +833,17 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 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); } @@ -932,12 +853,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(); } @@ -946,16 +867,16 @@ 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 { - return new ListSinksRequest(input, extensionRegistry); - } - }; + 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 { + return new ListSinksRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -970,4 +891,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 d59e4ff79..ccc0df21e 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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:
    *     "projects/[PROJECT_ID]"
@@ -34,16 +16,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:
    *     "projects/[PROJECT_ID]"
@@ -52,17 +29,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
@@ -71,13 +44,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
@@ -86,14 +56,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
@@ -101,7 +69,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 73% 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 2bf45760a..00e575219 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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,15 +26,16 @@ private ListSinksResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListSinksResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListSinksResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,36 +55,35 @@ private ListSinksResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - sinks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - sinks_.add( - input.readMessage(com.google.logging.v2.LogSink.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + sinks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + sinks_.add( + input.readMessage(com.google.logging.v2.LogSink.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { sinks_ = java.util.Collections.unmodifiableList(sinks_); @@ -110,27 +92,22 @@ private ListSinksResponse( makeExtensionsImmutable(); } } - - 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; private java.util.List sinks_; /** - * - * *
    * A list of sinks.
    * 
@@ -142,8 +119,6 @@ public java.util.List getSinksList() { return sinks_; } /** - * - * *
    * A list of sinks.
    * 
@@ -151,12 +126,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.
    * 
@@ -168,8 +142,6 @@ public int getSinksCount() { return sinks_.size(); } /** - * - * *
    * A list of sinks.
    * 
@@ -181,8 +153,6 @@ public com.google.logging.v2.LogSink getSinks(int index) { return sinks_.get(index); } /** - * - * *
    * A list of sinks.
    * 
@@ -190,15 +160,14 @@ 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; 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
@@ -206,7 +175,6 @@ public com.google.logging.v2.LogSinkOrBuilder getSinksOrBuilder(int index) {
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -215,15 +183,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
@@ -231,15 +198,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 { @@ -248,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -260,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < sinks_.size(); i++) { output.writeMessage(1, sinks_.get(i)); } @@ -277,7 +245,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_); @@ -290,15 +259,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -321,127 +292,118 @@ 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() @@ -449,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getSinksFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -475,9 +437,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 @@ -496,8 +458,7 @@ 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); int from_bitField0_ = bitField0_; if (sinksBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -517,39 +478,38 @@ public com.google.logging.v2.ListSinksResponse 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.ListSinksResponse) { - return mergeFrom((com.google.logging.v2.ListSinksResponse) other); + return mergeFrom((com.google.logging.v2.ListSinksResponse)other); } else { super.mergeFrom(other); return this; @@ -576,10 +536,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_); } @@ -617,28 +576,21 @@ public Builder mergeFrom( } 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.
      * 
@@ -653,8 +605,6 @@ public java.util.List getSinksList() { } } /** - * - * *
      * A list of sinks.
      * 
@@ -669,8 +619,6 @@ public int getSinksCount() { } } /** - * - * *
      * A list of sinks.
      * 
@@ -685,15 +633,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(); @@ -707,15 +654,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()); @@ -726,8 +672,6 @@ public Builder setSinks(int index, com.google.logging.v2.LogSink.Builder builder return this; } /** - * - * *
      * A list of sinks.
      * 
@@ -748,15 +692,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(); @@ -770,15 +713,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()); @@ -789,15 +731,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()); @@ -808,18 +749,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); @@ -827,8 +768,6 @@ public Builder addAllSinks(java.lang.Iterable * A list of sinks. *
@@ -846,8 +785,6 @@ public Builder clearSinks() { return this; } /** - * - * *
      * A list of sinks.
      * 
@@ -865,44 +802,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 { @@ -910,8 +842,6 @@ public com.google.logging.v2.LogSinkOrBuilder getSinksOrBuilder(int index) { } } /** - * - * *
      * A list of sinks.
      * 
@@ -919,46 +849,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_; @@ -966,8 +892,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
@@ -975,13 +899,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; @@ -990,8 +914,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
@@ -999,14 +921,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 { @@ -1014,8 +937,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
@@ -1023,22 +944,20 @@ 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) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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
@@ -1046,18 +965,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); 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
@@ -1065,23 +981,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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1091,12 +1007,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(); } @@ -1105,16 +1021,16 @@ 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 { - return new ListSinksResponse(input, extensionRegistry); - } - }; + 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 { + return new ListSinksResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1129,4 +1045,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 1625fce0e..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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 69% 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 b22c10571..7c6d0345b 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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,15 +26,16 @@ private ListViewsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListViewsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListViewsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,71 +54,64 @@ private ListViewsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageToken_ = s; + break; + } + case 24: { + + pageSize_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The bucket whose views are to be listed:
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ @java.lang.Override @@ -144,30 +120,30 @@ 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:
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
    * 
* * 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 { @@ -178,17 +154,14 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; 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
-   * `nextPageToken` from the previous response. The values of other method
-   * parameters should be identical to those in the previous call.
+   * Optional. If present, then retrieve the next batch of results from the preceding call
+   * to this method. `pageToken` must be the value of `nextPageToken` from the
+   * previous response. The values of other method parameters should be
+   * identical to those in the previous call.
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -197,32 +170,32 @@ 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
-   * `nextPageToken` from the previous response. The values of other method
-   * parameters should be identical to those in the previous call.
+   * Optional. If present, then retrieve the next batch of results from the preceding call
+   * to this method. `pageToken` must be the value of `nextPageToken` from the
+   * previous response. The values of other method parameters should be
+   * identical to those in the previous call.
    * 
* * 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 { @@ -233,8 +206,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; 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
@@ -242,7 +213,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -251,7 +221,6 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,7 +232,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_); } @@ -289,7 +259,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -299,16 +270,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -331,127 +305,118 @@ 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() @@ -459,15 +424,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -481,9 +447,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 @@ -502,8 +468,7 @@ 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); + com.google.logging.v2.ListViewsRequest result = new com.google.logging.v2.ListViewsRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -515,39 +480,38 @@ public com.google.logging.v2.ListViewsRequest 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.ListViewsRequest) { - return mergeFrom((com.google.logging.v2.ListViewsRequest) other); + return mergeFrom((com.google.logging.v2.ListViewsRequest)other); } else { super.mergeFrom(other); return this; @@ -598,21 +562,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The bucket whose views are to be listed:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -621,22 +583,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The bucket whose views are to be listed:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
      * 
* * 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 { @@ -644,64 +605,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The bucket whose views are to be listed:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
      * 
* * 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) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The bucket whose views are to be listed:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The bucket whose views are to be listed:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
      * 
* * 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) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -709,23 +663,21 @@ 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
-     * `nextPageToken` from the previous response. The values of other method
-     * parameters should be identical to those in the previous call.
+     * Optional. If present, then retrieve the next batch of results from the preceding call
+     * to this method. `pageToken` must be the value of `nextPageToken` from the
+     * previous response. The values of other method parameters should be
+     * identical to those in the previous call.
      * 
* * 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; @@ -734,24 +686,23 @@ 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
-     * `nextPageToken` from the previous response. The values of other method
-     * parameters should be identical to those in the previous call.
+     * Optional. If present, then retrieve the next batch of results from the preceding call
+     * to this method. `pageToken` must be the value of `nextPageToken` from the
+     * previous response. The values of other method parameters should be
+     * identical to those in the previous call.
      * 
* * 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 { @@ -759,79 +710,70 @@ 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
-     * `nextPageToken` from the previous response. The values of other method
-     * parameters should be identical to those in the previous call.
+     * Optional. If present, then retrieve the next batch of results from the preceding call
+     * to this method. `pageToken` must be the value of `nextPageToken` from the
+     * previous response. The values of other method parameters should be
+     * identical to those in the previous call.
      * 
* * 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) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; 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
-     * `nextPageToken` from the previous response. The values of other method
-     * parameters should be identical to those in the previous call.
+     * Optional. If present, then retrieve the next batch of results from the preceding call
+     * to this method. `pageToken` must be the value of `nextPageToken` from the
+     * previous response. The values of other method parameters should be
+     * identical to those in the previous call.
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); 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
-     * `nextPageToken` from the previous response. The values of other method
-     * parameters should be identical to those in the previous call.
+     * Optional. If present, then retrieve the next batch of results from the preceding call
+     * to this method. `pageToken` must be the value of `nextPageToken` from the
+     * previous response. The values of other method parameters should be
+     * identical to those in the previous call.
      * 
* * 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) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); 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
@@ -839,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 @@ -847,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
@@ -856,19 +795,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -876,18 +812,17 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 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); } @@ -897,12 +832,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(); } @@ -911,16 +846,16 @@ 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 { - return new ListViewsRequest(input, extensionRegistry); - } - }; + 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 { + return new ListViewsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -935,4 +870,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 57% 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 101411177..743c04ef4 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,89 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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:
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The bucket whose views are to be listed:
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
    * 
* * 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
-   * `nextPageToken` from the previous response. The values of other method
-   * parameters should be identical to those in the previous call.
+   * Optional. If present, then retrieve the next batch of results from the preceding call
+   * to this method. `pageToken` must be the value of `nextPageToken` from the
+   * previous response. The values of other method parameters should be
+   * identical to those in the previous call.
    * 
* * 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
-   * `nextPageToken` from the previous response. The values of other method
-   * parameters should be identical to those in the previous call.
+   * Optional. If present, then retrieve the next batch of results from the preceding call
+   * to this method. `pageToken` must be the value of `nextPageToken` from the
+   * previous response. The values of other method parameters should be
+   * identical to those in the previous call.
    * 
* * 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
@@ -91,7 +63,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 73% 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 db2f56dc8..75a68be2b 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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,15 +26,16 @@ private ListViewsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListViewsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListViewsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,36 +55,35 @@ private ListViewsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - views_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - views_.add( - input.readMessage(com.google.logging.v2.LogView.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + views_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + views_.add( + input.readMessage(com.google.logging.v2.LogView.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { views_ = java.util.Collections.unmodifiableList(views_); @@ -110,27 +92,22 @@ private ListViewsResponse( makeExtensionsImmutable(); } } - - 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; private java.util.List views_; /** - * - * *
    * A list of views.
    * 
@@ -142,8 +119,6 @@ public java.util.List getViewsList() { return views_; } /** - * - * *
    * A list of views.
    * 
@@ -151,12 +126,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.
    * 
@@ -168,8 +142,6 @@ public int getViewsCount() { return views_.size(); } /** - * - * *
    * A list of views.
    * 
@@ -181,8 +153,6 @@ public com.google.logging.v2.LogView getViews(int index) { return views_.get(index); } /** - * - * *
    * A list of views.
    * 
@@ -190,15 +160,14 @@ 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; 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
@@ -206,7 +175,6 @@ public com.google.logging.v2.LogViewOrBuilder getViewsOrBuilder(int index) {
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -215,15 +183,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
@@ -231,15 +198,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 { @@ -248,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -260,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < views_.size(); i++) { output.writeMessage(1, views_.get(i)); } @@ -277,7 +245,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_); @@ -290,15 +259,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -321,127 +292,118 @@ 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() @@ -449,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getViewsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -475,9 +437,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 @@ -496,8 +458,7 @@ 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); int from_bitField0_ = bitField0_; if (viewsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -517,39 +478,38 @@ public com.google.logging.v2.ListViewsResponse 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.ListViewsResponse) { - return mergeFrom((com.google.logging.v2.ListViewsResponse) other); + return mergeFrom((com.google.logging.v2.ListViewsResponse)other); } else { super.mergeFrom(other); return this; @@ -576,10 +536,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_); } @@ -617,28 +576,21 @@ public Builder mergeFrom( } 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.
      * 
@@ -653,8 +605,6 @@ public java.util.List getViewsList() { } } /** - * - * *
      * A list of views.
      * 
@@ -669,8 +619,6 @@ public int getViewsCount() { } } /** - * - * *
      * A list of views.
      * 
@@ -685,15 +633,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(); @@ -707,15 +654,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()); @@ -726,8 +672,6 @@ public Builder setViews(int index, com.google.logging.v2.LogView.Builder builder return this; } /** - * - * *
      * A list of views.
      * 
@@ -748,15 +692,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(); @@ -770,15 +713,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()); @@ -789,15 +731,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()); @@ -808,18 +749,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); @@ -827,8 +768,6 @@ public Builder addAllViews(java.lang.Iterable * A list of views. *
@@ -846,8 +785,6 @@ public Builder clearViews() { return this; } /** - * - * *
      * A list of views.
      * 
@@ -865,44 +802,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 { @@ -910,8 +842,6 @@ public com.google.logging.v2.LogViewOrBuilder getViewsOrBuilder(int index) { } } /** - * - * *
      * A list of views.
      * 
@@ -919,46 +849,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_; @@ -966,8 +892,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
@@ -975,13 +899,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; @@ -990,8 +914,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
@@ -999,14 +921,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 { @@ -1014,8 +937,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
@@ -1023,22 +944,20 @@ 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) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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
@@ -1046,18 +965,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); 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
@@ -1065,23 +981,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) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1091,12 +1007,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(); } @@ -1105,16 +1021,16 @@ 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 { - return new ListViewsResponse(input, extensionRegistry); - } - }; + 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 { + return new ListViewsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1129,4 +1045,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 87d2f7198..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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/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/owl-bot-staging/v2/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 new file mode 100644 index 000000000..37508ee7a --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucket.java @@ -0,0 +1,2180 @@ +// 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 + // @@protoc_insertion_point(message_implements:google.logging.v2.LogBucket) + LogBucketOrBuilder { +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.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new LogBucket(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LogBucket( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; + } + case 42: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; + } + case 72: { + + locked_ = input.readBool(); + break; + } + case 88: { + + retentionDays_ = input.readInt32(); + break; + } + case 96: { + int rawValue = input.readEnum(); + + lifecycleState_ = rawValue; + break; + } + case 122: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + restrictedFields_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + restrictedFields_.add(s); + break; + } + case 154: { + com.google.logging.v2.CmekSettings.Builder subBuilder = null; + if (cmekSettings_ != null) { + subBuilder = cmekSettings_.toBuilder(); + } + cmekSettings_ = input.readMessage(com.google.logging.v2.CmekSettings.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cmekSettings_); + cmekSettings_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + restrictedFields_ = restrictedFields_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + 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 + .ensureFieldAccessorsInitialized( + com.google.logging.v2.LogBucket.class, com.google.logging.v2.LogBucket.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * Output only. The resource name of the bucket.
+   * For example:
+   *   `projects/my-project/locations/global/buckets/my-bucket`
+   * For a list of supported locations, see [Supported
+   * Regions](https://cloud.google.com/logging/docs/region-support)
+   * For the location of `global` it is unspecified where log entries are
+   * actually stored.
+   * After a bucket has been created, the location cannot be changed.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Output only. The resource name of the bucket.
+   * For example:
+   *   `projects/my-project/locations/global/buckets/my-bucket`
+   * For a list of supported locations, see [Supported
+   * Regions](https://cloud.google.com/logging/docs/region-support)
+   * For the location of `global` it is unspecified where log entries are
+   * actually stored.
+   * After a bucket has been created, the location cannot be changed.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for name. + */ + @java.lang.Override + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + private volatile java.lang.Object description_; + /** + *
+   * Describes this bucket.
+   * 
+ * + * string description = 3; + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + *
+   * Describes this bucket.
+   * 
+ * + * string description = 3; + * @return The bytes for description. + */ + @java.lang.Override + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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]; + * @return Whether the createTime field is set. + */ + @java.lang.Override + 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]; + * @return The createTime. + */ + @java.lang.Override + 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]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + 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]; + * @return Whether the updateTime field is set. + */ + @java.lang.Override + 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]; + * @return The updateTime. + */ + @java.lang.Override + 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]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return getUpdateTime(); + } + + public static final int RETENTION_DAYS_FIELD_NUMBER = 11; + 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
+   * this value is set to zero at bucket creation time, the default time of 30
+   * days will be used.
+   * 
+ * + * int32 retention_days = 11; + * @return The retentionDays. + */ + @java.lang.Override + public int getRetentionDays() { + return retentionDays_; + } + + public static final int LOCKED_FIELD_NUMBER = 9; + private boolean locked_; + /** + *
+   * Whether the bucket is locked.
+   * The retention period on a locked bucket cannot be changed. Locked buckets
+   * may only be deleted if they are empty.
+   * 
+ * + * bool locked = 9; + * @return The locked. + */ + @java.lang.Override + public boolean getLocked() { + return locked_; + } + + public static final int LIFECYCLE_STATE_FIELD_NUMBER = 12; + private int lifecycleState_; + /** + *
+   * Output only. The bucket lifecycle state.
+   * 
+ * + * .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() { + return lifecycleState_; + } + /** + *
+   * Output only. The bucket lifecycle state.
+   * 
+ * + * .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() { + @SuppressWarnings("deprecation") + com.google.logging.v2.LifecycleState result = com.google.logging.v2.LifecycleState.valueOf(lifecycleState_); + return result == null ? com.google.logging.v2.LifecycleState.UNRECOGNIZED : result; + } + + public static final int RESTRICTED_FIELDS_FIELD_NUMBER = 15; + private com.google.protobuf.LazyStringList restrictedFields_; + /** + *
+   * Log entry field paths that are denied access in this bucket.
+   * The following fields and their children are eligible: `textPayload`,
+   * `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`.
+   * Restricting a repeated field will restrict all values. Adding a parent will
+   * block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`)
+   * 
+ * + * repeated string restricted_fields = 15; + * @return A list containing the restrictedFields. + */ + public com.google.protobuf.ProtocolStringList + getRestrictedFieldsList() { + return restrictedFields_; + } + /** + *
+   * Log entry field paths that are denied access in this bucket.
+   * The following fields and their children are eligible: `textPayload`,
+   * `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`.
+   * Restricting a repeated field will restrict all values. Adding a parent will
+   * block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`)
+   * 
+ * + * 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.
+   * The following fields and their children are eligible: `textPayload`,
+   * `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`.
+   * Restricting a repeated field will restrict all values. Adding a parent will
+   * block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`)
+   * 
+ * + * repeated string restricted_fields = 15; + * @param index The index of the element to return. + * @return The restrictedFields at the given index. + */ + public java.lang.String getRestrictedFields(int index) { + return restrictedFields_.get(index); + } + /** + *
+   * Log entry field paths that are denied access in this bucket.
+   * The following fields and their children are eligible: `textPayload`,
+   * `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`.
+   * Restricting a repeated field will restrict all values. Adding a parent will
+   * block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`)
+   * 
+ * + * 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) { + return restrictedFields_.getByteString(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
+   * configuration. If a log bucket has CMEK settings, the CMEK settings cannot
+   * be disabled later by updating the log bucket. Changing the KMS key is
+   * allowed.
+   * 
+ * + * .google.logging.v2.CmekSettings cmek_settings = 19; + * @return Whether the cmekSettings field is set. + */ + @java.lang.Override + 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
+   * configuration. If a log bucket has CMEK settings, the CMEK settings cannot
+   * be disabled later by updating the log bucket. Changing the KMS key is
+   * allowed.
+   * 
+ * + * .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_; + } + /** + *
+   * 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
+   * configuration. If a log bucket has CMEK settings, the CMEK settings cannot
+   * be disabled later by updating the log bucket. Changing the KMS key is
+   * allowed.
+   * 
+ * + * .google.logging.v2.CmekSettings cmek_settings = 19; + */ + @java.lang.Override + public com.google.logging.v2.CmekSettingsOrBuilder getCmekSettingsOrBuilder() { + return getCmekSettings(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } + if (createTime_ != null) { + output.writeMessage(4, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(5, getUpdateTime()); + } + if (locked_ != false) { + output.writeBool(9, locked_); + } + if (retentionDays_ != 0) { + output.writeInt32(11, retentionDays_); + } + if (lifecycleState_ != com.google.logging.v2.LifecycleState.LIFECYCLE_STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(12, lifecycleState_); + } + for (int i = 0; i < restrictedFields_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 15, restrictedFields_.getRaw(i)); + } + if (cmekSettings_ != null) { + output.writeMessage(19, getCmekSettings()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getUpdateTime()); + } + if (locked_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(9, locked_); + } + if (retentionDays_ != 0) { + 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_); + } + { + int dataSize = 0; + for (int i = 0; i < restrictedFields_.size(); i++) { + dataSize += computeStringSizeNoTag(restrictedFields_.getRaw(i)); + } + size += dataSize; + size += 1 * getRestrictedFieldsList().size(); + } + if (cmekSettings_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, getCmekSettings()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.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 (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime() + .equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime() + .equals(other.getUpdateTime())) return false; + } + if (getRetentionDays() + != other.getRetentionDays()) return false; + if (getLocked() + != other.getLocked()) return false; + if (lifecycleState_ != other.lifecycleState_) return false; + if (!getRestrictedFieldsList() + .equals(other.getRestrictedFieldsList())) return false; + if (hasCmekSettings() != other.hasCmekSettings()) return false; + if (hasCmekSettings()) { + if (!getCmekSettings() + .equals(other.getCmekSettings())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().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 = (37 * hash) + LIFECYCLE_STATE_FIELD_NUMBER; + hash = (53 * hash) + lifecycleState_; + if (getRestrictedFieldsCount() > 0) { + hash = (37 * hash) + RESTRICTED_FIELDS_FIELD_NUMBER; + hash = (53 * hash) + getRestrictedFieldsList().hashCode(); + } + if (hasCmekSettings()) { + hash = (37 * hash) + CMEK_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getCmekSettings().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + 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) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + 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) + 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); + } + public static com.google.logging.v2.LogBucket parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.logging.v2.LogBucket parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + 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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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 + // @@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; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + 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() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + description_ = ""; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (updateTimeBuilder_ == null) { + updateTime_ = null; + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + retentionDays_ = 0; + + locked_ = false; + + lifecycleState_ = 0; + + restrictedFields_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + if (cmekSettingsBuilder_ == null) { + cmekSettings_ = null; + } else { + cmekSettings_ = null; + cmekSettingsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogBucket_descriptor; + } + + @java.lang.Override + public com.google.logging.v2.LogBucket getDefaultInstanceForType() { + return com.google.logging.v2.LogBucket.getDefaultInstance(); + } + + @java.lang.Override + public com.google.logging.v2.LogBucket build() { + com.google.logging.v2.LogBucket result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.logging.v2.LogBucket buildPartial() { + com.google.logging.v2.LogBucket result = new com.google.logging.v2.LogBucket(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + result.description_ = description_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (updateTimeBuilder_ == null) { + result.updateTime_ = updateTime_; + } else { + result.updateTime_ = updateTimeBuilder_.build(); + } + result.retentionDays_ = retentionDays_; + result.locked_ = locked_; + result.lifecycleState_ = lifecycleState_; + if (((bitField0_ & 0x00000001) != 0)) { + restrictedFields_ = restrictedFields_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.restrictedFields_ = restrictedFields_; + if (cmekSettingsBuilder_ == null) { + result.cmekSettings_ = cmekSettings_; + } else { + result.cmekSettings_ = cmekSettingsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.logging.v2.LogBucket) { + return mergeFrom((com.google.logging.v2.LogBucket)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.logging.v2.LogBucket other) { + if (other == com.google.logging.v2.LogBucket.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.getRetentionDays() != 0) { + setRetentionDays(other.getRetentionDays()); + } + if (other.getLocked() != false) { + setLocked(other.getLocked()); + } + if (other.lifecycleState_ != 0) { + setLifecycleStateValue(other.getLifecycleStateValue()); + } + if (!other.restrictedFields_.isEmpty()) { + if (restrictedFields_.isEmpty()) { + restrictedFields_ = other.restrictedFields_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRestrictedFieldsIsMutable(); + restrictedFields_.addAll(other.restrictedFields_); + } + onChanged(); + } + if (other.hasCmekSettings()) { + mergeCmekSettings(other.getCmekSettings()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.logging.v2.LogBucket parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.logging.v2.LogBucket) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+     * Output only. The resource name of the bucket.
+     * For example:
+     *   `projects/my-project/locations/global/buckets/my-bucket`
+     * For a list of supported locations, see [Supported
+     * Regions](https://cloud.google.com/logging/docs/region-support)
+     * For the location of `global` it is unspecified where log entries are
+     * actually stored.
+     * After a bucket has been created, the location cannot be changed.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. The resource name of the bucket.
+     * For example:
+     *   `projects/my-project/locations/global/buckets/my-bucket`
+     * For a list of supported locations, see [Supported
+     * Regions](https://cloud.google.com/logging/docs/region-support)
+     * For the location of `global` it is unspecified where log entries are
+     * actually stored.
+     * After a bucket has been created, the location cannot be changed.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. The resource name of the bucket.
+     * For example:
+     *   `projects/my-project/locations/global/buckets/my-bucket`
+     * For a list of supported locations, see [Supported
+     * Regions](https://cloud.google.com/logging/docs/region-support)
+     * For the location of `global` it is unspecified where log entries are
+     * actually stored.
+     * After a bucket has been created, the location cannot be changed.
+     * 
+ * + * 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(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. The resource name of the bucket.
+     * For example:
+     *   `projects/my-project/locations/global/buckets/my-bucket`
+     * For a list of supported locations, see [Supported
+     * Regions](https://cloud.google.com/logging/docs/region-support)
+     * For the location of `global` it is unspecified where log entries are
+     * actually stored.
+     * After a bucket has been created, the location cannot be changed.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * Output only. The resource name of the bucket.
+     * For example:
+     *   `projects/my-project/locations/global/buckets/my-bucket`
+     * For a list of supported locations, see [Supported
+     * Regions](https://cloud.google.com/logging/docs/region-support)
+     * For the location of `global` it is unspecified where log entries are
+     * actually stored.
+     * After a bucket has been created, the location cannot be changed.
+     * 
+ * + * 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(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Describes this bucket.
+     * 
+ * + * string description = 3; + * @return The bytes for description. + */ + 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); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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(); + } + + description_ = value; + onChanged(); + return this; + } + /** + *
+     * Describes this bucket.
+     * 
+ * + * string description = 3; + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + 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(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + 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_; + /** + *
+     * 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]; + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || 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]; + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + 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]; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(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]; + */ + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + 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]; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (createTime_ != null) { + createTime_ = + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(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]; + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + 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]; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + 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]; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + 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]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + createTime_ = null; + } + return createTimeBuilder_; + } + + 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_; + /** + *
+     * Output only. The last update timestamp of the bucket.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return updateTimeBuilder_ != null || updateTime_ != null; + } + /** + *
+     * Output only. The last update timestamp of the bucket.
+     * 
+ * + * .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_; + } 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]; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + onChanged(); + } else { + updateTimeBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Output only. The last update timestamp of the bucket.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + onChanged(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Output only. The last update timestamp of the bucket.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (updateTime_ != null) { + updateTime_ = + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + } else { + updateTime_ = value; + } + onChanged(); + } else { + updateTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Output only. The last update timestamp of the bucket.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearUpdateTime() { + if (updateTimeBuilder_ == null) { + updateTime_ = null; + onChanged(); + } else { + updateTime_ = null; + updateTimeBuilder_ = null; + } + + return this; + } + /** + *
+     * Output only. The last update timestamp of the bucket.
+     * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + *
+     * Output only. The last update timestamp of the bucket.
+     * 
+ * + * .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_; + } + } + /** + *
+     * Output only. The last update timestamp of the bucket.
+     * 
+ * + * .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> + 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()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + 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
+     * this value is set to zero at bucket creation time, the default time of 30
+     * days will be used.
+     * 
+ * + * int32 retention_days = 11; + * @return The retentionDays. + */ + @java.lang.Override + 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
+     * this value is set to zero at bucket creation time, the default time of 30
+     * days will be used.
+     * 
+ * + * int32 retention_days = 11; + * @param value The retentionDays to set. + * @return This builder for chaining. + */ + public Builder setRetentionDays(int value) { + + retentionDays_ = value; + onChanged(); + 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
+     * this value is set to zero at bucket creation time, the default time of 30
+     * days will be used.
+     * 
+ * + * int32 retention_days = 11; + * @return This builder for chaining. + */ + public Builder clearRetentionDays() { + + retentionDays_ = 0; + onChanged(); + return this; + } + + private boolean locked_ ; + /** + *
+     * Whether the bucket is locked.
+     * The retention period on a locked bucket cannot be changed. Locked buckets
+     * may only be deleted if they are empty.
+     * 
+ * + * bool locked = 9; + * @return The locked. + */ + @java.lang.Override + public boolean getLocked() { + return locked_; + } + /** + *
+     * Whether the bucket is locked.
+     * The retention period on a locked bucket cannot be changed. Locked buckets
+     * may only be deleted if they are empty.
+     * 
+ * + * bool locked = 9; + * @param value The locked to set. + * @return This builder for chaining. + */ + public Builder setLocked(boolean value) { + + locked_ = value; + onChanged(); + return this; + } + /** + *
+     * Whether the bucket is locked.
+     * The retention period on a locked bucket cannot be changed. Locked buckets
+     * may only be deleted if they are empty.
+     * 
+ * + * bool locked = 9; + * @return This builder for chaining. + */ + public Builder clearLocked() { + + locked_ = false; + onChanged(); + return this; + } + + private int lifecycleState_ = 0; + /** + *
+     * Output only. The bucket lifecycle state.
+     * 
+ * + * .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() { + return lifecycleState_; + } + /** + *
+     * Output only. The bucket lifecycle state.
+     * 
+ * + * .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. + */ + public Builder setLifecycleStateValue(int value) { + + lifecycleState_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. The bucket lifecycle state.
+     * 
+ * + * .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() { + @SuppressWarnings("deprecation") + com.google.logging.v2.LifecycleState result = com.google.logging.v2.LifecycleState.valueOf(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]; + * @param value The lifecycleState to set. + * @return This builder for chaining. + */ + public Builder setLifecycleState(com.google.logging.v2.LifecycleState value) { + if (value == null) { + throw new NullPointerException(); + } + + lifecycleState_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Output only. The bucket lifecycle state.
+     * 
+ * + * .google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearLifecycleState() { + + lifecycleState_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList restrictedFields_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureRestrictedFieldsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + restrictedFields_ = new com.google.protobuf.LazyStringArrayList(restrictedFields_); + bitField0_ |= 0x00000001; + } + } + /** + *
+     * Log entry field paths that are denied access in this bucket.
+     * The following fields and their children are eligible: `textPayload`,
+     * `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`.
+     * Restricting a repeated field will restrict all values. Adding a parent will
+     * block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`)
+     * 
+ * + * repeated string restricted_fields = 15; + * @return A list containing the restrictedFields. + */ + public com.google.protobuf.ProtocolStringList + getRestrictedFieldsList() { + return restrictedFields_.getUnmodifiableView(); + } + /** + *
+     * Log entry field paths that are denied access in this bucket.
+     * The following fields and their children are eligible: `textPayload`,
+     * `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`.
+     * Restricting a repeated field will restrict all values. Adding a parent will
+     * block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`)
+     * 
+ * + * 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.
+     * The following fields and their children are eligible: `textPayload`,
+     * `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`.
+     * Restricting a repeated field will restrict all values. Adding a parent will
+     * block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`)
+     * 
+ * + * repeated string restricted_fields = 15; + * @param index The index of the element to return. + * @return The restrictedFields at the given index. + */ + public java.lang.String getRestrictedFields(int index) { + return restrictedFields_.get(index); + } + /** + *
+     * Log entry field paths that are denied access in this bucket.
+     * The following fields and their children are eligible: `textPayload`,
+     * `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`.
+     * Restricting a repeated field will restrict all values. Adding a parent will
+     * block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`)
+     * 
+ * + * 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) { + return restrictedFields_.getByteString(index); + } + /** + *
+     * Log entry field paths that are denied access in this bucket.
+     * The following fields and their children are eligible: `textPayload`,
+     * `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`.
+     * Restricting a repeated field will restrict all values. Adding a parent will
+     * block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`)
+     * 
+ * + * 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(); + } + ensureRestrictedFieldsIsMutable(); + restrictedFields_.set(index, value); + onChanged(); + return this; + } + /** + *
+     * Log entry field paths that are denied access in this bucket.
+     * The following fields and their children are eligible: `textPayload`,
+     * `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`.
+     * Restricting a repeated field will restrict all values. Adding a parent will
+     * block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`)
+     * 
+ * + * 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(); + } + ensureRestrictedFieldsIsMutable(); + restrictedFields_.add(value); + onChanged(); + return this; + } + /** + *
+     * Log entry field paths that are denied access in this bucket.
+     * The following fields and their children are eligible: `textPayload`,
+     * `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`.
+     * Restricting a repeated field will restrict all values. Adding a parent will
+     * block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`)
+     * 
+ * + * repeated string restricted_fields = 15; + * @param values The restrictedFields to add. + * @return This builder for chaining. + */ + public Builder addAllRestrictedFields( + java.lang.Iterable values) { + ensureRestrictedFieldsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, restrictedFields_); + onChanged(); + return this; + } + /** + *
+     * Log entry field paths that are denied access in this bucket.
+     * The following fields and their children are eligible: `textPayload`,
+     * `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`.
+     * Restricting a repeated field will restrict all values. Adding a parent will
+     * block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`)
+     * 
+ * + * repeated string restricted_fields = 15; + * @return This builder for chaining. + */ + public Builder clearRestrictedFields() { + restrictedFields_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Log entry field paths that are denied access in this bucket.
+     * The following fields and their children are eligible: `textPayload`,
+     * `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`.
+     * Restricting a repeated field will restrict all values. Adding a parent will
+     * block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`)
+     * 
+ * + * 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(); + } + checkByteStringIsUtf8(value); + ensureRestrictedFieldsIsMutable(); + restrictedFields_.add(value); + onChanged(); + return this; + } + + 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_; + /** + *
+     * 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
+     * configuration. If a log bucket has CMEK settings, the CMEK settings cannot
+     * be disabled later by updating the log bucket. Changing the KMS key is
+     * allowed.
+     * 
+ * + * .google.logging.v2.CmekSettings cmek_settings = 19; + * @return Whether the cmekSettings field is set. + */ + public boolean hasCmekSettings() { + return cmekSettingsBuilder_ != null || 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
+     * configuration. If a log bucket has CMEK settings, the CMEK settings cannot
+     * be disabled later by updating the log bucket. Changing the KMS key is
+     * allowed.
+     * 
+ * + * .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_; + } 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
+     * configuration. If a log bucket has CMEK settings, the CMEK settings cannot
+     * be disabled later by updating the log bucket. Changing the KMS key is
+     * allowed.
+     * 
+ * + * .google.logging.v2.CmekSettings cmek_settings = 19; + */ + public Builder setCmekSettings(com.google.logging.v2.CmekSettings value) { + if (cmekSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cmekSettings_ = value; + onChanged(); + } else { + cmekSettingsBuilder_.setMessage(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
+     * configuration. If a log bucket has CMEK settings, the CMEK settings cannot
+     * be disabled later by updating the log bucket. Changing the KMS key is
+     * allowed.
+     * 
+ * + * .google.logging.v2.CmekSettings cmek_settings = 19; + */ + public Builder setCmekSettings( + com.google.logging.v2.CmekSettings.Builder builderForValue) { + if (cmekSettingsBuilder_ == null) { + cmekSettings_ = builderForValue.build(); + onChanged(); + } else { + cmekSettingsBuilder_.setMessage(builderForValue.build()); + } + + 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
+     * configuration. If a log bucket has CMEK settings, the CMEK settings cannot
+     * be disabled later by updating the log bucket. Changing the KMS key is
+     * allowed.
+     * 
+ * + * .google.logging.v2.CmekSettings cmek_settings = 19; + */ + public Builder mergeCmekSettings(com.google.logging.v2.CmekSettings value) { + if (cmekSettingsBuilder_ == null) { + if (cmekSettings_ != null) { + cmekSettings_ = + com.google.logging.v2.CmekSettings.newBuilder(cmekSettings_).mergeFrom(value).buildPartial(); + } else { + cmekSettings_ = value; + } + onChanged(); + } else { + cmekSettingsBuilder_.mergeFrom(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
+     * configuration. If a log bucket has CMEK settings, the CMEK settings cannot
+     * be disabled later by updating the log bucket. Changing the KMS key is
+     * allowed.
+     * 
+ * + * .google.logging.v2.CmekSettings cmek_settings = 19; + */ + public Builder clearCmekSettings() { + if (cmekSettingsBuilder_ == null) { + cmekSettings_ = null; + onChanged(); + } else { + cmekSettings_ = null; + cmekSettingsBuilder_ = null; + } + + 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
+     * configuration. If a log bucket has CMEK settings, the CMEK settings cannot
+     * be disabled later by updating the log bucket. Changing the KMS key is
+     * allowed.
+     * 
+ * + * .google.logging.v2.CmekSettings cmek_settings = 19; + */ + public com.google.logging.v2.CmekSettings.Builder getCmekSettingsBuilder() { + + onChanged(); + 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
+     * configuration. If a log bucket has CMEK settings, the CMEK settings cannot
+     * be disabled later by updating the log bucket. Changing the KMS key is
+     * allowed.
+     * 
+ * + * .google.logging.v2.CmekSettings cmek_settings = 19; + */ + public com.google.logging.v2.CmekSettingsOrBuilder getCmekSettingsOrBuilder() { + if (cmekSettingsBuilder_ != null) { + return cmekSettingsBuilder_.getMessageOrBuilder(); + } else { + 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
+     * configuration. If a log bucket has CMEK settings, the CMEK settings cannot
+     * be disabled later by updating the log bucket. Changing the KMS key is
+     * allowed.
+     * 
+ * + * .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> + 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()); + cmekSettings_ = null; + } + return cmekSettingsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.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(); + } + + 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 { + return new LogBucket(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.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/owl-bot-staging/v2/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 new file mode 100644 index 000000000..cf75f5267 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucketOrBuilder.java @@ -0,0 +1,260 @@ +// 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 + // @@protoc_insertion_point(interface_extends:google.logging.v2.LogBucket) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Output only. The resource name of the bucket.
+   * For example:
+   *   `projects/my-project/locations/global/buckets/my-bucket`
+   * For a list of supported locations, see [Supported
+   * Regions](https://cloud.google.com/logging/docs/region-support)
+   * For the location of `global` it is unspecified where log entries are
+   * actually stored.
+   * After a bucket has been created, the location cannot be changed.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Output only. The resource name of the bucket.
+   * For example:
+   *   `projects/my-project/locations/global/buckets/my-bucket`
+   * For a list of supported locations, see [Supported
+   * Regions](https://cloud.google.com/logging/docs/region-support)
+   * For the location of `global` it is unspecified where log entries are
+   * actually stored.
+   * After a bucket has been created, the location cannot be changed.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for name. + */ + 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(); + + /** + *
+   * 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]; + * @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]; + * @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]; + */ + 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]; + * @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]; + * @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]; + */ + 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
+   * this value is set to zero at bucket creation time, the default time of 30
+   * days will be used.
+   * 
+ * + * int32 retention_days = 11; + * @return The retentionDays. + */ + int getRetentionDays(); + + /** + *
+   * Whether the bucket is locked.
+   * The retention period on a locked bucket cannot be changed. Locked buckets
+   * may only be deleted if they are empty.
+   * 
+ * + * 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]; + * @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]; + * @return The lifecycleState. + */ + com.google.logging.v2.LifecycleState getLifecycleState(); + + /** + *
+   * Log entry field paths that are denied access in this bucket.
+   * The following fields and their children are eligible: `textPayload`,
+   * `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`.
+   * Restricting a repeated field will restrict all values. Adding a parent will
+   * block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`)
+   * 
+ * + * repeated string restricted_fields = 15; + * @return A list containing the restrictedFields. + */ + java.util.List + getRestrictedFieldsList(); + /** + *
+   * Log entry field paths that are denied access in this bucket.
+   * The following fields and their children are eligible: `textPayload`,
+   * `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`.
+   * Restricting a repeated field will restrict all values. Adding a parent will
+   * block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`)
+   * 
+ * + * repeated string restricted_fields = 15; + * @return The count of restrictedFields. + */ + int getRestrictedFieldsCount(); + /** + *
+   * Log entry field paths that are denied access in this bucket.
+   * The following fields and their children are eligible: `textPayload`,
+   * `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`.
+   * Restricting a repeated field will restrict all values. Adding a parent will
+   * block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`)
+   * 
+ * + * 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.
+   * The following fields and their children are eligible: `textPayload`,
+   * `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`.
+   * Restricting a repeated field will restrict all values. Adding a parent will
+   * block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`)
+   * 
+ * + * 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); + + /** + *
+   * 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
+   * configuration. If a log bucket has CMEK settings, the CMEK settings cannot
+   * be disabled later by updating the log bucket. Changing the KMS key is
+   * allowed.
+   * 
+ * + * .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
+   * configuration. If a log bucket has CMEK settings, the CMEK settings cannot
+   * be disabled later by updating the log bucket. Changing the KMS key is
+   * allowed.
+   * 
+ * + * .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
+   * configuration. If a log bucket has CMEK settings, the CMEK settings cannot
+   * be disabled later by updating the log bucket. Changing the KMS key is
+   * allowed.
+   * 
+ * + * .google.logging.v2.CmekSettings cmek_settings = 19; + */ + com.google.logging.v2.CmekSettingsOrBuilder getCmekSettingsOrBuilder(); +} 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 68% 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 6ef304938..9e35327a2 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,15 +29,16 @@ private LogEntry() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LogEntry(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private LogEntry( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -75,244 +58,233 @@ private LogEntry( case 0: done = true; break; - case 18: - { - com.google.protobuf.Any.Builder subBuilder = null; - if (payloadCase_ == 2) { - subBuilder = ((com.google.protobuf.Any) payload_).toBuilder(); - } - payload_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.protobuf.Any) payload_); - payload_ = subBuilder.buildPartial(); - } - payloadCase_ = 2; - break; + case 18: { + com.google.protobuf.Any.Builder subBuilder = null; + if (payloadCase_ == 2) { + subBuilder = ((com.google.protobuf.Any) payload_).toBuilder(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - payloadCase_ = 3; - payload_ = s; - break; + payload_ = + input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.protobuf.Any) payload_); + payload_ = subBuilder.buildPartial(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + payloadCase_ = 2; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + payloadCase_ = 3; + payload_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - insertId_ = s; - break; + insertId_ = s; + break; + } + case 50: { + com.google.protobuf.Struct.Builder subBuilder = null; + if (payloadCase_ == 6) { + subBuilder = ((com.google.protobuf.Struct) payload_).toBuilder(); + } + payload_ = + input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.protobuf.Struct) payload_); + payload_ = subBuilder.buildPartial(); } - case 50: - { - com.google.protobuf.Struct.Builder subBuilder = null; - if (payloadCase_ == 6) { - subBuilder = ((com.google.protobuf.Struct) payload_).toBuilder(); - } - payload_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.protobuf.Struct) payload_); - payload_ = subBuilder.buildPartial(); - } - payloadCase_ = 6; - break; + payloadCase_ = 6; + break; + } + case 58: { + com.google.logging.type.HttpRequest.Builder subBuilder = null; + if (httpRequest_ != null) { + subBuilder = httpRequest_.toBuilder(); } - case 58: - { - com.google.logging.type.HttpRequest.Builder subBuilder = null; - if (httpRequest_ != null) { - subBuilder = httpRequest_.toBuilder(); - } - httpRequest_ = - input.readMessage( - com.google.logging.type.HttpRequest.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(httpRequest_); - httpRequest_ = subBuilder.buildPartial(); - } - - break; + httpRequest_ = input.readMessage(com.google.logging.type.HttpRequest.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(httpRequest_); + httpRequest_ = subBuilder.buildPartial(); } - case 66: - { - com.google.api.MonitoredResource.Builder subBuilder = null; - if (resource_ != null) { - subBuilder = resource_.toBuilder(); - } - resource_ = - input.readMessage(com.google.api.MonitoredResource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resource_); - resource_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 66: { + com.google.api.MonitoredResource.Builder subBuilder = null; + if (resource_ != null) { + subBuilder = resource_.toBuilder(); } - case 74: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (timestamp_ != null) { - subBuilder = timestamp_.toBuilder(); - } - timestamp_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(timestamp_); - timestamp_ = subBuilder.buildPartial(); - } - - break; + resource_ = input.readMessage(com.google.api.MonitoredResource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = subBuilder.buildPartial(); } - case 80: - { - int rawValue = input.readEnum(); - severity_ = rawValue; - break; + break; + } + case 74: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (timestamp_ != null) { + subBuilder = timestamp_.toBuilder(); + } + timestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timestamp_); + timestamp_ = subBuilder.buildPartial(); } - case 90: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; + + break; + } + case 80: { + int rawValue = input.readEnum(); + + severity_ = rawValue; + break; + } + case 90: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - case 98: - { - java.lang.String s = input.readStringRequireUtf8(); + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + case 98: { + java.lang.String s = input.readStringRequireUtf8(); - logName_ = s; - break; + logName_ = s; + break; + } + case 122: { + com.google.logging.v2.LogEntryOperation.Builder subBuilder = null; + if (operation_ != null) { + subBuilder = operation_.toBuilder(); } - case 122: - { - com.google.logging.v2.LogEntryOperation.Builder subBuilder = null; - if (operation_ != null) { - subBuilder = operation_.toBuilder(); - } - operation_ = - input.readMessage( - com.google.logging.v2.LogEntryOperation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(operation_); - operation_ = subBuilder.buildPartial(); - } - - break; + operation_ = input.readMessage(com.google.logging.v2.LogEntryOperation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(operation_); + operation_ = subBuilder.buildPartial(); } - case 178: - { - java.lang.String s = input.readStringRequireUtf8(); - trace_ = s; - break; + break; + } + case 178: { + java.lang.String s = input.readStringRequireUtf8(); + + trace_ = s; + break; + } + case 186: { + com.google.logging.v2.LogEntrySourceLocation.Builder subBuilder = null; + if (sourceLocation_ != null) { + subBuilder = sourceLocation_.toBuilder(); + } + sourceLocation_ = input.readMessage(com.google.logging.v2.LogEntrySourceLocation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sourceLocation_); + sourceLocation_ = subBuilder.buildPartial(); } - case 186: - { - com.google.logging.v2.LogEntrySourceLocation.Builder subBuilder = null; - if (sourceLocation_ != null) { - subBuilder = sourceLocation_.toBuilder(); - } - sourceLocation_ = - input.readMessage( - com.google.logging.v2.LogEntrySourceLocation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sourceLocation_); - sourceLocation_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 194: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (receiveTimestamp_ != null) { + subBuilder = receiveTimestamp_.toBuilder(); } - case 194: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (receiveTimestamp_ != null) { - subBuilder = receiveTimestamp_.toBuilder(); - } - receiveTimestamp_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(receiveTimestamp_); - receiveTimestamp_ = subBuilder.buildPartial(); - } - - break; + receiveTimestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(receiveTimestamp_); + receiveTimestamp_ = subBuilder.buildPartial(); } - case 218: - { - java.lang.String s = input.readStringRequireUtf8(); - spanId_ = s; - break; + break; + } + case 218: { + java.lang.String s = input.readStringRequireUtf8(); + + spanId_ = s; + break; + } + case 240: { + + traceSampled_ = input.readBool(); + break; + } + case 282: { + com.google.logging.v2.LogSplit.Builder subBuilder = null; + if (split_ != null) { + subBuilder = split_.toBuilder(); } - case 240: - { - traceSampled_ = input.readBool(); - break; + split_ = input.readMessage(com.google.logging.v2.LogSplit.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(split_); + split_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; 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; } @@ -328,33 +300,27 @@ 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; private volatile java.lang.Object logName_; /** - * - * *
    * Required. The resource name of the log to which this log entry belongs:
    *     "projects/[PROJECT_ID]/logs/[LOG_ID]"
@@ -370,14 +336,13 @@ public PayloadCase getPayloadCase() {
    * following characters: upper and lower case alphanumeric characters,
    * forward-slash, underscore, hyphen, and period.
    * For backward compatibility, if `log_name` begins with a forward-slash, such
-   * as `/projects/...`, then the log entry is ingested as usual but the
+   * as `/projects/...`, then the log entry is ingested as usual, but the
    * forward-slash is removed. Listing the log entry will not show the leading
    * slash and filtering for a log name with a leading slash will never return
    * any results.
    * 
* * string log_name = 12 [(.google.api.field_behavior) = REQUIRED]; - * * @return The logName. */ @java.lang.Override @@ -386,15 +351,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:
    *     "projects/[PROJECT_ID]/logs/[LOG_ID]"
@@ -410,22 +374,23 @@ public java.lang.String getLogName() {
    * following characters: upper and lower case alphanumeric characters,
    * forward-slash, underscore, hyphen, and period.
    * For backward compatibility, if `log_name` begins with a forward-slash, such
-   * as `/projects/...`, then the log entry is ingested as usual but the
+   * as `/projects/...`, then the log entry is ingested as usual, but the
    * forward-slash is removed. Listing the log entry will not show the leading
    * slash and filtering for a log name with a leading slash will never return
    * any results.
    * 
* * 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 { @@ -436,8 +401,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.
    * Example: a log entry that reports a database error would be associated with
@@ -445,9 +408,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 @@ -455,8 +416,6 @@ public boolean hasResource() { return resource_ != null; } /** - * - * *
    * Required. The monitored resource that produced this log entry.
    * Example: a log entry that reports a database error would be associated with
@@ -464,9 +423,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 @@ -474,8 +431,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.
    * Example: a log entry that reports a database error would be associated with
@@ -483,8 +438,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() { @@ -493,8 +447,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.
@@ -505,7 +457,6 @@ public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() {
    * 
* * .google.protobuf.Any proto_payload = 2; - * * @return Whether the protoPayload field is set. */ @java.lang.Override @@ -513,8 +464,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.
@@ -525,19 +474,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.
@@ -552,35 +498,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() { @@ -591,7 +531,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; @@ -600,24 +541,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; } @@ -629,15 +569,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 @@ -645,27 +582,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.
@@ -676,7 +608,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();
   }
@@ -684,8 +616,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 period.
@@ -699,9 +629,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 @@ -709,8 +637,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 period.
@@ -724,9 +650,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 @@ -734,8 +658,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 period.
@@ -749,8 +671,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() { @@ -760,16 +681,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 @@ -777,34 +693,23 @@ 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() { @@ -814,46 +719,33 @@ public com.google.protobuf.TimestampOrBuilder getReceiveTimestampOrBuilder() { public static final int SEVERITY_FIELD_NUMBER = 10; private int 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 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() { + @java.lang.Override public com.google.logging.type.LogSeverity getSeverity() { @SuppressWarnings("deprecation") - com.google.logging.type.LogSeverity result = - com.google.logging.type.LogSeverity.valueOf(severity_); + com.google.logging.type.LogSeverity result = com.google.logging.type.LogSeverity.valueOf(severity_); return result == null ? com.google.logging.type.LogSeverity.UNRECOGNIZED : result; } public static final int INSERT_ID_FIELD_NUMBER = 4; 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
@@ -861,13 +753,12 @@ public com.google.logging.type.LogSeverity getSeverity() {
    * removed in a single query result. However, there are no guarantees of
    * de-duplication in the export of logs.
    * If the `insert_id` is omitted when writing a log entry, the Logging API
-   *  assigns its own unique identifier in this field.
+   * assigns its own unique identifier in this field.
    * In queries, the `insert_id` is also used to order log entries that have
    * the same `log_name` and `timestamp` values.
    * 
* * string insert_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The insertId. */ @java.lang.Override @@ -876,15 +767,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
@@ -892,21 +782,22 @@ public java.lang.String getInsertId() {
    * removed in a single query result. However, there are no guarantees of
    * de-duplication in the export of logs.
    * If the `insert_id` is omitted when writing a log entry, the Logging API
-   *  assigns its own unique identifier in this field.
+   * assigns its own unique identifier in this field.
    * In queries, the `insert_id` is also used to order log entries that have
    * the same `log_name` and `timestamp` values.
    * 
* * 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 { @@ -917,17 +808,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 @@ -935,36 +821,25 @@ 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() { @@ -972,23 +847,24 @@ public com.google.logging.type.HttpRequestOrBuilder getHttpRequestOrBuilder() { } 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, + ""); } - - 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_; } @@ -997,76 +873,110 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
-   * Optional. A set of user-defined (key, value) data that provides additional
-   * information about the log entry.
+   * Optional. A map of key, value pairs that provides additional information about the
+   * log entry. The labels can be user-defined or system-defined.
+   * User-defined labels are arbitrary key, value pairs that you can use to
+   * classify logs.
+   * System-defined labels are defined by GCP services for platform logs.
+   * They have two components - a service namespace component and the
+   * attribute name. For example: `compute.googleapis.com/resource_name`.
+   * Cloud Logging truncates label keys that exceed 512 B and label
+   * values that exceed 64 KB upon their associated log entry being
+   * written. The truncation is indicated by an ellipsis at the
+   * end of the character string.
    * 
* * 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 java.lang.NullPointerException(); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } 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 set of user-defined (key, value) data that provides additional
-   * information about the log entry.
+   * Optional. A map of key, value pairs that provides additional information about the
+   * log entry. The labels can be user-defined or system-defined.
+   * User-defined labels are arbitrary key, value pairs that you can use to
+   * classify logs.
+   * System-defined labels are defined by GCP services for platform logs.
+   * They have two components - a service namespace component and the
+   * attribute name. For example: `compute.googleapis.com/resource_name`.
+   * Cloud Logging truncates label keys that exceed 512 B and label
+   * values that exceed 64 KB upon their associated log entry being
+   * written. The truncation is indicated by an ellipsis at the
+   * end of the character string.
    * 
* * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
-   * Optional. A set of user-defined (key, value) data that provides additional
-   * information about the log entry.
+   * Optional. A map of key, value pairs that provides additional information about the
+   * log entry. The labels can be user-defined or system-defined.
+   * User-defined labels are arbitrary key, value pairs that you can use to
+   * classify logs.
+   * System-defined labels are defined by GCP services for platform logs.
+   * They have two components - a service namespace component and the
+   * attribute name. For example: `compute.googleapis.com/resource_name`.
+   * Cloud Logging truncates label keys that exceed 512 B and label
+   * values that exceed 64 KB upon their associated log entry being
+   * written. The truncation is indicated by an ellipsis at the
+   * end of the character string.
    * 
* * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
-   * Optional. A set of user-defined (key, value) data that provides additional
-   * information about the log entry.
+   * Optional. A map of key, value pairs that provides additional information about the
+   * log entry. The labels can be user-defined or system-defined.
+   * User-defined labels are arbitrary key, value pairs that you can use to
+   * classify logs.
+   * System-defined labels are defined by GCP services for platform logs.
+   * They have two components - a service namespace component and the
+   * attribute name. For example: `compute.googleapis.com/resource_name`.
+   * Cloud Logging truncates label keys that exceed 512 B and label
+   * values that exceed 64 KB upon their associated log entry being
+   * written. The truncation is indicated by an ellipsis at the
+   * end of the character string.
    * 
* * 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 java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -1076,17 +986,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 @@ -1094,36 +999,25 @@ 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() { @@ -1133,8 +1027,6 @@ public com.google.logging.v2.LogEntryOperationOrBuilder getOperationOrBuilder() public static final int TRACE_FIELD_NUMBER = 22; private volatile java.lang.Object trace_; /** - * - * *
    * Optional. Resource name of the trace associated with the log entry, if any. If it
    * contains a relative resource name, the name is assumed to be relative to
@@ -1143,7 +1035,6 @@ public com.google.logging.v2.LogEntryOperationOrBuilder getOperationOrBuilder()
    * 
* * string trace = 22 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The trace. */ @java.lang.Override @@ -1152,15 +1043,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. Resource name of the trace associated with the log entry, if any. If it
    * contains a relative resource name, the name is assumed to be relative to
@@ -1169,15 +1059,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 { @@ -1188,8 +1079,6 @@ public com.google.protobuf.ByteString getTraceBytes() { public static final int SPAN_ID_FIELD_NUMBER = 27; private volatile java.lang.Object spanId_; /** - * - * *
    * Optional. The span ID within the trace associated with the log entry.
    * For Trace spans, this is the same format that the Trace API v2 uses: a
@@ -1198,7 +1087,6 @@ public com.google.protobuf.ByteString getTraceBytes() {
    * 
* * string span_id = 27 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The spanId. */ @java.lang.Override @@ -1207,15 +1095,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 span ID within the trace associated with the log entry.
    * For Trace spans, this is the same format that the Trace API v2 uses: a
@@ -1224,15 +1111,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 { @@ -1243,8 +1131,6 @@ public com.google.protobuf.ByteString getSpanIdBytes() { public static final int TRACE_SAMPLED_FIELD_NUMBER = 30; private boolean traceSampled_; /** - * - * *
    * Optional. The sampling decision of the trace associated with the log entry.
    * True means that the trace resource name in the `trace` field was sampled
@@ -1255,7 +1141,6 @@ public com.google.protobuf.ByteString getSpanIdBytes() {
    * 
* * bool trace_sampled = 30 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The traceSampled. */ @java.lang.Override @@ -1266,16 +1151,11 @@ 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 @@ -1283,42 +1163,71 @@ 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 getSourceLocation(); } - private byte memoizedIsInitialized = -1; + 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 + 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 + 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.
+   * 
+ * + * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.logging.v2.LogSplitOrBuilder getSplitOrBuilder() { + return getSplit(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1330,7 +1239,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_); } @@ -1355,8 +1265,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_); } @@ -1378,6 +1292,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (traceSampled_ != false) { output.writeBool(30, traceSampled_); } + if (split_ != null) { + output.writeMessage(35, getSplit()); + } unknownFields.writeTo(output); } @@ -1388,9 +1305,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_); @@ -1399,52 +1315,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1454,54 +1381,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 (!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: @@ -1552,11 +1499,16 @@ 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(); } + if (hasSplit()) { + hash = (37 * hash) + SPLIT_FIELD_NUMBER; + hash = (53 * hash) + getSplit().hashCode(); + } switch (payloadCase_) { case 2: hash = (37 * hash) + PROTO_PAYLOAD_FIELD_NUMBER; @@ -1578,143 +1530,138 @@ 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); } @@ -1724,15 +1671,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1785,15 +1733,21 @@ public Builder clear() { sourceLocation_ = null; sourceLocationBuilder_ = null; } + if (splitBuilder_ == null) { + split_ = null; + } else { + split_ = null; + splitBuilder_ = null; + } payloadCase_ = 0; payload_ = null; return this; } @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 @@ -1869,6 +1823,11 @@ public com.google.logging.v2.LogEntry buildPartial() { } else { result.sourceLocation_ = sourceLocationBuilder_.build(); } + if (splitBuilder_ == null) { + result.split_ = split_; + } else { + result.split_ = splitBuilder_.build(); + } result.payloadCase_ = payloadCase_; onBuilt(); return result; @@ -1878,39 +1837,38 @@ public com.google.logging.v2.LogEntry 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.LogEntry) { - return mergeFrom((com.google.logging.v2.LogEntry) other); + return mergeFrom((com.google.logging.v2.LogEntry)other); } else { super.mergeFrom(other); return this; @@ -1942,7 +1900,8 @@ public Builder mergeFrom(com.google.logging.v2.LogEntry other) { if (other.hasHttpRequest()) { mergeHttpRequest(other.getHttpRequest()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (other.hasOperation()) { mergeOperation(other.getOperation()); } @@ -1960,28 +1919,27 @@ public Builder mergeFrom(com.google.logging.v2.LogEntry other) { if (other.hasSourceLocation()) { mergeSourceLocation(other.getSourceLocation()); } + if (other.hasSplit()) { + 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.unknownFields); onChanged(); @@ -2011,12 +1969,12 @@ public Builder mergeFrom( } 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() { @@ -2030,8 +1988,6 @@ public Builder clearPayload() { private java.lang.Object logName_ = ""; /** - * - * *
      * Required. The resource name of the log to which this log entry belongs:
      *     "projects/[PROJECT_ID]/logs/[LOG_ID]"
@@ -2047,20 +2003,20 @@ public Builder clearPayload() {
      * following characters: upper and lower case alphanumeric characters,
      * forward-slash, underscore, hyphen, and period.
      * For backward compatibility, if `log_name` begins with a forward-slash, such
-     * as `/projects/...`, then the log entry is ingested as usual but the
+     * as `/projects/...`, then the log entry is ingested as usual, but the
      * forward-slash is removed. Listing the log entry will not show the leading
      * slash and filtering for a log name with a leading slash will never return
      * any results.
      * 
* * 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; @@ -2069,8 +2025,6 @@ public java.lang.String getLogName() { } } /** - * - * *
      * Required. The resource name of the log to which this log entry belongs:
      *     "projects/[PROJECT_ID]/logs/[LOG_ID]"
@@ -2086,21 +2040,22 @@ public java.lang.String getLogName() {
      * following characters: upper and lower case alphanumeric characters,
      * forward-slash, underscore, hyphen, and period.
      * For backward compatibility, if `log_name` begins with a forward-slash, such
-     * as `/projects/...`, then the log entry is ingested as usual but the
+     * as `/projects/...`, then the log entry is ingested as usual, but the
      * forward-slash is removed. Listing the log entry will not show the leading
      * slash and filtering for a log name with a leading slash will never return
      * any results.
      * 
* * 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 { @@ -2108,8 +2063,6 @@ public com.google.protobuf.ByteString getLogNameBytes() { } } /** - * - * *
      * Required. The resource name of the log to which this log entry belongs:
      *     "projects/[PROJECT_ID]/logs/[LOG_ID]"
@@ -2125,29 +2078,27 @@ public com.google.protobuf.ByteString getLogNameBytes() {
      * following characters: upper and lower case alphanumeric characters,
      * forward-slash, underscore, hyphen, and period.
      * For backward compatibility, if `log_name` begins with a forward-slash, such
-     * as `/projects/...`, then the log entry is ingested as usual but the
+     * as `/projects/...`, then the log entry is ingested as usual, but the
      * forward-slash is removed. Listing the log entry will not show the leading
      * slash and filtering for a log name with a leading slash will never return
      * any results.
      * 
* * 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) { + public Builder setLogName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + logName_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the log to which this log entry belongs:
      *     "projects/[PROJECT_ID]/logs/[LOG_ID]"
@@ -2163,25 +2114,22 @@ public Builder setLogName(java.lang.String value) {
      * following characters: upper and lower case alphanumeric characters,
      * forward-slash, underscore, hyphen, and period.
      * For backward compatibility, if `log_name` begins with a forward-slash, such
-     * as `/projects/...`, then the log entry is ingested as usual but the
+     * as `/projects/...`, then the log entry is ingested as usual, but the
      * forward-slash is removed. Listing the log entry will not show the leading
      * slash and filtering for a log name with a leading slash will never return
      * any results.
      * 
* * string log_name = 12 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearLogName() { - + logName_ = getDefaultInstance().getLogName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the log to which this log entry belongs:
      *     "projects/[PROJECT_ID]/logs/[LOG_ID]"
@@ -2197,23 +2145,23 @@ public Builder clearLogName() {
      * following characters: upper and lower case alphanumeric characters,
      * forward-slash, underscore, hyphen, and period.
      * For backward compatibility, if `log_name` begins with a forward-slash, such
-     * as `/projects/...`, then the log entry is ingested as usual but the
+     * as `/projects/...`, then the log entry is ingested as usual, but the
      * forward-slash is removed. Listing the log entry will not show the leading
      * slash and filtering for a log name with a leading slash will never return
      * any results.
      * 
* * 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) { + public Builder setLogNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + logName_ = value; onChanged(); return this; @@ -2221,13 +2169,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.
      * Example: a log entry that reports a database error would be associated with
@@ -2235,17 +2178,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 resourceBuilder_ != null || resource_ != null; } /** - * - * *
      * Required. The monitored resource that produced this log entry.
      * Example: a log entry that reports a database error would be associated with
@@ -2253,23 +2192,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.
      * Example: a log entry that reports a database error would be associated with
@@ -2277,8 +2210,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) { @@ -2294,8 +2226,6 @@ public Builder setResource(com.google.api.MonitoredResource value) { return this; } /** - * - * *
      * Required. The monitored resource that produced this log entry.
      * Example: a log entry that reports a database error would be associated with
@@ -2303,10 +2233,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(); onChanged(); @@ -2317,8 +2247,6 @@ public Builder setResource(com.google.api.MonitoredResource.Builder builderForVa return this; } /** - * - * *
      * Required. The monitored resource that produced this log entry.
      * Example: a log entry that reports a database error would be associated with
@@ -2326,16 +2254,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 (resource_ != null) { resource_ = - com.google.api.MonitoredResource.newBuilder(resource_) - .mergeFrom(value) - .buildPartial(); + com.google.api.MonitoredResource.newBuilder(resource_).mergeFrom(value).buildPartial(); } else { resource_ = value; } @@ -2347,8 +2272,6 @@ public Builder mergeResource(com.google.api.MonitoredResource value) { return this; } /** - * - * *
      * Required. The monitored resource that produced this log entry.
      * Example: a log entry that reports a database error would be associated with
@@ -2356,8 +2279,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() { if (resourceBuilder_ == null) { @@ -2371,8 +2293,6 @@ public Builder clearResource() { return this; } /** - * - * *
      * Required. The monitored resource that produced this log entry.
      * Example: a log entry that reports a database error would be associated with
@@ -2380,17 +2300,14 @@ 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() { - + onChanged(); return getResourceFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The monitored resource that produced this log entry.
      * Example: a log entry that reports a database error would be associated with
@@ -2398,21 +2315,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.
      * Example: a log entry that reports a database error would be associated with
@@ -2420,34 +2333,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.
@@ -2458,7 +2362,6 @@ public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() {
      * 
* * .google.protobuf.Any proto_payload = 2; - * * @return Whether the protoPayload field is set. */ @java.lang.Override @@ -2466,8 +2369,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.
@@ -2478,7 +2379,6 @@ public boolean hasProtoPayload() {
      * 
* * .google.protobuf.Any proto_payload = 2; - * * @return The protoPayload. */ @java.lang.Override @@ -2496,8 +2396,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.
@@ -2523,8 +2421,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.
@@ -2536,7 +2432,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();
@@ -2547,8 +2444,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.
@@ -2562,11 +2457,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;
         }
@@ -2581,8 +2475,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.
@@ -2611,8 +2503,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.
@@ -2628,8 +2518,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.
@@ -2653,8 +2541,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.
@@ -2667,37 +2553,30 @@ 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;
-      onChanged();
-      ;
+      onChanged();;
       return protoPayloadBuilder_;
     }
 
     /**
-     *
-     *
      * 
      * 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 @@ -2705,14 +2584,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 @@ -2722,7 +2598,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; @@ -2733,25 +2610,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; } @@ -2761,35 +2637,30 @@ 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) { + public Builder setTextPayload( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - payloadCase_ = 3; + 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() { @@ -2801,22 +2672,20 @@ 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) { + public Builder setTextPayloadBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); payloadCase_ = 3; payload_ = value; onChanged(); @@ -2824,20 +2693,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 @@ -2845,15 +2708,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 @@ -2871,8 +2731,6 @@ public com.google.protobuf.Struct getJsonPayload() { } } /** - * - * *
      * The log entry payload, represented as a structure that is
      * expressed as a JSON object.
@@ -2894,8 +2752,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.
@@ -2903,7 +2759,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();
@@ -2914,8 +2771,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.
@@ -2925,11 +2780,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;
         }
@@ -2944,8 +2798,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.
@@ -2970,8 +2822,6 @@ public Builder clearJsonPayload() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The log entry payload, represented as a structure that is
      * expressed as a JSON object.
@@ -2983,8 +2833,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.
@@ -3004,8 +2852,6 @@ public com.google.protobuf.StructOrBuilder getJsonPayloadOrBuilder() {
       }
     }
     /**
-     *
-     *
      * 
      * The log entry payload, represented as a structure that is
      * expressed as a JSON object.
@@ -3014,37 +2860,28 @@ 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;
-      onChanged();
-      ;
+      onChanged();;
       return jsonPayloadBuilder_;
     }
 
     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 period.
@@ -3058,17 +2895,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 timestampBuilder_ != null || 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 period.
@@ -3082,9 +2915,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() { @@ -3095,8 +2926,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 period.
@@ -3110,8 +2939,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) { @@ -3127,8 +2955,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 period.
@@ -3142,10 +2968,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(); onChanged(); @@ -3156,8 +2982,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 period.
@@ -3171,14 +2995,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 (timestamp_ != null) { timestamp_ = - com.google.protobuf.Timestamp.newBuilder(timestamp_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(timestamp_).mergeFrom(value).buildPartial(); } else { timestamp_ = value; } @@ -3190,8 +3013,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 period.
@@ -3205,8 +3026,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() { if (timestampBuilder_ == null) { @@ -3220,8 +3040,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 period.
@@ -3235,17 +3053,14 @@ 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() { - + onChanged(); 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 period.
@@ -3259,19 +3074,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 period.
@@ -3285,21 +3098,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_; @@ -3307,58 +3116,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 receiveTimestampBuilder_ != null || 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. */ 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) { @@ -3374,17 +3164,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(); onChanged(); @@ -3395,23 +3182,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 (receiveTimestamp_ != null) { receiveTimestamp_ = - com.google.protobuf.Timestamp.newBuilder(receiveTimestamp_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(receiveTimestamp_).mergeFrom(value).buildPartial(); } else { receiveTimestamp_ = value; } @@ -3423,15 +3204,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() { if (receiveTimestampBuilder_ == null) { @@ -3445,64 +3222,48 @@ 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() { - + onChanged(); 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_; @@ -3510,73 +3271,51 @@ 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. */ public Builder setSeverityValue(int value) { - + severity_ = value; onChanged(); 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() { @SuppressWarnings("deprecation") - com.google.logging.type.LogSeverity result = - com.google.logging.type.LogSeverity.valueOf(severity_); + com.google.logging.type.LogSeverity result = com.google.logging.type.LogSeverity.valueOf(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. */ @@ -3584,26 +3323,21 @@ public Builder setSeverity(com.google.logging.type.LogSeverity value) { if (value == null) { throw new NullPointerException(); } - + severity_ = value.getNumber(); onChanged(); 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() { - + severity_ = 0; onChanged(); return this; @@ -3611,8 +3345,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
@@ -3620,19 +3352,19 @@ public Builder clearSeverity() {
      * removed in a single query result. However, there are no guarantees of
      * de-duplication in the export of logs.
      * If the `insert_id` is omitted when writing a log entry, the Logging API
-     *  assigns its own unique identifier in this field.
+     * assigns its own unique identifier in this field.
      * In queries, the `insert_id` is also used to order log entries that have
      * the same `log_name` and `timestamp` values.
      * 
* * 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; @@ -3641,8 +3373,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
@@ -3650,20 +3380,21 @@ public java.lang.String getInsertId() {
      * removed in a single query result. However, there are no guarantees of
      * de-duplication in the export of logs.
      * If the `insert_id` is omitted when writing a log entry, the Logging API
-     *  assigns its own unique identifier in this field.
+     * assigns its own unique identifier in this field.
      * In queries, the `insert_id` is also used to order log entries that have
      * the same `log_name` and `timestamp` values.
      * 
* * 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 { @@ -3671,8 +3402,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
@@ -3680,28 +3409,26 @@ public com.google.protobuf.ByteString getInsertIdBytes() {
      * removed in a single query result. However, there are no guarantees of
      * de-duplication in the export of logs.
      * If the `insert_id` is omitted when writing a log entry, the Logging API
-     *  assigns its own unique identifier in this field.
+     * assigns its own unique identifier in this field.
      * In queries, the `insert_id` is also used to order log entries that have
      * the same `log_name` and `timestamp` values.
      * 
* * 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) { + public Builder setInsertId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + insertId_ = value; 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
@@ -3709,24 +3436,21 @@ public Builder setInsertId(java.lang.String value) {
      * removed in a single query result. However, there are no guarantees of
      * de-duplication in the export of logs.
      * If the `insert_id` is omitted when writing a log entry, the Logging API
-     *  assigns its own unique identifier in this field.
+     * assigns its own unique identifier in this field.
      * In queries, the `insert_id` is also used to order log entries that have
      * the same `log_name` and `timestamp` values.
      * 
* * string insert_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearInsertId() { - + insertId_ = getDefaultInstance().getInsertId(); 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
@@ -3734,22 +3458,22 @@ public Builder clearInsertId() {
      * removed in a single query result. However, there are no guarantees of
      * de-duplication in the export of logs.
      * If the `insert_id` is omitted when writing a log entry, the Logging API
-     *  assigns its own unique identifier in this field.
+     * assigns its own unique identifier in this field.
      * In queries, the `insert_id` is also used to order log entries that have
      * the same `log_name` and `timestamp` values.
      * 
* * 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) { + public Builder setInsertIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + insertId_ = value; onChanged(); return this; @@ -3757,61 +3481,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 httpRequestBuilder_ != null || 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. */ 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) { @@ -3827,18 +3532,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(); onChanged(); @@ -3849,24 +3551,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 (httpRequest_ != null) { httpRequest_ = - com.google.logging.type.HttpRequest.newBuilder(httpRequest_) - .mergeFrom(value) - .buildPartial(); + com.google.logging.type.HttpRequest.newBuilder(httpRequest_).mergeFrom(value).buildPartial(); } else { httpRequest_ = value; } @@ -3878,16 +3574,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() { if (httpRequestBuilder_ == null) { @@ -3901,87 +3593,72 @@ 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() { - + onChanged(); 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() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; 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(); @@ -3993,77 +3670,110 @@ public int getLabelsCount() { return internalGetLabels().getMap().size(); } /** - * - * *
-     * Optional. A set of user-defined (key, value) data that provides additional
-     * information about the log entry.
+     * Optional. A map of key, value pairs that provides additional information about the
+     * log entry. The labels can be user-defined or system-defined.
+     * User-defined labels are arbitrary key, value pairs that you can use to
+     * classify logs.
+     * System-defined labels are defined by GCP services for platform logs.
+     * They have two components - a service namespace component and the
+     * attribute name. For example: `compute.googleapis.com/resource_name`.
+     * Cloud Logging truncates label keys that exceed 512 B and label
+     * values that exceed 64 KB upon their associated log entry being
+     * written. The truncation is indicated by an ellipsis at the
+     * end of the character string.
      * 
* * 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 java.lang.NullPointerException(); - } + public boolean containsLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } 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 set of user-defined (key, value) data that provides additional
-     * information about the log entry.
+     * Optional. A map of key, value pairs that provides additional information about the
+     * log entry. The labels can be user-defined or system-defined.
+     * User-defined labels are arbitrary key, value pairs that you can use to
+     * classify logs.
+     * System-defined labels are defined by GCP services for platform logs.
+     * They have two components - a service namespace component and the
+     * attribute name. For example: `compute.googleapis.com/resource_name`.
+     * Cloud Logging truncates label keys that exceed 512 B and label
+     * values that exceed 64 KB upon their associated log entry being
+     * written. The truncation is indicated by an ellipsis at the
+     * end of the character string.
      * 
* * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.util.Map getLabelsMap() { return internalGetLabels().getMap(); } /** - * - * *
-     * Optional. A set of user-defined (key, value) data that provides additional
-     * information about the log entry.
+     * Optional. A map of key, value pairs that provides additional information about the
+     * log entry. The labels can be user-defined or system-defined.
+     * User-defined labels are arbitrary key, value pairs that you can use to
+     * classify logs.
+     * System-defined labels are defined by GCP services for platform logs.
+     * They have two components - a service namespace component and the
+     * attribute name. For example: `compute.googleapis.com/resource_name`.
+     * Cloud Logging truncates label keys that exceed 512 B and label
+     * values that exceed 64 KB upon their associated log entry being
+     * written. The truncation is indicated by an ellipsis at the
+     * end of the character string.
      * 
* * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override + public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
-     * Optional. A set of user-defined (key, value) data that provides additional
-     * information about the log entry.
+     * Optional. A map of key, value pairs that provides additional information about the
+     * log entry. The labels can be user-defined or system-defined.
+     * User-defined labels are arbitrary key, value pairs that you can use to
+     * classify logs.
+     * System-defined labels are defined by GCP services for platform logs.
+     * They have two components - a service namespace component and the
+     * attribute name. For example: `compute.googleapis.com/resource_name`.
+     * Cloud Logging truncates label keys that exceed 512 B and label
+     * values that exceed 64 KB upon their associated log entry being
+     * written. The truncation is indicated by an ellipsis at the
+     * end of the character string.
      * 
* * 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 java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabels().getMap(); + + public java.lang.String getLabelsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabels().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -4071,123 +3781,132 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - internalGetMutableLabels().getMutableMap().clear(); + internalGetMutableLabels().getMutableMap() + .clear(); return this; } /** - * - * *
-     * Optional. A set of user-defined (key, value) data that provides additional
-     * information about the log entry.
+     * Optional. A map of key, value pairs that provides additional information about the
+     * log entry. The labels can be user-defined or system-defined.
+     * User-defined labels are arbitrary key, value pairs that you can use to
+     * classify logs.
+     * System-defined labels are defined by GCP services for platform logs.
+     * They have two components - a service namespace component and the
+     * attribute name. For example: `compute.googleapis.com/resource_name`.
+     * Cloud Logging truncates label keys that exceed 512 B and label
+     * values that exceed 64 KB upon their associated log entry being
+     * written. The truncation is indicated by an ellipsis at the
+     * end of the character string.
      * 
* * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableLabels().getMutableMap().remove(key); + + public Builder removeLabels( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + 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() { return internalGetMutableLabels().getMutableMap(); } /** - * - * *
-     * Optional. A set of user-defined (key, value) data that provides additional
-     * information about the log entry.
+     * Optional. A map of key, value pairs that provides additional information about the
+     * log entry. The labels can be user-defined or system-defined.
+     * User-defined labels are arbitrary key, value pairs that you can use to
+     * classify logs.
+     * System-defined labels are defined by GCP services for platform logs.
+     * They have two components - a service namespace component and the
+     * attribute name. For example: `compute.googleapis.com/resource_name`.
+     * Cloud Logging truncates label keys that exceed 512 B and label
+     * values that exceed 64 KB upon their associated log entry being
+     * written. The truncation is indicated by an ellipsis at the
+     * end of the character string.
      * 
* * 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 java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableLabels().getMutableMap().put(key, value); + public Builder putLabels( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableLabels().getMutableMap() + .put(key, value); return this; } /** - * - * *
-     * Optional. A set of user-defined (key, value) data that provides additional
-     * information about the log entry.
+     * Optional. A map of key, value pairs that provides additional information about the
+     * log entry. The labels can be user-defined or system-defined.
+     * User-defined labels are arbitrary key, value pairs that you can use to
+     * classify logs.
+     * System-defined labels are defined by GCP services for platform logs.
+     * They have two components - a service namespace component and the
+     * attribute name. For example: `compute.googleapis.com/resource_name`.
+     * Cloud Logging truncates label keys that exceed 512 B and label
+     * values that exceed 64 KB upon their associated log entry being
+     * written. The truncation is indicated by an ellipsis at the
+     * end of the character string.
      * 
* * 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); 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 operationBuilder_ != null || 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. */ 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) { @@ -4203,18 +3922,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(); onChanged(); @@ -4225,24 +3941,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 (operation_ != null) { operation_ = - com.google.logging.v2.LogEntryOperation.newBuilder(operation_) - .mergeFrom(value) - .buildPartial(); + com.google.logging.v2.LogEntryOperation.newBuilder(operation_).mergeFrom(value).buildPartial(); } else { operation_ = value; } @@ -4254,16 +3964,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() { if (operationBuilder_ == null) { @@ -4277,67 +3983,51 @@ 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() { - + onChanged(); 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_; @@ -4345,8 +4035,6 @@ public com.google.logging.v2.LogEntryOperationOrBuilder getOperationOrBuilder() private java.lang.Object trace_ = ""; /** - * - * *
      * Optional. Resource name of the trace associated with the log entry, if any. If it
      * contains a relative resource name, the name is assumed to be relative to
@@ -4355,13 +4043,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; @@ -4370,8 +4058,6 @@ public java.lang.String getTrace() { } } /** - * - * *
      * Optional. Resource name of the trace associated with the log entry, if any. If it
      * contains a relative resource name, the name is assumed to be relative to
@@ -4380,14 +4066,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 { @@ -4395,8 +4082,6 @@ public com.google.protobuf.ByteString getTraceBytes() { } } /** - * - * *
      * Optional. Resource name of the trace associated with the log entry, if any. If it
      * contains a relative resource name, the name is assumed to be relative to
@@ -4405,22 +4090,20 @@ 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) { + public Builder setTrace( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + trace_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Resource name of the trace associated with the log entry, if any. If it
      * contains a relative resource name, the name is assumed to be relative to
@@ -4429,18 +4112,15 @@ public Builder setTrace(java.lang.String value) {
      * 
* * string trace = 22 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearTrace() { - + trace_ = getDefaultInstance().getTrace(); onChanged(); return this; } /** - * - * *
      * Optional. Resource name of the trace associated with the log entry, if any. If it
      * contains a relative resource name, the name is assumed to be relative to
@@ -4449,16 +4129,16 @@ 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) { + public Builder setTraceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + trace_ = value; onChanged(); return this; @@ -4466,8 +4146,6 @@ public Builder setTraceBytes(com.google.protobuf.ByteString value) { private java.lang.Object spanId_ = ""; /** - * - * *
      * Optional. The span ID within the trace associated with the log entry.
      * For Trace spans, this is the same format that the Trace API v2 uses: a
@@ -4476,13 +4154,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; @@ -4491,8 +4169,6 @@ public java.lang.String getSpanId() { } } /** - * - * *
      * Optional. The span ID within the trace associated with the log entry.
      * For Trace spans, this is the same format that the Trace API v2 uses: a
@@ -4501,14 +4177,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 { @@ -4516,8 +4193,6 @@ public com.google.protobuf.ByteString getSpanIdBytes() { } } /** - * - * *
      * Optional. The span ID within the trace associated with the log entry.
      * For Trace spans, this is the same format that the Trace API v2 uses: a
@@ -4526,22 +4201,20 @@ 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) { + public Builder setSpanId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + spanId_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The span ID within the trace associated with the log entry.
      * For Trace spans, this is the same format that the Trace API v2 uses: a
@@ -4550,18 +4223,15 @@ public Builder setSpanId(java.lang.String value) {
      * 
* * string span_id = 27 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearSpanId() { - + spanId_ = getDefaultInstance().getSpanId(); onChanged(); return this; } /** - * - * *
      * Optional. The span ID within the trace associated with the log entry.
      * For Trace spans, this is the same format that the Trace API v2 uses: a
@@ -4570,25 +4240,23 @@ 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) { + public Builder setSpanIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + spanId_ = value; onChanged(); return this; } - private boolean traceSampled_; + private boolean traceSampled_ ; /** - * - * *
      * Optional. The sampling decision of the trace associated with the log entry.
      * True means that the trace resource name in the `trace` field was sampled
@@ -4599,7 +4267,6 @@ public Builder setSpanIdBytes(com.google.protobuf.ByteString value) {
      * 
* * bool trace_sampled = 30 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The traceSampled. */ @java.lang.Override @@ -4607,8 +4274,6 @@ public boolean getTraceSampled() { return traceSampled_; } /** - * - * *
      * Optional. The sampling decision of the trace associated with the log entry.
      * True means that the trace resource name in the `trace` field was sampled
@@ -4619,19 +4284,16 @@ public boolean getTraceSampled() {
      * 
* * bool trace_sampled = 30 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The traceSampled to set. * @return This builder for chaining. */ public Builder setTraceSampled(boolean value) { - + traceSampled_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The sampling decision of the trace associated with the log entry.
      * True means that the trace resource name in the `trace` field was sampled
@@ -4642,11 +4304,10 @@ public Builder setTraceSampled(boolean value) {
      * 
* * bool trace_sampled = 30 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearTraceSampled() { - + traceSampled_ = false; onChanged(); return this; @@ -4654,58 +4315,39 @@ 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 sourceLocationBuilder_ != null || 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. */ 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) { @@ -4721,15 +4363,11 @@ 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) { @@ -4743,23 +4381,17 @@ 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 (sourceLocation_ != null) { sourceLocation_ = - com.google.logging.v2.LogEntrySourceLocation.newBuilder(sourceLocation_) - .mergeFrom(value) - .buildPartial(); + com.google.logging.v2.LogEntrySourceLocation.newBuilder(sourceLocation_).mergeFrom(value).buildPartial(); } else { sourceLocation_ = value; } @@ -4771,15 +4403,11 @@ 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() { if (sourceLocationBuilder_ == null) { @@ -4793,71 +4421,219 @@ 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() { - + onChanged(); 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_; } + 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_; + /** + *
+     * 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. + */ + public boolean hasSplit() { + return splitBuilder_ != null || 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. + */ + public com.google.logging.v2.LogSplit getSplit() { + if (splitBuilder_ == null) { + return split_ == null ? com.google.logging.v2.LogSplit.getDefaultInstance() : split_; + } else { + return splitBuilder_.getMessage(); + } + } + /** + *
+     * 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]; + */ + public Builder setSplit(com.google.logging.v2.LogSplit value) { + if (splitBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + split_ = value; + onChanged(); + } else { + splitBuilder_.setMessage(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]; + */ + public Builder setSplit( + com.google.logging.v2.LogSplit.Builder builderForValue) { + if (splitBuilder_ == null) { + split_ = builderForValue.build(); + onChanged(); + } else { + splitBuilder_.setMessage(builderForValue.build()); + } + + 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]; + */ + public Builder mergeSplit(com.google.logging.v2.LogSplit value) { + if (splitBuilder_ == null) { + if (split_ != null) { + split_ = + com.google.logging.v2.LogSplit.newBuilder(split_).mergeFrom(value).buildPartial(); + } else { + split_ = value; + } + onChanged(); + } else { + splitBuilder_.mergeFrom(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]; + */ + public Builder clearSplit() { + if (splitBuilder_ == null) { + split_ = null; + onChanged(); + } else { + split_ = null; + splitBuilder_ = null; + } + + 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]; + */ + public com.google.logging.v2.LogSplit.Builder getSplitBuilder() { + + onChanged(); + 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]; + */ + public com.google.logging.v2.LogSplitOrBuilder getSplitOrBuilder() { + if (splitBuilder_ != null) { + return splitBuilder_.getMessageOrBuilder(); + } else { + 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]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + 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()); + 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); } @@ -4867,12 +4643,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(); } @@ -4881,16 +4657,16 @@ 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 { - return new LogEntry(input, extensionRegistry); - } - }; + 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 { + return new LogEntry(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4905,4 +4681,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 74% 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 54252bcd4..6c72fe3e8 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,15 +27,16 @@ private LogEntryOperation() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new LogEntryOperation();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private LogEntryOperation(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,76 +55,69 @@ private LogEntryOperation(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              id_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            id_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              producer_ = s;
-              break;
-            }
-          case 24:
-            {
-              first_ = input.readBool();
-              break;
-            }
-          case 32:
-            {
-              last_ = input.readBool();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            producer_ = s;
+            break;
+          }
+          case 24: {
+
+            first_ = input.readBool();
+            break;
+          }
+          case 32: {
+
+            last_ = input.readBool();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  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;
   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 @@ -150,30 +126,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 { @@ -184,8 +160,6 @@ public com.google.protobuf.ByteString getIdBytes() { public static final int PRODUCER_FIELD_NUMBER = 2; private volatile java.lang.Object producer_; /** - * - * *
    * Optional. An arbitrary producer identifier. The combination of `id` and
    * `producer` must be globally unique. Examples for `producer`:
@@ -193,7 +167,6 @@ public com.google.protobuf.ByteString getIdBytes() {
    * 
* * string producer = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The producer. */ @java.lang.Override @@ -202,15 +175,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`:
@@ -218,15 +190,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 { @@ -237,14 +210,11 @@ public com.google.protobuf.ByteString getProducerBytes() { public static final int FIRST_FIELD_NUMBER = 3; 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 @@ -255,14 +225,11 @@ public boolean getFirst() { public static final int LAST_FIELD_NUMBER = 4; 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 @@ -271,7 +238,6 @@ public boolean getLast() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -283,7 +249,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_); } @@ -312,10 +279,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -325,17 +294,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -352,112 +325,107 @@ 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) + unknownFields.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.
@@ -465,23 +433,21 @@ 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()
@@ -489,15 +455,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -513,9 +480,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
@@ -534,8 +501,7 @@ 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);
+      com.google.logging.v2.LogEntryOperation result = new com.google.logging.v2.LogEntryOperation(this);
       result.id_ = id_;
       result.producer_ = producer_;
       result.first_ = first_;
@@ -548,39 +514,38 @@ public com.google.logging.v2.LogEntryOperation 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.LogEntryOperation) {
-        return mergeFrom((com.google.logging.v2.LogEntryOperation) other);
+        return mergeFrom((com.google.logging.v2.LogEntryOperation)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -634,21 +599,19 @@ public Builder mergeFrom(
 
     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; @@ -657,22 +620,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 { @@ -680,64 +642,57 @@ 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) { + public Builder setId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + id_ = value; 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() { - + id_ = getDefaultInstance().getId(); 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]; - * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes(com.google.protobuf.ByteString value) { + public Builder setIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; onChanged(); return this; @@ -745,8 +700,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`:
@@ -754,13 +707,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; @@ -769,8 +722,6 @@ public java.lang.String getProducer() { } } /** - * - * *
      * Optional. An arbitrary producer identifier. The combination of `id` and
      * `producer` must be globally unique. Examples for `producer`:
@@ -778,14 +729,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 { @@ -793,8 +745,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`:
@@ -802,22 +752,20 @@ 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) { + public Builder setProducer( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + producer_ = value; onChanged(); return this; } /** - * - * *
      * Optional. An arbitrary producer identifier. The combination of `id` and
      * `producer` must be globally unique. Examples for `producer`:
@@ -825,18 +773,15 @@ public Builder setProducer(java.lang.String value) {
      * 
* * string producer = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearProducer() { - + producer_ = getDefaultInstance().getProducer(); onChanged(); return this; } /** - * - * *
      * Optional. An arbitrary producer identifier. The combination of `id` and
      * `producer` must be globally unique. Examples for `producer`:
@@ -844,31 +789,28 @@ 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) { + public Builder setProducerBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + producer_ = value; onChanged(); 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 @@ -876,51 +818,42 @@ 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. */ public Builder setFirst(boolean value) { - + first_ = value; onChanged(); 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() { - + first_ = false; onChanged(); 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 @@ -928,43 +861,37 @@ 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. */ public Builder setLast(boolean value) { - + last_ = value; onChanged(); 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() { - + last_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -974,12 +901,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(); } @@ -988,16 +915,16 @@ 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 { - return new LogEntryOperation(input, extensionRegistry); - } - }; + 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 { + return new LogEntryOperation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1012,4 +939,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 2ed903f6e..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 71% 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 2a7e00bb9..2404f490d 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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:
    *     "projects/[PROJECT_ID]/logs/[LOG_ID]"
@@ -41,20 +23,17 @@ public interface LogEntryOrBuilder
    * following characters: upper and lower case alphanumeric characters,
    * forward-slash, underscore, hyphen, and period.
    * For backward compatibility, if `log_name` begins with a forward-slash, such
-   * as `/projects/...`, then the log entry is ingested as usual but the
+   * as `/projects/...`, then the log entry is ingested as usual, but the
    * forward-slash is removed. Listing the log entry will not show the leading
    * slash and filtering for a log name with a leading slash will never return
    * any results.
    * 
* * 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:
    *     "projects/[PROJECT_ID]/logs/[LOG_ID]"
@@ -70,21 +49,19 @@ public interface LogEntryOrBuilder
    * following characters: upper and lower case alphanumeric characters,
    * forward-slash, underscore, hyphen, and period.
    * For backward compatibility, if `log_name` begins with a forward-slash, such
-   * as `/projects/...`, then the log entry is ingested as usual but the
+   * as `/projects/...`, then the log entry is ingested as usual, but the
    * forward-slash is removed. Listing the log entry will not show the leading
    * slash and filtering for a log name with a leading slash will never return
    * any results.
    * 
* * 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.
    * Example: a log entry that reports a database error would be associated with
@@ -92,15 +69,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.
    * Example: a log entry that reports a database error would be associated with
@@ -108,15 +81,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.
    * Example: a log entry that reports a database error would be associated with
@@ -124,14 +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]; */ 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.
@@ -142,13 +108,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.
@@ -159,13 +122,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.
@@ -180,71 +140,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.
@@ -255,8 +199,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 period.
@@ -270,15 +212,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 period.
@@ -292,15 +230,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 period.
@@ -314,82 +248,57 @@ 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
@@ -397,19 +306,16 @@ public interface LogEntryOrBuilder
    * removed in a single query result. However, there are no guarantees of
    * de-duplication in the export of logs.
    * If the `insert_id` is omitted when writing a log entry, the Logging API
-   *  assigns its own unique identifier in this field.
+   * assigns its own unique identifier in this field.
    * In queries, the `insert_id` is also used to order log entries that have
    * the same `log_name` and `timestamp` values.
    * 
* * 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
@@ -417,167 +323,182 @@ public interface LogEntryOrBuilder
    * removed in a single query result. However, there are no guarantees of
    * de-duplication in the export of logs.
    * If the `insert_id` is omitted when writing a log entry, the Logging API
-   *  assigns its own unique identifier in this field.
+   * assigns its own unique identifier in this field.
    * In queries, the `insert_id` is also used to order log entries that have
    * the same `log_name` and `timestamp` values.
    * 
* * 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 set of user-defined (key, value) data that provides additional
-   * information about the log entry.
+   * Optional. A map of key, value pairs that provides additional information about the
+   * log entry. The labels can be user-defined or system-defined.
+   * User-defined labels are arbitrary key, value pairs that you can use to
+   * classify logs.
+   * System-defined labels are defined by GCP services for platform logs.
+   * They have two components - a service namespace component and the
+   * attribute name. For example: `compute.googleapis.com/resource_name`.
+   * Cloud Logging truncates label keys that exceed 512 B and label
+   * values that exceed 64 KB upon their associated log entry being
+   * written. The truncation is indicated by an ellipsis at the
+   * end of the character string.
    * 
* * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; */ int getLabelsCount(); /** - * - * *
-   * Optional. A set of user-defined (key, value) data that provides additional
-   * information about the log entry.
+   * Optional. A map of key, value pairs that provides additional information about the
+   * log entry. The labels can be user-defined or system-defined.
+   * User-defined labels are arbitrary key, value pairs that you can use to
+   * classify logs.
+   * System-defined labels are defined by GCP services for platform logs.
+   * They have two components - a service namespace component and the
+   * attribute name. For example: `compute.googleapis.com/resource_name`.
+   * Cloud Logging truncates label keys that exceed 512 B and label
+   * values that exceed 64 KB upon their associated log entry being
+   * written. The truncation is indicated by an ellipsis at the
+   * end of the character string.
    * 
* * 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 set of user-defined (key, value) data that provides additional
-   * information about the log entry.
+   * Optional. A map of key, value pairs that provides additional information about the
+   * log entry. The labels can be user-defined or system-defined.
+   * User-defined labels are arbitrary key, value pairs that you can use to
+   * classify logs.
+   * System-defined labels are defined by GCP services for platform logs.
+   * They have two components - a service namespace component and the
+   * attribute name. For example: `compute.googleapis.com/resource_name`.
+   * Cloud Logging truncates label keys that exceed 512 B and label
+   * values that exceed 64 KB upon their associated log entry being
+   * written. The truncation is indicated by an ellipsis at the
+   * end of the character string.
    * 
* * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - java.util.Map getLabelsMap(); + java.util.Map + getLabelsMap(); /** - * - * *
-   * Optional. A set of user-defined (key, value) data that provides additional
-   * information about the log entry.
+   * Optional. A map of key, value pairs that provides additional information about the
+   * log entry. The labels can be user-defined or system-defined.
+   * User-defined labels are arbitrary key, value pairs that you can use to
+   * classify logs.
+   * System-defined labels are defined by GCP services for platform logs.
+   * They have two components - a service namespace component and the
+   * attribute name. For example: `compute.googleapis.com/resource_name`.
+   * Cloud Logging truncates label keys that exceed 512 B and label
+   * values that exceed 64 KB upon their associated log entry being
+   * written. The truncation is indicated by an ellipsis at the
+   * end of the character string.
    * 
* * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; */ - java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); + + java.lang.String getLabelsOrDefault( + java.lang.String key, + java.lang.String defaultValue); /** - * - * *
-   * Optional. A set of user-defined (key, value) data that provides additional
-   * information about the log entry.
+   * Optional. A map of key, value pairs that provides additional information about the
+   * log entry. The labels can be user-defined or system-defined.
+   * User-defined labels are arbitrary key, value pairs that you can use to
+   * classify logs.
+   * System-defined labels are defined by GCP services for platform logs.
+   * They have two components - a service namespace component and the
+   * attribute name. For example: `compute.googleapis.com/resource_name`.
+   * Cloud Logging truncates label keys that exceed 512 B and label
+   * values that exceed 64 KB upon their associated log entry being
+   * written. The truncation is indicated by an ellipsis at the
+   * end of the character string.
    * 
* * 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. Resource name of the trace associated with the log entry, if any. If it
    * contains a relative resource name, the name is assumed to be relative to
@@ -586,13 +507,10 @@ public interface LogEntryOrBuilder
    * 
* * string trace = 22 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The trace. */ java.lang.String getTrace(); /** - * - * *
    * Optional. Resource name of the trace associated with the log entry, if any. If it
    * contains a relative resource name, the name is assumed to be relative to
@@ -601,14 +519,12 @@ public interface LogEntryOrBuilder
    * 
* * 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 span ID within the trace associated with the log entry.
    * For Trace spans, this is the same format that the Trace API v2 uses: a
@@ -617,13 +533,10 @@ public interface LogEntryOrBuilder
    * 
* * string span_id = 27 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The spanId. */ java.lang.String getSpanId(); /** - * - * *
    * Optional. The span ID within the trace associated with the log entry.
    * For Trace spans, this is the same format that the Trace API v2 uses: a
@@ -632,14 +545,12 @@ public interface LogEntryOrBuilder
    * 
* * 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.
    * True means that the trace resource name in the `trace` field was sampled
@@ -650,51 +561,66 @@ public interface LogEntryOrBuilder
    * 
* * 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.
+   * 
+ * + * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.logging.v2.LogSplitOrBuilder getSplitOrBuilder(); + public com.google.logging.v2.LogEntry.PayloadCase getPayloadCase(); } 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..e1519c9fc --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryProto.java @@ -0,0 +1,156 @@ +// 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\"\203\010\n\010LogEntry\022\025\n\010log_name\030\014 \001(\tB\003\340A\002\0224\n" + + "\010resource\030\010 \001(\0132\035.google.api.MonitoredRe" + + "sourceB\003\340A\002\022-\n\rproto_payload\030\002 \001(\0132\024.goo" + + "gle.protobuf.AnyH\000\022\026\n\014text_payload\030\003 \001(\t" + + "H\000\022/\n\014json_payload\030\006 \001(\0132\027.google.protob" + + "uf.StructH\000\0222\n\ttimestamp\030\t \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\001\022:\n\021receive_times" + + "tamp\030\030 \001(\0132\032.google.protobuf.TimestampB\003" + + "\340A\003\0227\n\010severity\030\n \001(\0162 .google.logging.t" + + "ype.LogSeverityB\003\340A\001\022\026\n\tinsert_id\030\004 \001(\tB" + + "\003\340A\001\022;\n\014http_request\030\007 \001(\0132 .google.logg" + + "ing.type.HttpRequestB\003\340A\001\022<\n\006labels\030\013 \003(" + + "\0132\'.google.logging.v2.LogEntry.LabelsEnt" + + "ryB\003\340A\001\022<\n\toperation\030\017 \001(\0132$.google.logg" + + "ing.v2.LogEntryOperationB\003\340A\001\022\022\n\005trace\030\026" + + " \001(\tB\003\340A\001\022\024\n\007span_id\030\033 \001(\tB\003\340A\001\022\032\n\rtrace" + + "_sampled\030\036 \001(\010B\003\340A\001\022G\n\017source_location\030\027" + + " \001(\0132).google.logging.v2.LogEntrySourceL" + + "ocationB\003\340A\001\022/\n\005split\030# \001(\0132\033.google.log" + + "ging.v2.LogSplitB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003" + + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\275\001\352A\271\001\n\032log" + + "ging.googleapis.com/Log\022\035projects/{proje" + + "ct}/logs/{log}\022\'organizations/{organizat" + + "ion}/logs/{log}\022\033folders/{folder}/logs/{" + + "log}\022,billingAccounts/{billing_account}/" + + "logs/{log}\032\010log_nameB\t\n\007payload\"b\n\021LogEn" + + "tryOperation\022\017\n\002id\030\001 \001(\tB\003\340A\001\022\025\n\010produce" + + "r\030\002 \001(\tB\003\340A\001\022\022\n\005first\030\003 \001(\010B\003\340A\001\022\021\n\004last" + + "\030\004 \001(\010B\003\340A\001\"U\n\026LogEntrySourceLocation\022\021\n" + + "\004file\030\001 \001(\tB\003\340A\001\022\021\n\004line\030\002 \001(\003B\003\340A\001\022\025\n\010f" + + "unction\030\003 \001(\tB\003\340A\001\"<\n\010LogSplit\022\013\n\003uid\030\001 " + + "\001(\t\022\r\n\005index\030\002 \001(\005\022\024\n\014total_splits\030\003 \001(\005" + + "B\266\001\n\025com.google.logging.v2B\rLogEntryProt" + + "oP\001Z8google.golang.org/genproto/googleap" + + "is/logging/v2;logging\370\001\001\252\002\027Google.Cloud." + + "Logging.V2\312\002\027Google\\Cloud\\Logging\\V2\352\002\032G" + + "oogle::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 74% 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 cd1a4368f..c7fdf6361 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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,15 +27,16 @@ private LogEntrySourceLocation() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new LogEntrySourceLocation();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private LogEntrySourceLocation(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,71 +55,64 @@ private LogEntrySourceLocation(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              file_ = s;
-              break;
-            }
-          case 16:
-            {
-              line_ = input.readInt64();
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            file_ = s;
+            break;
+          }
+          case 16: {
 
-              function_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            line_ = input.readInt64();
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            function_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  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;
   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 @@ -145,30 +121,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 { @@ -179,15 +155,12 @@ public com.google.protobuf.ByteString getFileBytes() { public static final int LINE_FIELD_NUMBER = 2; 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 @@ -198,8 +171,6 @@ public long getLine() { public static final int FUNCTION_FIELD_NUMBER = 3; 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
@@ -210,7 +181,6 @@ public long getLine() {
    * 
* * string function = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The function. */ @java.lang.Override @@ -219,15 +189,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
@@ -238,15 +207,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 { @@ -255,7 +225,6 @@ public com.google.protobuf.ByteString getFunctionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,7 +236,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(file_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, file_); } @@ -290,7 +260,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_); @@ -303,17 +274,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -328,7 +301,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) + unknownFields.hashCode(); @@ -336,104 +310,97 @@ 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.
@@ -441,23 +408,21 @@ 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()
@@ -465,15 +430,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -487,9 +453,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
@@ -508,8 +474,7 @@ 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);
+      com.google.logging.v2.LogEntrySourceLocation result = new com.google.logging.v2.LogEntrySourceLocation(this);
       result.file_ = file_;
       result.line_ = line_;
       result.function_ = function_;
@@ -521,39 +486,38 @@ public com.google.logging.v2.LogEntrySourceLocation 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.LogEntrySourceLocation) {
-        return mergeFrom((com.google.logging.v2.LogEntrySourceLocation) other);
+        return mergeFrom((com.google.logging.v2.LogEntrySourceLocation)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -604,21 +568,19 @@ public Builder mergeFrom(
 
     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; @@ -627,22 +589,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 { @@ -650,80 +611,70 @@ 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) { + public Builder setFile( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + file_ = value; 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() { - + file_ = getDefaultInstance().getFile(); 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]; - * * @param value The bytes for file to set. * @return This builder for chaining. */ - public Builder setFileBytes(com.google.protobuf.ByteString value) { + public Builder setFileBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + file_ = value; onChanged(); 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 @@ -731,38 +682,32 @@ 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. */ public Builder setLine(long value) { - + line_ = value; onChanged(); 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() { - + line_ = 0L; onChanged(); return this; @@ -770,8 +715,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
@@ -782,13 +725,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; @@ -797,8 +740,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
@@ -809,14 +750,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 { @@ -824,8 +766,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
@@ -836,22 +776,20 @@ 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) { + public Builder setFunction( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + function_ = value; 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
@@ -862,18 +800,15 @@ public Builder setFunction(java.lang.String value) {
      * 
* * string function = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFunction() { - + function_ = getDefaultInstance().getFunction(); 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
@@ -884,23 +819,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) { + public Builder setFunctionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + function_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -910,12 +845,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(); } @@ -924,16 +859,16 @@ 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 { - return new LogEntrySourceLocation(input, extensionRegistry); - } - }; + 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 { + return new LogEntrySourceLocation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -948,4 +883,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 e341dc47b..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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 69% 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 5735ddcb0..1332b970d 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,47 +1,28 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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 not to be stored in
- * Logging. If your GCP resource receives a large volume of logs, you can
- * use exclusions to reduce your chargeable logs. Exclusions are
- * processed after log sinks, so you can export log entries before they are
- * excluded. Note that organization-level and folder-level exclusions don't
- * apply to child resources, and that you can't exclude audit log entries.
+ * 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
+ * use exclusions to reduce your chargeable logs. Note that exclusions on
+ * organization-level and folder-level sinks don't apply to child resources.
+ * Note also that you cannot modify the _Required sink or exclude logs from it.
  * 
* * 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_ = ""; @@ -50,15 +31,16 @@ private LogExclusion() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LogExclusion(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private LogExclusion( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -77,101 +59,90 @@ private LogExclusion( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + description_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + case 32: { - filter_ = s; - break; + disabled_ = input.readBool(); + break; + } + case 42: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 32: - { - disabled_ = input.readBool(); - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 42: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 50: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); } - case 50: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; private volatile java.lang.Object name_; /** - * - * *
    * Required. A client-assigned identifier, such as `"load-balancer-exclusion"`.
    * Identifiers are limited to 100 characters and can include only letters,
@@ -180,7 +151,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -189,15 +159,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 can include only letters,
@@ -206,15 +175,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 { @@ -225,14 +195,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 2; 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 @@ -241,29 +208,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 { @@ -274,21 +241,18 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int FILTER_FIELD_NUMBER = 3; private volatile java.lang.Object filter_; /** - * - * *
    * Required. An [advanced logs
    * filter](https://cloud.google.com/logging/docs/view/advanced-queries) that
    * matches the log entries to be excluded. By using the [sample
    * function](https://cloud.google.com/logging/docs/view/advanced-queries#sample),
    * you can exclude less than 100% of the matching log entries.
-   * For example, the following query matches 99% of low-severity log
-   * entries from Google Cloud Storage buckets:
-   * `"resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)"`
+   * For example, the following query matches 99% of low-severity log entries
+   * from Google Cloud Storage buckets:
+   *   `resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)`
    * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ @java.lang.Override @@ -297,36 +261,36 @@ 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
    * matches the log entries to be excluded. By using the [sample
    * function](https://cloud.google.com/logging/docs/view/advanced-queries#sample),
    * you can exclude less than 100% of the matching log entries.
-   * For example, the following query matches 99% of low-severity log
-   * entries from Google Cloud Storage buckets:
-   * `"resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)"`
+   * For example, the following query matches 99% of low-severity log entries
+   * from Google Cloud Storage buckets:
+   *   `resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)`
    * 
* * 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 { @@ -337,8 +301,6 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int DISABLED_FIELD_NUMBER = 4; 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
@@ -347,7 +309,6 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 
* * bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The disabled. */ @java.lang.Override @@ -358,16 +319,12 @@ 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 @@ -375,16 +332,12 @@ 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 @@ -392,15 +345,12 @@ 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() { @@ -410,16 +360,12 @@ 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 @@ -427,16 +373,12 @@ 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 @@ -444,15 +386,12 @@ 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() { @@ -460,7 +399,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -472,7 +410,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_); } @@ -510,13 +449,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -526,24 +468,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -563,7 +511,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(); @@ -577,131 +526,122 @@ 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 not to be stored in
-   * Logging. If your GCP resource receives a large volume of logs, you can
-   * use exclusions to reduce your chargeable logs. Exclusions are
-   * processed after log sinks, so you can export log entries before they are
-   * excluded. Note that organization-level and folder-level exclusions don't
-   * apply to child resources, and that you can't exclude audit log entries.
+   * 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
+   * use exclusions to reduce your chargeable logs. Note that exclusions on
+   * organization-level and folder-level sinks don't apply to child resources.
+   * Note also that you cannot modify the _Required sink or exclude logs from it.
    * 
* * 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() @@ -709,15 +649,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -745,9 +686,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 @@ -789,39 +730,38 @@ public com.google.logging.v2.LogExclusion 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.LogExclusion) { - return mergeFrom((com.google.logging.v2.LogExclusion) other); + return mergeFrom((com.google.logging.v2.LogExclusion)other); } else { super.mergeFrom(other); return this; @@ -882,8 +822,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. A client-assigned identifier, such as `"load-balancer-exclusion"`.
      * Identifiers are limited to 100 characters and can include only letters,
@@ -892,13 +830,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; @@ -907,8 +845,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. A client-assigned identifier, such as `"load-balancer-exclusion"`.
      * Identifiers are limited to 100 characters and can include only letters,
@@ -917,14 +853,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 { @@ -932,8 +869,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. A client-assigned identifier, such as `"load-balancer-exclusion"`.
      * Identifiers are limited to 100 characters and can include only letters,
@@ -942,22 +877,20 @@ 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. A client-assigned identifier, such as `"load-balancer-exclusion"`.
      * Identifiers are limited to 100 characters and can include only letters,
@@ -966,18 +899,15 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. A client-assigned identifier, such as `"load-balancer-exclusion"`.
      * Identifiers are limited to 100 characters and can include only letters,
@@ -986,16 +916,16 @@ 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1003,20 +933,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; @@ -1025,21 +953,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 { @@ -1047,61 +974,54 @@ 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) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; 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() { - + description_ = getDefaultInstance().getDescription(); onChanged(); 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) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1109,27 +1029,25 @@ 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
      * matches the log entries to be excluded. By using the [sample
      * function](https://cloud.google.com/logging/docs/view/advanced-queries#sample),
      * you can exclude less than 100% of the matching log entries.
-     * For example, the following query matches 99% of low-severity log
-     * entries from Google Cloud Storage buckets:
-     * `"resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)"`
+     * For example, the following query matches 99% of low-severity log entries
+     * from Google Cloud Storage buckets:
+     *   `resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)`
      * 
* * 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; @@ -1138,28 +1056,27 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries) that
      * matches the log entries to be excluded. By using the [sample
      * function](https://cloud.google.com/logging/docs/view/advanced-queries#sample),
      * you can exclude less than 100% of the matching log entries.
-     * For example, the following query matches 99% of low-severity log
-     * entries from Google Cloud Storage buckets:
-     * `"resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)"`
+     * For example, the following query matches 99% of low-severity log entries
+     * from Google Cloud Storage buckets:
+     *   `resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)`
      * 
* * 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 { @@ -1167,91 +1084,82 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries) that
      * matches the log entries to be excluded. By using the [sample
      * function](https://cloud.google.com/logging/docs/view/advanced-queries#sample),
      * you can exclude less than 100% of the matching log entries.
-     * For example, the following query matches 99% of low-severity log
-     * entries from Google Cloud Storage buckets:
-     * `"resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)"`
+     * For example, the following query matches 99% of low-severity log entries
+     * from Google Cloud Storage buckets:
+     *   `resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)`
      * 
* * 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) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries) that
      * matches the log entries to be excluded. By using the [sample
      * function](https://cloud.google.com/logging/docs/view/advanced-queries#sample),
      * you can exclude less than 100% of the matching log entries.
-     * For example, the following query matches 99% of low-severity log
-     * entries from Google Cloud Storage buckets:
-     * `"resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)"`
+     * For example, the following query matches 99% of low-severity log entries
+     * from Google Cloud Storage buckets:
+     *   `resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)`
      * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries) that
      * matches the log entries to be excluded. By using the [sample
      * function](https://cloud.google.com/logging/docs/view/advanced-queries#sample),
      * you can exclude less than 100% of the matching log entries.
-     * For example, the following query matches 99% of low-severity log
-     * entries from Google Cloud Storage buckets:
-     * `"resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)"`
+     * For example, the following query matches 99% of low-severity log entries
+     * from Google Cloud Storage buckets:
+     *   `resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)`
      * 
* * 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) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); 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
@@ -1260,7 +1168,6 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
      * 
* * bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The disabled. */ @java.lang.Override @@ -1268,8 +1175,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
@@ -1278,19 +1183,16 @@ public boolean getDisabled() {
      * 
* * bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The disabled to set. * @return This builder for chaining. */ public Builder setDisabled(boolean value) { - + disabled_ = value; onChanged(); return this; } /** - * - * *
      * Optional. If set to True, then this exclusion is disabled and it does not
      * exclude any log entries. You can [update an
@@ -1299,11 +1201,10 @@ public Builder setDisabled(boolean value) {
      * 
* * bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDisabled() { - + disabled_ = false; onChanged(); return this; @@ -1311,61 +1212,42 @@ 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 createTimeBuilder_ != null || 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. */ 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) { @@ -1381,18 +1263,15 @@ 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(); onChanged(); @@ -1403,22 +1282,18 @@ 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 (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1430,16 +1305,12 @@ 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() { if (createTimeBuilder_ == null) { @@ -1453,67 +1324,51 @@ 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() { - + onChanged(); 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_; @@ -1521,61 +1376,42 @@ 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 updateTimeBuilder_ != null || 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. */ 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) { @@ -1591,18 +1427,15 @@ 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(); onChanged(); @@ -1613,22 +1446,18 @@ 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 (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1640,16 +1469,12 @@ 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() { if (updateTimeBuilder_ == null) { @@ -1663,74 +1488,58 @@ 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() { - + onChanged(); 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); } @@ -1740,12 +1549,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(); } @@ -1754,16 +1563,16 @@ 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 { - return new LogExclusion(input, extensionRegistry); - } - }; + 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 { + return new LogExclusion(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1778,4 +1587,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 75% 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 721fec26f..634566b8b 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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 can include only letters,
@@ -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 can include only letters,
@@ -49,78 +28,66 @@ 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
    * matches the log entries to be excluded. By using the [sample
    * function](https://cloud.google.com/logging/docs/view/advanced-queries#sample),
    * you can exclude less than 100% of the matching log entries.
-   * For example, the following query matches 99% of low-severity log
-   * entries from Google Cloud Storage buckets:
-   * `"resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)"`
+   * For example, the following query matches 99% of low-severity log entries
+   * from Google Cloud Storage buckets:
+   *   `resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)`
    * 
* * 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
    * matches the log entries to be excluded. By using the [sample
    * function](https://cloud.google.com/logging/docs/view/advanced-queries#sample),
    * you can exclude less than 100% of the matching log entries.
-   * For example, the following query matches 99% of low-severity log
-   * entries from Google Cloud Storage buckets:
-   * `"resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)"`
+   * For example, the following query matches 99% of low-severity log entries
+   * from Google Cloud Storage buckets:
+   *   `resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)`
    * 
* * 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
@@ -129,90 +96,67 @@ 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 73% 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 a8532face..0bac8ea01 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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.
@@ -32,16 +15,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_ = "";
@@ -52,15 +34,16 @@ private LogMetric() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new LogMetric();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private LogMetric(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -80,176 +63,160 @@ private LogMetric(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              description_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            description_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              filter_ = s;
-              break;
-            }
-          case 32:
-            {
-              int rawValue = input.readEnum();
+            filter_ = s;
+            break;
+          }
+          case 32: {
+            int rawValue = input.readEnum();
 
-              version_ = rawValue;
-              break;
+            version_ = rawValue;
+            break;
+          }
+          case 42: {
+            com.google.api.MetricDescriptor.Builder subBuilder = null;
+            if (metricDescriptor_ != null) {
+              subBuilder = metricDescriptor_.toBuilder();
             }
-          case 42:
-            {
-              com.google.api.MetricDescriptor.Builder subBuilder = null;
-              if (metricDescriptor_ != null) {
-                subBuilder = metricDescriptor_.toBuilder();
-              }
-              metricDescriptor_ =
-                  input.readMessage(com.google.api.MetricDescriptor.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(metricDescriptor_);
-                metricDescriptor_ = subBuilder.buildPartial();
-              }
-
-              break;
+            metricDescriptor_ = input.readMessage(com.google.api.MetricDescriptor.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(metricDescriptor_);
+              metricDescriptor_ = subBuilder.buildPartial();
             }
-          case 50:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              valueExtractor_ = s;
-              break;
+            break;
+          }
+          case 50: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            valueExtractor_ = s;
+            break;
+          }
+          case 58: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              labelExtractors_ = com.google.protobuf.MapField.newMapField(
+                  LabelExtractorsDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
+            }
+            com.google.protobuf.MapEntry
+            labelExtractors__ = input.readMessage(
+                LabelExtractorsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            labelExtractors_.getMutableMap().put(
+                labelExtractors__.getKey(), labelExtractors__.getValue());
+            break;
+          }
+          case 66: {
+            com.google.api.Distribution.BucketOptions.Builder subBuilder = null;
+            if (bucketOptions_ != null) {
+              subBuilder = bucketOptions_.toBuilder();
             }
-          case 58:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                labelExtractors_ =
-                    com.google.protobuf.MapField.newMapField(
-                        LabelExtractorsDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry labelExtractors__ =
-                  input.readMessage(
-                      LabelExtractorsDefaultEntryHolder.defaultEntry.getParserForType(),
-                      extensionRegistry);
-              labelExtractors_
-                  .getMutableMap()
-                  .put(labelExtractors__.getKey(), labelExtractors__.getValue());
-              break;
+            bucketOptions_ = input.readMessage(com.google.api.Distribution.BucketOptions.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(bucketOptions_);
+              bucketOptions_ = subBuilder.buildPartial();
+            }
+
+            break;
+          }
+          case 74: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (createTime_ != null) {
+              subBuilder = createTime_.toBuilder();
             }
-          case 66:
-            {
-              com.google.api.Distribution.BucketOptions.Builder subBuilder = null;
-              if (bucketOptions_ != null) {
-                subBuilder = bucketOptions_.toBuilder();
-              }
-              bucketOptions_ =
-                  input.readMessage(
-                      com.google.api.Distribution.BucketOptions.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(bucketOptions_);
-                bucketOptions_ = subBuilder.buildPartial();
-              }
-
-              break;
+            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(createTime_);
+              createTime_ = subBuilder.buildPartial();
             }
-          case 74:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (createTime_ != null) {
-                subBuilder = createTime_.toBuilder();
-              }
-              createTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(createTime_);
-                createTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 82: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (updateTime_ != null) {
+              subBuilder = updateTime_.toBuilder();
             }
-          case 82:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (updateTime_ != null) {
-                subBuilder = updateTime_.toBuilder();
-              }
-              updateTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(updateTime_);
-                updateTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(updateTime_);
+              updateTime_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 96: {
+
+            disabled_ = input.readBool();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  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.
      * 
@@ -258,8 +225,6 @@ public enum ApiVersion implements com.google.protobuf.ProtocolMessageEnum { */ V2(0), /** - * - * *
      * Logging API v1.
      * 
@@ -271,8 +236,6 @@ public enum ApiVersion implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * Logging API v2.
      * 
@@ -281,8 +244,6 @@ public enum ApiVersion implements com.google.protobuf.ProtocolMessageEnum { */ public static final int V2_VALUE = 0; /** - * - * *
      * Logging API v1.
      * 
@@ -291,6 +252,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( @@ -315,47 +277,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; @@ -375,8 +338,6 @@ private ApiVersion(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The client-assigned metric identifier.
    * Examples: `"error_count"`, `"nginx/requests"`.
@@ -384,15 +345,14 @@ private ApiVersion(int value) {
    * following characters: `A-Z`, `a-z`, `0-9`, and the special characters
    * `_-.,+!*',()%/`. The forward-slash character (`/`) denotes a hierarchy of
    * name pieces, and it cannot be the first character of the name.
-   * The metric identifier in this field must not be
-   * [URL-encoded](https://en.wikipedia.org/wiki/Percent-encoding).
-   * However, when the metric identifier appears as the `[METRIC_ID]` part of a
-   * `metric_name` API parameter, then the metric identifier must be
-   * URL-encoded. Example: `"projects/my-project/metrics/nginx%2Frequests"`.
+   * This field is the `[METRIC_ID]` part of a metric resource name in the
+   * format "projects/[PROJECT_ID]/metrics/[METRIC_ID]". Example: If the
+   * resource name of a metric is
+   * `"projects/my-project/metrics/nginx%2Frequests"`, this field's value is
+   * `"nginx/requests"`.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -401,15 +361,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"`.
@@ -417,23 +376,24 @@ public java.lang.String getName() {
    * following characters: `A-Z`, `a-z`, `0-9`, and the special characters
    * `_-.,+!*',()%/`. The forward-slash character (`/`) denotes a hierarchy of
    * name pieces, and it cannot be the first character of the name.
-   * The metric identifier in this field must not be
-   * [URL-encoded](https://en.wikipedia.org/wiki/Percent-encoding).
-   * However, when the metric identifier appears as the `[METRIC_ID]` part of a
-   * `metric_name` API parameter, then the metric identifier must be
-   * URL-encoded. Example: `"projects/my-project/metrics/nginx%2Frequests"`.
+   * This field is the `[METRIC_ID]` part of a metric resource name in the
+   * format "projects/[PROJECT_ID]/metrics/[METRIC_ID]". Example: If the
+   * resource name of a metric is
+   * `"projects/my-project/metrics/nginx%2Frequests"`, this field's value is
+   * `"nginx/requests"`.
    * 
* * 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 { @@ -444,15 +404,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 2; 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 @@ -461,30 +418,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 { @@ -495,8 +452,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int FILTER_FIELD_NUMBER = 3; private volatile java.lang.Object filter_; /** - * - * *
    * Required. An [advanced logs
    * filter](https://cloud.google.com/logging/docs/view/advanced_filters) which
@@ -506,7 +461,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
    * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The filter. */ @java.lang.Override @@ -515,15 +469,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
@@ -533,15 +486,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 { @@ -549,11 +503,25 @@ public com.google.protobuf.ByteString getFilterBytes() { } } + public static final int DISABLED_FIELD_NUMBER = 12; + 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 + public boolean getDisabled() { + return disabled_; + } + 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
@@ -574,10 +542,7 @@ public com.google.protobuf.ByteString getFilterBytes() {
    * 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 @@ -585,8 +550,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
@@ -607,21 +570,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
@@ -642,9 +598,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]; */ @java.lang.Override public com.google.api.MetricDescriptorOrBuilder getMetricDescriptorOrBuilder() { @@ -654,8 +608,6 @@ public com.google.api.MetricDescriptorOrBuilder getMetricDescriptorOrBuilder() { public static final int VALUE_EXTRACTOR_FIELD_NUMBER = 6; 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.
@@ -677,7 +629,6 @@ public com.google.api.MetricDescriptorOrBuilder getMetricDescriptorOrBuilder() {
    * 
* * string value_extractor = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The valueExtractor. */ @java.lang.Override @@ -686,15 +637,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.
@@ -716,15 +666,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 { @@ -733,22 +684,21 @@ 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, - ""); - } - - private com.google.protobuf.MapField labelExtractors_; - + 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, + ""); + } + 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); @@ -760,8 +710,6 @@ 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.
@@ -777,25 +725,24 @@ 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 java.lang.NullPointerException(); - } + public boolean containsLabelExtractors( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } 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.
@@ -811,16 +758,14 @@ 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.
@@ -836,21 +781,19 @@ 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 getLabelExtractorsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabelExtractors().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + 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.
@@ -866,15 +809,15 @@ public 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 java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabelExtractors().getMap(); + + public java.lang.String getLabelExtractorsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabelExtractors().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -884,18 +827,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 @@ -903,38 +841,27 @@ 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() { @@ -944,16 +871,12 @@ public com.google.api.Distribution.BucketOptionsOrBuilder getBucketOptionsOrBuil 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 @@ -961,16 +884,12 @@ 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 @@ -978,15 +897,12 @@ 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() { @@ -996,16 +912,12 @@ 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 @@ -1013,16 +925,12 @@ 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 @@ -1030,15 +938,12 @@ 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() { @@ -1048,45 +953,33 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int VERSION_FIELD_NUMBER = 4; private int 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]; - * * @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]; - * * @return The version. */ - @java.lang.Override - @java.lang.Deprecated - public com.google.logging.v2.LogMetric.ApiVersion getVersion() { + @java.lang.Override @java.lang.Deprecated public com.google.logging.v2.LogMetric.ApiVersion getVersion() { @SuppressWarnings("deprecation") - com.google.logging.v2.LogMetric.ApiVersion result = - com.google.logging.v2.LogMetric.ApiVersion.valueOf(version_); + com.google.logging.v2.LogMetric.ApiVersion result = com.google.logging.v2.LogMetric.ApiVersion.valueOf(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; @@ -1098,7 +991,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_); } @@ -1117,8 +1011,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()); } @@ -1128,6 +1026,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(10, getUpdateTime()); } + if (disabled_ != false) { + output.writeBool(12, disabled_); + } unknownFields.writeTo(output); } @@ -1147,32 +1048,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1182,33 +1092,44 @@ public int 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 (!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 (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 (!unknownFields.equals(other.unknownFields)) return false; @@ -1228,6 +1149,9 @@ public int hashCode() { hash = (53 * hash) + getDescription().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()); if (hasMetricDescriptor()) { hash = (37 * hash) + METRIC_DESCRIPTOR_FIELD_NUMBER; hash = (53 * hash) + getMetricDescriptor().hashCode(); @@ -1257,103 +1181,97 @@ 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.
@@ -1365,40 +1283,41 @@ 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);
     }
@@ -1408,15 +1327,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1426,6 +1346,8 @@ public Builder clear() {
 
       filter_ = "";
 
+      disabled_ = false;
+
       if (metricDescriptorBuilder_ == null) {
         metricDescriptor_ = null;
       } else {
@@ -1459,9 +1381,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
@@ -1485,6 +1407,7 @@ public com.google.logging.v2.LogMetric buildPartial() {
       result.name_ = name_;
       result.description_ = description_;
       result.filter_ = filter_;
+      result.disabled_ = disabled_;
       if (metricDescriptorBuilder_ == null) {
         result.metricDescriptor_ = metricDescriptor_;
       } else {
@@ -1517,39 +1440,38 @@ public com.google.logging.v2.LogMetric 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.LogMetric) {
-        return mergeFrom((com.google.logging.v2.LogMetric) other);
+        return mergeFrom((com.google.logging.v2.LogMetric)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1570,6 +1492,9 @@ public Builder mergeFrom(com.google.logging.v2.LogMetric other) {
         filter_ = other.filter_;
         onChanged();
       }
+      if (other.getDisabled() != false) {
+        setDisabled(other.getDisabled());
+      }
       if (other.hasMetricDescriptor()) {
         mergeMetricDescriptor(other.getMetricDescriptor());
       }
@@ -1577,7 +1502,8 @@ public Builder mergeFrom(com.google.logging.v2.LogMetric other) {
         valueExtractor_ = other.valueExtractor_;
         onChanged();
       }
-      internalGetMutableLabelExtractors().mergeFrom(other.internalGetLabelExtractors());
+      internalGetMutableLabelExtractors().mergeFrom(
+          other.internalGetLabelExtractors());
       if (other.hasBucketOptions()) {
         mergeBucketOptions(other.getBucketOptions());
       }
@@ -1618,13 +1544,10 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Required. The client-assigned metric identifier.
      * Examples: `"error_count"`, `"nginx/requests"`.
@@ -1632,21 +1555,21 @@ public Builder mergeFrom(
      * following characters: `A-Z`, `a-z`, `0-9`, and the special characters
      * `_-.,+!*',()%/`. The forward-slash character (`/`) denotes a hierarchy of
      * name pieces, and it cannot be the first character of the name.
-     * The metric identifier in this field must not be
-     * [URL-encoded](https://en.wikipedia.org/wiki/Percent-encoding).
-     * However, when the metric identifier appears as the `[METRIC_ID]` part of a
-     * `metric_name` API parameter, then the metric identifier must be
-     * URL-encoded. Example: `"projects/my-project/metrics/nginx%2Frequests"`.
+     * This field is the `[METRIC_ID]` part of a metric resource name in the
+     * format "projects/[PROJECT_ID]/metrics/[METRIC_ID]". Example: If the
+     * resource name of a metric is
+     * `"projects/my-project/metrics/nginx%2Frequests"`, this field's value is
+     * `"nginx/requests"`.
      * 
* * 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; @@ -1655,8 +1578,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The client-assigned metric identifier.
      * Examples: `"error_count"`, `"nginx/requests"`.
@@ -1664,22 +1585,23 @@ public java.lang.String getName() {
      * following characters: `A-Z`, `a-z`, `0-9`, and the special characters
      * `_-.,+!*',()%/`. The forward-slash character (`/`) denotes a hierarchy of
      * name pieces, and it cannot be the first character of the name.
-     * The metric identifier in this field must not be
-     * [URL-encoded](https://en.wikipedia.org/wiki/Percent-encoding).
-     * However, when the metric identifier appears as the `[METRIC_ID]` part of a
-     * `metric_name` API parameter, then the metric identifier must be
-     * URL-encoded. Example: `"projects/my-project/metrics/nginx%2Frequests"`.
+     * This field is the `[METRIC_ID]` part of a metric resource name in the
+     * format "projects/[PROJECT_ID]/metrics/[METRIC_ID]". Example: If the
+     * resource name of a metric is
+     * `"projects/my-project/metrics/nginx%2Frequests"`, this field's value is
+     * `"nginx/requests"`.
      * 
* * 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 { @@ -1687,8 +1609,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The client-assigned metric identifier.
      * Examples: `"error_count"`, `"nginx/requests"`.
@@ -1696,30 +1616,28 @@ public com.google.protobuf.ByteString getNameBytes() {
      * following characters: `A-Z`, `a-z`, `0-9`, and the special characters
      * `_-.,+!*',()%/`. The forward-slash character (`/`) denotes a hierarchy of
      * name pieces, and it cannot be the first character of the name.
-     * The metric identifier in this field must not be
-     * [URL-encoded](https://en.wikipedia.org/wiki/Percent-encoding).
-     * However, when the metric identifier appears as the `[METRIC_ID]` part of a
-     * `metric_name` API parameter, then the metric identifier must be
-     * URL-encoded. Example: `"projects/my-project/metrics/nginx%2Frequests"`.
+     * This field is the `[METRIC_ID]` part of a metric resource name in the
+     * format "projects/[PROJECT_ID]/metrics/[METRIC_ID]". Example: If the
+     * resource name of a metric is
+     * `"projects/my-project/metrics/nginx%2Frequests"`, this field's value is
+     * `"nginx/requests"`.
      * 
* * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The client-assigned metric identifier.
      * Examples: `"error_count"`, `"nginx/requests"`.
@@ -1727,26 +1645,23 @@ public Builder setName(java.lang.String value) {
      * following characters: `A-Z`, `a-z`, `0-9`, and the special characters
      * `_-.,+!*',()%/`. The forward-slash character (`/`) denotes a hierarchy of
      * name pieces, and it cannot be the first character of the name.
-     * The metric identifier in this field must not be
-     * [URL-encoded](https://en.wikipedia.org/wiki/Percent-encoding).
-     * However, when the metric identifier appears as the `[METRIC_ID]` part of a
-     * `metric_name` API parameter, then the metric identifier must be
-     * URL-encoded. Example: `"projects/my-project/metrics/nginx%2Frequests"`.
+     * This field is the `[METRIC_ID]` part of a metric resource name in the
+     * format "projects/[PROJECT_ID]/metrics/[METRIC_ID]". Example: If the
+     * resource name of a metric is
+     * `"projects/my-project/metrics/nginx%2Frequests"`, this field's value is
+     * `"nginx/requests"`.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The client-assigned metric identifier.
      * Examples: `"error_count"`, `"nginx/requests"`.
@@ -1754,24 +1669,24 @@ public Builder clearName() {
      * following characters: `A-Z`, `a-z`, `0-9`, and the special characters
      * `_-.,+!*',()%/`. The forward-slash character (`/`) denotes a hierarchy of
      * name pieces, and it cannot be the first character of the name.
-     * The metric identifier in this field must not be
-     * [URL-encoded](https://en.wikipedia.org/wiki/Percent-encoding).
-     * However, when the metric identifier appears as the `[METRIC_ID]` part of a
-     * `metric_name` API parameter, then the metric identifier must be
-     * URL-encoded. Example: `"projects/my-project/metrics/nginx%2Frequests"`.
+     * This field is the `[METRIC_ID]` part of a metric resource name in the
+     * format "projects/[PROJECT_ID]/metrics/[METRIC_ID]". Example: If the
+     * resource name of a metric is
+     * `"projects/my-project/metrics/nginx%2Frequests"`, this field's value is
+     * `"nginx/requests"`.
      * 
* * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1779,21 +1694,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; @@ -1802,22 +1715,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 { @@ -1825,64 +1737,57 @@ 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) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; 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() { - + description_ = getDefaultInstance().getDescription(); 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]; - * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1890,8 +1795,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
@@ -1901,13 +1804,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; @@ -1916,8 +1819,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced_filters) which
@@ -1927,14 +1828,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 { @@ -1942,8 +1844,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced_filters) which
@@ -1953,22 +1853,20 @@ 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) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced_filters) which
@@ -1978,18 +1876,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced_filters) which
@@ -1999,30 +1894,71 @@ 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) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - 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_; + 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 + 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. + */ + public Builder setDisabled(boolean value) { + + disabled_ = value; + onChanged(); + 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() { + + disabled_ = false; + onChanged(); + return this; + } + + 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_; + /** *
      * Optional. The metric descriptor associated with the logs-based metric.
      * If unspecified, it uses a default metric descriptor with a DELTA metric
@@ -2043,18 +1979,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString 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]; * @return Whether the metricDescriptor field is set. */ public boolean hasMetricDescriptor() { return metricDescriptorBuilder_ != null || metricDescriptor_ != null; } /** - * - * *
      * Optional. The metric descriptor associated with the logs-based metric.
      * If unspecified, it uses a default metric descriptor with a DELTA metric
@@ -2075,24 +2006,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
@@ -2113,9 +2037,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) { @@ -2131,8 +2053,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
@@ -2153,11 +2073,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(); onChanged(); @@ -2168,8 +2087,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
@@ -2190,17 +2107,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 (metricDescriptor_ != null) { metricDescriptor_ = - com.google.api.MetricDescriptor.newBuilder(metricDescriptor_) - .mergeFrom(value) - .buildPartial(); + com.google.api.MetricDescriptor.newBuilder(metricDescriptor_).mergeFrom(value).buildPartial(); } else { metricDescriptor_ = value; } @@ -2212,8 +2125,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
@@ -2234,9 +2145,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() { if (metricDescriptorBuilder_ == null) { @@ -2250,8 +2159,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
@@ -2272,18 +2179,14 @@ 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() { - + onChanged(); 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
@@ -2304,22 +2207,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
@@ -2340,22 +2238,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_; @@ -2363,8 +2256,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.
@@ -2386,13 +2277,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; @@ -2401,8 +2292,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.
@@ -2424,14 +2313,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 { @@ -2439,8 +2329,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.
@@ -2462,22 +2350,20 @@ 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) { + public Builder setValueExtractor( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + valueExtractor_ = value; 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.
@@ -2499,18 +2385,15 @@ public Builder setValueExtractor(java.lang.String value) {
      * 
* * string value_extractor = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearValueExtractor() { - + valueExtractor_ = getDefaultInstance().getValueExtractor(); 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.
@@ -2532,40 +2415,37 @@ 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) { + public Builder setValueExtractorBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + valueExtractor_ = value; onChanged(); 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() { + internalGetLabelExtractors() { if (labelExtractors_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelExtractorsDefaultEntryHolder.defaultEntry); } return labelExtractors_; } - private com.google.protobuf.MapField - internalGetMutableLabelExtractors() { - onChanged(); - ; + internalGetMutableLabelExtractors() { + onChanged();; 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(); @@ -2577,8 +2457,6 @@ 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.
@@ -2594,26 +2472,24 @@ 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 java.lang.NullPointerException(); - } + public boolean containsLabelExtractors( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } 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.
@@ -2629,17 +2505,14 @@ 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.
@@ -2655,22 +2528,19 @@ 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 getLabelExtractorsOrDefault( - java.lang.String key, java.lang.String defaultValue) { - if (key == null) { - throw new java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabelExtractors().getMap(); + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + 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.
@@ -2686,16 +2556,15 @@ public 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 java.lang.NullPointerException(); - } - java.util.Map map = internalGetLabelExtractors().getMap(); + + public java.lang.String getLabelExtractorsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetLabelExtractors().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2703,12 +2572,11 @@ public java.lang.String getLabelExtractorsOrThrow(java.lang.String key) { } public Builder clearLabelExtractors() { - 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.
@@ -2724,25 +2592,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 java.lang.NullPointerException(); - } - internalGetMutableLabelExtractors().getMutableMap().remove(key); + + public Builder removeLabelExtractors( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + 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() { 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.
@@ -2758,23 +2626,18 @@ 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 java.lang.NullPointerException(); - } - if (value == null) { - throw new java.lang.NullPointerException(); - } - internalGetMutableLabelExtractors().getMutableMap().put(key, value); + public Builder putLabelExtractors( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableLabelExtractors().getMutableMap() + .put(key, value); 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.
@@ -2790,75 +2653,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); 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 bucketOptionsBuilder_ != null || 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. */ 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) { @@ -2874,17 +2719,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) { @@ -2898,25 +2739,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 (bucketOptions_ != null) { bucketOptions_ = - com.google.api.Distribution.BucketOptions.newBuilder(bucketOptions_) - .mergeFrom(value) - .buildPartial(); + com.google.api.Distribution.BucketOptions.newBuilder(bucketOptions_).mergeFrom(value).buildPartial(); } else { bucketOptions_ = value; } @@ -2928,17 +2763,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() { if (bucketOptionsBuilder_ == null) { @@ -2952,70 +2783,54 @@ 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() { - + onChanged(); 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_; @@ -3023,61 +2838,42 @@ 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 createTimeBuilder_ != null || 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. */ 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) { @@ -3093,18 +2889,15 @@ 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(); onChanged(); @@ -3115,22 +2908,18 @@ 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 (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -3142,16 +2931,12 @@ 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() { if (createTimeBuilder_ == null) { @@ -3165,67 +2950,51 @@ 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() { - + onChanged(); 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_; @@ -3233,61 +3002,42 @@ 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 updateTimeBuilder_ != null || 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. */ 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) { @@ -3303,18 +3053,15 @@ 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(); onChanged(); @@ -3325,22 +3072,18 @@ 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 (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -3352,16 +3095,12 @@ 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() { if (updateTimeBuilder_ == null) { @@ -3375,67 +3114,51 @@ 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() { - + onChanged(); 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_; @@ -3443,107 +3166,85 @@ 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]; - * * @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]; - * * @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; 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]; - * * @return The version. */ @java.lang.Override - @java.lang.Deprecated - public com.google.logging.v2.LogMetric.ApiVersion getVersion() { + @java.lang.Deprecated public com.google.logging.v2.LogMetric.ApiVersion getVersion() { @SuppressWarnings("deprecation") - com.google.logging.v2.LogMetric.ApiVersion result = - com.google.logging.v2.LogMetric.ApiVersion.valueOf(version_); + com.google.logging.v2.LogMetric.ApiVersion result = com.google.logging.v2.LogMetric.ApiVersion.valueOf(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]; - * * @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(); } - + version_ = value.getNumber(); 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]; - * * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearVersion() { - + @java.lang.Deprecated public Builder clearVersion() { + 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); } @@ -3553,12 +3254,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(); } @@ -3567,16 +3268,16 @@ 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 { - return new LogMetric(input, extensionRegistry); - } - }; + 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 { + return new LogMetric(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3591,4 +3292,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 82% 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 6af9a78ba..cf6b91564 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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"`.
@@ -33,21 +15,18 @@ public interface LogMetricOrBuilder
    * following characters: `A-Z`, `a-z`, `0-9`, and the special characters
    * `_-.,+!*',()%/`. The forward-slash character (`/`) denotes a hierarchy of
    * name pieces, and it cannot be the first character of the name.
-   * The metric identifier in this field must not be
-   * [URL-encoded](https://en.wikipedia.org/wiki/Percent-encoding).
-   * However, when the metric identifier appears as the `[METRIC_ID]` part of a
-   * `metric_name` API parameter, then the metric identifier must be
-   * URL-encoded. Example: `"projects/my-project/metrics/nginx%2Frequests"`.
+   * This field is the `[METRIC_ID]` part of a metric resource name in the
+   * format "projects/[PROJECT_ID]/metrics/[METRIC_ID]". Example: If the
+   * resource name of a metric is
+   * `"projects/my-project/metrics/nginx%2Frequests"`, this field's value is
+   * `"nginx/requests"`.
    * 
* * 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"`.
@@ -55,49 +34,42 @@ public interface LogMetricOrBuilder
    * following characters: `A-Z`, `a-z`, `0-9`, and the special characters
    * `_-.,+!*',()%/`. The forward-slash character (`/`) denotes a hierarchy of
    * name pieces, and it cannot be the first character of the name.
-   * The metric identifier in this field must not be
-   * [URL-encoded](https://en.wikipedia.org/wiki/Percent-encoding).
-   * However, when the metric identifier appears as the `[METRIC_ID]` part of a
-   * `metric_name` API parameter, then the metric identifier must be
-   * URL-encoded. Example: `"projects/my-project/metrics/nginx%2Frequests"`.
+   * This field is the `[METRIC_ID]` part of a metric resource name in the
+   * format "projects/[PROJECT_ID]/metrics/[METRIC_ID]". Example: If the
+   * resource name of a metric is
+   * `"projects/my-project/metrics/nginx%2Frequests"`, this field's value is
+   * `"nginx/requests"`.
    * 
* * 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
@@ -107,13 +79,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
@@ -123,14 +92,23 @@ 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. 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
@@ -151,16 +129,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
@@ -181,16 +154,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
@@ -211,15 +179,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.
@@ -241,13 +205,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.
@@ -269,14 +230,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.
@@ -292,13 +251,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.
@@ -314,16 +270,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.
@@ -339,13 +296,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.
@@ -361,13 +316,13 @@ 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.lang.String getLabelExtractorsOrDefault(java.lang.String key, java.lang.String defaultValue); + + java.lang.String getLabelExtractorsOrDefault( + java.lang.String key, + 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.
@@ -383,166 +338,123 @@ 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.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]; - * * @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]; - * * @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 64% 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 86a47e078..d7d7c028f 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,46 +1,28 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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, or a
- * Cloud Pub/Sub topic. A logs filter controls which log entries are exported.
- * The sink must be created within a project, organization, billing account, or
- * folder.
+ * destinations in any project: a Cloud Storage bucket, a BigQuery dataset, a
+ * Pub/Sub topic or a Cloud Logging log bucket. A logs filter controls which log
+ * entries are exported. The sink must be created within a project,
+ * organization, billing account, or folder.
  * 
* * 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,15 +35,16 @@ private LogSink() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LogSink(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private LogSink( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -81,128 +64,115 @@ private LogSink( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - destination_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + destination_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 48: - { - int rawValue = input.readEnum(); + filter_ = s; + break; + } + case 48: { + int rawValue = input.readEnum(); - outputVersionFormat_ = rawValue; - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); + outputVersionFormat_ = rawValue; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); + + writerIdentity_ = s; + break; + } + case 72: { - writerIdentity_ = s; - break; + includeChildren_ = input.readBool(); + break; + } + case 98: { + com.google.logging.v2.BigQueryOptions.Builder subBuilder = null; + if (optionsCase_ == 12) { + subBuilder = ((com.google.logging.v2.BigQueryOptions) options_).toBuilder(); } - case 72: - { - includeChildren_ = input.readBool(); - break; + options_ = + input.readMessage(com.google.logging.v2.BigQueryOptions.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.logging.v2.BigQueryOptions) options_); + options_ = subBuilder.buildPartial(); } - case 98: - { - com.google.logging.v2.BigQueryOptions.Builder subBuilder = null; - if (optionsCase_ == 12) { - subBuilder = ((com.google.logging.v2.BigQueryOptions) options_).toBuilder(); - } - options_ = - input.readMessage( - com.google.logging.v2.BigQueryOptions.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.logging.v2.BigQueryOptions) options_); - options_ = subBuilder.buildPartial(); - } - optionsCase_ = 12; - break; + optionsCase_ = 12; + break; + } + case 106: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 106: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 114: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 114: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); } - case 130: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - exclusions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - exclusions_.add( - input.readMessage( - com.google.logging.v2.LogExclusion.parser(), extensionRegistry)); - break; + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); } - case 146: - { - java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; - } - case 152: - { - disabled_ = input.readBool(); - break; + break; + } + case 130: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + exclusions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + exclusions_.add( + input.readMessage(com.google.logging.v2.LogExclusion.parser(), extensionRegistry)); + break; + } + case 146: { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 152: { + + disabled_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { exclusions_ = java.util.Collections.unmodifiableList(exclusions_); @@ -211,34 +181,29 @@ private LogSink( makeExtensionsImmutable(); } } - - 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.
      * 
@@ -247,8 +212,6 @@ public enum VersionFormat implements com.google.protobuf.ProtocolMessageEnum { */ VERSION_FORMAT_UNSPECIFIED(0), /** - * - * *
      * `LogEntry` version 2 format.
      * 
@@ -257,8 +220,6 @@ public enum VersionFormat implements com.google.protobuf.ProtocolMessageEnum { */ V2(1), /** - * - * *
      * `LogEntry` version 1 format.
      * 
@@ -270,8 +231,6 @@ public enum VersionFormat implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
      * An unspecified format version that will default to V2.
      * 
@@ -280,8 +239,6 @@ public enum VersionFormat implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VERSION_FORMAT_UNSPECIFIED_VALUE = 0; /** - * - * *
      * `LogEntry` version 2 format.
      * 
@@ -290,8 +247,6 @@ public enum VersionFormat implements com.google.protobuf.ProtocolMessageEnum { */ public static final int V2_VALUE = 1; /** - * - * *
      * `LogEntry` version 1 format.
      * 
@@ -300,6 +255,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( @@ -324,49 +280,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; @@ -385,15 +341,12 @@ private VersionFormat(int value) { private int optionsCase_ = 0; 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; } @@ -409,39 +362,34 @@ 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; private volatile java.lang.Object name_; /** - * - * *
-   * Required. The client-assigned sink identifier, unique within the project. Example:
-   * `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited to 100
-   * characters and can include only the following characters: upper and
+   * Required. The client-assigned sink identifier, unique within the project.
+   * For example: `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited
+   * to 100 characters and can include only the following characters: upper and
    * lower-case alphanumeric characters, underscores, hyphens, and periods.
    * First character has to be alphanumeric.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -450,33 +398,33 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
-   * Required. The client-assigned sink identifier, unique within the project. Example:
-   * `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited to 100
-   * characters and can include only the following characters: upper and
+   * Required. The client-assigned sink identifier, unique within the project.
+   * For example: `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited
+   * to 100 characters and can include only the following characters: upper and
    * lower-case alphanumeric characters, underscores, hyphens, and periods.
    * First character has to be alphanumeric.
    * 
* * 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 { @@ -487,24 +435,19 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DESTINATION_FIELD_NUMBER = 3; private volatile java.lang.Object destination_; /** - * - * *
    * Required. The export destination:
    *     "storage.googleapis.com/[GCS_BUCKET]"
    *     "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
    *     "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]"
-   * The sink's `writer_identity`, set when the sink is created, must
-   * have permission to write to the destination or else the log
-   * entries are not exported. For more information, see
+   * The sink's `writer_identity`, set when the sink is created, must have
+   * permission to write to the destination or else the log entries are not
+   * exported. For more information, see
    * [Exporting Logs with
    * 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 @@ -513,39 +456,37 @@ 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:
    *     "storage.googleapis.com/[GCS_BUCKET]"
    *     "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
    *     "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]"
-   * The sink's `writer_identity`, set when the sink is created, must
-   * have permission to write to the destination or else the log
-   * entries are not exported. For more information, see
+   * The sink's `writer_identity`, set when the sink is created, must have
+   * permission to write to the destination or else the log entries are not
+   * exported. For more information, see
    * [Exporting Logs with
    * 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 { @@ -556,18 +497,16 @@ public com.google.protobuf.ByteString getDestinationBytes() { public static final int FILTER_FIELD_NUMBER = 5; private volatile java.lang.Object filter_; /** - * - * *
    * Optional. An [advanced logs
    * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The
    * only exported log entries are those that are in the resource owning the
-   * sink and that match the filter. For example:
-   *     logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR
+   * sink and that match the filter.
+   * For example:
+   *   `logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR`
    * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -576,33 +515,34 @@ 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
    * only exported log entries are those that are in the resource owning the
-   * sink and that match the filter. For example:
-   *     logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR
+   * sink and that match the filter.
+   * For example:
+   *   `logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR`
    * 
* * 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 { @@ -613,15 +553,12 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 18; private volatile java.lang.Object description_; /** - * - * *
    * Optional. A description of this sink.
    * The maximum length of the description is 8000 characters.
    * 
* * string description = 18 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ @java.lang.Override @@ -630,30 +567,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 sink.
    * The maximum length of the description is 8000 characters.
    * 
* * 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 { @@ -664,15 +601,12 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int DISABLED_FIELD_NUMBER = 19; private boolean disabled_; /** - * - * *
-   * Optional. If set to True, then this sink is disabled and it does not
-   * export any log entries.
+   * 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 @@ -683,153 +617,122 @@ public boolean getDisabled() { public static final int EXCLUSIONS_FIELD_NUMBER = 16; private java.util.List exclusions_; /** - * - * *
-   * Optional. Log entries that match any of the exclusion filters will not be exported.
+   * Optional. Log entries that match any of these exclusion filters will not be exported.
    * If a log entry is matched by both `filter` and one of `exclusion_filters`
    * 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 the exclusion filters will not be exported.
+   * Optional. Log entries that match any of these exclusion filters will not be exported.
    * If a log entry is matched by both `filter` and one of `exclusion_filters`
    * 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 the exclusion filters will not be exported.
+   * Optional. Log entries that match any of these exclusion filters will not be exported.
    * If a log entry is matched by both `filter` and one of `exclusion_filters`
    * 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 the exclusion filters will not be exported.
+   * Optional. Log entries that match any of these exclusion filters will not be exported.
    * If a log entry is matched by both `filter` and one of `exclusion_filters`
    * 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 the exclusion filters will not be exported.
+   * Optional. Log entries that match any of these exclusion filters will not be exported.
    * If a log entry is matched by both `filter` and one of `exclusion_filters`
    * 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_; /** - * - * *
    * Deprecated. This field is unused.
    * 
* - * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; - * - * + * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; * @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]; - * - * + * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; * @return The outputVersionFormat. */ - @java.lang.Override - @java.lang.Deprecated - public com.google.logging.v2.LogSink.VersionFormat getOutputVersionFormat() { + @java.lang.Override @java.lang.Deprecated public com.google.logging.v2.LogSink.VersionFormat getOutputVersionFormat() { @SuppressWarnings("deprecation") - com.google.logging.v2.LogSink.VersionFormat result = - com.google.logging.v2.LogSink.VersionFormat.valueOf(outputVersionFormat_); + com.google.logging.v2.LogSink.VersionFormat result = com.google.logging.v2.LogSink.VersionFormat.valueOf(outputVersionFormat_); return result == null ? com.google.logging.v2.LogSink.VersionFormat.UNRECOGNIZED : result; } public static final int WRITER_IDENTITY_FIELD_NUMBER = 8; private volatile java.lang.Object writerIdentity_; /** - * - * *
-   * Output only. An IAM identity&mdash;a service account or group&mdash;under which Logging
-   * writes the exported log entries to the sink's destination. This field is
-   * set by [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] and
+   * 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 destination. This
+   * field is set by
+   * [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] and
    * [sinks.update][google.logging.v2.ConfigServiceV2.UpdateSink] based on the
    * value of `unique_writer_identity` in those methods.
    * Until you grant this identity write-access to the destination, log entry
-   * exports from this sink will fail. For more information,
-   * see [Granting Access for a
+   * exports from this sink will fail. For more information, see [Granting
+   * Access for a
    * Resource](https://cloud.google.com/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource).
    * Consult the destination service's documentation to determine the
    * appropriate IAM roles to assign to the identity.
+   * Sinks that have a destination that is a log bucket in the same project as
+   * the sink do not have a writer_identity and no additional permissions are
+   * required.
    * 
* * string writer_identity = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The writerIdentity. */ @java.lang.Override @@ -838,39 +741,43 @@ 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 Logging
-   * writes the exported log entries to the sink's destination. This field is
-   * set by [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] and
+   * 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 destination. This
+   * field is set by
+   * [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] and
    * [sinks.update][google.logging.v2.ConfigServiceV2.UpdateSink] based on the
    * value of `unique_writer_identity` in those methods.
    * Until you grant this identity write-access to the destination, log entry
-   * exports from this sink will fail. For more information,
-   * see [Granting Access for a
+   * exports from this sink will fail. For more information, see [Granting
+   * Access for a
    * Resource](https://cloud.google.com/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource).
    * Consult the destination service's documentation to determine the
    * appropriate IAM roles to assign to the identity.
+   * Sinks that have a destination that is a log bucket in the same project as
+   * the sink do not have a writer_identity and no additional permissions are
+   * required.
    * 
* * 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 { @@ -881,25 +788,24 @@ public com.google.protobuf.ByteString getWriterIdentityBytes() { public static final int INCLUDE_CHILDREN_FIELD_NUMBER = 9; 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
-   * sink's parent resource are available for export. If the field is true, then
-   * logs from all the projects, folders, and billing accounts contained in the
+   * 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 sink's parent
+   * resource are available for export. If the field is true, then log entries
+   * from all the projects, folders, and billing accounts contained in the
    * sink's parent resource are also available for export. Whether a particular
    * log entry from the children is exported depends on the sink's filter
-   * expression. For example, if this field is true, then the filter
+   * expression.
+   * For example, if this field is true, then the filter
    * `resource.type=gce_instance` would export all Compute Engine VM instance
-   * log entries from all projects in the sink's parent. To only export entries
-   * from certain child projects, filter on the project part of the log name:
-   *     logName:("projects/test-project1/" OR "projects/test-project2/") AND
-   *     resource.type=gce_instance
+   * log entries from all projects in the sink's parent.
+   * To only export entries from certain child projects, filter on the project
+   * part of the log name:
+   *   logName:("projects/test-project1/" OR "projects/test-project2/") AND
+   *   resource.type=gce_instance
    * 
* * bool include_children = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The includeChildren. */ @java.lang.Override @@ -909,16 +815,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 @@ -926,40 +827,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(); } @@ -967,16 +859,12 @@ 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 @@ -984,16 +872,12 @@ 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 @@ -1001,15 +885,12 @@ 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() { @@ -1019,16 +900,12 @@ 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 @@ -1036,16 +913,12 @@ 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 @@ -1053,15 +926,12 @@ 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() { @@ -1069,7 +939,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1081,7 +950,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_); } @@ -1091,8 +961,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_)) { @@ -1137,35 +1006,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1175,34 +1048,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: @@ -1227,7 +1111,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(); @@ -1237,7 +1122,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(); @@ -1259,127 +1145,120 @@ 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, or a
-   * Cloud Pub/Sub topic. A logs filter controls which log entries are exported.
-   * The sink must be created within a project, organization, billing account, or
-   * folder.
+   * destinations in any project: a Cloud Storage bucket, a BigQuery dataset, a
+   * Pub/Sub topic or a Cloud Logging log bucket. A logs filter controls which log
+   * entries are exported. The sink must be created within a project,
+   * organization, billing account, or folder.
    * 
* * 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); } @@ -1389,17 +1268,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getExclusionsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1443,9 +1322,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 @@ -1509,39 +1388,38 @@ public com.google.logging.v2.LogSink 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.LogSink) { - return mergeFrom((com.google.logging.v2.LogSink) other); + return mergeFrom((com.google.logging.v2.LogSink)other); } else { super.mergeFrom(other); return this; @@ -1587,10 +1465,9 @@ public Builder mergeFrom(com.google.logging.v2.LogSink 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_); } @@ -1613,15 +1490,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.unknownFields); onChanged(); @@ -1651,12 +1526,12 @@ public Builder mergeFrom( } 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() { @@ -1670,24 +1545,22 @@ public Builder clearOptions() { private java.lang.Object name_ = ""; /** - * - * *
-     * Required. The client-assigned sink identifier, unique within the project. Example:
-     * `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited to 100
-     * characters and can include only the following characters: upper and
+     * Required. The client-assigned sink identifier, unique within the project.
+     * For example: `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited
+     * to 100 characters and can include only the following characters: upper and
      * lower-case alphanumeric characters, underscores, hyphens, and periods.
      * First character has to be alphanumeric.
      * 
* * 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; @@ -1696,25 +1569,24 @@ public java.lang.String getName() { } } /** - * - * *
-     * Required. The client-assigned sink identifier, unique within the project. Example:
-     * `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited to 100
-     * characters and can include only the following characters: upper and
+     * Required. The client-assigned sink identifier, unique within the project.
+     * For example: `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited
+     * to 100 characters and can include only the following characters: upper and
      * lower-case alphanumeric characters, underscores, hyphens, and periods.
      * First character has to be alphanumeric.
      * 
* * 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 { @@ -1722,73 +1594,66 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
-     * Required. The client-assigned sink identifier, unique within the project. Example:
-     * `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited to 100
-     * characters and can include only the following characters: upper and
+     * Required. The client-assigned sink identifier, unique within the project.
+     * For example: `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited
+     * to 100 characters and can include only the following characters: upper and
      * lower-case alphanumeric characters, underscores, hyphens, and periods.
      * First character has to be alphanumeric.
      * 
* * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
-     * Required. The client-assigned sink identifier, unique within the project. Example:
-     * `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited to 100
-     * characters and can include only the following characters: upper and
+     * Required. The client-assigned sink identifier, unique within the project.
+     * For example: `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited
+     * to 100 characters and can include only the following characters: upper and
      * lower-case alphanumeric characters, underscores, hyphens, and periods.
      * First character has to be alphanumeric.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
-     * Required. The client-assigned sink identifier, unique within the project. Example:
-     * `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited to 100
-     * characters and can include only the following characters: upper and
+     * Required. The client-assigned sink identifier, unique within the project.
+     * For example: `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited
+     * to 100 characters and can include only the following characters: upper and
      * lower-case alphanumeric characters, underscores, hyphens, and periods.
      * First character has to be alphanumeric.
      * 
* * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1796,30 +1661,26 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object destination_ = ""; /** - * - * *
      * Required. The export destination:
      *     "storage.googleapis.com/[GCS_BUCKET]"
      *     "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
      *     "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]"
-     * The sink's `writer_identity`, set when the sink is created, must
-     * have permission to write to the destination or else the log
-     * entries are not exported. For more information, see
+     * The sink's `writer_identity`, set when the sink is created, must have
+     * permission to write to the destination or else the log entries are not
+     * exported. For more information, see
      * [Exporting Logs with
      * 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; @@ -1828,31 +1689,28 @@ public java.lang.String getDestination() { } } /** - * - * *
      * Required. The export destination:
      *     "storage.googleapis.com/[GCS_BUCKET]"
      *     "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
      *     "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]"
-     * The sink's `writer_identity`, set when the sink is created, must
-     * have permission to write to the destination or else the log
-     * entries are not exported. For more information, see
+     * The sink's `writer_identity`, set when the sink is created, must have
+     * permission to write to the destination or else the log entries are not
+     * exported. For more information, see
      * [Exporting Logs with
      * 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 { @@ -1860,91 +1718,78 @@ public com.google.protobuf.ByteString getDestinationBytes() { } } /** - * - * *
      * Required. The export destination:
      *     "storage.googleapis.com/[GCS_BUCKET]"
      *     "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
      *     "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]"
-     * The sink's `writer_identity`, set when the sink is created, must
-     * have permission to write to the destination or else the log
-     * entries are not exported. For more information, see
+     * The sink's `writer_identity`, set when the sink is created, must have
+     * permission to write to the destination or else the log entries are not
+     * exported. For more information, see
      * [Exporting Logs with
      * 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) { + public Builder setDestination( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + destination_ = value; onChanged(); return this; } /** - * - * *
      * Required. The export destination:
      *     "storage.googleapis.com/[GCS_BUCKET]"
      *     "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
      *     "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]"
-     * The sink's `writer_identity`, set when the sink is created, must
-     * have permission to write to the destination or else the log
-     * entries are not exported. For more information, see
+     * The sink's `writer_identity`, set when the sink is created, must have
+     * permission to write to the destination or else the log entries are not
+     * exported. For more information, see
      * [Exporting Logs with
      * 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() { - + destination_ = getDefaultInstance().getDestination(); onChanged(); return this; } /** - * - * *
      * Required. The export destination:
      *     "storage.googleapis.com/[GCS_BUCKET]"
      *     "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
      *     "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]"
-     * The sink's `writer_identity`, set when the sink is created, must
-     * have permission to write to the destination or else the log
-     * entries are not exported. For more information, see
+     * The sink's `writer_identity`, set when the sink is created, must have
+     * permission to write to the destination or else the log entries are not
+     * exported. For more information, see
      * [Exporting Logs with
      * 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) { + public Builder setDestinationBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destination_ = value; onChanged(); return this; @@ -1952,24 +1797,23 @@ 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
      * only exported log entries are those that are in the resource owning the
-     * sink and that match the filter. For example:
-     *     logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR
+     * sink and that match the filter.
+     * For example:
+     *   `logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR`
      * 
* * 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; @@ -1978,25 +1822,25 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The
      * only exported log entries are those that are in the resource owning the
-     * sink and that match the filter. For example:
-     *     logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR
+     * sink and that match the filter.
+     * For example:
+     *   `logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR`
      * 
* * 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 { @@ -2004,73 +1848,69 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The
      * only exported log entries are those that are in the resource owning the
-     * sink and that match the filter. For example:
-     *     logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR
+     * sink and that match the filter.
+     * For example:
+     *   `logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR`
      * 
* * 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) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Optional. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The
      * only exported log entries are those that are in the resource owning the
-     * sink and that match the filter. For example:
-     *     logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR
+     * sink and that match the filter.
+     * For example:
+     *   `logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR`
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Optional. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The
      * only exported log entries are those that are in the resource owning the
-     * sink and that match the filter. For example:
-     *     logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR
+     * sink and that match the filter.
+     * For example:
+     *   `logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR`
      * 
* * 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) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -2078,21 +1918,19 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * Optional. A description of this sink.
      * The maximum length of the description is 8000 characters.
      * 
* * 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; @@ -2101,22 +1939,21 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Optional. A description of this sink.
      * The maximum length of the description is 8000 characters.
      * 
* * 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 { @@ -2124,80 +1961,70 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Optional. A description of this sink.
      * The maximum length of the description is 8000 characters.
      * 
* * 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) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * Optional. A description of this sink.
      * The maximum length of the description is 8000 characters.
      * 
* * string description = 18 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * Optional. A description of this sink.
      * The maximum length of the description is 8000 characters.
      * 
* * 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) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); 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.
+     * 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 @@ -2205,71 +2032,57 @@ public boolean getDisabled() { return disabled_; } /** - * - * *
-     * Optional. If set to True, then this sink is disabled and it does not
-     * export any log entries.
+     * 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. */ public Builder setDisabled(boolean value) { - + disabled_ = value; onChanged(); return this; } /** - * - * *
-     * Optional. If set to True, then this sink is disabled and it does not
-     * export any log entries.
+     * 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() { - + disabled_ = false; onChanged(); return this; } 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_; /** - * - * *
-     * Optional. Log entries that match any of the exclusion filters will not be exported.
+     * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * 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) { @@ -2279,17 +2092,13 @@ public java.util.List getExclusionsList() { } } /** - * - * *
-     * Optional. Log entries that match any of the exclusion filters will not be exported.
+     * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * 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) { @@ -2299,17 +2108,13 @@ public int getExclusionsCount() { } } /** - * - * *
-     * Optional. Log entries that match any of the exclusion filters will not be exported.
+     * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * 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) { @@ -2319,19 +2124,16 @@ public com.google.logging.v2.LogExclusion getExclusions(int index) { } } /** - * - * *
-     * Optional. Log entries that match any of the exclusion filters will not be exported.
+     * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * 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(); @@ -2345,17 +2147,13 @@ public Builder setExclusions(int index, com.google.logging.v2.LogExclusion value return this; } /** - * - * *
-     * Optional. Log entries that match any of the exclusion filters will not be exported.
+     * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * 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) { @@ -2369,17 +2167,13 @@ public Builder setExclusions( return this; } /** - * - * *
-     * Optional. Log entries that match any of the exclusion filters will not be exported.
+     * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * 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) { @@ -2395,19 +2189,16 @@ public Builder addExclusions(com.google.logging.v2.LogExclusion value) { return this; } /** - * - * *
-     * Optional. Log entries that match any of the exclusion filters will not be exported.
+     * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * 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(); @@ -2421,19 +2212,16 @@ public Builder addExclusions(int index, com.google.logging.v2.LogExclusion value return this; } /** - * - * *
-     * Optional. Log entries that match any of the exclusion filters will not be exported.
+     * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * 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()); @@ -2444,17 +2232,13 @@ public Builder addExclusions(com.google.logging.v2.LogExclusion.Builder builderF return this; } /** - * - * *
-     * Optional. Log entries that match any of the exclusion filters will not be exported.
+     * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * 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) { @@ -2468,23 +2252,20 @@ public Builder addExclusions( return this; } /** - * - * *
-     * Optional. Log entries that match any of the exclusion filters will not be exported.
+     * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * 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); @@ -2492,17 +2273,13 @@ public Builder addAllExclusions( return this; } /** - * - * *
-     * Optional. Log entries that match any of the exclusion filters will not be exported.
+     * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * 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) { @@ -2515,17 +2292,13 @@ public Builder clearExclusions() { return this; } /** - * - * *
-     * Optional. Log entries that match any of the exclusion filters will not be exported.
+     * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * 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) { @@ -2538,56 +2311,45 @@ public Builder removeExclusions(int index) { return this; } /** - * - * *
-     * Optional. Log entries that match any of the exclusion filters will not be exported.
+     * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * 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 the exclusion filters will not be exported.
+     * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * 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 the exclusion filters will not be exported.
+     * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * 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 { @@ -2595,68 +2357,55 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder(int in } } /** - * - * *
-     * Optional. Log entries that match any of the exclusion filters will not be exported.
+     * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * 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 the exclusion filters will not be exported.
+     * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * 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 the exclusion filters will not be exported.
+     * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * 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_ & 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_; @@ -2664,100 +2413,73 @@ 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]; - * - * + * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; * @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]; - * - * + * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; * @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; onChanged(); return this; } /** - * - * *
      * Deprecated. This field is unused.
      * 
* - * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; - * - * + * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; * @return The outputVersionFormat. */ @java.lang.Override - @java.lang.Deprecated - public com.google.logging.v2.LogSink.VersionFormat getOutputVersionFormat() { + @java.lang.Deprecated public com.google.logging.v2.LogSink.VersionFormat getOutputVersionFormat() { @SuppressWarnings("deprecation") - com.google.logging.v2.LogSink.VersionFormat result = - com.google.logging.v2.LogSink.VersionFormat.valueOf(outputVersionFormat_); + com.google.logging.v2.LogSink.VersionFormat result = com.google.logging.v2.LogSink.VersionFormat.valueOf(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]; - * - * + * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; * @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(); } - + outputVersionFormat_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Deprecated. This field is unused.
      * 
* - * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; - * - * + * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearOutputVersionFormat() { - + @java.lang.Deprecated public Builder clearOutputVersionFormat() { + outputVersionFormat_ = 0; onChanged(); return this; @@ -2765,30 +2487,32 @@ public Builder clearOutputVersionFormat() { private java.lang.Object writerIdentity_ = ""; /** - * - * *
-     * Output only. An IAM identity&mdash;a service account or group&mdash;under which Logging
-     * writes the exported log entries to the sink's destination. This field is
-     * set by [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] and
+     * 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 destination. This
+     * field is set by
+     * [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] and
      * [sinks.update][google.logging.v2.ConfigServiceV2.UpdateSink] based on the
      * value of `unique_writer_identity` in those methods.
      * Until you grant this identity write-access to the destination, log entry
-     * exports from this sink will fail. For more information,
-     * see [Granting Access for a
+     * exports from this sink will fail. For more information, see [Granting
+     * Access for a
      * Resource](https://cloud.google.com/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource).
      * Consult the destination service's documentation to determine the
      * appropriate IAM roles to assign to the identity.
+     * Sinks that have a destination that is a log bucket in the same project as
+     * the sink do not have a writer_identity and no additional permissions are
+     * required.
      * 
* * 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; @@ -2797,31 +2521,34 @@ public java.lang.String getWriterIdentity() { } } /** - * - * *
-     * Output only. An IAM identity&mdash;a service account or group&mdash;under which Logging
-     * writes the exported log entries to the sink's destination. This field is
-     * set by [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] and
+     * 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 destination. This
+     * field is set by
+     * [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] and
      * [sinks.update][google.logging.v2.ConfigServiceV2.UpdateSink] based on the
      * value of `unique_writer_identity` in those methods.
      * Until you grant this identity write-access to the destination, log entry
-     * exports from this sink will fail. For more information,
-     * see [Granting Access for a
+     * exports from this sink will fail. For more information, see [Granting
+     * Access for a
      * Resource](https://cloud.google.com/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource).
      * Consult the destination service's documentation to determine the
      * appropriate IAM roles to assign to the identity.
+     * Sinks that have a destination that is a log bucket in the same project as
+     * the sink do not have a writer_identity and no additional permissions are
+     * required.
      * 
* * 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 { @@ -2829,117 +2556,121 @@ public com.google.protobuf.ByteString getWriterIdentityBytes() { } } /** - * - * *
-     * Output only. An IAM identity&mdash;a service account or group&mdash;under which Logging
-     * writes the exported log entries to the sink's destination. This field is
-     * set by [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] and
+     * 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 destination. This
+     * field is set by
+     * [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] and
      * [sinks.update][google.logging.v2.ConfigServiceV2.UpdateSink] based on the
      * value of `unique_writer_identity` in those methods.
      * Until you grant this identity write-access to the destination, log entry
-     * exports from this sink will fail. For more information,
-     * see [Granting Access for a
+     * exports from this sink will fail. For more information, see [Granting
+     * Access for a
      * Resource](https://cloud.google.com/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource).
      * Consult the destination service's documentation to determine the
      * appropriate IAM roles to assign to the identity.
+     * Sinks that have a destination that is a log bucket in the same project as
+     * the sink do not have a writer_identity and no additional permissions are
+     * required.
      * 
* * 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) { + public Builder setWriterIdentity( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + writerIdentity_ = value; onChanged(); return this; } /** - * - * *
-     * Output only. An IAM identity&mdash;a service account or group&mdash;under which Logging
-     * writes the exported log entries to the sink's destination. This field is
-     * set by [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] and
+     * 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 destination. This
+     * field is set by
+     * [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] and
      * [sinks.update][google.logging.v2.ConfigServiceV2.UpdateSink] based on the
      * value of `unique_writer_identity` in those methods.
      * Until you grant this identity write-access to the destination, log entry
-     * exports from this sink will fail. For more information,
-     * see [Granting Access for a
+     * exports from this sink will fail. For more information, see [Granting
+     * Access for a
      * Resource](https://cloud.google.com/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource).
      * Consult the destination service's documentation to determine the
      * appropriate IAM roles to assign to the identity.
+     * Sinks that have a destination that is a log bucket in the same project as
+     * the sink do not have a writer_identity and no additional permissions are
+     * required.
      * 
* * string writer_identity = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearWriterIdentity() { - + writerIdentity_ = getDefaultInstance().getWriterIdentity(); onChanged(); return this; } /** - * - * *
-     * Output only. An IAM identity&mdash;a service account or group&mdash;under which Logging
-     * writes the exported log entries to the sink's destination. This field is
-     * set by [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] and
+     * 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 destination. This
+     * field is set by
+     * [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] and
      * [sinks.update][google.logging.v2.ConfigServiceV2.UpdateSink] based on the
      * value of `unique_writer_identity` in those methods.
      * Until you grant this identity write-access to the destination, log entry
-     * exports from this sink will fail. For more information,
-     * see [Granting Access for a
+     * exports from this sink will fail. For more information, see [Granting
+     * Access for a
      * Resource](https://cloud.google.com/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource).
      * Consult the destination service's documentation to determine the
      * appropriate IAM roles to assign to the identity.
+     * Sinks that have a destination that is a log bucket in the same project as
+     * the sink do not have a writer_identity and no additional permissions are
+     * required.
      * 
* * 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) { + public Builder setWriterIdentityBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + writerIdentity_ = value; onChanged(); 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
-     * sink's parent resource are available for export. If the field is true, then
-     * logs from all the projects, folders, and billing accounts contained in the
+     * 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 sink's parent
+     * resource are available for export. If the field is true, then log entries
+     * from all the projects, folders, and billing accounts contained in the
      * sink's parent resource are also available for export. Whether a particular
      * log entry from the children is exported depends on the sink's filter
-     * expression. For example, if this field is true, then the filter
+     * expression.
+     * For example, if this field is true, then the filter
      * `resource.type=gce_instance` would export all Compute Engine VM instance
-     * log entries from all projects in the sink's parent. To only export entries
-     * from certain child projects, filter on the project part of the log name:
-     *     logName:("projects/test-project1/" OR "projects/test-project2/") AND
-     *     resource.type=gce_instance
+     * log entries from all projects in the sink's parent.
+     * To only export entries from certain child projects, filter on the project
+     * part of the log name:
+     *   logName:("projects/test-project1/" OR "projects/test-project2/") AND
+     *   resource.type=gce_instance
      * 
* * bool include_children = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The includeChildren. */ @java.lang.Override @@ -2947,79 +2678,69 @@ 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
-     * sink's parent resource are available for export. If the field is true, then
-     * logs from all the projects, folders, and billing accounts contained in the
+     * 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 sink's parent
+     * resource are available for export. If the field is true, then log entries
+     * from all the projects, folders, and billing accounts contained in the
      * sink's parent resource are also available for export. Whether a particular
      * log entry from the children is exported depends on the sink's filter
-     * expression. For example, if this field is true, then the filter
+     * expression.
+     * For example, if this field is true, then the filter
      * `resource.type=gce_instance` would export all Compute Engine VM instance
-     * log entries from all projects in the sink's parent. To only export entries
-     * from certain child projects, filter on the project part of the log name:
-     *     logName:("projects/test-project1/" OR "projects/test-project2/") AND
-     *     resource.type=gce_instance
+     * log entries from all projects in the sink's parent.
+     * To only export entries from certain child projects, filter on the project
+     * part of the log name:
+     *   logName:("projects/test-project1/" OR "projects/test-project2/") AND
+     *   resource.type=gce_instance
      * 
* * bool include_children = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The includeChildren to set. * @return This builder for chaining. */ public Builder setIncludeChildren(boolean value) { - + includeChildren_ = value; onChanged(); 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
-     * sink's parent resource are available for export. If the field is true, then
-     * logs from all the projects, folders, and billing accounts contained in the
+     * 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 sink's parent
+     * resource are available for export. If the field is true, then log entries
+     * from all the projects, folders, and billing accounts contained in the
      * sink's parent resource are also available for export. Whether a particular
      * log entry from the children is exported depends on the sink's filter
-     * expression. For example, if this field is true, then the filter
+     * expression.
+     * For example, if this field is true, then the filter
      * `resource.type=gce_instance` would export all Compute Engine VM instance
-     * log entries from all projects in the sink's parent. To only export entries
-     * from certain child projects, filter on the project part of the log name:
-     *     logName:("projects/test-project1/" OR "projects/test-project2/") AND
-     *     resource.type=gce_instance
+     * log entries from all projects in the sink's parent.
+     * To only export entries from certain child projects, filter on the project
+     * part of the log name:
+     *   logName:("projects/test-project1/" OR "projects/test-project2/") AND
+     *   resource.type=gce_instance
      * 
* * bool include_children = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearIncludeChildren() { - + includeChildren_ = false; onChanged(); return this; } 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 @@ -3027,16 +2748,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 @@ -3054,15 +2770,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) { @@ -3078,15 +2790,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) { @@ -3100,25 +2808,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; } @@ -3133,15 +2834,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) { @@ -3160,29 +2857,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() { @@ -3196,98 +2885,69 @@ 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()); options_ = null; } optionsCase_ = 12; - onChanged(); - ; + onChanged();; return bigqueryOptionsBuilder_; } 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 createTimeBuilder_ != null || 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. */ 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) { @@ -3303,18 +2963,15 @@ 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(); onChanged(); @@ -3325,22 +2982,18 @@ 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 (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -3352,16 +3005,12 @@ 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() { if (createTimeBuilder_ == null) { @@ -3375,67 +3024,51 @@ 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() { - + onChanged(); 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_; @@ -3443,61 +3076,42 @@ 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 updateTimeBuilder_ != null || 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. */ 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) { @@ -3513,18 +3127,15 @@ 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(); onChanged(); @@ -3535,22 +3146,18 @@ 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 (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -3562,16 +3169,12 @@ 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() { if (updateTimeBuilder_ == null) { @@ -3585,74 +3188,58 @@ 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() { - + onChanged(); 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); } @@ -3662,12 +3249,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(); } @@ -3676,16 +3263,16 @@ 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 { - return new LogSink(input, extensionRegistry); - } - }; + 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 { + return new LogSink(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3700,4 +3287,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 61% 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 081eab350..840164fbe 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,470 +1,367 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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. Example:
-   * `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited to 100
-   * characters and can include only the following characters: upper and
+   * Required. The client-assigned sink identifier, unique within the project.
+   * For example: `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited
+   * to 100 characters and can include only the following characters: upper and
    * lower-case alphanumeric characters, underscores, hyphens, and periods.
    * First character has to be alphanumeric.
    * 
* * 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. Example:
-   * `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited to 100
-   * characters and can include only the following characters: upper and
+   * Required. The client-assigned sink identifier, unique within the project.
+   * For example: `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited
+   * to 100 characters and can include only the following characters: upper and
    * lower-case alphanumeric characters, underscores, hyphens, and periods.
    * First character has to be alphanumeric.
    * 
* * 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:
    *     "storage.googleapis.com/[GCS_BUCKET]"
    *     "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
    *     "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]"
-   * The sink's `writer_identity`, set when the sink is created, must
-   * have permission to write to the destination or else the log
-   * entries are not exported. For more information, see
+   * The sink's `writer_identity`, set when the sink is created, must have
+   * permission to write to the destination or else the log entries are not
+   * exported. For more information, see
    * [Exporting Logs with
    * 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:
    *     "storage.googleapis.com/[GCS_BUCKET]"
    *     "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
    *     "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]"
-   * The sink's `writer_identity`, set when the sink is created, must
-   * have permission to write to the destination or else the log
-   * entries are not exported. For more information, see
+   * The sink's `writer_identity`, set when the sink is created, must have
+   * permission to write to the destination or else the log entries are not
+   * exported. For more information, see
    * [Exporting Logs with
    * 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
    * only exported log entries are those that are in the resource owning the
-   * sink and that match the filter. For example:
-   *     logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR
+   * sink and that match the filter.
+   * For example:
+   *   `logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR`
    * 
* * 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
    * only exported log entries are those that are in the resource owning the
-   * sink and that match the filter. For example:
-   *     logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR
+   * sink and that match the filter.
+   * For example:
+   *   `logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR`
    * 
* * 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.
    * The maximum length of the description is 8000 characters.
    * 
* * string description = 18 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Optional. A description of this sink.
    * The maximum length of the description is 8000 characters.
    * 
* * 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.
+   * 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 the exclusion filters will not be exported.
+   * Optional. Log entries that match any of these exclusion filters will not be exported.
    * If a log entry is matched by both `filter` and one of `exclusion_filters`
    * 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 the exclusion filters will not be exported.
+   * Optional. Log entries that match any of these exclusion filters will not be exported.
    * If a log entry is matched by both `filter` and one of `exclusion_filters`
    * 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 the exclusion filters will not be exported.
+   * Optional. Log entries that match any of these exclusion filters will not be exported.
    * If a log entry is matched by both `filter` and one of `exclusion_filters`
    * 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 the exclusion filters will not be exported.
+   * Optional. Log entries that match any of these exclusion filters will not be exported.
    * If a log entry is matched by both `filter` and one of `exclusion_filters`
    * 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 the exclusion filters will not be exported.
+   * Optional. Log entries that match any of these exclusion filters will not be exported.
    * If a log entry is matched by both `filter` and one of `exclusion_filters`
    * 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]; - * - * + * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; * @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]; - * - * + * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; * @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 Logging
-   * writes the exported log entries to the sink's destination. This field is
-   * set by [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] and
+   * 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 destination. This
+   * field is set by
+   * [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] and
    * [sinks.update][google.logging.v2.ConfigServiceV2.UpdateSink] based on the
    * value of `unique_writer_identity` in those methods.
    * Until you grant this identity write-access to the destination, log entry
-   * exports from this sink will fail. For more information,
-   * see [Granting Access for a
+   * exports from this sink will fail. For more information, see [Granting
+   * Access for a
    * Resource](https://cloud.google.com/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource).
    * Consult the destination service's documentation to determine the
    * appropriate IAM roles to assign to the identity.
+   * Sinks that have a destination that is a log bucket in the same project as
+   * the sink do not have a writer_identity and no additional permissions are
+   * required.
    * 
* * 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 Logging
-   * writes the exported log entries to the sink's destination. This field is
-   * set by [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] and
+   * 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 destination. This
+   * field is set by
+   * [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] and
    * [sinks.update][google.logging.v2.ConfigServiceV2.UpdateSink] based on the
    * value of `unique_writer_identity` in those methods.
    * Until you grant this identity write-access to the destination, log entry
-   * exports from this sink will fail. For more information,
-   * see [Granting Access for a
+   * exports from this sink will fail. For more information, see [Granting
+   * Access for a
    * Resource](https://cloud.google.com/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource).
    * Consult the destination service's documentation to determine the
    * appropriate IAM roles to assign to the identity.
+   * Sinks that have a destination that is a log bucket in the same project as
+   * the sink do not have a writer_identity and no additional permissions are
+   * required.
    * 
* * 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
-   * sink's parent resource are available for export. If the field is true, then
-   * logs from all the projects, folders, and billing accounts contained in the
+   * 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 sink's parent
+   * resource are available for export. If the field is true, then log entries
+   * from all the projects, folders, and billing accounts contained in the
    * sink's parent resource are also available for export. Whether a particular
    * log entry from the children is exported depends on the sink's filter
-   * expression. For example, if this field is true, then the filter
+   * expression.
+   * For example, if this field is true, then the filter
    * `resource.type=gce_instance` would export all Compute Engine VM instance
-   * log entries from all projects in the sink's parent. To only export entries
-   * from certain child projects, filter on the project part of the log name:
-   *     logName:("projects/test-project1/" OR "projects/test-project2/") AND
-   *     resource.type=gce_instance
+   * log entries from all projects in the sink's parent.
+   * To only export entries from certain child projects, filter on the project
+   * part of the log name:
+   *   logName:("projects/test-project1/" OR "projects/test-project2/") AND
+   *   resource.type=gce_instance
    * 
* * 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/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplit.java new file mode 100644 index 000000000..9dc947456 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplit.java @@ -0,0 +1,779 @@ +// 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
+ * split across multiple log entries.
+ * 
+ * + * Protobuf type {@code google.logging.v2.LogSplit} + */ +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; + // 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) { + return new LogSplit(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LogSplit( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + uid_ = s; + break; + } + case 16: { + + index_ = input.readInt32(); + break; + } + case 24: { + + totalSplits_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + 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 + .ensureFieldAccessorsInitialized( + com.google.logging.v2.LogSplit.class, com.google.logging.v2.LogSplit.Builder.class); + } + + public static final int UID_FIELD_NUMBER = 1; + 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
+   * part of the same sequence of split log entries.
+   * 
+ * + * string uid = 1; + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + 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
+   * part of the same sequence of split log entries.
+   * 
+ * + * string uid = 1; + * @return The bytes for uid. + */ + @java.lang.Override + 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); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INDEX_FIELD_NUMBER = 2; + 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
+   * entries.
+   * 
+ * + * int32 index = 2; + * @return The index. + */ + @java.lang.Override + public int getIndex() { + return index_; + } + + public static final int TOTAL_SPLITS_FIELD_NUMBER = 3; + 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 + public int getTotalSplits() { + return totalSplits_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uid_); + } + if (index_ != 0) { + output.writeInt32(2, index_); + } + if (totalSplits_ != 0) { + output.writeInt32(3, totalSplits_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uid_); + } + if (index_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, index_); + } + if (totalSplits_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, totalSplits_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + hash = (37 * hash) + INDEX_FIELD_NUMBER; + hash = (53 * hash) + getIndex(); + hash = (37 * hash) + TOTAL_SPLITS_FIELD_NUMBER; + hash = (53 * hash) + getTotalSplits(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + 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) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + 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) + 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); + } + public static com.google.logging.v2.LogSplit parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.logging.v2.LogSplit parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + 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) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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
+   * split across multiple log entries.
+   * 
+ * + * Protobuf type {@code google.logging.v2.LogSplit} + */ + 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; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + 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() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + uid_ = ""; + + index_ = 0; + + totalSplits_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LogEntryProto.internal_static_google_logging_v2_LogSplit_descriptor; + } + + @java.lang.Override + public com.google.logging.v2.LogSplit getDefaultInstanceForType() { + return com.google.logging.v2.LogSplit.getDefaultInstance(); + } + + @java.lang.Override + public com.google.logging.v2.LogSplit build() { + com.google.logging.v2.LogSplit result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.logging.v2.LogSplit buildPartial() { + com.google.logging.v2.LogSplit result = new com.google.logging.v2.LogSplit(this); + result.uid_ = uid_; + result.index_ = index_; + result.totalSplits_ = totalSplits_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.logging.v2.LogSplit) { + return mergeFrom((com.google.logging.v2.LogSplit)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.logging.v2.LogSplit other) { + if (other == com.google.logging.v2.LogSplit.getDefaultInstance()) return this; + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + onChanged(); + } + if (other.getIndex() != 0) { + setIndex(other.getIndex()); + } + if (other.getTotalSplits() != 0) { + setTotalSplits(other.getTotalSplits()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.logging.v2.LogSplit parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.logging.v2.LogSplit) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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
+     * part of the same sequence of split log entries.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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
+     * part of the same sequence of split log entries.
+     * 
+ * + * string uid = 1; + * @return The bytes for uid. + */ + 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); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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
+     * part of the same sequence of split log entries.
+     * 
+ * + * 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(); + } + + uid_ = value; + 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
+     * part of the same sequence of split log entries.
+     * 
+ * + * string uid = 1; + * @return This builder for chaining. + */ + public Builder clearUid() { + + uid_ = getDefaultInstance().getUid(); + 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
+     * part of the same sequence of split log entries.
+     * 
+ * + * 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(); + } + checkByteStringIsUtf8(value); + + uid_ = value; + onChanged(); + return this; + } + + 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
+     * entries.
+     * 
+ * + * int32 index = 2; + * @return The index. + */ + @java.lang.Override + 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
+     * entries.
+     * 
+ * + * int32 index = 2; + * @param value The index to set. + * @return This builder for chaining. + */ + public Builder setIndex(int value) { + + index_ = value; + onChanged(); + 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
+     * entries.
+     * 
+ * + * int32 index = 2; + * @return This builder for chaining. + */ + public Builder clearIndex() { + + index_ = 0; + onChanged(); + return this; + } + + 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 + 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. + */ + public Builder setTotalSplits(int value) { + + totalSplits_ = value; + onChanged(); + 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() { + + totalSplits_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.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(); + } + + 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 { + return new LogSplit(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.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/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplitOrBuilder.java new file mode 100644 index 000000000..3c9f21a23 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplitOrBuilder.java @@ -0,0 +1,55 @@ +// 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 + // @@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
+   * part of the same sequence of split log entries.
+   * 
+ * + * 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
+   * part of the same sequence of split log entries.
+   * 
+ * + * string uid = 1; + * @return The bytes for uid. + */ + 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
+   * entries.
+   * 
+ * + * 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 63% 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 5698e668d..350fd72fb 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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 logs in a bucket.
+ * 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,15 +27,16 @@ private LogView() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LogView(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private LogView( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,86 +55,78 @@ private LogView( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; - } - case 34: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; + description_ = s; + break; + } + case 34: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); } - case 42: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; + break; + } + case 42: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); } + + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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); } @@ -159,16 +134,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The resource name of the view.
-   * For example
-   * "projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view
+   * For example:
+   *   `projects/my-project/locations/global/buckets/my-bucket/views/my-view`
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -177,31 +149,31 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name of the view.
-   * For example
-   * "projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view
+   * For example:
+   *   `projects/my-project/locations/global/buckets/my-bucket/views/my-view`
    * 
* * 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 { @@ -212,14 +184,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** - * - * *
    * Describes this view.
    * 
* * string description = 3; - * * @return The description. */ @java.lang.Override @@ -228,29 +197,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 { @@ -261,15 +230,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 @@ -277,15 +242,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 @@ -293,14 +254,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() { @@ -310,15 +268,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 @@ -326,15 +280,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 @@ -342,14 +292,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() { @@ -359,21 +306,20 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int FILTER_FIELD_NUMBER = 7; private volatile java.lang.Object filter_; /** - * - * *
    * Filter that restricts which log entries in a bucket are visible in this
-   * view. Filters are restricted to be a logical AND of ==/!= of any of the
+   * view.
+   * Filters are restricted to be a logical AND of ==/!= of any of the
    * following:
-   *   originating project/folder/organization/billing account.
-   *   resource type
-   *   log id
-   * Example: SOURCE("projects/myproject") AND resource.type = "gce_instance"
-   *             AND LOG_ID("stdout")
+   *   - originating project/folder/organization/billing account.
+   *   - resource type
+   *   - log id
+   * For example:
+   *   SOURCE("projects/myproject") AND resource.type = "gce_instance"
+   *                                AND LOG_ID("stdout")
    * 
* * string filter = 7; - * * @return The filter. */ @java.lang.Override @@ -382,36 +328,38 @@ 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. Filters are restricted to be a logical AND of ==/!= of any of the
+   * view.
+   * Filters are restricted to be a logical AND of ==/!= of any of the
    * following:
-   *   originating project/folder/organization/billing account.
-   *   resource type
-   *   log id
-   * Example: SOURCE("projects/myproject") AND resource.type = "gce_instance"
-   *             AND LOG_ID("stdout")
+   *   - originating project/folder/organization/billing account.
+   *   - resource type
+   *   - log id
+   * For example:
+   *   SOURCE("projects/myproject") AND resource.type = "gce_instance"
+   *                                AND LOG_ID("stdout")
    * 
* * 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 { @@ -420,7 +368,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -432,7 +379,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_); } @@ -464,10 +412,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_); @@ -480,24 +430,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -528,123 +483,116 @@ 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 logs in a bucket.
+   * 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); } @@ -654,15 +602,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -688,9 +637,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 @@ -731,39 +680,38 @@ public com.google.logging.v2.LogView 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.LogView) { - return mergeFrom((com.google.logging.v2.LogView) other); + return mergeFrom((com.google.logging.v2.LogView)other); } else { super.mergeFrom(other); return this; @@ -821,22 +769,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * The resource name of the view.
-     * For example
-     * "projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view
+     * For example:
+     *   `projects/my-project/locations/global/buckets/my-bucket/views/my-view`
      * 
* * 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; @@ -845,23 +791,22 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the view.
-     * For example
-     * "projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view
+     * For example:
+     *   `projects/my-project/locations/global/buckets/my-bucket/views/my-view`
      * 
* * 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 { @@ -869,67 +814,60 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the view.
-     * For example
-     * "projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view
+     * For example:
+     *   `projects/my-project/locations/global/buckets/my-bucket/views/my-view`
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the view.
-     * For example
-     * "projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view
+     * For example:
+     *   `projects/my-project/locations/global/buckets/my-bucket/views/my-view`
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name of the view.
-     * For example
-     * "projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view
+     * For example:
+     *   `projects/my-project/locations/global/buckets/my-bucket/views/my-view`
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -937,20 +875,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; @@ -959,21 +895,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 { @@ -981,61 +916,54 @@ 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) { + public Builder setDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** - * - * *
      * Describes this view.
      * 
* * string description = 3; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); 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) { + public Builder setDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1043,58 +971,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 createTimeBuilder_ != null || 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. */ 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) { @@ -1110,17 +1019,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(); onChanged(); @@ -1131,21 +1037,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 (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1157,15 +1059,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() { if (createTimeBuilder_ == null) { @@ -1179,64 +1077,48 @@ 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() { - + onChanged(); 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_; @@ -1244,58 +1126,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 updateTimeBuilder_ != null || 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. */ 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) { @@ -1311,17 +1174,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(); onChanged(); @@ -1332,21 +1192,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 (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1358,15 +1214,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() { if (updateTimeBuilder_ == null) { @@ -1380,64 +1232,48 @@ 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() { - + onChanged(); 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_; @@ -1445,27 +1281,27 @@ 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. Filters are restricted to be a logical AND of ==/!= of any of the
+     * view.
+     * Filters are restricted to be a logical AND of ==/!= of any of the
      * following:
-     *   originating project/folder/organization/billing account.
-     *   resource type
-     *   log id
-     * Example: SOURCE("projects/myproject") AND resource.type = "gce_instance"
-     *             AND LOG_ID("stdout")
+     *   - originating project/folder/organization/billing account.
+     *   - resource type
+     *   - log id
+     * For example:
+     *   SOURCE("projects/myproject") AND resource.type = "gce_instance"
+     *                                AND LOG_ID("stdout")
      * 
* * 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; @@ -1474,28 +1310,29 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Filter that restricts which log entries in a bucket are visible in this
-     * view. Filters are restricted to be a logical AND of ==/!= of any of the
+     * view.
+     * Filters are restricted to be a logical AND of ==/!= of any of the
      * following:
-     *   originating project/folder/organization/billing account.
-     *   resource type
-     *   log id
-     * Example: SOURCE("projects/myproject") AND resource.type = "gce_instance"
-     *             AND LOG_ID("stdout")
+     *   - originating project/folder/organization/billing account.
+     *   - resource type
+     *   - log id
+     * For example:
+     *   SOURCE("projects/myproject") AND resource.type = "gce_instance"
+     *                                AND LOG_ID("stdout")
      * 
* * 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 { @@ -1503,89 +1340,88 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Filter that restricts which log entries in a bucket are visible in this
-     * view. Filters are restricted to be a logical AND of ==/!= of any of the
+     * view.
+     * Filters are restricted to be a logical AND of ==/!= of any of the
      * following:
-     *   originating project/folder/organization/billing account.
-     *   resource type
-     *   log id
-     * Example: SOURCE("projects/myproject") AND resource.type = "gce_instance"
-     *             AND LOG_ID("stdout")
+     *   - originating project/folder/organization/billing account.
+     *   - resource type
+     *   - log id
+     * For example:
+     *   SOURCE("projects/myproject") AND resource.type = "gce_instance"
+     *                                AND LOG_ID("stdout")
      * 
* * string filter = 7; - * * @param value The filter to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Filter that restricts which log entries in a bucket are visible in this
-     * view. Filters are restricted to be a logical AND of ==/!= of any of the
+     * view.
+     * Filters are restricted to be a logical AND of ==/!= of any of the
      * following:
-     *   originating project/folder/organization/billing account.
-     *   resource type
-     *   log id
-     * Example: SOURCE("projects/myproject") AND resource.type = "gce_instance"
-     *             AND LOG_ID("stdout")
+     *   - originating project/folder/organization/billing account.
+     *   - resource type
+     *   - log id
+     * For example:
+     *   SOURCE("projects/myproject") AND resource.type = "gce_instance"
+     *                                AND LOG_ID("stdout")
      * 
* * string filter = 7; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Filter that restricts which log entries in a bucket are visible in this
-     * view. Filters are restricted to be a logical AND of ==/!= of any of the
+     * view.
+     * Filters are restricted to be a logical AND of ==/!= of any of the
      * following:
-     *   originating project/folder/organization/billing account.
-     *   resource type
-     *   log id
-     * Example: SOURCE("projects/myproject") AND resource.type = "gce_instance"
-     *             AND LOG_ID("stdout")
+     *   - originating project/folder/organization/billing account.
+     *   - resource type
+     *   - log id
+     * For example:
+     *   SOURCE("projects/myproject") AND resource.type = "gce_instance"
+     *                                AND LOG_ID("stdout")
      * 
* * string filter = 7; - * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1595,12 +1431,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(); } @@ -1609,16 +1445,16 @@ 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 { - return new LogView(input, extensionRegistry); - } - }; + 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 { + return new LogView(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1633,4 +1469,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 57% 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 0a8cfbdc0..0f0ae12d7 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,194 +1,145 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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.
-   * For example
-   * "projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view
+   * For example:
+   *   `projects/my-project/locations/global/buckets/my-bucket/views/my-view`
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the view.
-   * For example
-   * "projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view
+   * For example:
+   *   `projects/my-project/locations/global/buckets/my-bucket/views/my-view`
    * 
* * 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. Filters are restricted to be a logical AND of ==/!= of any of the
+   * view.
+   * Filters are restricted to be a logical AND of ==/!= of any of the
    * following:
-   *   originating project/folder/organization/billing account.
-   *   resource type
-   *   log id
-   * Example: SOURCE("projects/myproject") AND resource.type = "gce_instance"
-   *             AND LOG_ID("stdout")
+   *   - originating project/folder/organization/billing account.
+   *   - resource type
+   *   - log id
+   * For example:
+   *   SOURCE("projects/myproject") AND resource.type = "gce_instance"
+   *                                AND LOG_ID("stdout")
    * 
* * string filter = 7; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Filter that restricts which log entries in a bucket are visible in this
-   * view. Filters are restricted to be a logical AND of ==/!= of any of the
+   * view.
+   * Filters are restricted to be a logical AND of ==/!= of any of the
    * following:
-   *   originating project/folder/organization/billing account.
-   *   resource type
-   *   log id
-   * Example: SOURCE("projects/myproject") AND resource.type = "gce_instance"
-   *             AND LOG_ID("stdout")
+   *   - originating project/folder/organization/billing account.
+   *   - resource type
+   *   - log id
+   * For example:
+   *   SOURCE("projects/myproject") AND resource.type = "gce_instance"
+   *                                AND LOG_ID("stdout")
    * 
* * 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..86b792588 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingConfigProto.java @@ -0,0 +1,915 @@ +// 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_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_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_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; + + 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\"\203\005\n\tLogBucke" + + "t\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\023\n\013description\030\003 \001(" + + "\t\0224\n\013create_time\030\004 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\0224\n\013update_time\030\005 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\022\026\n\016retenti" + + "on_days\030\013 \001(\005\022\016\n\006locked\030\t \001(\010\022?\n\017lifecyc" + + "le_state\030\014 \001(\0162!.google.logging.v2.Lifec" + + "ycleStateB\003\340A\003\022\031\n\021restricted_fields\030\017 \003(" + + "\t\0226\n\rcmek_settings\030\023 \001(\0132\037.google.loggin" + + "g.v2.CmekSettings:\245\002\352A\241\002\n logging.google" + + "apis.com/LogBucket\0228projects/{project}/l" + + "ocations/{location}/buckets/{bucket}\022Bor" + + "ganizations/{organization}/locations/{lo" + + "cation}/buckets/{bucket}\0226folders/{folde" + + "r}/locations/{location}/buckets/{bucket}" + + "\022GbillingAccounts/{billing_account}/loca" + + "tions/{location}/buckets/{bucket}\"\202\004\n\007Lo" + + "gView\022\014\n\004name\030\001 \001(\t\022\023\n\013description\030\003 \001(\t" + + "\0224\n\013create_time\030\004 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\0224\n\013update_time\030\005 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\022\016\n\006filter\030\007" + + " \001(\t:\327\002\352A\323\002\n\036logging.googleapis.com/LogV" + + "iew\022Eprojects/{project}/locations/{locat" + + "ion}/buckets/{bucket}/views/{view}\022Oorga" + + "nizations/{organization}/locations/{loca" + + "tion}/buckets/{bucket}/views/{view}\022Cfol" + + "ders/{folder}/locations/{location}/bucke" + + "ts/{bucket}/views/{view}\022TbillingAccount" + + "s/{billing_account}/locations/{location}" + + "/buckets/{bucket}/views/{view}\"\205\006\n\007LogSi" + + "nk\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\036\n\013destination\030\003 \001" + + "(\tB\t\340A\002\372A\003\n\001*\022\023\n\006filter\030\005 \001(\tB\003\340A\001\022\030\n\013de" + + "scription\030\022 \001(\tB\003\340A\001\022\025\n\010disabled\030\023 \001(\010B\003" + + "\340A\001\0228\n\nexclusions\030\020 \003(\0132\037.google.logging" + + ".v2.LogExclusionB\003\340A\001\022K\n\025output_version_" + + "format\030\006 \001(\0162(.google.logging.v2.LogSink" + + ".VersionFormatB\002\030\001\022\034\n\017writer_identity\030\010 " + + "\001(\tB\003\340A\003\022\035\n\020include_children\030\t \001(\010B\003\340A\001\022" + + "C\n\020bigquery_options\030\014 \001(\0132\".google.loggi" + + "ng.v2.BigQueryOptionsB\003\340A\001H\000\0224\n\013create_t" + + "ime\030\r \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\003\0224\n\013update_time\030\016 \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\003\"?\n\rVersionFormat\022\036\n\032VER" + + "SION_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/LogSink" + + "\022\037projects/{project}/sinks/{sink}\022)organ" + + "izations/{organization}/sinks/{sink}\022\035fo" + + "lders/{folder}/sinks/{sink}\022.billingAcco" + + "unts/{billing_account}/sinks/{sink}B\t\n\007o" + + "ptions\"g\n\017BigQueryOptions\022#\n\026use_partiti" + + "oned_tables\030\001 \001(\010B\003\340A\001\022/\n\"uses_timestamp" + + "_column_partitioning\030\003 \001(\010B\003\340A\003\"\177\n\022ListB" + + "ucketsRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 l" + + "ogging.googleapis.com/LogBucket\022\027\n\npage_" + + "token\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001" + + "\"]\n\023ListBucketsResponse\022-\n\007buckets\030\001 \003(\013" + + "2\034.google.logging.v2.LogBucket\022\027\n\017next_p" + + "age_token\030\002 \001(\t\"\232\001\n\023CreateBucketRequest\022" + + "8\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 logging.googlea" + + "pis.com/LogBucket\022\026\n\tbucket_id\030\002 \001(\tB\003\340A" + + "\002\0221\n\006bucket\030\003 \001(\0132\034.google.logging.v2.Lo" + + "gBucketB\003\340A\002\"\266\001\n\023UpdateBucketRequest\0226\n\004" + + "name\030\001 \001(\tB(\340A\002\372A\"\n logging.googleapis.c" + + "om/LogBucket\0221\n\006bucket\030\002 \001(\0132\034.google.lo" + + "gging.v2.LogBucketB\003\340A\002\0224\n\013update_mask\030\004" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"J\n" + + "\020GetBucketRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n" + + " logging.googleapis.com/LogBucket\"M\n\023Del" + + "eteBucketRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n " + + "logging.googleapis.com/LogBucket\"O\n\025Unde" + + "leteBucketRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n" + + " logging.googleapis.com/LogBucket\"X\n\020Lis" + + "tViewsRequest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022\027\n\npa" + + "ge_token\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003" + + "\340A\001\"W\n\021ListViewsResponse\022)\n\005views\030\001 \003(\0132" + + "\032.google.logging.v2.LogView\022\027\n\017next_page" + + "_token\030\002 \001(\t\"m\n\021CreateViewRequest\022\023\n\006par" + + "ent\030\001 \001(\tB\003\340A\002\022\024\n\007view_id\030\002 \001(\tB\003\340A\002\022-\n\004" + + "view\030\003 \001(\0132\032.google.logging.v2.LogViewB\003" + + "\340A\002\"\213\001\n\021UpdateViewRequest\022\021\n\004name\030\001 \001(\tB" + + "\003\340A\002\022-\n\004view\030\002 \001(\0132\032.google.logging.v2.L" + + "ogViewB\003\340A\002\0224\n\013update_mask\030\004 \001(\0132\032.googl" + + "e.protobuf.FieldMaskB\003\340A\001\"F\n\016GetViewRequ" + + "est\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036logging.googl" + + "eapis.com/LogView\"I\n\021DeleteViewRequest\0224" + + "\n\004name\030\001 \001(\tB&\340A\002\372A \n\036logging.googleapis" + + ".com/LogView\"{\n\020ListSinksRequest\0226\n\006pare" + + "nt\030\001 \001(\tB&\340A\002\372A \022\036logging.googleapis.com" + + "/LogSink\022\027\n\npage_token\030\002 \001(\tB\003\340A\001\022\026\n\tpag" + + "e_size\030\003 \001(\005B\003\340A\001\"W\n\021ListSinksResponse\022)" + + "\n\005sinks\030\001 \003(\0132\032.google.logging.v2.LogSin" + + "k\022\027\n\017next_page_token\030\002 \001(\t\"K\n\016GetSinkReq" + + "uest\0229\n\tsink_name\030\001 \001(\tB&\340A\002\372A \n\036logging" + + ".googleapis.com/LogSink\"\237\001\n\021CreateSinkRe" + + "quest\0226\n\006parent\030\001 \001(\tB&\340A\002\372A \022\036logging.g" + + "oogleapis.com/LogSink\022-\n\004sink\030\002 \001(\0132\032.go" + + "ogle.logging.v2.LogSinkB\003\340A\002\022#\n\026unique_w" + + "riter_identity\030\003 \001(\010B\003\340A\001\"\330\001\n\021UpdateSink" + + "Request\0229\n\tsink_name\030\001 \001(\tB&\340A\002\372A \n\036logg" + + "ing.googleapis.com/LogSink\022-\n\004sink\030\002 \001(\013" + + "2\032.google.logging.v2.LogSinkB\003\340A\002\022#\n\026uni" + + "que_writer_identity\030\003 \001(\010B\003\340A\001\0224\n\013update" + + "_mask\030\004 \001(\0132\032.google.protobuf.FieldMaskB" + + "\003\340A\001\"N\n\021DeleteSinkRequest\0229\n\tsink_name\030\001" + + " \001(\tB&\340A\002\372A \n\036logging.googleapis.com/Log" + + "Sink\"\302\003\n\014LogExclusion\022\021\n\004name\030\001 \001(\tB\003\340A\002" + + "\022\030\n\013description\030\002 \001(\tB\003\340A\001\022\023\n\006filter\030\003 \001" + + "(\tB\003\340A\002\022\025\n\010disabled\030\004 \001(\010B\003\340A\001\0224\n\013create" + + "_time\030\005 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\0224\n\013update_time\030\006 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003:\354\001\352A\350\001\n#logging.googl" + + "eapis.com/LogExclusion\022)projects/{projec" + + "t}/exclusions/{exclusion}\0223organizations" + + "/{organization}/exclusions/{exclusion}\022\'" + + "folders/{folder}/exclusions/{exclusion}\022" + + "8billingAccounts/{billing_account}/exclu" + + "sions/{exclusion}\"\205\001\n\025ListExclusionsRequ" + + "est\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\022#logging.goo" + + "gleapis.com/LogExclusion\022\027\n\npage_token\030\002" + + " \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\"f\n\026Lis" + + "tExclusionsResponse\0223\n\nexclusions\030\001 \003(\0132" + + "\037.google.logging.v2.LogExclusion\022\027\n\017next" + + "_page_token\030\002 \001(\t\"P\n\023GetExclusionRequest" + + "\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#logging.googleap" + + "is.com/LogExclusion\"\216\001\n\026CreateExclusionR" + + "equest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\022#logging." + + "googleapis.com/LogExclusion\0227\n\texclusion" + + "\030\002 \001(\0132\037.google.logging.v2.LogExclusionB" + + "\003\340A\002\"\302\001\n\026UpdateExclusionRequest\0229\n\004name\030" + + "\001 \001(\tB+\340A\002\372A%\n#logging.googleapis.com/Lo" + + "gExclusion\0227\n\texclusion\030\002 \001(\0132\037.google.l" + + "ogging.v2.LogExclusionB\003\340A\002\0224\n\013update_ma" + + "sk\030\003 \001(\0132\032.google.protobuf.FieldMaskB\003\340A" + + "\002\"S\n\026DeleteExclusionRequest\0229\n\004name\030\001 \001(" + + "\tB+\340A\002\372A%\n#logging.googleapis.com/LogExc" + + "lusion\"S\n\026GetCmekSettingsRequest\0229\n\004name" + + "\030\001 \001(\tB+\340A\002\372A%\n#logging.googleapis.com/C" + + "mekSettings\"\241\001\n\031UpdateCmekSettingsReques" + + "t\022\021\n\004name\030\001 \001(\tB\003\340A\002\022;\n\rcmek_settings\030\002 " + + "\001(\0132\037.google.logging.v2.CmekSettingsB\003\340A" + + "\002\0224\n\013update_mask\030\003 \001(\0132\032.google.protobuf" + + ".FieldMaskB\003\340A\001\"\237\002\n\014CmekSettings\022\021\n\004name" + + "\030\001 \001(\tB\003\340A\003\022\024\n\014kms_key_name\030\002 \001(\t\022\037\n\022ser" + + "vice_account_id\030\003 \001(\tB\003\340A\003:\304\001\352A\300\001\n#loggi" + + "ng.googleapis.com/CmekSettings\022\037projects" + + "/{project}/cmekSettings\022)organizations/{" + + "organization}/cmekSettings\022\035folders/{fol" + + "der}/cmekSettings\022.billingAccounts/{bill" + + "ing_account}/cmekSettings\"K\n\022GetSettings" + + "Request\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037logging.g" + + "oogleapis.com/Settings\"\224\001\n\025UpdateSetting" + + "sRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\0222\n\010settings\030" + + "\002 \001(\0132\033.google.logging.v2.SettingsB\003\340A\002\022" + + "4\n\013update_mask\030\003 \001(\0132\032.google.protobuf.F" + + "ieldMaskB\003\340A\001\"\322\002\n\010Settings\022\021\n\004name\030\001 \001(\t" + + "B\003\340A\003\022\031\n\014kms_key_name\030\002 \001(\tB\003\340A\001\022#\n\026kms_" + + "service_account_id\030\003 \001(\tB\003\340A\003\022\035\n\020storage" + + "_location\030\004 \001(\tB\003\340A\001\022!\n\024disable_default_" + + "sink\030\005 \001(\010B\003\340A\001:\260\001\352A\254\001\n\037logging.googleap" + + "is.com/Settings\022\033projects/{project}/sett" + + "ings\022%organizations/{organization}/setti" + + "ngs\022\031folders/{folder}/settings\022*billingA" + + "ccounts/{billing_account}/settings\"Y\n\025Co" + + "pyLogEntriesRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\023" + + "\n\006filter\030\003 \001(\tB\003\340A\001\022\030\n\013destination\030\004 \001(\t" + + "B\003\340A\002\"\256\002\n\026CopyLogEntriesMetadata\022.\n\nstar" + + "t_time\030\001 \001(\0132\032.google.protobuf.Timestamp" + + "\022,\n\010end_time\030\002 \001(\0132\032.google.protobuf.Tim" + + "estamp\0220\n\005state\030\003 \001(\0162!.google.logging.v" + + "2.OperationState\022\036\n\026cancellation_request" + + "ed\030\004 \001(\010\0229\n\007request\030\005 \001(\0132(.google.loggi" + + "ng.v2.CopyLogEntriesRequest\022\020\n\010progress\030" + + "\006 \001(\005\022\027\n\017writer_identity\030\007 \001(\t\":\n\026CopyLo" + + "gEntriesResponse\022 \n\030log_entries_copied_c" + + "ount\030\001 \001(\003*S\n\016LifecycleState\022\037\n\033LIFECYCL" + + "E_STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\024\n\020DEL" + + "ETE_REQUESTED\020\002*\364\001\n\016OperationState\022\037\n\033OP" + + "ERATION_STATE_UNSPECIFIED\020\000\022\035\n\031OPERATION" + + "_STATE_SCHEDULED\020\001\022+\n\'OPERATION_STATE_WA" + + "ITING_FOR_PERMISSIONS\020\002\022\033\n\027OPERATION_STA" + + "TE_RUNNING\020\003\022\035\n\031OPERATION_STATE_SUCCEEDE" + + "D\020\004\022\032\n\026OPERATION_STATE_FAILED\020\005\022\035\n\031OPERA" + + "TION_STATE_CANCELLED\020\0062\214E\n\017ConfigService" + + "V2\022\334\002\n\013ListBuckets\022%.google.logging.v2.L" + + "istBucketsRequest\032&.google.logging.v2.Li" + + "stBucketsResponse\"\375\001\202\323\344\223\002\355\001\022$/v2/{parent" + + "=*/*/locations/*}/bucketsZ-\022+/v2/{parent" + + "=projects/*/locations/*}/bucketsZ2\0220/v2/" + + "{parent=organizations/*/locations/*}/buc" + + "ketsZ,\022*/v2/{parent=folders/*/locations/" + + "*}/bucketsZ4\0222/v2/{parent=billingAccount" + + "s/*/locations/*}/buckets\332A\006parent\022\271\002\n\tGe" + + "tBucket\022#.google.logging.v2.GetBucketReq" + + "uest\032\034.google.logging.v2.LogBucket\"\350\001\202\323\344" + + "\223\002\341\001\022$/v2/{name=*/*/locations/*/buckets/" + + "*}Z-\022+/v2/{name=projects/*/locations/*/b" + + "uckets/*}Z2\0220/v2/{name=organizations/*/l" + + "ocations/*/buckets/*}Z,\022*/v2/{name=folde" + + "rs/*/locations/*/buckets/*}Z(\022&/v2/{name" + + "=billingAccounts/*/buckets/*}\022\363\002\n\014Create" + + "Bucket\022&.google.logging.v2.CreateBucketR" + + "equest\032\034.google.logging.v2.LogBucket\"\234\002\202" + + "\323\344\223\002\225\002\"$/v2/{parent=*/*/locations/*}/buc" + + "kets:\006bucketZ5\"+/v2/{parent=projects/*/l" + + "ocations/*}/buckets:\006bucketZ:\"0/v2/{pare" + + "nt=organizations/*/locations/*}/buckets:" + + "\006bucketZ4\"*/v2/{parent=folders/*/locatio" + + "ns/*}/buckets:\006bucketZ<\"2/v2/{parent=bil" + + "lingAccounts/*/locations/*}/buckets:\006buc" + + "ket\022\363\002\n\014UpdateBucket\022&.google.logging.v2" + + ".UpdateBucketRequest\032\034.google.logging.v2" + + ".LogBucket\"\234\002\202\323\344\223\002\225\0022$/v2/{name=*/*/loca" + + "tions/*/buckets/*}:\006bucketZ52+/v2/{name=" + + "projects/*/locations/*/buckets/*}:\006bucke" + + "tZ:20/v2/{name=organizations/*/locations" + + "/*/buckets/*}:\006bucketZ42*/v2/{name=folde" + + "rs/*/locations/*/buckets/*}:\006bucketZ<22/" + + "v2/{name=billingAccounts/*/locations/*/b" + + "uckets/*}:\006bucket\022\305\002\n\014DeleteBucket\022&.goo" + + "gle.logging.v2.DeleteBucketRequest\032\026.goo" + + "gle.protobuf.Empty\"\364\001\202\323\344\223\002\355\001*$/v2/{name=" + + "*/*/locations/*/buckets/*}Z-*+/v2/{name=" + + "projects/*/locations/*/buckets/*}Z2*0/v2" + + "/{name=organizations/*/locations/*/bucke" + + "ts/*}Z,**/v2/{name=folders/*/locations/*" + + "/buckets/*}Z4*2/v2/{name=billingAccounts" + + "/*/locations/*/buckets/*}\022\205\003\n\016UndeleteBu" + + "cket\022(.google.logging.v2.UndeleteBucketR" + + "equest\032\026.google.protobuf.Empty\"\260\002\202\323\344\223\002\251\002" + + "\"-/v2/{name=*/*/locations/*/buckets/*}:u" + + "ndelete:\001*Z9\"4/v2/{name=projects/*/locat" + + "ions/*/buckets/*}:undelete:\001*Z>\"9/v2/{na" + + "me=organizations/*/locations/*/buckets/*" + + "}:undelete:\001*Z8\"3/v2/{name=folders/*/loc" + + "ations/*/buckets/*}:undelete:\001*Z@\";/v2/{" + + "name=billingAccounts/*/locations/*/bucke" + + "ts/*}:undelete:\001*\022\376\002\n\tListViews\022#.google" + + ".logging.v2.ListViewsRequest\032$.google.lo" + + "gging.v2.ListViewsResponse\"\245\002\202\323\344\223\002\225\002\022,/v" + + "2/{parent=*/*/locations/*/buckets/*}/vie" + + "wsZ5\0223/v2/{parent=projects/*/locations/*" + + "/buckets/*}/viewsZ:\0228/v2/{parent=organiz" + + "ations/*/locations/*/buckets/*}/viewsZ4\022" + + "2/v2/{parent=folders/*/locations/*/bucke" + + "ts/*}/viewsZ<\022:/v2/{parent=billingAccoun" + + "ts/*/locations/*/buckets/*}/views\332A\006pare" + + "nt\022\333\002\n\007GetView\022!.google.logging.v2.GetVi" + + "ewRequest\032\032.google.logging.v2.LogView\"\220\002" + + "\202\323\344\223\002\211\002\022,/v2/{name=*/*/locations/*/bucke" + + "ts/*/views/*}Z5\0223/v2/{name=projects/*/lo" + + "cations/*/buckets/*/views/*}Z:\0228/v2/{nam" + + "e=organizations/*/locations/*/buckets/*/" + + "views/*}Z4\0222/v2/{name=folders/*/location" + + "s/*/buckets/*/views/*}Z0\022./v2/{name=bill" + + "ingAccounts/*/buckets/*/views/*}\022\213\003\n\nCre" + + "ateView\022$.google.logging.v2.CreateViewRe" + + "quest\032\032.google.logging.v2.LogView\"\272\002\202\323\344\223" + + "\002\263\002\",/v2/{parent=*/*/locations/*/buckets" + + "/*}/views:\004viewZ;\"3/v2/{parent=projects/" + + "*/locations/*/buckets/*}/views:\004viewZ@\"8" + + "/v2/{parent=organizations/*/locations/*/" + + "buckets/*}/views:\004viewZ:\"2/v2/{parent=fo" + + "lders/*/locations/*/buckets/*}/views:\004vi" + + "ewZB\":/v2/{parent=billingAccounts/*/loca" + + "tions/*/buckets/*}/views:\004view\022\213\003\n\nUpdat" + + "eView\022$.google.logging.v2.UpdateViewRequ" + + "est\032\032.google.logging.v2.LogView\"\272\002\202\323\344\223\002\263" + + "\0022,/v2/{name=*/*/locations/*/buckets/*/v" + + "iews/*}:\004viewZ;23/v2/{name=projects/*/lo" + + "cations/*/buckets/*/views/*}:\004viewZ@28/v" + + "2/{name=organizations/*/locations/*/buck" + + "ets/*/views/*}:\004viewZ:22/v2/{name=folder" + + "s/*/locations/*/buckets/*/views/*}:\004view" + + "ZB2:/v2/{name=billingAccounts/*/location" + + "s/*/buckets/*/views/*}:\004view\022\351\002\n\nDeleteV" + + "iew\022$.google.logging.v2.DeleteViewReques" + + "t\032\026.google.protobuf.Empty\"\234\002\202\323\344\223\002\225\002*,/v2" + + "/{name=*/*/locations/*/buckets/*/views/*" + + "}Z5*3/v2/{name=projects/*/locations/*/bu" + + "ckets/*/views/*}Z:*8/v2/{name=organizati" + + "ons/*/locations/*/buckets/*/views/*}Z4*2" + + "/v2/{name=folders/*/locations/*/buckets/" + + "*/views/*}Z<*:/v2/{name=billingAccounts/" + + "*/locations/*/buckets/*/views/*}\022\220\002\n\tLis" + + "tSinks\022#.google.logging.v2.ListSinksRequ" + + "est\032$.google.logging.v2.ListSinksRespons" + + "e\"\267\001\202\323\344\223\002\247\001\022\026/v2/{parent=*/*}/sinksZ\037\022\035/" + + "v2/{parent=projects/*}/sinksZ$\022\"/v2/{par" + + "ent=organizations/*}/sinksZ\036\022\034/v2/{paren" + + "t=folders/*}/sinksZ&\022$/v2/{parent=billin" + + "gAccounts/*}/sinks\332A\006parent\022\236\002\n\007GetSink\022" + + "!.google.logging.v2.GetSinkRequest\032\032.goo" + + "gle.logging.v2.LogSink\"\323\001\202\323\344\223\002\300\001\022\033/v2/{s" + + "ink_name=*/*/sinks/*}Z$\022\"/v2/{sink_name=" + + "projects/*/sinks/*}Z)\022\'/v2/{sink_name=or" + + "ganizations/*/sinks/*}Z#\022!/v2/{sink_name" + + "=folders/*/sinks/*}Z+\022)/v2/{sink_name=bi" + + "llingAccounts/*/sinks/*}\332A\tsink_name\022\253\002\n" + + "\nCreateSink\022$.google.logging.v2.CreateSi" + + "nkRequest\032\032.google.logging.v2.LogSink\"\332\001" + + "\202\323\344\223\002\305\001\"\026/v2/{parent=*/*}/sinks:\004sinkZ%\"" + + "\035/v2/{parent=projects/*}/sinks:\004sinkZ*\"\"" + + "/v2/{parent=organizations/*}/sinks:\004sink" + + "Z$\"\034/v2/{parent=folders/*}/sinks:\004sinkZ," + + "\"$/v2/{parent=billingAccounts/*}/sinks:\004" + + "sink\332A\013parent,sink\022\237\004\n\nUpdateSink\022$.goog" + + "le.logging.v2.UpdateSinkRequest\032\032.google" + + ".logging.v2.LogSink\"\316\003\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\332A" + + "\032sink_name,sink,update_mask\332A\016sink_name," + + "sink\022\240\002\n\nDeleteSink\022$.google.logging.v2." + + "DeleteSinkRequest\032\026.google.protobuf.Empt" + + "y\"\323\001\202\323\344\223\002\300\001*\033/v2/{sink_name=*/*/sinks/*}" + + "Z$*\"/v2/{sink_name=projects/*/sinks/*}Z)" + + "*\'/v2/{sink_name=organizations/*/sinks/*" + + "}Z#*!/v2/{sink_name=folders/*/sinks/*}Z+" + + "*)/v2/{sink_name=billingAccounts/*/sinks" + + "/*}\332A\tsink_name\022\270\002\n\016ListExclusions\022(.goo" + + "gle.logging.v2.ListExclusionsRequest\032).g" + + "oogle.logging.v2.ListExclusionsResponse\"" + + "\320\001\202\323\344\223\002\300\001\022\033/v2/{parent=*/*}/exclusionsZ$" + + "\022\"/v2/{parent=projects/*}/exclusionsZ)\022\'" + + "/v2/{parent=organizations/*}/exclusionsZ" + + "#\022!/v2/{parent=folders/*}/exclusionsZ+\022)" + + "/v2/{parent=billingAccounts/*}/exclusion" + + "s\332A\006parent\022\250\002\n\014GetExclusion\022&.google.log" + + "ging.v2.GetExclusionRequest\032\037.google.log" + + "ging.v2.LogExclusion\"\316\001\202\323\344\223\002\300\001\022\033/v2/{nam" + + "e=*/*/exclusions/*}Z$\022\"/v2/{name=project" + + "s/*/exclusions/*}Z)\022\'/v2/{name=organizat" + + "ions/*/exclusions/*}Z#\022!/v2/{name=folder" + + "s/*/exclusions/*}Z+\022)/v2/{name=billingAc" + + "counts/*/exclusions/*}\332A\004name\022\361\002\n\017Create" + + "Exclusion\022).google.logging.v2.CreateExcl" + + "usionRequest\032\037.google.logging.v2.LogExcl" + + "usion\"\221\002\202\323\344\223\002\367\001\"\033/v2/{parent=*/*}/exclus" + + "ions:\texclusionZ/\"\"/v2/{parent=projects/" + + "*}/exclusions:\texclusionZ4\"\'/v2/{parent=" + + "organizations/*}/exclusions:\texclusionZ." + + "\"!/v2/{parent=folders/*}/exclusions:\texc" + + "lusionZ6\")/v2/{parent=billingAccounts/*}" + + "/exclusions:\texclusion\332A\020parent,exclusio" + + "n\022\373\002\n\017UpdateExclusion\022).google.logging.v" + + "2.UpdateExclusionRequest\032\037.google.loggin" + + "g.v2.LogExclusion\"\233\002\202\323\344\223\002\367\0012\033/v2/{name=*" + + "/*/exclusions/*}:\texclusionZ/2\"/v2/{name" + + "=projects/*/exclusions/*}:\texclusionZ42\'" + + "/v2/{name=organizations/*/exclusions/*}:" + + "\texclusionZ.2!/v2/{name=folders/*/exclus" + + "ions/*}:\texclusionZ62)/v2/{name=billingA" + + "ccounts/*/exclusions/*}:\texclusion\332A\032nam" + + "e,exclusion,update_mask\022\245\002\n\017DeleteExclus" + + "ion\022).google.logging.v2.DeleteExclusionR" + + "equest\032\026.google.protobuf.Empty\"\316\001\202\323\344\223\002\300\001" + + "*\033/v2/{name=*/*/exclusions/*}Z$*\"/v2/{na" + + "me=projects/*/exclusions/*}Z)*\'/v2/{name" + + "=organizations/*/exclusions/*}Z#*!/v2/{n" + + "ame=folders/*/exclusions/*}Z+*)/v2/{name" + + "=billingAccounts/*/exclusions/*}\332A\004name\022" + + "\247\002\n\017GetCmekSettings\022).google.logging.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=projects/*}/" + + "cmekSettingsZ)\022\'/v2/{name=organizations/" + + "*}/cmekSettingsZ#\022!/v2/{name=folders/*}/" + + "cmekSettingsZ+\022)/v2/{name=billingAccount" + + "s/*}/cmekSettings\022\321\001\n\022UpdateCmekSettings" + + "\022,.google.logging.v2.UpdateCmekSettingsR" + + "equest\032\037.google.logging.v2.CmekSettings\"" + + "l\202\323\344\223\002f2\033/v2/{name=*/*}/cmekSettings:\rcm" + + "ek_settingsZ82\'/v2/{name=organizations/*" + + "}/cmekSettings:\rcmek_settings\022\216\002\n\013GetSet" + + "tings\022%.google.logging.v2.GetSettingsReq" + + "uest\032\033.google.logging.v2.Settings\"\272\001\202\323\344\223" + + "\002\254\001\022\027/v2/{name=*/*}/settingsZ \022\036/v2/{nam" + + "e=projects/*}/settingsZ%\022#/v2/{name=orga" + + "nizations/*}/settingsZ\037\022\035/v2/{name=folde" + + "rs/*}/settingsZ\'\022%/v2/{name=billingAccou" + + "nts/*}/settings\332A\004name\022\366\001\n\016UpdateSetting" + + "s\022(.google.logging.v2.UpdateSettingsRequ" + + "est\032\033.google.logging.v2.Settings\"\234\001\202\323\344\223\002" + + "\1772\027/v2/{name=*/*}/settings:\010settingsZ/2#" + + "/v2/{name=organizations/*}/settings:\010set" + + "tingsZ)2\035/v2/{name=folders/*}/settings:\010", + "settings\332A\024settings,update_mask\022\251\001\n\016Copy" + + "LogEntries\022(.google.logging.v2.CopyLogEn" + + "triesRequest\032\035.google.longrunning.Operat" + + "ion\"N\202\323\344\223\002\025\"\020/v2/entries:copy:\001*\312A0\n\026Cop" + + "yLogEntriesResponse\022\026CopyLogEntriesMetad" + + "ata\032\337\001\312A\026logging.googleapis.com\322A\302\001https" + + "://www.googleapis.com/auth/cloud-platfor" + + "m,https://www.googleapis.com/auth/cloud-" + + "platform.read-only,https://www.googleapi" + + "s.com/auth/logging.admin,https://www.goo" + + "gleapis.com/auth/logging.readB\331\003\n\025com.go" + + "ogle.logging.v2B\022LoggingConfigProtoP\001Z8g" + + "oogle.golang.org/genproto/googleapis/log" + + "ging/v2;logging\370\001\001\252\002\027Google.Cloud.Loggin" + + "g.V2\312\002\027Google\\Cloud\\Logging\\V2\352\002\032Google:" + + ":Cloud::Logging::V2\352A`\n+logging.googleap" + + "is.com/OrganizationLocation\0221organizatio" + + "ns/{organization}/locations/{location}\352A" + + "N\n%logging.googleapis.com/FolderLocation" + + "\022%folders/{folder}/locations/{location}\352" + + "Ag\n-logging.googleapis.com/BillingAccoun" + + "tLocation\0226billingAccounts/{billing_acco" + + "unt}/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_LogBucket_descriptor = + getDescriptor().getMessageTypes().get(0); + 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", "RestrictedFields", "CmekSettings", }); + internal_static_google_logging_v2_LogView_descriptor = + getDescriptor().getMessageTypes().get(1); + 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(2); + 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_BigQueryOptions_descriptor = + getDescriptor().getMessageTypes().get(3); + 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(4); + 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(5); + 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(6); + 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(7); + 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(8); + 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(9); + 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(10); + 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(11); + 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(12); + 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(13); + 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(14); + 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(15); + 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(16); + 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(17); + 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(18); + 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(19); + 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(20); + 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(21); + 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(22); + 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_LogExclusion_descriptor = + getDescriptor().getMessageTypes().get(23); + 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(24); + 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(25); + 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(26); + 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(27); + 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(28); + 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(29); + 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(30); + 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(31); + 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(32); + 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", "ServiceAccountId", }); + internal_static_google_logging_v2_GetSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(33); + 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(34); + 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(35); + 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(36); + 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(37); + 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(38); + 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", }); + 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..e9ec9519b --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingMetricsProto.java @@ -0,0 +1,223 @@ +// 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\"\243\005\n\tLogMetric\022\021\n\004name\030\001 \001(" + + "\tB\003\340A\002\022\030\n\013description\030\002 \001(\tB\003\340A\001\022\023\n\006filt" + + "er\030\003 \001(\tB\003\340A\002\022\025\n\010disabled\030\014 \001(\010B\003\340A\001\022<\n\021" + + "metric_descriptor\030\005 \001(\0132\034.google.api.Met" + + "ricDescriptorB\003\340A\001\022\034\n\017value_extractor\030\006 " + + "\001(\tB\003\340A\001\022P\n\020label_extractors\030\007 \003(\01321.goo" + + "gle.logging.v2.LogMetric.LabelExtractors" + + "EntryB\003\340A\001\022C\n\016bucket_options\030\010 \001(\0132&.goo" + + "gle.api.Distribution.BucketOptionsB\003\340A\001\022" + + "4\n\013create_time\030\t \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\0224\n\013update_time\030\n \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\003\022<\n\007version\030\004" + + " \001(\0162\'.google.logging.v2.LogMetric.ApiVe" + + "rsionB\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\002V2\020\000\022\006\n\002V1\020\001:J\352AG\n logging.googleapis" + + ".com/LogMetric\022#projects/{project}/metri" + + "cs/{metric}\"\215\001\n\025ListLogMetricsRequest\022C\n" + + "\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemana" + + "ger.googleapis.com/Project\022\027\n\npage_token" + + "\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\"`\n\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\"T\n\023GetLogMetricRequest\022=\n\013" + + "metric_name\030\001 \001(\tB(\340A\002\372A\"\n logging.googl" + + "eapis.com/LogMetric\"\205\001\n\026CreateLogMetricR" + + "equest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 logging." + + "googleapis.com/LogMetric\0221\n\006metric\030\002 \001(\013" + + "2\034.google.logging.v2.LogMetricB\003\340A\002\"\212\001\n\026" + + "UpdateLogMetricRequest\022=\n\013metric_name\030\001 " + + "\001(\tB(\340A\002\372A\"\n logging.googleapis.com/LogM" + + "etric\0221\n\006metric\030\002 \001(\0132\034.google.logging.v" + + "2.LogMetricB\003\340A\002\"W\n\026DeleteLogMetricReque" + + "st\022=\n\013metric_name\030\001 \001(\tB(\340A\002\372A\"\n logging" + + ".googleapis.com/LogMetric2\256\010\n\020MetricsSer" + + "viceV2\022\227\001\n\016ListLogMetrics\022(.google.loggi" + + "ng.v2.ListLogMetricsRequest\032).google.log" + + "ging.v2.ListLogMetricsResponse\"0\202\323\344\223\002!\022\037" + + "/v2/{parent=projects/*}/metrics\332A\006parent" + + "\022\222\001\n\014GetLogMetric\022&.google.logging.v2.Ge" + + "tLogMetricRequest\032\034.google.logging.v2.Lo" + + "gMetric\"<\202\323\344\223\002(\022&/v2/{metric_name=projec" + + "ts/*/metrics/*}\332A\013metric_name\022\233\001\n\017Create" + + "LogMetric\022).google.logging.v2.CreateLogM" + + "etricRequest\032\034.google.logging.v2.LogMetr" + + "ic\"?\202\323\344\223\002)\"\037/v2/{parent=projects/*}/metr" + + "ics:\006metric\332A\rparent,metric\022\247\001\n\017UpdateLo" + + "gMetric\022).google.logging.v2.UpdateLogMet" + + "ricRequest\032\034.google.logging.v2.LogMetric" + + "\"K\202\323\344\223\0020\032&/v2/{metric_name=projects/*/me" + + "trics/*}:\006metric\332A\022metric_name,metric\022\222\001" + + "\n\017DeleteLogMetric\022).google.logging.v2.De" + + "leteLogMetricRequest\032\026.google.protobuf.E" + + "mpty\"<\202\323\344\223\002(*&/v2/{metric_name=projects/" + + "*/metrics/*}\332A\013metric_name\032\215\002\312A\026logging." + + "googleapis.com\322A\360\001https://www.googleapis" + + ".com/auth/cloud-platform,https://www.goo" + + "gleapis.com/auth/cloud-platform.read-onl" + + "y,https://www.googleapis.com/auth/loggin" + + "g.admin,https://www.googleapis.com/auth/" + + "logging.read,https://www.googleapis.com/" + + "auth/logging.writeB\274\001\n\025com.google.loggin" + + "g.v2B\023LoggingMetricsProtoP\001Z8google.gola" + + "ng.org/genproto/googleapis/logging/v2;lo" + + "gging\370\001\001\252\002\027Google.Cloud.Logging.V2\312\002\027Goo" + + "gle\\Cloud\\Logging\\V2\352\002\032Google::Cloud::Lo" + + "gging::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", "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..c96fd2b66 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingProto.java @@ -0,0 +1,326 @@ +// 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\"H\n\020DeleteLogRequest\0224\n\010log_name\030\001 " + + "\001(\tB\"\340A\002\372A\034\n\032logging.googleapis.com/Log\"" + + "\346\002\n\026WriteLogEntriesRequest\0224\n\010log_name\030\001" + + " \001(\tB\"\340A\001\372A\034\n\032logging.googleapis.com/Log" + + "\0224\n\010resource\030\002 \001(\0132\035.google.api.Monitore" + + "dResourceB\003\340A\001\022J\n\006labels\030\003 \003(\01325.google." + + "logging.v2.WriteLogEntriesRequest.Labels" + + "EntryB\003\340A\001\0221\n\007entries\030\004 \003(\0132\033.google.log" + + "ging.v2.LogEntryB\003\340A\002\022\034\n\017partial_success" + + "\030\005 \001(\010B\003\340A\001\022\024\n\007dry_run\030\006 \001(\010B\003\340A\001\032-\n\013Lab" + + "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + + "\"\031\n\027WriteLogEntriesResponse\"\310\001\n\034WriteLog" + + "EntriesPartialErrors\022]\n\020log_entry_errors" + + "\030\001 \003(\0132C.google.logging.v2.WriteLogEntri" + + "esPartialErrors.LogEntryErrorsEntry\032I\n\023L" + + "ogEntryErrorsEntry\022\013\n\003key\030\001 \001(\005\022!\n\005value" + + "\030\002 \001(\0132\022.google.rpc.Status:\0028\001\"\260\001\n\025ListL" + + "ogEntriesRequest\022:\n\016resource_names\030\010 \003(\t" + + "B\"\340A\002\372A\034\022\032logging.googleapis.com/Log\022\023\n\006" + + "filter\030\002 \001(\tB\003\340A\001\022\025\n\010order_by\030\003 \001(\tB\003\340A\001" + + "\022\026\n\tpage_size\030\004 \001(\005B\003\340A\001\022\027\n\npage_token\030\005" + + " \001(\tB\003\340A\001\"_\n\026ListLogEntriesResponse\022,\n\007e" + + "ntries\030\001 \003(\0132\033.google.logging.v2.LogEntr" + + "y\022\027\n\017next_page_token\030\002 \001(\t\"Z\n\'ListMonito" + + "redResourceDescriptorsRequest\022\026\n\tpage_si" + + "ze\030\001 \001(\005B\003\340A\001\022\027\n\npage_token\030\002 \001(\tB\003\340A\001\"\212" + + "\001\n(ListMonitoredResourceDescriptorsRespo" + + "nse\022E\n\024resource_descriptors\030\001 \003(\0132\'.goog" + + "le.api.MonitoredResourceDescriptor\022\027\n\017ne" + + "xt_page_token\030\002 \001(\t\"\262\001\n\017ListLogsRequest\022" + + "2\n\006parent\030\001 \001(\tB\"\340A\002\372A\034\022\032logging.googlea" + + "pis.com/Log\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\np" + + "age_token\030\003 \001(\tB\003\340A\001\022:\n\016resource_names\030\010" + + " \003(\tB\"\340A\001\372A\034\022\032logging.googleapis.com/Log" + + "\">\n\020ListLogsResponse\022\021\n\tlog_names\030\003 \003(\t\022" + + "\027\n\017next_page_token\030\002 \001(\t\"\200\001\n\025TailLogEntr" + + "iesRequest\022\033\n\016resource_names\030\001 \003(\tB\003\340A\002\022" + + "\023\n\006filter\030\002 \001(\tB\003\340A\001\0225\n\rbuffer_window\030\003 " + + "\001(\0132\031.google.protobuf.DurationB\003\340A\001\"\337\002\n\026" + + "TailLogEntriesResponse\022,\n\007entries\030\001 \003(\0132" + + "\033.google.logging.v2.LogEntry\022S\n\020suppress" + + "ion_info\030\002 \003(\01329.google.logging.v2.TailL" + + "ogEntriesResponse.SuppressionInfo\032\301\001\n\017Su" + + "ppressionInfo\022P\n\006reason\030\001 \001(\0162@.google.l" + + "ogging.v2.TailLogEntriesResponse.Suppres" + + "sionInfo.Reason\022\030\n\020suppressed_count\030\002 \001(" + + "\005\"B\n\006Reason\022\026\n\022REASON_UNSPECIFIED\020\000\022\016\n\nR" + + "ATE_LIMIT\020\001\022\020\n\014NOT_CONSUMED\020\0022\346\013\n\020Loggin" + + "gServiceV2\022\223\002\n\tDeleteLog\022#.google.loggin" + + "g.v2.DeleteLogRequest\032\026.google.protobuf." + + "Empty\"\310\001\202\323\344\223\002\266\001* /v2/{log_name=projects/" + + "*/logs/*}Z\033*\031/v2/{log_name=*/*/logs/*}Z\'" + + "*%/v2/{log_name=organizations/*/logs/*}Z" + + "!*\037/v2/{log_name=folders/*/logs/*}Z)*\'/v" + + "2/{log_name=billingAccounts/*/logs/*}\332A\010" + + "log_name\022\251\001\n\017WriteLogEntries\022).google.lo" + + "gging.v2.WriteLogEntriesRequest\032*.google" + + ".logging.v2.WriteLogEntriesResponse\"?\202\323\344" + + "\223\002\026\"\021/v2/entries:write:\001*\332A log_name,res" + + "ource,labels,entries\022\243\001\n\016ListLogEntries\022" + + "(.google.logging.v2.ListLogEntriesReques" + + "t\032).google.logging.v2.ListLogEntriesResp" + + "onse\"<\202\323\344\223\002\025\"\020/v2/entries:list:\001*\332A\036reso" + + "urce_names,filter,order_by\022\305\001\n ListMonit" + + "oredResourceDescriptors\022:.google.logging" + + ".v2.ListMonitoredResourceDescriptorsRequ" + + "est\032;.google.logging.v2.ListMonitoredRes" + + "ourceDescriptorsResponse\"(\202\323\344\223\002\"\022 /v2/mo" + + "nitoredResourceDescriptors\022\210\002\n\010ListLogs\022" + + "\".google.logging.v2.ListLogsRequest\032#.go" + + "ogle.logging.v2.ListLogsResponse\"\262\001\202\323\344\223\002" + + "\242\001\022\025/v2/{parent=*/*}/logsZ\036\022\034/v2/{parent" + + "=projects/*}/logsZ#\022!/v2/{parent=organiz" + + "ations/*}/logsZ\035\022\033/v2/{parent=folders/*}" + + "/logsZ%\022#/v2/{parent=billingAccounts/*}/" + + "logs\332A\006parent\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\265\001\n\025com.google.lo" + + "gging.v2B\014LoggingProtoP\001Z8google.golang." + + "org/genproto/googleapis/logging/v2;loggi" + + "ng\370\001\001\252\002\027Google.Cloud.Logging.V2\312\002\027Google" + + "\\Cloud\\Logging\\V2\352\002\032Google::Cloud::Loggi" + + "ng::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", "PageSize", "PageToken", "ResourceNames", }); + 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/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OperationState.java new file mode 100644 index 000000000..c1fc6ad8e --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OperationState.java @@ -0,0 +1,222 @@ +// 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
+ * current state to the user. Once a long running operation is created,
+ * the current state of the operation can be queried even before the
+ * operation is finished and the final result is available.
+ * 
+ * + * Protobuf enum {@code google.logging.v2.OperationState} + */ +public enum OperationState + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+   * Should not be used.
+   * 
+ * + * OPERATION_STATE_UNSPECIFIED = 0; + */ + OPERATION_STATE_UNSPECIFIED(0), + /** + *
+   * The operation is scheduled.
+   * 
+ * + * OPERATION_STATE_SCHEDULED = 1; + */ + OPERATION_STATE_SCHEDULED(1), + /** + *
+   * Waiting for necessary permissions.
+   * 
+ * + * OPERATION_STATE_WAITING_FOR_PERMISSIONS = 2; + */ + OPERATION_STATE_WAITING_FOR_PERMISSIONS(2), + /** + *
+   * The operation is running.
+   * 
+ * + * OPERATION_STATE_RUNNING = 3; + */ + OPERATION_STATE_RUNNING(3), + /** + *
+   * The operation was completed successfully.
+   * 
+ * + * OPERATION_STATE_SUCCEEDED = 4; + */ + OPERATION_STATE_SUCCEEDED(4), + /** + *
+   * The operation failed.
+   * 
+ * + * OPERATION_STATE_FAILED = 5; + */ + OPERATION_STATE_FAILED(5), + /** + *
+   * The operation was cancelled by the user.
+   * 
+ * + * OPERATION_STATE_CANCELLED = 6; + */ + OPERATION_STATE_CANCELLED(6), + UNRECOGNIZED(-1), + ; + + /** + *
+   * Should not be used.
+   * 
+ * + * OPERATION_STATE_UNSPECIFIED = 0; + */ + public static final int OPERATION_STATE_UNSPECIFIED_VALUE = 0; + /** + *
+   * The operation is scheduled.
+   * 
+ * + * OPERATION_STATE_SCHEDULED = 1; + */ + public static final int OPERATION_STATE_SCHEDULED_VALUE = 1; + /** + *
+   * Waiting for necessary permissions.
+   * 
+ * + * OPERATION_STATE_WAITING_FOR_PERMISSIONS = 2; + */ + public static final int OPERATION_STATE_WAITING_FOR_PERMISSIONS_VALUE = 2; + /** + *
+   * The operation is running.
+   * 
+ * + * OPERATION_STATE_RUNNING = 3; + */ + public static final int OPERATION_STATE_RUNNING_VALUE = 3; + /** + *
+   * The operation was completed successfully.
+   * 
+ * + * OPERATION_STATE_SUCCEEDED = 4; + */ + public static final int OPERATION_STATE_SUCCEEDED_VALUE = 4; + /** + *
+   * The operation failed.
+   * 
+ * + * OPERATION_STATE_FAILED = 5; + */ + public static final int OPERATION_STATE_FAILED_VALUE = 5; + /** + *
+   * The operation was cancelled by the user.
+   * 
+ * + * OPERATION_STATE_CANCELLED = 6; + */ + public static final int OPERATION_STATE_CANCELLED_VALUE = 6; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OperationState valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire 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; + } + } + + 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() { + 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() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.getDescriptor().getEnumTypes().get(1); + } + + private static final OperationState[] VALUES = values(); + + 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."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private OperationState(int value) { + this.value = 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/owl-bot-staging/v2/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 new file mode 100644 index 000000000..98c221865 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/Settings.java @@ -0,0 +1,1375 @@ +// 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.
+ * 
+ * + * Protobuf type {@code google.logging.v2.Settings} + */ +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; + // Use Settings.newBuilder() to construct. + private Settings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Settings() { + name_ = ""; + kmsKeyName_ = ""; + kmsServiceAccountId_ = ""; + storageLocation_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Settings(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Settings( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + kmsKeyName_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + kmsServiceAccountId_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + storageLocation_ = s; + break; + } + case 40: { + + disableDefaultSink_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + 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 + .ensureFieldAccessorsInitialized( + com.google.logging.v2.Settings.class, com.google.logging.v2.Settings.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + 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 + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + 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() { + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KMS_KEY_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object kmsKeyName_; + /** + *
+   * Optional. The resource name for the configured Cloud KMS key.
+   * KMS key name format:
+   *     "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
+   * For example:
+   *   `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key"`
+   * To enable CMEK for the Log Router, set this field to a valid
+   * `kms_key_name` for which the associated service account has the required
+   * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key.
+   * The Cloud KMS key used by the Log Router can be updated by changing the
+   * `kms_key_name` to a new valid key name. Encryption operations that are in
+   * progress will be completed with the key that was in use when they started.
+   * Decryption operations will be completed using the key that was used at the
+   * time of encryption unless access to that key has been revoked.
+   * To disable CMEK for the Log Router, set this field to an empty string.
+   * See [Enabling CMEK for Log
+   * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+   * for more information.
+   * 
+ * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The kmsKeyName. + */ + @java.lang.Override + public java.lang.String getKmsKeyName() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKeyName_ = s; + return s; + } + } + /** + *
+   * Optional. The resource name for the configured Cloud KMS key.
+   * KMS key name format:
+   *     "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
+   * For example:
+   *   `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key"`
+   * To enable CMEK for the Log Router, set this field to a valid
+   * `kms_key_name` for which the associated service account has the required
+   * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key.
+   * The Cloud KMS key used by the Log Router can be updated by changing the
+   * `kms_key_name` to a new valid key name. Encryption operations that are in
+   * progress will be completed with the key that was in use when they started.
+   * Decryption operations will be completed using the key that was used at the
+   * time of encryption unless access to that key has been revoked.
+   * To disable CMEK for the Log Router, set this field to an empty string.
+   * See [Enabling CMEK for Log
+   * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+   * for more information.
+   * 
+ * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for kmsKeyName. + */ + @java.lang.Override + 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); + kmsKeyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KMS_SERVICE_ACCOUNT_ID_FIELD_NUMBER = 3; + 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.
+   * Before enabling CMEK for Log Router, you must first assign the role
+   * `roles/cloudkms.cryptoKeyEncrypterDecrypter` to the service account that
+   * the Log Router will use to access your Cloud KMS key. Use
+   * [GetSettings][google.logging.v2.ConfigServiceV2.GetSettings] to
+   * obtain the service account ID.
+   * See [Enabling CMEK for Log
+   * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+   * for more information.
+   * 
+ * + * string kms_service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The kmsServiceAccountId. + */ + @java.lang.Override + public java.lang.String getKmsServiceAccountId() { + java.lang.Object ref = kmsServiceAccountId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsServiceAccountId_ = s; + return s; + } + } + /** + *
+   * Output only. The service account that will be used by the Log Router to access your
+   * Cloud KMS key.
+   * Before enabling CMEK for Log Router, you must first assign the role
+   * `roles/cloudkms.cryptoKeyEncrypterDecrypter` to the service account that
+   * the Log Router will use to access your Cloud KMS key. Use
+   * [GetSettings][google.logging.v2.ConfigServiceV2.GetSettings] to
+   * obtain the service account ID.
+   * See [Enabling CMEK for Log
+   * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+   * for more information.
+   * 
+ * + * 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() { + 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); + kmsServiceAccountId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STORAGE_LOCATION_FIELD_NUMBER = 4; + 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`.
+   * This setting does not affect the location of custom log buckets.
+   * 
+ * + * string storage_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The storageLocation. + */ + @java.lang.Override + public java.lang.String getStorageLocation() { + java.lang.Object ref = storageLocation_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + 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`.
+   * This setting does not affect the location of custom log buckets.
+   * 
+ * + * string storage_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for storageLocation. + */ + @java.lang.Override + 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); + storageLocation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISABLE_DEFAULT_SINK_FIELD_NUMBER = 5; + 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 disable
+   * log ingestion if there is already an aggregated sink configured in the
+   * hierarchy. The _Default sink can be re-enabled manually if needed.
+   * 
+ * + * bool disable_default_sink = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return The disableDefaultSink. + */ + @java.lang.Override + public boolean getDisableDefaultSink() { + return disableDefaultSink_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kmsKeyName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsServiceAccountId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, kmsServiceAccountId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storageLocation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, storageLocation_); + } + if (disableDefaultSink_ != false) { + output.writeBool(5, disableDefaultSink_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kmsKeyName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsServiceAccountId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, kmsServiceAccountId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storageLocation_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, storageLocation_); + } + if (disableDefaultSink_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, disableDefaultSink_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getKmsKeyName().hashCode(); + hash = (37 * hash) + KMS_SERVICE_ACCOUNT_ID_FIELD_NUMBER; + hash = (53 * hash) + getKmsServiceAccountId().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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + 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) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + 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) + 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); + } + public static com.google.logging.v2.Settings parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.logging.v2.Settings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + 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) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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.
+   * 
+ * + * Protobuf type {@code google.logging.v2.Settings} + */ + 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; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + 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() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + kmsKeyName_ = ""; + + kmsServiceAccountId_ = ""; + + storageLocation_ = ""; + + disableDefaultSink_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_Settings_descriptor; + } + + @java.lang.Override + public com.google.logging.v2.Settings getDefaultInstanceForType() { + return com.google.logging.v2.Settings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.logging.v2.Settings build() { + com.google.logging.v2.Settings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.logging.v2.Settings buildPartial() { + com.google.logging.v2.Settings result = new com.google.logging.v2.Settings(this); + result.name_ = name_; + result.kmsKeyName_ = kmsKeyName_; + result.kmsServiceAccountId_ = kmsServiceAccountId_; + result.storageLocation_ = storageLocation_; + result.disableDefaultSink_ = disableDefaultSink_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.logging.v2.Settings) { + return mergeFrom((com.google.logging.v2.Settings)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.logging.v2.Settings other) { + if (other == com.google.logging.v2.Settings.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getKmsKeyName().isEmpty()) { + kmsKeyName_ = other.kmsKeyName_; + onChanged(); + } + if (!other.getKmsServiceAccountId().isEmpty()) { + kmsServiceAccountId_ = other.kmsServiceAccountId_; + onChanged(); + } + if (!other.getStorageLocation().isEmpty()) { + storageLocation_ = other.storageLocation_; + onChanged(); + } + if (other.getDisableDefaultSink() != false) { + setDisableDefaultSink(other.getDisableDefaultSink()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.logging.v2.Settings parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.logging.v2.Settings) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * 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() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * 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(); + } + + name_ = value; + 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() { + + name_ = getDefaultInstance().getName(); + onChanged(); + 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(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object kmsKeyName_ = ""; + /** + *
+     * Optional. The resource name for the configured Cloud KMS key.
+     * KMS key name format:
+     *     "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
+     * For example:
+     *   `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key"`
+     * To enable CMEK for the Log Router, set this field to a valid
+     * `kms_key_name` for which the associated service account has the required
+     * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key.
+     * The Cloud KMS key used by the Log Router can be updated by changing the
+     * `kms_key_name` to a new valid key name. Encryption operations that are in
+     * progress will be completed with the key that was in use when they started.
+     * Decryption operations will be completed using the key that was used at the
+     * time of encryption unless access to that key has been revoked.
+     * To disable CMEK for the Log Router, set this field to an empty string.
+     * See [Enabling CMEK for Log
+     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+     * for more information.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + kmsKeyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional. The resource name for the configured Cloud KMS key.
+     * KMS key name format:
+     *     "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
+     * For example:
+     *   `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key"`
+     * To enable CMEK for the Log Router, set this field to a valid
+     * `kms_key_name` for which the associated service account has the required
+     * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key.
+     * The Cloud KMS key used by the Log Router can be updated by changing the
+     * `kms_key_name` to a new valid key name. Encryption operations that are in
+     * progress will be completed with the key that was in use when they started.
+     * Decryption operations will be completed using the key that was used at the
+     * time of encryption unless access to that key has been revoked.
+     * To disable CMEK for the Log Router, set this field to an empty string.
+     * See [Enabling CMEK for Log
+     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+     * for more information.
+     * 
+ * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for kmsKeyName. + */ + 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); + kmsKeyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optional. The resource name for the configured Cloud KMS key.
+     * KMS key name format:
+     *     "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
+     * For example:
+     *   `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key"`
+     * To enable CMEK for the Log Router, set this field to a valid
+     * `kms_key_name` for which the associated service account has the required
+     * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key.
+     * The Cloud KMS key used by the Log Router can be updated by changing the
+     * `kms_key_name` to a new valid key name. Encryption operations that are in
+     * progress will be completed with the key that was in use when they started.
+     * Decryption operations will be completed using the key that was used at the
+     * time of encryption unless access to that key has been revoked.
+     * To disable CMEK for the Log Router, set this field to an empty string.
+     * See [Enabling CMEK for Log
+     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+     * for more information.
+     * 
+ * + * 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(); + } + + kmsKeyName_ = value; + onChanged(); + return this; + } + /** + *
+     * Optional. The resource name for the configured Cloud KMS key.
+     * KMS key name format:
+     *     "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
+     * For example:
+     *   `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key"`
+     * To enable CMEK for the Log Router, set this field to a valid
+     * `kms_key_name` for which the associated service account has the required
+     * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key.
+     * The Cloud KMS key used by the Log Router can be updated by changing the
+     * `kms_key_name` to a new valid key name. Encryption operations that are in
+     * progress will be completed with the key that was in use when they started.
+     * Decryption operations will be completed using the key that was used at the
+     * time of encryption unless access to that key has been revoked.
+     * To disable CMEK for the Log Router, set this field to an empty string.
+     * See [Enabling CMEK for Log
+     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+     * for more information.
+     * 
+ * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearKmsKeyName() { + + kmsKeyName_ = getDefaultInstance().getKmsKeyName(); + onChanged(); + return this; + } + /** + *
+     * Optional. The resource name for the configured Cloud KMS key.
+     * KMS key name format:
+     *     "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
+     * For example:
+     *   `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key"`
+     * To enable CMEK for the Log Router, set this field to a valid
+     * `kms_key_name` for which the associated service account has the required
+     * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key.
+     * The Cloud KMS key used by the Log Router can be updated by changing the
+     * `kms_key_name` to a new valid key name. Encryption operations that are in
+     * progress will be completed with the key that was in use when they started.
+     * Decryption operations will be completed using the key that was used at the
+     * time of encryption unless access to that key has been revoked.
+     * To disable CMEK for the Log Router, set this field to an empty string.
+     * See [Enabling CMEK for Log
+     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+     * for more information.
+     * 
+ * + * 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(); + } + checkByteStringIsUtf8(value); + + kmsKeyName_ = value; + onChanged(); + return this; + } + + private java.lang.Object kmsServiceAccountId_ = ""; + /** + *
+     * Output only. The service account that will be used by the Log Router to access your
+     * Cloud KMS key.
+     * Before enabling CMEK for Log Router, you must first assign the role
+     * `roles/cloudkms.cryptoKeyEncrypterDecrypter` to the service account that
+     * the Log Router will use to access your Cloud KMS key. Use
+     * [GetSettings][google.logging.v2.ConfigServiceV2.GetSettings] to
+     * obtain the service account ID.
+     * See [Enabling CMEK for Log
+     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+     * for more information.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + kmsServiceAccountId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Output only. The service account that will be used by the Log Router to access your
+     * Cloud KMS key.
+     * Before enabling CMEK for Log Router, you must first assign the role
+     * `roles/cloudkms.cryptoKeyEncrypterDecrypter` to the service account that
+     * the Log Router will use to access your Cloud KMS key. Use
+     * [GetSettings][google.logging.v2.ConfigServiceV2.GetSettings] to
+     * obtain the service account ID.
+     * See [Enabling CMEK for Log
+     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+     * for more information.
+     * 
+ * + * string kms_service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for kmsServiceAccountId. + */ + 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); + kmsServiceAccountId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Output only. The service account that will be used by the Log Router to access your
+     * Cloud KMS key.
+     * Before enabling CMEK for Log Router, you must first assign the role
+     * `roles/cloudkms.cryptoKeyEncrypterDecrypter` to the service account that
+     * the Log Router will use to access your Cloud KMS key. Use
+     * [GetSettings][google.logging.v2.ConfigServiceV2.GetSettings] to
+     * obtain the service account ID.
+     * See [Enabling CMEK for Log
+     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+     * for more information.
+     * 
+ * + * 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(); + } + + kmsServiceAccountId_ = value; + onChanged(); + return this; + } + /** + *
+     * Output only. The service account that will be used by the Log Router to access your
+     * Cloud KMS key.
+     * Before enabling CMEK for Log Router, you must first assign the role
+     * `roles/cloudkms.cryptoKeyEncrypterDecrypter` to the service account that
+     * the Log Router will use to access your Cloud KMS key. Use
+     * [GetSettings][google.logging.v2.ConfigServiceV2.GetSettings] to
+     * obtain the service account ID.
+     * See [Enabling CMEK for Log
+     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+     * for more information.
+     * 
+ * + * string kms_service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return This builder for chaining. + */ + public Builder clearKmsServiceAccountId() { + + kmsServiceAccountId_ = getDefaultInstance().getKmsServiceAccountId(); + onChanged(); + return this; + } + /** + *
+     * Output only. The service account that will be used by the Log Router to access your
+     * Cloud KMS key.
+     * Before enabling CMEK for Log Router, you must first assign the role
+     * `roles/cloudkms.cryptoKeyEncrypterDecrypter` to the service account that
+     * the Log Router will use to access your Cloud KMS key. Use
+     * [GetSettings][google.logging.v2.ConfigServiceV2.GetSettings] to
+     * obtain the service account ID.
+     * See [Enabling CMEK for Log
+     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+     * for more information.
+     * 
+ * + * 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(); + } + checkByteStringIsUtf8(value); + + kmsServiceAccountId_ = value; + onChanged(); + return this; + } + + 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`.
+     * This setting does not affect the location of custom log buckets.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + storageLocation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional. The Cloud region that will be used for _Default and _Required log buckets
+     * for newly created projects and folders. For example `europe-west1`.
+     * This setting does not affect the location of custom log buckets.
+     * 
+ * + * string storage_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for storageLocation. + */ + 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); + storageLocation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optional. The Cloud region that will be used for _Default and _Required log buckets
+     * for newly created projects and folders. For example `europe-west1`.
+     * This setting does not affect the location of custom log buckets.
+     * 
+ * + * 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(); + } + + storageLocation_ = value; + 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`.
+     * This setting does not affect the location of custom log buckets.
+     * 
+ * + * string storage_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearStorageLocation() { + + storageLocation_ = getDefaultInstance().getStorageLocation(); + 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`.
+     * This setting does not affect the location of custom log buckets.
+     * 
+ * + * 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(); + } + checkByteStringIsUtf8(value); + + storageLocation_ = value; + onChanged(); + return this; + } + + 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 disable
+     * log ingestion if there is already an aggregated sink configured in the
+     * hierarchy. The _Default sink can be re-enabled manually if needed.
+     * 
+ * + * bool disable_default_sink = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return The disableDefaultSink. + */ + @java.lang.Override + 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 disable
+     * log ingestion if there is already an aggregated sink configured in the
+     * hierarchy. The _Default sink can be re-enabled manually if needed.
+     * 
+ * + * bool disable_default_sink = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param value The disableDefaultSink to set. + * @return This builder for chaining. + */ + public Builder setDisableDefaultSink(boolean value) { + + disableDefaultSink_ = value; + onChanged(); + 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 disable
+     * log ingestion if there is already an aggregated sink configured in the
+     * hierarchy. The _Default sink can be re-enabled manually if needed.
+     * 
+ * + * bool disable_default_sink = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return This builder for chaining. + */ + public Builder clearDisableDefaultSink() { + + disableDefaultSink_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.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(); + } + + 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 { + return new Settings(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.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/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/SettingsName.java new file mode 100644 index 000000000..3e70e8f60 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/SettingsName.java @@ -0,0 +1,383 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 com.google.api.core.BetaApi; +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class SettingsName implements ResourceName { + private static final PathTemplate PROJECT = + PathTemplate.createWithoutUrlEncoding("projects/{project}/settings"); + private static final PathTemplate ORGANIZATION = + PathTemplate.createWithoutUrlEncoding("organizations/{organization}/settings"); + private static final PathTemplate FOLDER = + PathTemplate.createWithoutUrlEncoding("folders/{folder}/settings"); + private static final PathTemplate BILLING_ACCOUNT = + PathTemplate.createWithoutUrlEncoding("billingAccounts/{billing_account}/settings"); + private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + private final String project; + private final String organization; + private final String folder; + private final String billingAccount; + + @Deprecated + protected SettingsName() { + project = null; + organization = null; + folder = null; + billingAccount = null; + } + + private SettingsName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + organization = null; + folder = null; + billingAccount = null; + pathTemplate = PROJECT; + } + + private SettingsName(OrganizationBuilder builder) { + organization = Preconditions.checkNotNull(builder.getOrganization()); + project = null; + folder = null; + billingAccount = null; + pathTemplate = ORGANIZATION; + } + + private SettingsName(FolderBuilder builder) { + folder = Preconditions.checkNotNull(builder.getFolder()); + project = null; + organization = null; + billingAccount = null; + pathTemplate = FOLDER; + } + + private SettingsName(BillingAccountBuilder builder) { + billingAccount = Preconditions.checkNotNull(builder.getBillingAccount()); + project = null; + organization = null; + folder = null; + pathTemplate = BILLING_ACCOUNT; + } + + public String getProject() { + return project; + } + + public String getOrganization() { + return organization; + } + + public String getFolder() { + return folder; + } + + public String getBillingAccount() { + return billingAccount; + } + + public static Builder newBuilder() { + return new Builder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static Builder newProjectBuilder() { + 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(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + 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 BillingAccountBuilder newBillingAccountBuilder() { + return new BillingAccountBuilder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static SettingsName of(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 SettingsName ofProjectName(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 SettingsName ofOrganizationName(String organization) { + return newOrganizationBuilder().setOrganization(organization).build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static SettingsName ofFolderName(String folder) { + return newFolderBuilder().setFolder(folder).build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static SettingsName ofBillingAccountName(String billingAccount) { + return newBillingAccountBuilder().setBillingAccount(billingAccount).build(); + } + + public static String format(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 formatProjectName(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(); + } + + @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(); + } + + @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(); + } + + public static SettingsName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + if (PROJECT.matches(formattedString)) { + Map matchMap = PROJECT.match(formattedString); + return ofProjectName(matchMap.get("project")); + } else if (ORGANIZATION.matches(formattedString)) { + Map matchMap = ORGANIZATION.match(formattedString); + return ofOrganizationName(matchMap.get("organization")); + } else if (FOLDER.matches(formattedString)) { + Map matchMap = FOLDER.match(formattedString); + return ofFolderName(matchMap.get("folder")); + } else if (BILLING_ACCOUNT.matches(formattedString)) { + Map matchMap = BILLING_ACCOUNT.match(formattedString); + return ofBillingAccountName(matchMap.get("billing_account")); + } + throw new ValidationException("SettingsName.parse: formattedString not in valid format"); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (SettingsName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT.matches(formattedString) + || ORGANIZATION.matches(formattedString) + || FOLDER.matches(formattedString) + || BILLING_ACCOUNT.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (organization != null) { + fieldMapBuilder.put("organization", organization); + } + if (folder != null) { + fieldMapBuilder.put("folder", folder); + } + if (billingAccount != null) { + fieldMapBuilder.put("billing_account", billingAccount); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + SettingsName that = ((SettingsName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.organization, that.organization) + && Objects.equals(this.folder, that.folder) + && Objects.equals(this.billingAccount, that.billingAccount); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(organization); + h *= 1000003; + h ^= Objects.hashCode(folder); + h *= 1000003; + h ^= Objects.hashCode(billingAccount); + return h; + } + + /** Builder for projects/{project}/settings. */ + public static class Builder { + private String project; + + protected Builder() {} + + public String getProject() { + return project; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + private Builder(SettingsName settingsName) { + Preconditions.checkArgument( + Objects.equals(settingsName.pathTemplate, PROJECT), + "toBuilder is only supported when SettingsName has the pattern of projects/{project}/settings"); + this.project = settingsName.project; + } + + public SettingsName build() { + return new SettingsName(this); + } + } + + /** Builder for organizations/{organization}/settings. */ + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static class OrganizationBuilder { + private String organization; + + protected OrganizationBuilder() {} + + public String getOrganization() { + return organization; + } + + public OrganizationBuilder setOrganization(String organization) { + this.organization = organization; + return this; + } + + public SettingsName build() { + return new SettingsName(this); + } + } + + /** Builder for folders/{folder}/settings. */ + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static class FolderBuilder { + private String folder; + + protected FolderBuilder() {} + + public String getFolder() { + return folder; + } + + public FolderBuilder setFolder(String folder) { + this.folder = folder; + return this; + } + + public SettingsName build() { + return new SettingsName(this); + } + } + + /** Builder for billingAccounts/{billing_account}/settings. */ + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static class BillingAccountBuilder { + private String billingAccount; + + protected BillingAccountBuilder() {} + + public String getBillingAccount() { + return billingAccount; + } + + public BillingAccountBuilder setBillingAccount(String billingAccount) { + this.billingAccount = billingAccount; + return this; + } + + public SettingsName build() { + return new SettingsName(this); + } + } +} diff --git a/owl-bot-staging/v2/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 new file mode 100644 index 000000000..1a07a8186 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/SettingsOrBuilder.java @@ -0,0 +1,156 @@ +// 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 + // @@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(); + + /** + *
+   * Optional. The resource name for the configured Cloud KMS key.
+   * KMS key name format:
+   *     "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
+   * For example:
+   *   `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key"`
+   * To enable CMEK for the Log Router, set this field to a valid
+   * `kms_key_name` for which the associated service account has the required
+   * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key.
+   * The Cloud KMS key used by the Log Router can be updated by changing the
+   * `kms_key_name` to a new valid key name. Encryption operations that are in
+   * progress will be completed with the key that was in use when they started.
+   * Decryption operations will be completed using the key that was used at the
+   * time of encryption unless access to that key has been revoked.
+   * To disable CMEK for the Log Router, set this field to an empty string.
+   * See [Enabling CMEK for Log
+   * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+   * for more information.
+   * 
+ * + * 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.
+   * KMS key name format:
+   *     "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
+   * For example:
+   *   `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key"`
+   * To enable CMEK for the Log Router, set this field to a valid
+   * `kms_key_name` for which the associated service account has the required
+   * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key.
+   * The Cloud KMS key used by the Log Router can be updated by changing the
+   * `kms_key_name` to a new valid key name. Encryption operations that are in
+   * progress will be completed with the key that was in use when they started.
+   * Decryption operations will be completed using the key that was used at the
+   * time of encryption unless access to that key has been revoked.
+   * To disable CMEK for the Log Router, set this field to an empty string.
+   * See [Enabling CMEK for Log
+   * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+   * for more information.
+   * 
+ * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for kmsKeyName. + */ + com.google.protobuf.ByteString + getKmsKeyNameBytes(); + + /** + *
+   * Output only. The service account that will be used by the Log Router to access your
+   * Cloud KMS key.
+   * Before enabling CMEK for Log Router, you must first assign the role
+   * `roles/cloudkms.cryptoKeyEncrypterDecrypter` to the service account that
+   * the Log Router will use to access your Cloud KMS key. Use
+   * [GetSettings][google.logging.v2.ConfigServiceV2.GetSettings] to
+   * obtain the service account ID.
+   * See [Enabling CMEK for Log
+   * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+   * for more information.
+   * 
+ * + * 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.
+   * Before enabling CMEK for Log Router, you must first assign the role
+   * `roles/cloudkms.cryptoKeyEncrypterDecrypter` to the service account that
+   * the Log Router will use to access your Cloud KMS key. Use
+   * [GetSettings][google.logging.v2.ConfigServiceV2.GetSettings] to
+   * obtain the service account ID.
+   * See [Enabling CMEK for Log
+   * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+   * for more information.
+   * 
+ * + * string kms_service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The bytes for kmsServiceAccountId. + */ + 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`.
+   * This setting does not affect the location of custom log buckets.
+   * 
+ * + * 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`.
+   * This setting does not affect the location of custom log buckets.
+   * 
+ * + * string storage_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return The bytes for storageLocation. + */ + 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 disable
+   * log ingestion if there is already an aggregated sink configured in the
+   * hierarchy. The _Default sink can be re-enabled manually if needed.
+   * 
+ * + * 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 64% 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 7994f2618..49133d446 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,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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.EMPTY; filter_ = ""; @@ -44,15 +26,16 @@ private TailLogEntriesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TailLogEntriesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TailLogEntriesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,51 +55,48 @@ private TailLogEntriesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - resourceNames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - resourceNames_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + resourceNames_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + resourceNames_.add(s); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; + filter_ = s; + break; + } + case 26: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (bufferWindow_ != null) { + subBuilder = bufferWindow_.toBuilder(); } - case 26: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (bufferWindow_ != null) { - subBuilder = bufferWindow_.toBuilder(); - } - bufferWindow_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(bufferWindow_); - bufferWindow_ = subBuilder.buildPartial(); - } - - break; + bufferWindow_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(bufferWindow_); + bufferWindow_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { resourceNames_ = resourceNames_.getUnmodifiableView(); @@ -125,88 +105,77 @@ private TailLogEntriesRequest( makeExtensionsImmutable(); } } - - 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; private com.google.protobuf.LazyStringList resourceNames_; /** - * - * *
    * Required. Name of a parent resource from which to retrieve log entries:
-   *     "projects/[PROJECT_ID]"
-   *     "organizations/[ORGANIZATION_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-   *     "folders/[FOLDER_ID]"
+   * *  `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]"
-   *     "organization/[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/[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]`
    * 
* * 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:
-   *     "projects/[PROJECT_ID]"
-   *     "organizations/[ORGANIZATION_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-   *     "folders/[FOLDER_ID]"
+   * *  `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]"
-   *     "organization/[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/[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]`
    * 
* * 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:
-   *     "projects/[PROJECT_ID]"
-   *     "organizations/[ORGANIZATION_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-   *     "folders/[FOLDER_ID]"
+   * *  `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]"
-   *     "organization/[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/[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]`
    * 
* * 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. */ @@ -214,35 +183,31 @@ public java.lang.String getResourceNames(int index) { return resourceNames_.get(index); } /** - * - * *
    * Required. Name of a parent resource from which to retrieve log entries:
-   *     "projects/[PROJECT_ID]"
-   *     "organizations/[ORGANIZATION_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-   *     "folders/[FOLDER_ID]"
+   * *  `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]"
-   *     "organization/[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/[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]`
    * 
* * 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; private volatile java.lang.Object filter_; /** - * - * *
    * Optional. A filter that chooses which log entries to return.  See [Advanced
    * Logs Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
@@ -254,7 +219,6 @@ public com.google.protobuf.ByteString getResourceNamesBytes(int index) {
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -263,15 +227,14 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** - * - * *
    * Optional. A filter that chooses which log entries to return.  See [Advanced
    * Logs Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
@@ -283,15 +246,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 { @@ -302,8 +266,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
@@ -311,9 +273,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 @@ -321,8 +281,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
@@ -330,20 +288,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
@@ -351,8 +303,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]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getBufferWindowOrBuilder() { @@ -360,7 +311,6 @@ public com.google.protobuf.DurationOrBuilder getBufferWindowOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -372,7 +322,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)); } @@ -403,7 +354,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -413,19 +365,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -453,127 +407,118 @@ 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() @@ -581,15 +526,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -607,9 +553,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 @@ -628,8 +574,7 @@ 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); + com.google.logging.v2.TailLogEntriesRequest result = new com.google.logging.v2.TailLogEntriesRequest(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { resourceNames_ = resourceNames_.getUnmodifiableView(); @@ -650,39 +595,38 @@ public com.google.logging.v2.TailLogEntriesRequest 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.TailLogEntriesRequest) { - return mergeFrom((com.google.logging.v2.TailLogEntriesRequest) other); + return mergeFrom((com.google.logging.v2.TailLogEntriesRequest)other); } else { super.mergeFrom(other); return this; @@ -736,82 +680,71 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList resourceNames_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList resourceNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureResourceNamesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { resourceNames_ = new com.google.protobuf.LazyStringArrayList(resourceNames_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Required. Name of a parent resource from which to retrieve log entries:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
+     * *  `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]"
-     *     "organization/[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/[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]`
      * 
* * 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_.getUnmodifiableView(); } /** - * - * *
      * Required. Name of a parent resource from which to retrieve log entries:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
+     * *  `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]"
-     *     "organization/[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/[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]`
      * 
* * 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:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
+     * *  `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]"
-     *     "organization/[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/[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]`
      * 
* * 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. */ @@ -819,135 +752,125 @@ public java.lang.String getResourceNames(int index) { return resourceNames_.get(index); } /** - * - * *
      * Required. Name of a parent resource from which to retrieve log entries:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
+     * *  `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]"
-     *     "organization/[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/[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]`
      * 
* * 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:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
+     * *  `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]"
-     *     "organization/[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/[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]`
      * 
* * 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) { + public Builder setResourceNames( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureResourceNamesIsMutable(); + throw new NullPointerException(); + } + ensureResourceNamesIsMutable(); resourceNames_.set(index, value); onChanged(); return this; } /** - * - * *
      * Required. Name of a parent resource from which to retrieve log entries:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
+     * *  `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]"
-     *     "organization/[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/[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]`
      * 
* * 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) { + public Builder addResourceNames( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureResourceNamesIsMutable(); + throw new NullPointerException(); + } + ensureResourceNamesIsMutable(); resourceNames_.add(value); onChanged(); return this; } /** - * - * *
      * Required. Name of a parent resource from which to retrieve log entries:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
+     * *  `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]"
-     *     "organization/[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/[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]`
      * 
* * 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_); onChanged(); return this; } /** - * - * *
      * Required. Name of a parent resource from which to retrieve log entries:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
+     * *  `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]"
-     *     "organization/[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/[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]`
      * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearResourceNames() { @@ -957,31 +880,29 @@ public Builder clearResourceNames() { return this; } /** - * - * *
      * Required. Name of a parent resource from which to retrieve log entries:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
+     * *  `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]"
-     *     "organization/[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/[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]`
      * 
* * 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) { + public Builder addResourceNamesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureResourceNamesIsMutable(); resourceNames_.add(value); onChanged(); @@ -990,8 +911,6 @@ public Builder addResourceNamesBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. A filter that chooses which log entries to return.  See [Advanced
      * Logs Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
@@ -1003,13 +922,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; @@ -1018,8 +937,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. A filter that chooses which log entries to return.  See [Advanced
      * Logs Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
@@ -1031,14 +948,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 { @@ -1046,8 +964,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. A filter that chooses which log entries to return.  See [Advanced
      * Logs Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
@@ -1059,22 +975,20 @@ 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) { + public Builder setFilter( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** - * - * *
      * Optional. A filter that chooses which log entries to return.  See [Advanced
      * Logs Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
@@ -1086,18 +1000,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Optional. A filter that chooses which log entries to return.  See [Advanced
      * Logs Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
@@ -1109,16 +1020,16 @@ 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) { + public Builder setFilterBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1126,13 +1037,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
@@ -1140,17 +1046,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 bufferWindowBuilder_ != null || 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
@@ -1158,23 +1060,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
@@ -1182,8 +1078,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) { @@ -1199,8 +1094,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
@@ -1208,10 +1101,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(); onChanged(); @@ -1222,8 +1115,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
@@ -1231,16 +1122,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 (bufferWindow_ != null) { bufferWindow_ = - com.google.protobuf.Duration.newBuilder(bufferWindow_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Duration.newBuilder(bufferWindow_).mergeFrom(value).buildPartial(); } else { bufferWindow_ = value; } @@ -1252,8 +1140,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
@@ -1261,8 +1147,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() { if (bufferWindowBuilder_ == null) { @@ -1276,8 +1161,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
@@ -1285,17 +1168,14 @@ 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() { - + onChanged(); 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
@@ -1303,21 +1183,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
@@ -1325,28 +1201,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); } @@ -1356,12 +1228,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(); } @@ -1370,16 +1242,16 @@ 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 { - return new TailLogEntriesRequest(input, extensionRegistry); - } - }; + 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 { + return new TailLogEntriesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1394,4 +1266,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 56% 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 3d45a6100..d93c8065f 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,118 +1,90 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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:
-   *     "projects/[PROJECT_ID]"
-   *     "organizations/[ORGANIZATION_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-   *     "folders/[FOLDER_ID]"
+   * *  `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]"
-   *     "organization/[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/[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]`
    * 
* * 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:
-   *     "projects/[PROJECT_ID]"
-   *     "organizations/[ORGANIZATION_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-   *     "folders/[FOLDER_ID]"
+   * *  `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]"
-   *     "organization/[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/[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]`
    * 
* * 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:
-   *     "projects/[PROJECT_ID]"
-   *     "organizations/[ORGANIZATION_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-   *     "folders/[FOLDER_ID]"
+   * *  `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]"
-   *     "organization/[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/[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]`
    * 
* * 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:
-   *     "projects/[PROJECT_ID]"
-   *     "organizations/[ORGANIZATION_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-   *     "folders/[FOLDER_ID]"
+   * *  `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]"
-   *     "organization/[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/[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]`
    * 
* * 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. A filter that chooses which log entries to return.  See [Advanced
    * Logs Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
@@ -124,13 +96,10 @@ public interface TailLogEntriesRequestOrBuilder
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Optional. A filter that chooses which log entries to return.  See [Advanced
    * Logs Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
@@ -142,14 +111,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
@@ -157,15 +124,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
@@ -173,15 +136,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
@@ -189,8 +148,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 74% 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 404febb61..09f0b6a5b 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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,15 +26,16 @@ private TailLogEntriesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TailLogEntriesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TailLogEntriesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,43 +55,38 @@ private TailLogEntriesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - entries_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - entries_.add( - input.readMessage(com.google.logging.v2.LogEntry.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + entries_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - suppressionInfo_ = - new java.util.ArrayList< - com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo>(); - mutable_bitField0_ |= 0x00000002; - } - suppressionInfo_.add( - input.readMessage( - com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.parser(), - extensionRegistry)); - break; + entries_.add( + input.readMessage(com.google.logging.v2.LogEntry.parser(), extensionRegistry)); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + suppressionInfo_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + suppressionInfo_.add( + input.readMessage(com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { entries_ = java.util.Collections.unmodifiableList(entries_); @@ -120,99 +98,84 @@ private TailLogEntriesResponse( makeExtensionsImmutable(); } } - - 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SuppressionInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -231,65 +194,59 @@ private SuppressionInfo( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - reason_ = rawValue; - break; - } - case 16: - { - suppressedCount_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + reason_ = rawValue; + break; + } + case 16: { + + suppressedCount_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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.
        * 
@@ -298,8 +255,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
@@ -311,8 +266,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
        */
       RATE_LIMIT(1),
       /**
-       *
-       *
        * 
        * Indicates suppression occurred due to the client not consuming
        * responses quickly enough.
@@ -325,8 +278,6 @@ public enum Reason implements com.google.protobuf.ProtocolMessageEnum {
       ;
 
       /**
-       *
-       *
        * 
        * Unexpected default.
        * 
@@ -335,8 +286,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
@@ -348,8 +297,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.
@@ -359,6 +306,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(
@@ -383,51 +331,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;
@@ -447,52 +393,38 @@ private Reason(int value) {
     public static final int REASON_FIELD_NUMBER = 1;
     private int reason_;
     /**
-     *
-     *
      * 
      * 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() { + @java.lang.Override public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason getReason() { @SuppressWarnings("deprecation") - com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason result = - com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason.valueOf(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.valueOf(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_; /** - * - * *
      * A lower bound on the count of entries omitted due to `reason`.
      * 
* * int32 suppressed_count = 2; - * * @return The suppressedCount. */ @java.lang.Override @@ -501,7 +433,6 @@ public int getSuppressedCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -513,10 +444,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) { @@ -531,13 +461,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -547,16 +477,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -578,94 +508,87 @@ 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 @@ -675,32 +598,27 @@ 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() @@ -708,15 +626,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -728,14 +647,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(); } @@ -750,8 +668,7 @@ 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); + com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo result = new com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo(this); result.reason_ = reason_; result.suppressedCount_ = suppressedCount_; onBuilt(); @@ -762,41 +679,38 @@ public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.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; @@ -804,9 +718,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()); } @@ -832,9 +744,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo) - e.getUnfinishedMessage(); + parsedMessage = (com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -846,108 +756,85 @@ public Builder mergeFrom( 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. */ public Builder setReasonValue(int value) { - + reason_ = value; onChanged(); 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() { @SuppressWarnings("deprecation") - com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason result = - com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason.valueOf(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.valueOf(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(); } - + reason_ = value.getNumber(); onChanged(); 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() { - + reason_ = 0; onChanged(); 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 @@ -955,41 +842,34 @@ 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. */ public Builder setSuppressedCount(int value) { - + suppressedCount_ = value; onChanged(); 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() { - + suppressedCount_ = 0; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1002,32 +882,30 @@ 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 { - return new SuppressionInfo(input, extensionRegistry); - } - }; + 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 { + return new SuppressionInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1039,17 +917,15 @@ 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; 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
@@ -1063,8 +939,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
@@ -1074,13 +948,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
@@ -1094,8 +966,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
@@ -1109,8 +979,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
@@ -1120,16 +988,14 @@ 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;
-  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
@@ -1138,17 +1004,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
@@ -1157,18 +1019,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
@@ -1177,16 +1035,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
@@ -1195,17 +1050,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
@@ -1214,17 +1065,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; @@ -1236,7 +1085,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)); } @@ -1253,10 +1103,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1266,16 +1118,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1300,127 +1153,118 @@ 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() @@ -1428,18 +1272,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getEntriesFieldBuilder(); getSuppressionInfoFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1459,9 +1303,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 @@ -1480,8 +1324,7 @@ 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); int from_bitField0_ = bitField0_; if (entriesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -1509,39 +1352,38 @@ public com.google.logging.v2.TailLogEntriesResponse 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.TailLogEntriesResponse) { - return mergeFrom((com.google.logging.v2.TailLogEntriesResponse) other); + return mergeFrom((com.google.logging.v2.TailLogEntriesResponse)other); } else { super.mergeFrom(other); return this; @@ -1568,10 +1410,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_); } @@ -1595,10 +1436,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_); } @@ -1632,28 +1472,21 @@ public Builder mergeFrom( } 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
@@ -1670,8 +1503,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
@@ -1688,8 +1519,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
@@ -1706,8 +1535,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
@@ -1716,7 +1543,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();
@@ -1730,8 +1558,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
@@ -1740,7 +1566,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());
@@ -1751,8 +1578,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
@@ -1775,8 +1600,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
@@ -1785,7 +1608,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();
@@ -1799,8 +1623,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
@@ -1809,7 +1631,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());
@@ -1820,8 +1643,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
@@ -1830,7 +1651,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());
@@ -1841,8 +1663,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
@@ -1855,7 +1675,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);
@@ -1863,8 +1684,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
@@ -1884,8 +1703,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
@@ -1905,8 +1722,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
@@ -1915,12 +1730,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
@@ -1929,16 +1743,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
@@ -1947,8 +1759,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 {
@@ -1956,8 +1768,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
@@ -1967,12 +1777,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
@@ -1981,13 +1789,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
@@ -1996,48 +1803,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
@@ -2046,12 +1843,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 { @@ -2059,8 +1853,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
@@ -2069,9 +1861,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) { @@ -2081,8 +1871,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
@@ -2091,12 +1879,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 { @@ -2104,8 +1889,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
@@ -2114,9 +1897,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) { @@ -2133,8 +1914,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
@@ -2143,13 +1922,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()); @@ -2160,8 +1936,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
@@ -2170,12 +1944,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(); @@ -2189,8 +1960,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
@@ -2199,9 +1968,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) { @@ -2218,8 +1985,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
@@ -2228,9 +1993,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) { @@ -2244,8 +2007,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
@@ -2254,13 +2015,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()); @@ -2271,8 +2029,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
@@ -2281,16 +2037,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); @@ -2298,8 +2052,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
@@ -2308,9 +2060,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) { @@ -2323,8 +2073,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
@@ -2333,9 +2081,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) { @@ -2348,8 +2094,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
@@ -2358,17 +2102,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
@@ -2377,21 +2117,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
@@ -2400,13 +2135,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 { @@ -2414,8 +2146,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
@@ -2424,19 +2154,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
@@ -2445,20 +2169,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
@@ -2467,26 +2185,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(), @@ -2495,9 +2205,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); } @@ -2507,12 +2217,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(); } @@ -2521,16 +2231,16 @@ 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 { - return new TailLogEntriesResponse(input, extensionRegistry); - } - }; + 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 { + return new TailLogEntriesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2545,4 +2255,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 490e6dc14..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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 66% 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 ee8e4ab6f..22f063528 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,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UndeleteBucketRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,66 +53,58 @@ private UndeleteBucketRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; private volatile java.lang.Object name_; /** - * - * *
    * Required. The full resource name of the bucket to undelete.
    *     "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]"
-   * Example:
-   * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`.
+   * For example:
+   *   `"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 @@ -138,37 +113,35 @@ 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.
    *     "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]"
-   * Example:
-   * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`.
+   * For example:
+   *   `"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 { @@ -177,7 +150,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -189,7 +161,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_); } @@ -213,15 +186,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -240,127 +213,118 @@ 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() @@ -368,15 +332,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -386,9 +351,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 @@ -407,8 +372,7 @@ 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); + com.google.logging.v2.UndeleteBucketRequest result = new com.google.logging.v2.UndeleteBucketRequest(this); result.name_ = name_; onBuilt(); return result; @@ -418,39 +382,38 @@ public com.google.logging.v2.UndeleteBucketRequest 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.UndeleteBucketRequest) { - return mergeFrom((com.google.logging.v2.UndeleteBucketRequest) other); + return mergeFrom((com.google.logging.v2.UndeleteBucketRequest)other); } else { super.mergeFrom(other); return this; @@ -494,28 +457,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The full resource name of the bucket to undelete.
      *     "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]"
-     * Example:
-     * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`.
+     * For example:
+     *   `"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; @@ -524,29 +483,26 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The full resource name of the bucket to undelete.
      *     "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]"
-     * Example:
-     * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`.
+     * For example:
+     *   `"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 { @@ -554,92 +510,79 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The full resource name of the bucket to undelete.
      *     "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]"
-     * Example:
-     * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`.
+     * For example:
+     *   `"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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The full resource name of the bucket to undelete.
      *     "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]"
-     * Example:
-     * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`.
+     * For example:
+     *   `"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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The full resource name of the bucket to undelete.
      *     "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]"
-     * Example:
-     * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`.
+     * For example:
+     *   `"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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -649,12 +592,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(); } @@ -663,16 +606,16 @@ 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 { - return new UndeleteBucketRequest(input, extensionRegistry); - } - }; + 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 { + return new UndeleteBucketRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -687,4 +630,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 51% 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 8002d3365..074524cfb 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,66 +1,41 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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.
    *     "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]"
-   * Example:
-   * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`.
+   * For example:
+   *   `"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.
    *     "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]"
-   * Example:
-   * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`.
+   * For example:
+   *   `"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 65% 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 795e474d8..0502b0964 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,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateBucketRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,98 +53,84 @@ private UpdateBucketRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 18: { + com.google.logging.v2.LogBucket.Builder subBuilder = null; + if (bucket_ != null) { + subBuilder = bucket_.toBuilder(); } - case 18: - { - com.google.logging.v2.LogBucket.Builder subBuilder = null; - if (bucket_ != null) { - subBuilder = bucket_.toBuilder(); - } - bucket_ = - input.readMessage(com.google.logging.v2.LogBucket.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(bucket_); - bucket_ = subBuilder.buildPartial(); - } - - break; + bucket_ = input.readMessage(com.google.logging.v2.LogBucket.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(bucket_); + bucket_ = subBuilder.buildPartial(); } - case 34: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 34: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; private volatile java.lang.Object name_; /** - * - * *
    * Required. The full resource name of the bucket to update.
    *     "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]"
-   * Example:
-   * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`. Also
-   * requires permission "resourcemanager.projects.updateLiens" to set the
-   * locked property
+   * For example:
+   *   `"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 @@ -170,39 +139,35 @@ 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.
    *     "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]"
-   * Example:
-   * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`. Also
-   * requires permission "resourcemanager.projects.updateLiens" to set the
-   * locked property
+   * For example:
+   *   `"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 { @@ -213,14 +178,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 @@ -228,14 +190,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 @@ -243,8 +202,6 @@ public com.google.logging.v2.LogBucket getBucket() { return bucket_ == null ? com.google.logging.v2.LogBucket.getDefaultInstance() : bucket_; } /** - * - * *
    * Required. The updated bucket.
    * 
@@ -259,20 +216,16 @@ 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 update
-   * mask. `name` and output only fields cannot be updated.
-   * For a detailed `FieldMask` definition, see
+   * bucket field will be overwritten if, and only if, it is in the update mask.
+   * `name` and output only fields cannot be updated.
+   * For a detailed `FieldMask` definition, see:
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
-   * Example: `updateMask=retention_days`.
+   * 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 @@ -280,20 +233,16 @@ 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 update
-   * mask. `name` and output only fields cannot be updated.
-   * For a detailed `FieldMask` definition, see
+   * bucket field will be overwritten if, and only if, it is in the update mask.
+   * `name` and output only fields cannot be updated.
+   * For a detailed `FieldMask` definition, see:
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
-   * Example: `updateMask=retention_days`.
+   * 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 @@ -301,19 +250,16 @@ 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 update
-   * mask. `name` and output only fields cannot be updated.
-   * For a detailed `FieldMask` definition, see
+   * bucket field will be overwritten if, and only if, it is in the update mask.
+   * `name` and output only fields cannot be updated.
+   * For a detailed `FieldMask` definition, see:
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
-   * Example: `updateMask=retention_days`.
+   * 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() { @@ -321,7 +267,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -333,7 +278,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -356,10 +302,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -369,22 +317,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -412,127 +362,118 @@ 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() @@ -540,15 +481,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -570,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_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 @@ -591,8 +533,7 @@ 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); + com.google.logging.v2.UpdateBucketRequest result = new com.google.logging.v2.UpdateBucketRequest(this); result.name_ = name_; if (bucketBuilder_ == null) { result.bucket_ = bucket_; @@ -612,39 +553,38 @@ public com.google.logging.v2.UpdateBucketRequest 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.UpdateBucketRequest) { - return mergeFrom((com.google.logging.v2.UpdateBucketRequest) other); + return mergeFrom((com.google.logging.v2.UpdateBucketRequest)other); } else { super.mergeFrom(other); return this; @@ -694,30 +634,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The full resource name of the bucket to update.
      *     "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]"
-     * Example:
-     * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`. Also
-     * requires permission "resourcemanager.projects.updateLiens" to set the
-     * locked property
+     * For example:
+     *   `"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; @@ -726,31 +660,26 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The full resource name of the bucket to update.
      *     "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]"
-     * Example:
-     * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`. Also
-     * requires permission "resourcemanager.projects.updateLiens" to set the
-     * locked property
+     * For example:
+     *   `"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 { @@ -758,91 +687,72 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The full resource name of the bucket to update.
      *     "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]"
-     * Example:
-     * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`. Also
-     * requires permission "resourcemanager.projects.updateLiens" to set the
-     * locked property
+     * For example:
+     *   `"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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The full resource name of the bucket to update.
      *     "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]"
-     * Example:
-     * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`. Also
-     * requires permission "resourcemanager.projects.updateLiens" to set the
-     * locked property
+     * For example:
+     *   `"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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The full resource name of the bucket to update.
      *     "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]"
-     * Example:
-     * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`. Also
-     * requires permission "resourcemanager.projects.updateLiens" to set the
-     * locked property
+     * For example:
+     *   `"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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -850,35 +760,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 bucketBuilder_ != null || bucket_ != null; } /** - * - * *
      * 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() { @@ -889,14 +788,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) { @@ -912,16 +808,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(); onChanged(); @@ -932,20 +826,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 (bucket_ != null) { bucket_ = - com.google.logging.v2.LogBucket.newBuilder(bucket_).mergeFrom(value).buildPartial(); + com.google.logging.v2.LogBucket.newBuilder(bucket_).mergeFrom(value).buildPartial(); } else { bucket_ = value; } @@ -957,14 +848,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() { if (bucketBuilder_ == null) { @@ -978,59 +866,48 @@ 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() { - + onChanged(); 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_; @@ -1038,70 +915,54 @@ 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 update
-     * mask. `name` and output only fields cannot be updated.
-     * For a detailed `FieldMask` definition, see
+     * bucket field will be overwritten if, and only if, it is in the update mask.
+     * `name` and output only fields cannot be updated.
+     * For a detailed `FieldMask` definition, see:
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
-     * Example: `updateMask=retention_days`.
+     * 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 updateMaskBuilder_ != null || 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 update
-     * mask. `name` and output only fields cannot be updated.
-     * For a detailed `FieldMask` definition, see
+     * bucket field will be overwritten if, and only if, it is in the update mask.
+     * `name` and output only fields cannot be updated.
+     * For a detailed `FieldMask` definition, see:
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
-     * Example: `updateMask=retention_days`.
+     * 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 update
-     * mask. `name` and output only fields cannot be updated.
-     * For a detailed `FieldMask` definition, see
+     * bucket field will be overwritten if, and only if, it is in the update mask.
+     * `name` and output only fields cannot be updated.
+     * For a detailed `FieldMask` definition, see:
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
-     * Example: `updateMask=retention_days`.
+     * 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) { @@ -1117,21 +978,19 @@ 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 update
-     * mask. `name` and output only fields cannot be updated.
-     * For a detailed `FieldMask` definition, see
+     * bucket field will be overwritten if, and only if, it is in the update mask.
+     * `name` and output only fields cannot be updated.
+     * For a detailed `FieldMask` definition, see:
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
-     * Example: `updateMask=retention_days`.
+     * 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(); onChanged(); @@ -1142,25 +1001,22 @@ 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 update
-     * mask. `name` and output only fields cannot be updated.
-     * For a detailed `FieldMask` definition, see
+     * bucket field will be overwritten if, and only if, it is in the update mask.
+     * `name` and output only fields cannot be updated.
+     * For a detailed `FieldMask` definition, see:
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
-     * Example: `updateMask=retention_days`.
+     * 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 (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -1172,19 +1028,16 @@ 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 update
-     * mask. `name` and output only fields cannot be updated.
-     * For a detailed `FieldMask` definition, see
+     * bucket field will be overwritten if, and only if, it is in the update mask.
+     * `name` and output only fields cannot be updated.
+     * For a detailed `FieldMask` definition, see:
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
-     * Example: `updateMask=retention_days`.
+     * 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() { if (updateMaskBuilder_ == null) { @@ -1198,83 +1051,70 @@ 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 update
-     * mask. `name` and output only fields cannot be updated.
-     * For a detailed `FieldMask` definition, see
+     * bucket field will be overwritten if, and only if, it is in the update mask.
+     * `name` and output only fields cannot be updated.
+     * For a detailed `FieldMask` definition, see:
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
-     * Example: `updateMask=retention_days`.
+     * 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() { - + onChanged(); 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 update
-     * mask. `name` and output only fields cannot be updated.
-     * For a detailed `FieldMask` definition, see
+     * bucket field will be overwritten if, and only if, it is in the update mask.
+     * `name` and output only fields cannot be updated.
+     * For a detailed `FieldMask` definition, see:
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
-     * Example: `updateMask=retention_days`.
+     * 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 update
-     * mask. `name` and output only fields cannot be updated.
-     * For a detailed `FieldMask` definition, see
+     * bucket field will be overwritten if, and only if, it is in the update mask.
+     * `name` and output only fields cannot be updated.
+     * For a detailed `FieldMask` definition, see:
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
-     * Example: `updateMask=retention_days`.
+     * 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); } @@ -1284,12 +1124,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(); } @@ -1298,16 +1138,16 @@ 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 { - return new UpdateBucketRequest(input, extensionRegistry); - } - }; + 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 { + return new UpdateBucketRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1322,4 +1162,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 61% 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 93d5e2344..99e702ca0 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,100 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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.
    *     "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]"
-   * Example:
-   * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`. Also
-   * requires permission "resourcemanager.projects.updateLiens" to set the
-   * locked property
+   * For example:
+   *   `"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.
    *     "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]"
-   * Example:
-   * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`. Also
-   * requires permission "resourcemanager.projects.updateLiens" to set the
-   * locked property
+   * For example:
+   *   `"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.
    * 
@@ -104,55 +67,44 @@ 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 update
-   * mask. `name` and output only fields cannot be updated.
-   * For a detailed `FieldMask` definition, see
+   * bucket field will be overwritten if, and only if, it is in the update mask.
+   * `name` and output only fields cannot be updated.
+   * For a detailed `FieldMask` definition, see:
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
-   * Example: `updateMask=retention_days`.
+   * 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 update
-   * mask. `name` and output only fields cannot be updated.
-   * For a detailed `FieldMask` definition, see
+   * bucket field will be overwritten if, and only if, it is in the update mask.
+   * `name` and output only fields cannot be updated.
+   * For a detailed `FieldMask` definition, see:
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
-   * Example: `updateMask=retention_days`.
+   * 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 update
-   * mask. `name` and output only fields cannot be updated.
-   * For a detailed `FieldMask` definition, see
+   * bucket field will be overwritten if, and only if, it is in the update mask.
+   * `name` and output only fields cannot be updated.
+   * For a detailed `FieldMask` definition, see:
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
-   * Example: `updateMask=retention_days`.
+   * 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 66% 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 aa7d222ae..b7aabc12b 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,61 +1,44 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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].
- * See [Enabling CMEK for Logs
+ * See [Enabling CMEK for Log
  * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for
  * more information.
  * 
* * 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateCmekSettingsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -74,96 +57,87 @@ private UpdateCmekSettingsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 18: { + com.google.logging.v2.CmekSettings.Builder subBuilder = null; + if (cmekSettings_ != null) { + subBuilder = cmekSettings_.toBuilder(); } - case 18: - { - com.google.logging.v2.CmekSettings.Builder subBuilder = null; - if (cmekSettings_ != null) { - subBuilder = cmekSettings_.toBuilder(); - } - cmekSettings_ = - input.readMessage(com.google.logging.v2.CmekSettings.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cmekSettings_); - cmekSettings_ = subBuilder.buildPartial(); - } - - break; + cmekSettings_ = input.readMessage(com.google.logging.v2.CmekSettings.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cmekSettings_); + cmekSettings_ = subBuilder.buildPartial(); } - case 26: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 26: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; private volatile java.lang.Object name_; /** - * - * *
    * Required. The resource name for the CMEK settings to update.
    *     "projects/[PROJECT_ID]/cmekSettings"
    *     "organizations/[ORGANIZATION_ID]/cmekSettings"
    *     "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
    *     "folders/[FOLDER_ID]/cmekSettings"
-   * Example: `"organizations/12345/cmekSettings"`.
-   * Note: CMEK for the Logs Router can currently only be configured for GCP
-   * organizations. Once configured, it applies to all projects and folders in
-   * the GCP organization.
+   * For example:
+   *   `"organizations/12345/cmekSettings"`
+   * 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.
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -172,37 +146,38 @@ 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.
    *     "projects/[PROJECT_ID]/cmekSettings"
    *     "organizations/[ORGANIZATION_ID]/cmekSettings"
    *     "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
    *     "folders/[FOLDER_ID]/cmekSettings"
-   * Example: `"organizations/12345/cmekSettings"`.
-   * Note: CMEK for the Logs Router can currently only be configured for GCP
-   * organizations. Once configured, it applies to all projects and folders in
-   * the GCP organization.
+   * For example:
+   *   `"organizations/12345/cmekSettings"`
+   * 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.
    * 
* * 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 { @@ -213,19 +188,14 @@ 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.
-   * See [Enabling CMEK for Logs
+   * See [Enabling CMEK for Log
    * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
    * 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 @@ -233,40 +203,29 @@ public boolean hasCmekSettings() { return cmekSettings_ != null; } /** - * - * *
    * Required. The CMEK settings to update.
-   * See [Enabling CMEK for Logs
+   * See [Enabling CMEK for Log
    * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
    * 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.
-   * See [Enabling CMEK for Logs
+   * See [Enabling CMEK for Log
    * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
    * 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() { @@ -276,19 +235,15 @@ public com.google.logging.v2.CmekSettingsOrBuilder getCmekSettingsOrBuilder() { 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
    * mask. Output only fields cannot be updated.
    * See [FieldMask][google.protobuf.FieldMask] for more information.
-   * Example: `"updateMask=kmsKeyName"`
+   * 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 @@ -296,19 +251,15 @@ 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
    * mask. Output only fields cannot be updated.
    * See [FieldMask][google.protobuf.FieldMask] for more information.
-   * Example: `"updateMask=kmsKeyName"`
+   * 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 @@ -316,18 +267,15 @@ 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
    * mask. Output only fields cannot be updated.
    * See [FieldMask][google.protobuf.FieldMask] for more information.
-   * Example: `"updateMask=kmsKeyName"`
+   * 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() { @@ -335,7 +283,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } 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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -370,10 +318,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -383,22 +333,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -426,131 +378,122 @@ 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].
-   * See [Enabling CMEK for Logs
+   * See [Enabling CMEK for Log
    * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for
    * more information.
    * 
* * 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() @@ -558,15 +501,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -588,9 +532,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 @@ -609,8 +553,7 @@ 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); + com.google.logging.v2.UpdateCmekSettingsRequest result = new com.google.logging.v2.UpdateCmekSettingsRequest(this); result.name_ = name_; if (cmekSettingsBuilder_ == null) { result.cmekSettings_ = cmekSettings_; @@ -630,39 +573,38 @@ public com.google.logging.v2.UpdateCmekSettingsRequest 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.UpdateCmekSettingsRequest) { - return mergeFrom((com.google.logging.v2.UpdateCmekSettingsRequest) other); + return mergeFrom((com.google.logging.v2.UpdateCmekSettingsRequest)other); } else { super.mergeFrom(other); return this; @@ -670,8 +612,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_; onChanged(); @@ -713,28 +654,27 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The resource name for the CMEK settings to update.
      *     "projects/[PROJECT_ID]/cmekSettings"
      *     "organizations/[ORGANIZATION_ID]/cmekSettings"
      *     "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
      *     "folders/[FOLDER_ID]/cmekSettings"
-     * Example: `"organizations/12345/cmekSettings"`.
-     * Note: CMEK for the Logs Router can currently only be configured for GCP
-     * organizations. Once configured, it applies to all projects and folders in
-     * the GCP organization.
+     * For example:
+     *   `"organizations/12345/cmekSettings"`
+     * 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.
      * 
* * 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; @@ -743,29 +683,29 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The resource name for the CMEK settings to update.
      *     "projects/[PROJECT_ID]/cmekSettings"
      *     "organizations/[ORGANIZATION_ID]/cmekSettings"
      *     "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
      *     "folders/[FOLDER_ID]/cmekSettings"
-     * Example: `"organizations/12345/cmekSettings"`.
-     * Note: CMEK for the Logs Router can currently only be configured for GCP
-     * organizations. Once configured, it applies to all projects and folders in
-     * the GCP organization.
+     * For example:
+     *   `"organizations/12345/cmekSettings"`
+     * 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.
      * 
* * 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 { @@ -773,85 +713,81 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The resource name for the CMEK settings to update.
      *     "projects/[PROJECT_ID]/cmekSettings"
      *     "organizations/[ORGANIZATION_ID]/cmekSettings"
      *     "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
      *     "folders/[FOLDER_ID]/cmekSettings"
-     * Example: `"organizations/12345/cmekSettings"`.
-     * Note: CMEK for the Logs Router can currently only be configured for GCP
-     * organizations. Once configured, it applies to all projects and folders in
-     * the GCP organization.
+     * For example:
+     *   `"organizations/12345/cmekSettings"`
+     * 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.
      * 
* * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name for the CMEK settings to update.
      *     "projects/[PROJECT_ID]/cmekSettings"
      *     "organizations/[ORGANIZATION_ID]/cmekSettings"
      *     "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
      *     "folders/[FOLDER_ID]/cmekSettings"
-     * Example: `"organizations/12345/cmekSettings"`.
-     * Note: CMEK for the Logs Router can currently only be configured for GCP
-     * organizations. Once configured, it applies to all projects and folders in
-     * the GCP organization.
+     * For example:
+     *   `"organizations/12345/cmekSettings"`
+     * 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.
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name for the CMEK settings to update.
      *     "projects/[PROJECT_ID]/cmekSettings"
      *     "organizations/[ORGANIZATION_ID]/cmekSettings"
      *     "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
      *     "folders/[FOLDER_ID]/cmekSettings"
-     * Example: `"organizations/12345/cmekSettings"`.
-     * Note: CMEK for the Logs Router can currently only be configured for GCP
-     * organizations. Once configured, it applies to all projects and folders in
-     * the GCP organization.
+     * For example:
+     *   `"organizations/12345/cmekSettings"`
+     * 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.
      * 
* * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -859,67 +795,48 @@ 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.
-     * See [Enabling CMEK for Logs
+     * See [Enabling CMEK for Log
      * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
      * 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 cmekSettingsBuilder_ != null || cmekSettings_ != null; } /** - * - * *
      * Required. The CMEK settings to update.
-     * See [Enabling CMEK for Logs
+     * See [Enabling CMEK for Log
      * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
      * 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.
-     * See [Enabling CMEK for Logs
+     * See [Enabling CMEK for Log
      * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
      * 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) { @@ -935,20 +852,17 @@ public Builder setCmekSettings(com.google.logging.v2.CmekSettings value) { return this; } /** - * - * *
      * Required. The CMEK settings to update.
-     * See [Enabling CMEK for Logs
+     * See [Enabling CMEK for Log
      * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
      * 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(); onChanged(); @@ -959,26 +873,20 @@ public Builder setCmekSettings(com.google.logging.v2.CmekSettings.Builder builde return this; } /** - * - * *
      * Required. The CMEK settings to update.
-     * See [Enabling CMEK for Logs
+     * See [Enabling CMEK for Log
      * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
      * 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 (cmekSettings_ != null) { cmekSettings_ = - com.google.logging.v2.CmekSettings.newBuilder(cmekSettings_) - .mergeFrom(value) - .buildPartial(); + com.google.logging.v2.CmekSettings.newBuilder(cmekSettings_).mergeFrom(value).buildPartial(); } else { cmekSettings_ = value; } @@ -990,18 +898,14 @@ public Builder mergeCmekSettings(com.google.logging.v2.CmekSettings value) { return this; } /** - * - * *
      * Required. The CMEK settings to update.
-     * See [Enabling CMEK for Logs
+     * See [Enabling CMEK for Log
      * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
      * 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() { if (cmekSettingsBuilder_ == null) { @@ -1015,73 +919,57 @@ public Builder clearCmekSettings() { return this; } /** - * - * *
      * Required. The CMEK settings to update.
-     * See [Enabling CMEK for Logs
+     * See [Enabling CMEK for Log
      * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
      * 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() { - + onChanged(); return getCmekSettingsFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The CMEK settings to update.
-     * See [Enabling CMEK for Logs
+     * See [Enabling CMEK for Log
      * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
      * 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.
-     * See [Enabling CMEK for Logs
+     * See [Enabling CMEK for Log
      * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
      * 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_; @@ -1089,67 +977,51 @@ 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
      * mask. Output only fields cannot be updated.
      * See [FieldMask][google.protobuf.FieldMask] for more information.
-     * Example: `"updateMask=kmsKeyName"`
+     * 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 updateMaskBuilder_ != null || 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
      * mask. Output only fields cannot be updated.
      * See [FieldMask][google.protobuf.FieldMask] for more information.
-     * Example: `"updateMask=kmsKeyName"`
+     * 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
      * mask. Output only fields cannot be updated.
      * See [FieldMask][google.protobuf.FieldMask] for more information.
-     * Example: `"updateMask=kmsKeyName"`
+     * 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) { @@ -1165,20 +1037,18 @@ 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
      * mask. Output only fields cannot be updated.
      * See [FieldMask][google.protobuf.FieldMask] for more information.
-     * Example: `"updateMask=kmsKeyName"`
+     * 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(); onChanged(); @@ -1189,24 +1059,21 @@ 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
      * mask. Output only fields cannot be updated.
      * See [FieldMask][google.protobuf.FieldMask] for more information.
-     * Example: `"updateMask=kmsKeyName"`
+     * 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 (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -1218,18 +1085,15 @@ 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
      * mask. Output only fields cannot be updated.
      * See [FieldMask][google.protobuf.FieldMask] for more information.
-     * Example: `"updateMask=kmsKeyName"`
+     * 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() { if (updateMaskBuilder_ == null) { @@ -1243,80 +1107,67 @@ 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
      * mask. Output only fields cannot be updated.
      * See [FieldMask][google.protobuf.FieldMask] for more information.
-     * Example: `"updateMask=kmsKeyName"`
+     * 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() { - + onChanged(); 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
      * mask. Output only fields cannot be updated.
      * See [FieldMask][google.protobuf.FieldMask] for more information.
-     * Example: `"updateMask=kmsKeyName"`
+     * 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
      * mask. Output only fields cannot be updated.
      * See [FieldMask][google.protobuf.FieldMask] for more information.
-     * Example: `"updateMask=kmsKeyName"`
+     * 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); } @@ -1326,12 +1177,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(); } @@ -1340,16 +1191,16 @@ 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 { - return new UpdateCmekSettingsRequest(input, extensionRegistry); - } - }; + 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 { + return new UpdateCmekSettingsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1364,4 +1215,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 62% 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 1abf89dfb..341fd0e11 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,166 +1,122 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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.
    *     "projects/[PROJECT_ID]/cmekSettings"
    *     "organizations/[ORGANIZATION_ID]/cmekSettings"
    *     "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
    *     "folders/[FOLDER_ID]/cmekSettings"
-   * Example: `"organizations/12345/cmekSettings"`.
-   * Note: CMEK for the Logs Router can currently only be configured for GCP
-   * organizations. Once configured, it applies to all projects and folders in
-   * the GCP organization.
+   * For example:
+   *   `"organizations/12345/cmekSettings"`
+   * 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.
    * 
* * 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.
    *     "projects/[PROJECT_ID]/cmekSettings"
    *     "organizations/[ORGANIZATION_ID]/cmekSettings"
    *     "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
    *     "folders/[FOLDER_ID]/cmekSettings"
-   * Example: `"organizations/12345/cmekSettings"`.
-   * Note: CMEK for the Logs Router can currently only be configured for GCP
-   * organizations. Once configured, it applies to all projects and folders in
-   * the GCP organization.
+   * For example:
+   *   `"organizations/12345/cmekSettings"`
+   * 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.
    * 
* * 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.
-   * See [Enabling CMEK for Logs
+   * See [Enabling CMEK for Log
    * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
    * 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.
-   * See [Enabling CMEK for Logs
+   * See [Enabling CMEK for Log
    * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
    * 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.
-   * See [Enabling CMEK for Logs
+   * See [Enabling CMEK for Log
    * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
    * 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
    * mask. Output only fields cannot be updated.
    * See [FieldMask][google.protobuf.FieldMask] for more information.
-   * Example: `"updateMask=kmsKeyName"`
+   * 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
    * mask. Output only fields cannot be updated.
    * See [FieldMask][google.protobuf.FieldMask] for more information.
-   * Example: `"updateMask=kmsKeyName"`
+   * 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
    * mask. Output only fields cannot be updated.
    * See [FieldMask][google.protobuf.FieldMask] for more information.
-   * Example: `"updateMask=kmsKeyName"`
+   * 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 69% 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 27251e8bc..6af1170c1 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,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateExclusionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,95 +53,84 @@ private UpdateExclusionRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 18: { + com.google.logging.v2.LogExclusion.Builder subBuilder = null; + if (exclusion_ != null) { + subBuilder = exclusion_.toBuilder(); } - case 18: - { - com.google.logging.v2.LogExclusion.Builder subBuilder = null; - if (exclusion_ != null) { - subBuilder = exclusion_.toBuilder(); - } - exclusion_ = - input.readMessage(com.google.logging.v2.LogExclusion.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(exclusion_); - exclusion_ = subBuilder.buildPartial(); - } - - break; + exclusion_ = input.readMessage(com.google.logging.v2.LogExclusion.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(exclusion_); + exclusion_ = subBuilder.buildPartial(); } - case 26: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 26: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; private volatile java.lang.Object 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]"
-   * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
+   * For example:
+   *   `"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 @@ -167,36 +139,35 @@ 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:
    *     "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]"
-   * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
+   * For example:
+   *   `"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 { @@ -207,16 +178,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 @@ -224,34 +191,25 @@ 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() { @@ -261,8 +219,6 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionOrBuilder() { 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
@@ -272,9 +228,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 @@ -282,8 +236,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
@@ -293,9 +245,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 @@ -303,8 +253,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
@@ -314,8 +262,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() { @@ -323,7 +270,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -335,7 +281,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_); } @@ -358,10 +305,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -371,22 +320,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -414,127 +365,118 @@ 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() @@ -542,15 +484,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -572,9 +515,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 @@ -593,8 +536,7 @@ 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); + com.google.logging.v2.UpdateExclusionRequest result = new com.google.logging.v2.UpdateExclusionRequest(this); result.name_ = name_; if (exclusionBuilder_ == null) { result.exclusion_ = exclusion_; @@ -614,39 +556,38 @@ public com.google.logging.v2.UpdateExclusionRequest 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.UpdateExclusionRequest) { - return mergeFrom((com.google.logging.v2.UpdateExclusionRequest) other); + return mergeFrom((com.google.logging.v2.UpdateExclusionRequest)other); } else { super.mergeFrom(other); return this; @@ -696,27 +637,24 @@ public Builder mergeFrom( private java.lang.Object 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]"
-     * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
+     * For example:
+     *   `"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; @@ -725,28 +663,26 @@ public java.lang.String getName() { } } /** - * - * *
      * 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]"
-     * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
+     * For example:
+     *   `"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 { @@ -754,82 +690,72 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * 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]"
-     * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
+     * For example:
+     *   `"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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * 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]"
-     * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
+     * For example:
+     *   `"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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * 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]"
-     * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
+     * For example:
+     *   `"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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -837,61 +763,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 exclusionBuilder_ != null || 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. */ 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) { @@ -907,18 +814,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(); onChanged(); @@ -929,24 +833,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 (exclusion_ != null) { exclusion_ = - com.google.logging.v2.LogExclusion.newBuilder(exclusion_) - .mergeFrom(value) - .buildPartial(); + com.google.logging.v2.LogExclusion.newBuilder(exclusion_).mergeFrom(value).buildPartial(); } else { exclusion_ = value; } @@ -958,16 +856,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() { if (exclusionBuilder_ == null) { @@ -981,67 +875,51 @@ 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() { - + onChanged(); 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_; @@ -1049,13 +927,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
@@ -1065,17 +938,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 updateMaskBuilder_ != null || 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
@@ -1085,23 +954,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
@@ -1111,8 +974,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) { @@ -1128,8 +990,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
@@ -1139,10 +999,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(); onChanged(); @@ -1153,8 +1013,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
@@ -1164,14 +1022,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 (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -1183,8 +1040,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
@@ -1194,8 +1049,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() { if (updateMaskBuilder_ == null) { @@ -1209,8 +1063,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
@@ -1220,17 +1072,14 @@ 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() { - + onChanged(); 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
@@ -1240,21 +1089,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
@@ -1264,28 +1109,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); } @@ -1295,12 +1136,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(); } @@ -1309,16 +1150,16 @@ 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 { - return new UpdateExclusionRequest(input, extensionRegistry); - } - }; + 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 { + return new UpdateExclusionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1333,4 +1174,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 72% 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 01bc7fd79..ad7148377 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,111 +1,75 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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:
    *     "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]"
-   * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
+   * For example:
+   *   `"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:
    *     "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]"
-   * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
+   * For example:
+   *   `"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
@@ -115,15 +79,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
@@ -133,15 +93,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
@@ -151,8 +107,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 68% 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 1508bff8f..54e303d8c 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,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateLogMetricRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,67 +53,60 @@ private UpdateLogMetricRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - metricName_ = s; - break; + metricName_ = s; + break; + } + case 18: { + com.google.logging.v2.LogMetric.Builder subBuilder = null; + if (metric_ != null) { + subBuilder = metric_.toBuilder(); } - case 18: - { - com.google.logging.v2.LogMetric.Builder subBuilder = null; - if (metric_ != null) { - subBuilder = metric_.toBuilder(); - } - metric_ = - input.readMessage(com.google.logging.v2.LogMetric.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metric_); - metric_ = subBuilder.buildPartial(); - } - - break; + metric_ = input.readMessage(com.google.logging.v2.LogMetric.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metric_); + metric_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; private volatile java.lang.Object metricName_; /** - * - * *
    * Required. The resource name of the metric to update:
    *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
@@ -139,10 +115,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 @@ -151,15 +124,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:
    *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
@@ -168,18 +140,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 { @@ -190,14 +161,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 @@ -205,14 +173,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 @@ -220,8 +185,6 @@ public com.google.logging.v2.LogMetric getMetric() { return metric_ == null ? com.google.logging.v2.LogMetric.getDefaultInstance() : metric_; } /** - * - * *
    * Required. The updated metric.
    * 
@@ -234,7 +197,6 @@ public com.google.logging.v2.LogMetricOrBuilder getMetricOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -246,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(metricName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricName_); } @@ -266,7 +229,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -276,18 +240,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -311,127 +276,118 @@ 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() @@ -439,15 +395,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -463,9 +420,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 @@ -484,8 +441,7 @@ 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); + com.google.logging.v2.UpdateLogMetricRequest result = new com.google.logging.v2.UpdateLogMetricRequest(this); result.metricName_ = metricName_; if (metricBuilder_ == null) { result.metric_ = metric_; @@ -500,39 +456,38 @@ public com.google.logging.v2.UpdateLogMetricRequest 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.UpdateLogMetricRequest) { - return mergeFrom((com.google.logging.v2.UpdateLogMetricRequest) other); + return mergeFrom((com.google.logging.v2.UpdateLogMetricRequest)other); } else { super.mergeFrom(other); return this; @@ -579,8 +534,6 @@ public Builder mergeFrom( private java.lang.Object metricName_ = ""; /** - * - * *
      * Required. The resource name of the metric to update:
      *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
@@ -589,16 +542,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; @@ -607,8 +558,6 @@ public java.lang.String getMetricName() { } } /** - * - * *
      * Required. The resource name of the metric to update:
      *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
@@ -617,17 +566,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 { @@ -635,8 +583,6 @@ public com.google.protobuf.ByteString getMetricNameBytes() { } } /** - * - * *
      * Required. The resource name of the metric to update:
      *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
@@ -645,25 +591,21 @@ 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) { + public Builder setMetricName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + metricName_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource name of the metric to update:
      *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
@@ -672,21 +614,16 @@ 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() { - + metricName_ = getDefaultInstance().getMetricName(); onChanged(); return this; } /** - * - * *
      * Required. The resource name of the metric to update:
      *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
@@ -695,19 +632,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) { + public Builder setMetricNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + metricName_ = value; onChanged(); return this; @@ -715,35 +650,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 metricBuilder_ != null || metric_ != null; } /** - * - * *
      * 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() { @@ -754,14 +678,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) { @@ -777,16 +698,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(); onChanged(); @@ -797,20 +716,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 (metric_ != null) { metric_ = - com.google.logging.v2.LogMetric.newBuilder(metric_).mergeFrom(value).buildPartial(); + com.google.logging.v2.LogMetric.newBuilder(metric_).mergeFrom(value).buildPartial(); } else { metric_ = value; } @@ -822,14 +738,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() { if (metricBuilder_ == null) { @@ -843,66 +756,55 @@ 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() { - + onChanged(); 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); } @@ -912,12 +814,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(); } @@ -926,16 +828,16 @@ 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 { - return new UpdateLogMetricRequest(input, extensionRegistry); - } - }; + 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 { + return new UpdateLogMetricRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -950,4 +852,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 6df9263af..31d1dffbd 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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:
    *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
@@ -34,16 +16,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:
    *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
@@ -52,41 +29,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/owl-bot-staging/v2/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 new file mode 100644 index 000000000..60ceab72e --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequest.java @@ -0,0 +1,1199 @@ +// 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].
+ * See [Enabling CMEK for Log
+ * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for
+ * more information.
+ * 
+ * + * Protobuf type {@code google.logging.v2.UpdateSettingsRequest} + */ +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; + // 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) { + return new UpdateSettingsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UpdateSettingsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + com.google.logging.v2.Settings.Builder subBuilder = null; + if (settings_ != null) { + subBuilder = settings_.toBuilder(); + } + settings_ = input.readMessage(com.google.logging.v2.Settings.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(settings_); + settings_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + 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 + .ensureFieldAccessorsInitialized( + com.google.logging.v2.UpdateSettingsRequest.class, com.google.logging.v2.UpdateSettingsRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+   * Required. The resource name for the settings to update.
+   *     "organizations/[ORGANIZATION_ID]/settings"
+   * For example:
+   *   `"organizations/12345/settings"`
+   * 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.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + *
+   * Required. The resource name for the settings to update.
+   *     "organizations/[ORGANIZATION_ID]/settings"
+   * For example:
+   *   `"organizations/12345/settings"`
+   * 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.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for name. + */ + @java.lang.Override + 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); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SETTINGS_FIELD_NUMBER = 2; + private com.google.logging.v2.Settings settings_; + /** + *
+   * Required. The settings to update.
+   * See [Enabling CMEK for Log
+   * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+   * for more information.
+   * 
+ * + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the settings field is set. + */ + @java.lang.Override + public boolean hasSettings() { + return settings_ != null; + } + /** + *
+   * Required. The settings to update.
+   * See [Enabling CMEK for Log
+   * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+   * for more information.
+   * 
+ * + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The settings. + */ + @java.lang.Override + public com.google.logging.v2.Settings getSettings() { + return settings_ == null ? com.google.logging.v2.Settings.getDefaultInstance() : settings_; + } + /** + *
+   * Required. The settings to update.
+   * See [Enabling CMEK for Log
+   * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+   * for more information.
+   * 
+ * + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.logging.v2.SettingsOrBuilder getSettingsOrBuilder() { + return getSettings(); + } + + 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
+   * mask. Output only fields cannot be updated.
+   * See [FieldMask][google.protobuf.FieldMask] for more information.
+   * For example: `"updateMask=kmsKeyName"`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the updateMask field is set. + */ + @java.lang.Override + 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
+   * mask. Output only fields cannot be updated.
+   * See [FieldMask][google.protobuf.FieldMask] for more information.
+   * For example: `"updateMask=kmsKeyName"`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return The updateMask. + */ + @java.lang.Override + 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
+   * mask. Output only fields cannot be updated.
+   * See [FieldMask][google.protobuf.FieldMask] for more information.
+   * For example: `"updateMask=kmsKeyName"`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (settings_ != null) { + output.writeMessage(2, getSettings()); + } + if (updateMask_ != null) { + output.writeMessage(3, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (settings_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSettings()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.logging.v2.UpdateSettingsRequest)) { + return super.equals(obj); + } + com.google.logging.v2.UpdateSettingsRequest other = (com.google.logging.v2.UpdateSettingsRequest) obj; + + if (!getName() + .equals(other.getName())) return false; + if (hasSettings() != other.hasSettings()) return false; + if (hasSettings()) { + if (!getSettings() + .equals(other.getSettings())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasSettings()) { + hash = (37 * hash) + SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getSettings().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + 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) + 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) + 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); + } + public static com.google.logging.v2.UpdateSettingsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.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) + throws java.io.IOException { + 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); + } + 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); + } + + @java.lang.Override + 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); + } + + @java.lang.Override + 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].
+   * See [Enabling CMEK for Log
+   * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for
+   * more information.
+   * 
+ * + * Protobuf type {@code google.logging.v2.UpdateSettingsRequest} + */ + 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; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + 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); + } + + // Construct using com.google.logging.v2.UpdateSettingsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (settingsBuilder_ == null) { + settings_ = null; + } else { + settings_ = null; + settingsBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateSettingsRequest_descriptor; + } + + @java.lang.Override + public com.google.logging.v2.UpdateSettingsRequest getDefaultInstanceForType() { + return com.google.logging.v2.UpdateSettingsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.logging.v2.UpdateSettingsRequest build() { + com.google.logging.v2.UpdateSettingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.logging.v2.UpdateSettingsRequest buildPartial() { + com.google.logging.v2.UpdateSettingsRequest result = new com.google.logging.v2.UpdateSettingsRequest(this); + result.name_ = name_; + if (settingsBuilder_ == null) { + result.settings_ = settings_; + } else { + result.settings_ = settingsBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.logging.v2.UpdateSettingsRequest) { + return mergeFrom((com.google.logging.v2.UpdateSettingsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.logging.v2.UpdateSettingsRequest other) { + if (other == com.google.logging.v2.UpdateSettingsRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasSettings()) { + mergeSettings(other.getSettings()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.logging.v2.UpdateSettingsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.logging.v2.UpdateSettingsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+     * Required. The resource name for the settings to update.
+     *     "organizations/[ORGANIZATION_ID]/settings"
+     * For example:
+     *   `"organizations/12345/settings"`
+     * 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.
+     * 
+ * + * 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; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Required. The resource name for the settings to update.
+     *     "organizations/[ORGANIZATION_ID]/settings"
+     * For example:
+     *   `"organizations/12345/settings"`
+     * 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.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Required. The resource name for the settings to update.
+     *     "organizations/[ORGANIZATION_ID]/settings"
+     * For example:
+     *   `"organizations/12345/settings"`
+     * 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.
+     * 
+ * + * 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(); + } + + name_ = value; + onChanged(); + return this; + } + /** + *
+     * Required. The resource name for the settings to update.
+     *     "organizations/[ORGANIZATION_ID]/settings"
+     * For example:
+     *   `"organizations/12345/settings"`
+     * 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.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+     * Required. The resource name for the settings to update.
+     *     "organizations/[ORGANIZATION_ID]/settings"
+     * For example:
+     *   `"organizations/12345/settings"`
+     * 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.
+     * 
+ * + * 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(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + 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_; + /** + *
+     * Required. The settings to update.
+     * See [Enabling CMEK for Log
+     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+     * for more information.
+     * 
+ * + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the settings field is set. + */ + public boolean hasSettings() { + return settingsBuilder_ != null || settings_ != null; + } + /** + *
+     * Required. The settings to update.
+     * See [Enabling CMEK for Log
+     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+     * for more information.
+     * 
+ * + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The settings. + */ + public com.google.logging.v2.Settings getSettings() { + if (settingsBuilder_ == null) { + return settings_ == null ? com.google.logging.v2.Settings.getDefaultInstance() : settings_; + } else { + return settingsBuilder_.getMessage(); + } + } + /** + *
+     * Required. The settings to update.
+     * See [Enabling CMEK for Log
+     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+     * for more information.
+     * 
+ * + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setSettings(com.google.logging.v2.Settings value) { + if (settingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + settings_ = value; + onChanged(); + } else { + settingsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+     * Required. The settings to update.
+     * See [Enabling CMEK for Log
+     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+     * for more information.
+     * 
+ * + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setSettings( + com.google.logging.v2.Settings.Builder builderForValue) { + if (settingsBuilder_ == null) { + settings_ = builderForValue.build(); + onChanged(); + } else { + settingsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+     * Required. The settings to update.
+     * See [Enabling CMEK for Log
+     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+     * for more information.
+     * 
+ * + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeSettings(com.google.logging.v2.Settings value) { + if (settingsBuilder_ == null) { + if (settings_ != null) { + settings_ = + com.google.logging.v2.Settings.newBuilder(settings_).mergeFrom(value).buildPartial(); + } else { + settings_ = value; + } + onChanged(); + } else { + settingsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+     * Required. The settings to update.
+     * See [Enabling CMEK for Log
+     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+     * for more information.
+     * 
+ * + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearSettings() { + if (settingsBuilder_ == null) { + settings_ = null; + onChanged(); + } else { + settings_ = null; + settingsBuilder_ = null; + } + + return this; + } + /** + *
+     * Required. The settings to update.
+     * See [Enabling CMEK for Log
+     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+     * for more information.
+     * 
+ * + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.logging.v2.Settings.Builder getSettingsBuilder() { + + onChanged(); + return getSettingsFieldBuilder().getBuilder(); + } + /** + *
+     * Required. The settings to update.
+     * See [Enabling CMEK for Log
+     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+     * for more information.
+     * 
+ * + * .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_; + } + } + /** + *
+     * Required. The settings to update.
+     * See [Enabling CMEK for Log
+     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+     * for more information.
+     * 
+ * + * .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> + 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()); + settings_ = null; + } + return settingsBuilder_; + } + + 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_; + /** + *
+     * 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"`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || 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
+     * mask. Output only fields cannot be updated.
+     * See [FieldMask][google.protobuf.FieldMask] for more information.
+     * For example: `"updateMask=kmsKeyName"`
+     * 
+ * + * .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_; + } 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
+     * mask. Output only fields cannot be updated.
+     * See [FieldMask][google.protobuf.FieldMask] for more information.
+     * For example: `"updateMask=kmsKeyName"`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(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
+     * mask. Output only fields cannot be updated.
+     * See [FieldMask][google.protobuf.FieldMask] for more information.
+     * For example: `"updateMask=kmsKeyName"`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + 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
+     * mask. Output only fields cannot be updated.
+     * See [FieldMask][google.protobuf.FieldMask] for more information.
+     * For example: `"updateMask=kmsKeyName"`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(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
+     * mask. Output only fields cannot be updated.
+     * See [FieldMask][google.protobuf.FieldMask] for more information.
+     * For example: `"updateMask=kmsKeyName"`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + 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
+     * mask. Output only fields cannot be updated.
+     * See [FieldMask][google.protobuf.FieldMask] for more information.
+     * For example: `"updateMask=kmsKeyName"`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + 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
+     * mask. Output only fields cannot be updated.
+     * See [FieldMask][google.protobuf.FieldMask] for more information.
+     * For example: `"updateMask=kmsKeyName"`
+     * 
+ * + * .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_; + } + } + /** + *
+     * 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"`
+     * 
+ * + * .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> + 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()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:google.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(); + } + + 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 { + return new UpdateSettingsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.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/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequestOrBuilder.java new file mode 100644 index 000000000..87ecd1fa1 --- /dev/null +++ b/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequestOrBuilder.java @@ -0,0 +1,116 @@ +// 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 + // @@protoc_insertion_point(interface_extends:google.logging.v2.UpdateSettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The resource name for the settings to update.
+   *     "organizations/[ORGANIZATION_ID]/settings"
+   * For example:
+   *   `"organizations/12345/settings"`
+   * 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.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The resource name for the settings to update.
+   *     "organizations/[ORGANIZATION_ID]/settings"
+   * For example:
+   *   `"organizations/12345/settings"`
+   * 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.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+   * Required. The settings to update.
+   * See [Enabling CMEK for Log
+   * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+   * for more information.
+   * 
+ * + * .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.
+   * See [Enabling CMEK for Log
+   * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+   * for more information.
+   * 
+ * + * .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.
+   * See [Enabling CMEK for Log
+   * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+   * for more information.
+   * 
+ * + * .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
+   * mask. Output only fields cannot be updated.
+   * See [FieldMask][google.protobuf.FieldMask] for more information.
+   * For example: `"updateMask=kmsKeyName"`
+   * 
+ * + * .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
+   * mask. Output only fields cannot be updated.
+   * See [FieldMask][google.protobuf.FieldMask] for more information.
+   * For example: `"updateMask=kmsKeyName"`
+   * 
+ * + * .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
+   * mask. Output only fields cannot be updated.
+   * See [FieldMask][google.protobuf.FieldMask] for more information.
+   * For example: `"updateMask=kmsKeyName"`
+   * 
+ * + * .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 72% 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 ba46936af..3449a4113 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,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateSinkRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,86 +53,78 @@ private UpdateSinkRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - sinkName_ = s; - break; + sinkName_ = s; + break; + } + case 18: { + com.google.logging.v2.LogSink.Builder subBuilder = null; + if (sink_ != null) { + subBuilder = sink_.toBuilder(); + } + sink_ = input.readMessage(com.google.logging.v2.LogSink.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sink_); + sink_ = subBuilder.buildPartial(); } - case 18: - { - com.google.logging.v2.LogSink.Builder subBuilder = null; - if (sink_ != null) { - subBuilder = sink_.toBuilder(); - } - sink_ = input.readMessage(com.google.logging.v2.LogSink.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sink_); - sink_ = subBuilder.buildPartial(); - } - break; + break; + } + case 24: { + + uniqueWriterIdentity_ = input.readBool(); + break; + } + case 34: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - case 24: - { - uniqueWriterIdentity_ = input.readBool(); - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } - case 34: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; private volatile java.lang.Object sinkName_; /** - * - * *
    * Required. The full resource name of the sink to update, including the parent
    * resource and the sink identifier:
@@ -157,13 +132,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *     "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
    *     "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
    *     "folders/[FOLDER_ID]/sinks/[SINK_ID]"
-   * Example: `"projects/my-project-id/sinks/my-sink-id"`.
+   * For example:
+   *   `"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 @@ -172,15 +145,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:
@@ -188,21 +160,21 @@ public java.lang.String getSinkName() {
    *     "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
    *     "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
    *     "folders/[FOLDER_ID]/sinks/[SINK_ID]"
-   * Example: `"projects/my-project-id/sinks/my-sink-id"`.
+   * For example:
+   *   `"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 { @@ -213,15 +185,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 @@ -229,15 +198,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 @@ -245,8 +211,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`.
@@ -262,8 +226,6 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() {
   public static final int UNIQUE_WRITER_IDENTITY_FIELD_NUMBER = 3;
   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
@@ -278,7 +240,6 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() {
    * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The uniqueWriterIdentity. */ @java.lang.Override @@ -289,25 +250,21 @@ 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
    * in the update mask. `name` and output only fields cannot be updated.
-   * An empty updateMask is temporarily treated as using the following mask
+   * An empty `updateMask` is temporarily treated as using the following mask
    * for backwards compatibility purposes:
-   *   destination,filter,includeChildren
+   *   `destination,filter,includeChildren`
    * At some point in the future, behavior will be removed and specifying an
-   * empty updateMask will be an error.
+   * 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
-   * Example: `updateMask=filter`.
+   * 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 @@ -315,25 +272,21 @@ 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
    * in the update mask. `name` and output only fields cannot be updated.
-   * An empty updateMask is temporarily treated as using the following mask
+   * An empty `updateMask` is temporarily treated as using the following mask
    * for backwards compatibility purposes:
-   *   destination,filter,includeChildren
+   *   `destination,filter,includeChildren`
    * At some point in the future, behavior will be removed and specifying an
-   * empty updateMask will be an error.
+   * 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
-   * Example: `updateMask=filter`.
+   * 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 @@ -341,24 +294,21 @@ 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
    * in the update mask. `name` and output only fields cannot be updated.
-   * An empty updateMask is temporarily treated as using the following mask
+   * An empty `updateMask` is temporarily treated as using the following mask
    * for backwards compatibility purposes:
-   *   destination,filter,includeChildren
+   *   `destination,filter,includeChildren`
    * At some point in the future, behavior will be removed and specifying an
-   * empty updateMask will be an error.
+   * 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
-   * Example: `updateMask=filter`.
+   * 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() { @@ -366,7 +316,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -378,7 +327,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_); } @@ -404,13 +354,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -420,22 +373,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -455,7 +412,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(); @@ -465,127 +423,118 @@ 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() @@ -593,15 +542,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -625,9 +575,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 @@ -646,8 +596,7 @@ 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); + com.google.logging.v2.UpdateSinkRequest result = new com.google.logging.v2.UpdateSinkRequest(this); result.sinkName_ = sinkName_; if (sinkBuilder_ == null) { result.sink_ = sink_; @@ -668,39 +617,38 @@ public com.google.logging.v2.UpdateSinkRequest 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.UpdateSinkRequest) { - return mergeFrom((com.google.logging.v2.UpdateSinkRequest) other); + return mergeFrom((com.google.logging.v2.UpdateSinkRequest)other); } else { super.mergeFrom(other); return this; @@ -753,8 +701,6 @@ public Builder mergeFrom( private java.lang.Object sinkName_ = ""; /** - * - * *
      * Required. The full resource name of the sink to update, including the parent
      * resource and the sink identifier:
@@ -762,19 +708,18 @@ public Builder mergeFrom(
      *     "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
      *     "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
      *     "folders/[FOLDER_ID]/sinks/[SINK_ID]"
-     * Example: `"projects/my-project-id/sinks/my-sink-id"`.
+     * For example:
+     *   `"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; @@ -783,8 +728,6 @@ public java.lang.String getSinkName() { } } /** - * - * *
      * Required. The full resource name of the sink to update, including the parent
      * resource and the sink identifier:
@@ -792,20 +735,20 @@ public java.lang.String getSinkName() {
      *     "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
      *     "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
      *     "folders/[FOLDER_ID]/sinks/[SINK_ID]"
-     * Example: `"projects/my-project-id/sinks/my-sink-id"`.
+     * For example:
+     *   `"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 { @@ -813,8 +756,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:
@@ -822,28 +763,25 @@ public com.google.protobuf.ByteString getSinkNameBytes() {
      *     "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
      *     "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
      *     "folders/[FOLDER_ID]/sinks/[SINK_ID]"
-     * Example: `"projects/my-project-id/sinks/my-sink-id"`.
+     * For example:
+     *   `"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) { + public Builder setSinkName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sinkName_ = value; onChanged(); return this; } /** - * - * *
      * Required. The full resource name of the sink to update, including the parent
      * resource and the sink identifier:
@@ -851,24 +789,20 @@ public Builder setSinkName(java.lang.String value) {
      *     "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
      *     "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
      *     "folders/[FOLDER_ID]/sinks/[SINK_ID]"
-     * Example: `"projects/my-project-id/sinks/my-sink-id"`.
+     * For example:
+     *   `"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() { - + sinkName_ = getDefaultInstance().getSinkName(); onChanged(); return this; } /** - * - * *
      * Required. The full resource name of the sink to update, including the parent
      * resource and the sink identifier:
@@ -876,22 +810,21 @@ public Builder clearSinkName() {
      *     "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
      *     "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
      *     "folders/[FOLDER_ID]/sinks/[SINK_ID]"
-     * Example: `"projects/my-project-id/sinks/my-sink-id"`.
+     * For example:
+     *   `"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) { + public Builder setSinkNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sinkName_ = value; onChanged(); return this; @@ -899,35 +832,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 sinkBuilder_ != null || 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. */ public com.google.logging.v2.LogSink getSink() { @@ -938,8 +862,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`.
@@ -961,8 +883,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`.
@@ -970,7 +890,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();
         onChanged();
@@ -981,8 +902,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,7 +912,8 @@ public Builder setSink(com.google.logging.v2.LogSink.Builder builderForValue) {
     public Builder mergeSink(com.google.logging.v2.LogSink value) {
       if (sinkBuilder_ == null) {
         if (sink_ != null) {
-          sink_ = com.google.logging.v2.LogSink.newBuilder(sink_).mergeFrom(value).buildPartial();
+          sink_ =
+            com.google.logging.v2.LogSink.newBuilder(sink_).mergeFrom(value).buildPartial();
         } else {
           sink_ = value;
         }
@@ -1005,8 +925,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`.
@@ -1026,8 +944,6 @@ public Builder clearSink() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The updated sink, whose name is the same identifier that appears as part
      * of `sink_name`.
@@ -1036,13 +952,11 @@ public Builder clearSink() {
      * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED];
      */
     public com.google.logging.v2.LogSink.Builder getSinkBuilder() {
-
+      
       onChanged();
       return getSinkFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Required. The updated sink, whose name is the same identifier that appears as part
      * of `sink_name`.
@@ -1054,12 +968,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`.
@@ -1068,26 +981,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
@@ -1102,7 +1010,6 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() {
      * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The uniqueWriterIdentity. */ @java.lang.Override @@ -1110,8 +1017,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
@@ -1126,19 +1031,16 @@ public boolean getUniqueWriterIdentity() {
      * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The uniqueWriterIdentity to set. * @return This builder for chaining. */ public Builder setUniqueWriterIdentity(boolean value) { - + uniqueWriterIdentity_ = value; onChanged(); 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
@@ -1153,11 +1055,10 @@ public Builder setUniqueWriterIdentity(boolean value) {
      * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearUniqueWriterIdentity() { - + uniqueWriterIdentity_ = false; onChanged(); return this; @@ -1165,85 +1066,69 @@ 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
      * in the update mask. `name` and output only fields cannot be updated.
-     * An empty updateMask is temporarily treated as using the following mask
+     * An empty `updateMask` is temporarily treated as using the following mask
      * for backwards compatibility purposes:
-     *   destination,filter,includeChildren
+     *   `destination,filter,includeChildren`
      * At some point in the future, behavior will be removed and specifying an
-     * empty updateMask will be an error.
+     * 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
-     * Example: `updateMask=filter`.
+     * 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 updateMaskBuilder_ != null || 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
      * in the update mask. `name` and output only fields cannot be updated.
-     * An empty updateMask is temporarily treated as using the following mask
+     * An empty `updateMask` is temporarily treated as using the following mask
      * for backwards compatibility purposes:
-     *   destination,filter,includeChildren
+     *   `destination,filter,includeChildren`
      * At some point in the future, behavior will be removed and specifying an
-     * empty updateMask will be an error.
+     * 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
-     * Example: `updateMask=filter`.
+     * 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
      * in the update mask. `name` and output only fields cannot be updated.
-     * An empty updateMask is temporarily treated as using the following mask
+     * An empty `updateMask` is temporarily treated as using the following mask
      * for backwards compatibility purposes:
-     *   destination,filter,includeChildren
+     *   `destination,filter,includeChildren`
      * At some point in the future, behavior will be removed and specifying an
-     * empty updateMask will be an error.
+     * 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
-     * Example: `updateMask=filter`.
+     * 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) { @@ -1259,26 +1144,24 @@ 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
      * in the update mask. `name` and output only fields cannot be updated.
-     * An empty updateMask is temporarily treated as using the following mask
+     * An empty `updateMask` is temporarily treated as using the following mask
      * for backwards compatibility purposes:
-     *   destination,filter,includeChildren
+     *   `destination,filter,includeChildren`
      * At some point in the future, behavior will be removed and specifying an
-     * empty updateMask will be an error.
+     * 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
-     * Example: `updateMask=filter`.
+     * 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(); onChanged(); @@ -1289,30 +1172,27 @@ 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
      * in the update mask. `name` and output only fields cannot be updated.
-     * An empty updateMask is temporarily treated as using the following mask
+     * An empty `updateMask` is temporarily treated as using the following mask
      * for backwards compatibility purposes:
-     *   destination,filter,includeChildren
+     *   `destination,filter,includeChildren`
      * At some point in the future, behavior will be removed and specifying an
-     * empty updateMask will be an error.
+     * 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
-     * Example: `updateMask=filter`.
+     * 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 (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -1324,24 +1204,21 @@ 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
      * in the update mask. `name` and output only fields cannot be updated.
-     * An empty updateMask is temporarily treated as using the following mask
+     * An empty `updateMask` is temporarily treated as using the following mask
      * for backwards compatibility purposes:
-     *   destination,filter,includeChildren
+     *   `destination,filter,includeChildren`
      * At some point in the future, behavior will be removed and specifying an
-     * empty updateMask will be an error.
+     * 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
-     * Example: `updateMask=filter`.
+     * 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() { if (updateMaskBuilder_ == null) { @@ -1355,98 +1232,85 @@ 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
      * in the update mask. `name` and output only fields cannot be updated.
-     * An empty updateMask is temporarily treated as using the following mask
+     * An empty `updateMask` is temporarily treated as using the following mask
      * for backwards compatibility purposes:
-     *   destination,filter,includeChildren
+     *   `destination,filter,includeChildren`
      * At some point in the future, behavior will be removed and specifying an
-     * empty updateMask will be an error.
+     * 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
-     * Example: `updateMask=filter`.
+     * 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() { - + onChanged(); 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
      * in the update mask. `name` and output only fields cannot be updated.
-     * An empty updateMask is temporarily treated as using the following mask
+     * An empty `updateMask` is temporarily treated as using the following mask
      * for backwards compatibility purposes:
-     *   destination,filter,includeChildren
+     *   `destination,filter,includeChildren`
      * At some point in the future, behavior will be removed and specifying an
-     * empty updateMask will be an error.
+     * 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
-     * Example: `updateMask=filter`.
+     * 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
      * in the update mask. `name` and output only fields cannot be updated.
-     * An empty updateMask is temporarily treated as using the following mask
+     * An empty `updateMask` is temporarily treated as using the following mask
      * for backwards compatibility purposes:
-     *   destination,filter,includeChildren
+     *   `destination,filter,includeChildren`
      * At some point in the future, behavior will be removed and specifying an
-     * empty updateMask will be an error.
+     * 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
-     * Example: `updateMask=filter`.
+     * 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); } @@ -1456,12 +1320,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(); } @@ -1470,16 +1334,16 @@ 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 { - return new UpdateSinkRequest(input, extensionRegistry); - } - }; + 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 { + return new UpdateSinkRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1494,4 +1358,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 71% 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 dce77c709..01f5518a2 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 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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:
@@ -33,19 +15,15 @@ public interface UpdateSinkRequestOrBuilder
    *     "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
    *     "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
    *     "folders/[FOLDER_ID]/sinks/[SINK_ID]"
-   * Example: `"projects/my-project-id/sinks/my-sink-id"`.
+   * For example:
+   *   `"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:
@@ -53,46 +31,37 @@ public interface UpdateSinkRequestOrBuilder
    *     "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
    *     "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
    *     "folders/[FOLDER_ID]/sinks/[SINK_ID]"
-   * Example: `"projects/my-project-id/sinks/my-sink-id"`.
+   * For example:
+   *   `"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`.
@@ -103,8 +72,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
@@ -119,76 +86,64 @@ 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
    * in the update mask. `name` and output only fields cannot be updated.
-   * An empty updateMask is temporarily treated as using the following mask
+   * An empty `updateMask` is temporarily treated as using the following mask
    * for backwards compatibility purposes:
-   *   destination,filter,includeChildren
+   *   `destination,filter,includeChildren`
    * At some point in the future, behavior will be removed and specifying an
-   * empty updateMask will be an error.
+   * 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
-   * Example: `updateMask=filter`.
+   * 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
    * in the update mask. `name` and output only fields cannot be updated.
-   * An empty updateMask is temporarily treated as using the following mask
+   * An empty `updateMask` is temporarily treated as using the following mask
    * for backwards compatibility purposes:
-   *   destination,filter,includeChildren
+   *   `destination,filter,includeChildren`
    * At some point in the future, behavior will be removed and specifying an
-   * empty updateMask will be an error.
+   * 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
-   * Example: `updateMask=filter`.
+   * 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
    * in the update mask. `name` and output only fields cannot be updated.
-   * An empty updateMask is temporarily treated as using the following mask
+   * An empty `updateMask` is temporarily treated as using the following mask
    * for backwards compatibility purposes:
-   *   destination,filter,includeChildren
+   *   `destination,filter,includeChildren`
    * At some point in the future, behavior will be removed and specifying an
-   * empty updateMask will be an error.
+   * 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
-   * Example: `updateMask=filter`.
+   * 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 71% 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 97202237c..824c1ce9d 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,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateViewRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,90 +53,81 @@ private UpdateViewRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; + name_ = s; + break; + } + case 18: { + com.google.logging.v2.LogView.Builder subBuilder = null; + if (view_ != null) { + subBuilder = view_.toBuilder(); } - case 18: - { - com.google.logging.v2.LogView.Builder subBuilder = null; - if (view_ != null) { - subBuilder = view_.toBuilder(); - } - view_ = input.readMessage(com.google.logging.v2.LogView.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(view_); - view_ = subBuilder.buildPartial(); - } - - break; + view_ = input.readMessage(com.google.logging.v2.LogView.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(view_); + view_ = subBuilder.buildPartial(); } - case 34: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 34: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; private volatile java.lang.Object name_; /** - * - * *
    * Required. The full resource name of the view to update
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-   * Example:
-   *   `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`.
+   * For example:
+   *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The name. */ @java.lang.Override @@ -162,32 +136,32 @@ 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
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-   * Example:
-   *   `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`.
+   * For example:
+   *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
    * 
* * 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 { @@ -198,14 +172,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 @@ -213,14 +184,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 @@ -228,8 +196,6 @@ public com.google.logging.v2.LogView getView() { return view_ == null ? com.google.logging.v2.LogView.getDefaultInstance() : view_; } /** - * - * *
    * Required. The updated view.
    * 
@@ -244,20 +210,16 @@ 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
    * in the update mask. `name` and output only fields cannot be updated.
    * For a detailed `FieldMask` definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
-   * Example: `updateMask=filter`.
+   * 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 @@ -265,20 +227,16 @@ 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
    * in the update mask. `name` and output only fields cannot be updated.
    * For a detailed `FieldMask` definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
-   * Example: `updateMask=filter`.
+   * 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 @@ -286,19 +244,16 @@ 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
    * in the update mask. `name` and output only fields cannot be updated.
    * For a detailed `FieldMask` definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
-   * Example: `updateMask=filter`.
+   * 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() { @@ -306,7 +261,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -318,7 +272,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_); } @@ -341,10 +296,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -354,21 +311,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -396,127 +356,118 @@ 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() @@ -524,15 +475,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -554,9 +506,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 @@ -575,8 +527,7 @@ 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); + com.google.logging.v2.UpdateViewRequest result = new com.google.logging.v2.UpdateViewRequest(this); result.name_ = name_; if (viewBuilder_ == null) { result.view_ = view_; @@ -596,39 +547,38 @@ public com.google.logging.v2.UpdateViewRequest 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.UpdateViewRequest) { - return mergeFrom((com.google.logging.v2.UpdateViewRequest) other); + return mergeFrom((com.google.logging.v2.UpdateViewRequest)other); } else { super.mergeFrom(other); return this; @@ -678,23 +628,21 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The full resource name of the view to update
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     * Example:
-     *   `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`.
+     * For example:
+     *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
      * 
* * 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; @@ -703,24 +651,23 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The full resource name of the view to update
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     * Example:
-     *   `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`.
+     * For example:
+     *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
      * 
* * 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 { @@ -728,70 +675,63 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The full resource name of the view to update
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     * Example:
-     *   `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`.
+     * For example:
+     *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
      * 
* * 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) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The full resource name of the view to update
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     * Example:
-     *   `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`.
+     * For example:
+     *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The full resource name of the view to update
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     * Example:
-     *   `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`.
+     * For example:
+     *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
      * 
* * 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) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -799,33 +739,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 viewBuilder_ != null || view_ != null; } /** - * - * *
      * 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() { @@ -836,8 +767,6 @@ public com.google.logging.v2.LogView getView() { } } /** - * - * *
      * Required. The updated view.
      * 
@@ -858,15 +787,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(); onChanged(); @@ -877,8 +805,6 @@ public Builder setView(com.google.logging.v2.LogView.Builder builderForValue) { return this; } /** - * - * *
      * Required. The updated view.
      * 
@@ -888,7 +814,8 @@ public Builder setView(com.google.logging.v2.LogView.Builder builderForValue) { public Builder mergeView(com.google.logging.v2.LogView value) { if (viewBuilder_ == null) { if (view_ != null) { - view_ = com.google.logging.v2.LogView.newBuilder(view_).mergeFrom(value).buildPartial(); + view_ = + com.google.logging.v2.LogView.newBuilder(view_).mergeFrom(value).buildPartial(); } else { view_ = value; } @@ -900,8 +827,6 @@ public Builder mergeView(com.google.logging.v2.LogView value) { return this; } /** - * - * *
      * Required. The updated view.
      * 
@@ -920,8 +845,6 @@ public Builder clearView() { return this; } /** - * - * *
      * Required. The updated view.
      * 
@@ -929,13 +852,11 @@ public Builder clearView() { * .google.logging.v2.LogView view = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.logging.v2.LogView.Builder getViewBuilder() { - + onChanged(); return getViewFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The updated view.
      * 
@@ -946,12 +867,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.
      * 
@@ -959,17 +879,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_; @@ -977,70 +894,54 @@ 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
      * in the update mask. `name` and output only fields cannot be updated.
      * For a detailed `FieldMask` definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
-     * Example: `updateMask=filter`.
+     * 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 updateMaskBuilder_ != null || 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
      * in the update mask. `name` and output only fields cannot be updated.
      * For a detailed `FieldMask` definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
-     * Example: `updateMask=filter`.
+     * 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
      * in the update mask. `name` and output only fields cannot be updated.
      * For a detailed `FieldMask` definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
-     * Example: `updateMask=filter`.
+     * 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) { @@ -1056,21 +957,19 @@ 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
      * in the update mask. `name` and output only fields cannot be updated.
      * For a detailed `FieldMask` definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
-     * Example: `updateMask=filter`.
+     * 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(); onChanged(); @@ -1081,25 +980,22 @@ 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
      * in the update mask. `name` and output only fields cannot be updated.
      * For a detailed `FieldMask` definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
-     * Example: `updateMask=filter`.
+     * 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 (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -1111,19 +1007,16 @@ 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
      * in the update mask. `name` and output only fields cannot be updated.
      * For a detailed `FieldMask` definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
-     * Example: `updateMask=filter`.
+     * 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() { if (updateMaskBuilder_ == null) { @@ -1137,83 +1030,70 @@ 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
      * in the update mask. `name` and output only fields cannot be updated.
      * For a detailed `FieldMask` definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
-     * Example: `updateMask=filter`.
+     * 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() { - + onChanged(); 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
      * in the update mask. `name` and output only fields cannot be updated.
      * For a detailed `FieldMask` definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
-     * Example: `updateMask=filter`.
+     * 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
      * in the update mask. `name` and output only fields cannot be updated.
      * For a detailed `FieldMask` definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
-     * Example: `updateMask=filter`.
+     * 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); } @@ -1223,12 +1103,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(); } @@ -1237,16 +1117,16 @@ 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 { - return new UpdateViewRequest(input, extensionRegistry); - } - }; + 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 { + return new UpdateViewRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1261,4 +1141,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 71% 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 062bd10e7..daadb3fca 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,86 +1,57 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-   * Example:
-   *   `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`.
+   * For example:
+   *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
    * 
* * 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
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-   * Example:
-   *   `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`.
+   * For example:
+   *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
    * 
* * 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.
    * 
@@ -90,55 +61,44 @@ 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
    * in the update mask. `name` and output only fields cannot be updated.
    * For a detailed `FieldMask` definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
-   * Example: `updateMask=filter`.
+   * 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
    * in the update mask. `name` and output only fields cannot be updated.
    * For a detailed `FieldMask` definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
-   * Example: `updateMask=filter`.
+   * 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
    * in the update mask. `name` and output only fields cannot be updated.
    * For a detailed `FieldMask` definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
-   * Example: `updateMask=filter`.
+   * 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 67% 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 862dc9917..d2abc097b 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,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private WriteLogEntriesPartialErrors( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -69,88 +53,79 @@ private WriteLogEntriesPartialErrors( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - logEntryErrors_ = - com.google.protobuf.MapField.newMapField( - LogEntryErrorsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - logEntryErrors__ = - input.readMessage( - LogEntryErrorsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - logEntryErrors_ - .getMutableMap() - .put(logEntryErrors__.getKey(), logEntryErrors__.getValue()); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + logEntryErrors_ = com.google.protobuf.MapField.newMapField( + LogEntryErrorsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + com.google.protobuf.MapEntry + logEntryErrors__ = input.readMessage( + LogEntryErrorsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + logEntryErrors_.getMutableMap().put( + logEntryErrors__.getKey(), logEntryErrors__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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()); - } - - private com.google.protobuf.MapField logEntryErrors_; - + .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()); + } + 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); @@ -162,8 +137,6 @@ 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
@@ -174,20 +147,22 @@ public int getLogEntryErrorsCount() {
    *
    * map<int32, .google.rpc.Status> log_entry_errors = 1;
    */
-  @java.lang.Override
-  public boolean containsLogEntryErrors(int key) {
 
+  @java.lang.Override
+  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
@@ -199,12 +174,11 @@ public java.util.Map getLogEntryErrors
    * map<int32, .google.rpc.Status> log_entry_errors = 1;
    */
   @java.lang.Override
+
   public java.util.Map getLogEntryErrorsMap() {
     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
@@ -216,16 +190,16 @@ public java.util.Map getLogEntryErrors
    * map<int32, .google.rpc.Status> log_entry_errors = 1;
    */
   @java.lang.Override
-  public com.google.rpc.Status getLogEntryErrorsOrDefault(
-      int key, com.google.rpc.Status defaultValue) {
 
+  public com.google.rpc.Status getLogEntryErrorsOrDefault(
+      int key,
+      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
@@ -237,8 +211,10 @@ public 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();
     if (!map.containsKey(key)) {
@@ -248,7 +224,6 @@ public com.google.rpc.Status getLogEntryErrorsOrThrow(int key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -260,9 +235,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);
     unknownFields.writeTo(output);
   }
 
@@ -272,15 +252,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -290,15 +270,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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -320,146 +300,139 @@ 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() @@ -467,15 +440,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -484,9 +458,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 @@ -505,8 +479,7 @@ 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); + com.google.logging.v2.WriteLogEntriesPartialErrors result = new com.google.logging.v2.WriteLogEntriesPartialErrors(this); int from_bitField0_ = bitField0_; result.logEntryErrors_ = internalGetLogEntryErrors(); result.logEntryErrors_.makeImmutable(); @@ -518,39 +491,38 @@ public com.google.logging.v2.WriteLogEntriesPartialErrors 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.WriteLogEntriesPartialErrors) { - return mergeFrom((com.google.logging.v2.WriteLogEntriesPartialErrors) other); + return mergeFrom((com.google.logging.v2.WriteLogEntriesPartialErrors)other); } else { super.mergeFrom(other); return this; @@ -558,9 +530,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()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -580,8 +552,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.logging.v2.WriteLogEntriesPartialErrors) e.getUnfinishedMessage(); + parsedMessage = (com.google.logging.v2.WriteLogEntriesPartialErrors) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -590,27 +561,24 @@ public Builder mergeFrom( } 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() { + internalGetLogEntryErrors() { if (logEntryErrors_ == null) { return com.google.protobuf.MapField.emptyMapField( LogEntryErrorsDefaultEntryHolder.defaultEntry); } return logEntryErrors_; } - private com.google.protobuf.MapField - internalGetMutableLogEntryErrors() { - onChanged(); - ; + internalGetMutableLogEntryErrors() { + onChanged();; 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(); @@ -622,8 +590,6 @@ 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
@@ -634,20 +600,22 @@ public int getLogEntryErrorsCount() {
      *
      * map<int32, .google.rpc.Status> log_entry_errors = 1;
      */
-    @java.lang.Override
-    public boolean containsLogEntryErrors(int key) {
 
+    @java.lang.Override
+    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
@@ -659,12 +627,11 @@ public java.util.Map getLogEntryErrors
      * map<int32, .google.rpc.Status> log_entry_errors = 1;
      */
     @java.lang.Override
+
     public java.util.Map getLogEntryErrorsMap() {
       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
@@ -676,16 +643,16 @@ public java.util.Map getLogEntryErrors
      * map<int32, .google.rpc.Status> log_entry_errors = 1;
      */
     @java.lang.Override
-    public com.google.rpc.Status getLogEntryErrorsOrDefault(
-        int key, com.google.rpc.Status defaultValue) {
 
+    public com.google.rpc.Status getLogEntryErrorsOrDefault(
+        int key,
+        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
@@ -697,8 +664,10 @@ public 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();
       if (!map.containsKey(key)) {
@@ -708,12 +677,11 @@ public com.google.rpc.Status getLogEntryErrorsOrThrow(int key) {
     }
 
     public Builder clearLogEntryErrors() {
-      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
@@ -724,19 +692,23 @@ public Builder clearLogEntryErrors() {
      *
      * map<int32, .google.rpc.Status> log_entry_errors = 1;
      */
-    public Builder removeLogEntryErrors(int key) {
 
-      internalGetMutableLogEntryErrors().getMutableMap().remove(key);
+    public Builder removeLogEntryErrors(
+        int 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() {
       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
@@ -747,17 +719,16 @@ public java.util.Map getMutableLogEntr
      *
      * map<int32, .google.rpc.Status> log_entry_errors = 1;
      */
-    public Builder putLogEntryErrors(int key, com.google.rpc.Status value) {
-
-      if (value == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableLogEntryErrors().getMutableMap().put(key, value);
+    public Builder putLogEntryErrors(
+        int key,
+        com.google.rpc.Status value) {
+      
+      if (value == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableLogEntryErrors().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * When `WriteLogEntriesRequest.partial_success` is true, records the error
      * status for entries that were not written due to a permanent error, keyed
@@ -768,14 +739,16 @@ public Builder putLogEntryErrors(int key, com.google.rpc.Status value) {
      *
      * map<int32, .google.rpc.Status> log_entry_errors = 1;
      */
+
     public Builder putAllLogEntryErrors(
         java.util.Map values) {
-      internalGetMutableLogEntryErrors().getMutableMap().putAll(values);
+      internalGetMutableLogEntryErrors().getMutableMap()
+          .putAll(values);
       return this;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -785,12 +758,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();
   }
@@ -799,16 +772,16 @@ 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 {
-          return new WriteLogEntriesPartialErrors(input, extensionRegistry);
-        }
-      };
+  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 {
+      return new WriteLogEntriesPartialErrors(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -823,4 +796,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 5249a436e..3c82c127e 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 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for 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
@@ -38,8 +20,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
@@ -50,13 +30,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
@@ -67,10 +49,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
@@ -81,10 +62,11 @@ public interface WriteLogEntriesPartialErrorsOrBuilder
    *
    * map<int32, .google.rpc.Status> log_entry_errors = 1;
    */
-  com.google.rpc.Status getLogEntryErrorsOrDefault(int key, com.google.rpc.Status defaultValue);
+
+  com.google.rpc.Status getLogEntryErrorsOrDefault(
+      int key,
+      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
@@ -95,5 +77,7 @@ public interface WriteLogEntriesPartialErrorsOrBuilder
    *
    * 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 75%
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 d9bf0a6b6..d6cd30894 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 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for 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,15 +26,16 @@ private WriteLogEntriesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WriteLogEntriesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private WriteLogEntriesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,74 +55,71 @@ private WriteLogEntriesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - logName_ = s; - break; - } - case 18: - { - com.google.api.MonitoredResource.Builder subBuilder = null; - if (resource_ != null) { - subBuilder = resource_.toBuilder(); - } - resource_ = - input.readMessage(com.google.api.MonitoredResource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resource_); - resource_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = - com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); - break; + logName_ = s; + break; + } + case 18: { + com.google.api.MonitoredResource.Builder subBuilder = null; + if (resource_ != null) { + subBuilder = resource_.toBuilder(); } - case 34: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - entries_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - entries_.add( - input.readMessage(com.google.logging.v2.LogEntry.parser(), extensionRegistry)); - break; + resource_ = input.readMessage(com.google.api.MonitoredResource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = subBuilder.buildPartial(); } - case 40: - { - partialSuccess_ = input.readBool(); - break; + + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - case 48: - { - dryRun_ = input.readBool(); - break; + com.google.protobuf.MapEntry + labels__ = input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put( + labels__.getKey(), labels__.getValue()); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + entries_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + entries_.add( + input.readMessage(com.google.logging.v2.LogEntry.parser(), extensionRegistry)); + break; + } + case 40: { + + partialSuccess_ = input.readBool(); + break; + } + case 48: { + + dryRun_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) != 0)) { entries_ = java.util.Collections.unmodifiableList(entries_); @@ -148,58 +128,51 @@ private WriteLogEntriesRequest( makeExtensionsImmutable(); } } - - 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; 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`:
-   *     "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]"
+   * * `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/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"
+   *     "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.
    * 
* - * - * 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 @@ -208,43 +181,41 @@ 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`:
-   *     "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]"
+   * * `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/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"
+   *     "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.
    * 
* - * - * 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 { @@ -255,8 +226,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:
@@ -266,9 +235,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 @@ -276,8 +243,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:
@@ -287,9 +252,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 @@ -297,8 +260,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:
@@ -308,8 +269,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() { @@ -317,23 +277,24 @@ 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, + ""); } - - 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_; } @@ -342,8 +303,6 @@ 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
@@ -353,22 +312,22 @@ 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 java.lang.NullPointerException();
-    }
+  public boolean containsLabels(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
     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
@@ -379,12 +338,11 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
+
   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
@@ -395,16 +353,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    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
@@ -415,11 +373,12 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
    * 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 java.lang.NullPointerException();
-    }
-    java.util.Map map = internalGetLabels().getMap();
+
+  public java.lang.String getLabelsOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new java.lang.NullPointerException(); }
+    java.util.Map map =
+        internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -429,8 +388,6 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   public static final int ENTRIES_FIELD_NUMBER = 4;
   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
@@ -444,28 +401,24 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
    * 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/quota-policy) in
+   * [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/quota-policy) for calls to
+   * [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.
    * 
* - * - * 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
@@ -479,29 +432,25 @@ public java.util.List getEntriesList() {
    * 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/quota-policy) in
+   * [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/quota-policy) for calls to
+   * [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.
    * 
* - * - * 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
@@ -515,28 +464,24 @@ public java.util.List getEntriesList() {
    * 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/quota-policy) in
+   * [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/quota-policy) for calls to
+   * [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.
    * 
* - * - * 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
@@ -550,28 +495,24 @@ public int getEntriesCount() {
    * 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/quota-policy) in
+   * [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/quota-policy) for calls to
+   * [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.
    * 
* - * - * 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
@@ -585,31 +526,28 @@ public com.google.logging.v2.LogEntry getEntries(int index) {
    * 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/quota-policy) in
+   * [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/quota-policy) for calls to
+   * [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.
    * 
* - * - * 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_; /** - * - * *
    * Optional. Whether valid entries should be written even if some other
    * entries fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any
@@ -619,7 +557,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 @@ -630,8 +567,6 @@ public boolean getPartialSuccess() { public static final int DRY_RUN_FIELD_NUMBER = 6; 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
@@ -639,7 +574,6 @@ public boolean getPartialSuccess() {
    * 
* * bool dry_run = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The dryRun. */ @java.lang.Override @@ -648,7 +582,6 @@ public boolean getDryRun() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -660,15 +593,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)); } @@ -691,26 +629,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -720,23 +662,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -763,155 +710,150 @@ 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) + unknownFields.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() @@ -919,17 +861,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getEntriesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -956,9 +898,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingProto - .internal_static_google_logging_v2_WriteLogEntriesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_WriteLogEntriesRequest_descriptor; } @java.lang.Override @@ -977,8 +919,7 @@ 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); int from_bitField0_ = bitField0_; result.logName_ = logName_; if (resourceBuilder_ == null) { @@ -1007,39 +948,38 @@ public com.google.logging.v2.WriteLogEntriesRequest 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.WriteLogEntriesRequest) { - return mergeFrom((com.google.logging.v2.WriteLogEntriesRequest) other); + return mergeFrom((com.google.logging.v2.WriteLogEntriesRequest)other); } else { super.mergeFrom(other); return this; @@ -1055,7 +995,8 @@ public Builder mergeFrom(com.google.logging.v2.WriteLogEntriesRequest other) { if (other.hasResource()) { mergeResource(other.getResource()); } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + internalGetMutableLabels().mergeFrom( + other.internalGetLabels()); if (entriesBuilder_ == null) { if (!other.entries_.isEmpty()) { if (entries_.isEmpty()) { @@ -1074,10 +1015,9 @@ public Builder mergeFrom(com.google.logging.v2.WriteLogEntriesRequest other) { entriesBuilder_ = null; entries_ = other.entries_; bitField0_ = (bitField0_ & ~0x00000002); - entriesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getEntriesFieldBuilder() - : null; + entriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEntriesFieldBuilder() : null; } else { entriesBuilder_.addAllMessages(other.entries_); } @@ -1117,39 +1057,34 @@ public Builder mergeFrom( } 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`:
-     *     "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]"
+     * * `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/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"
+     *     "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.
      * 
* - * - * 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; @@ -1158,35 +1093,32 @@ 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`:
-     *     "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]"
+     * * `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/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"
+     *     "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.
      * 
* - * - * 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 { @@ -1194,103 +1126,90 @@ 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`:
-     *     "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]"
+     * * `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/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"
+     *     "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.
      * 
* - * - * 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) { + public Builder setLogName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + logName_ = value; 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`:
-     *     "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]"
+     * * `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/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"
+     *     "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.
      * 
* - * - * 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() { - + logName_ = getDefaultInstance().getLogName(); 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`:
-     *     "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]"
+     * * `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/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"
+     *     "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.
      * 
* - * - * 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) { + public Builder setLogNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + logName_ = value; onChanged(); return this; @@ -1298,13 +1217,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:
@@ -1314,17 +1228,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 resourceBuilder_ != null || 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:
@@ -1334,23 +1244,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:
@@ -1360,8 +1264,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) { @@ -1377,8 +1280,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:
@@ -1388,10 +1289,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(); onChanged(); @@ -1402,8 +1303,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:
@@ -1413,16 +1312,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 (resource_ != null) { resource_ = - com.google.api.MonitoredResource.newBuilder(resource_) - .mergeFrom(value) - .buildPartial(); + com.google.api.MonitoredResource.newBuilder(resource_).mergeFrom(value).buildPartial(); } else { resource_ = value; } @@ -1434,8 +1330,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:
@@ -1445,8 +1339,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() { if (resourceBuilder_ == null) { @@ -1460,8 +1353,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:
@@ -1471,17 +1362,14 @@ 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() { - + onChanged(); 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:
@@ -1491,21 +1379,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:
@@ -1515,41 +1399,38 @@ 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() { - onChanged(); - ; + internalGetMutableLabels() { + onChanged();; 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(); @@ -1561,8 +1442,6 @@ 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
@@ -1572,22 +1451,22 @@ 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 java.lang.NullPointerException();
-      }
+    public boolean containsLabels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
       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
@@ -1598,12 +1477,11 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
+
     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
@@ -1614,17 +1492,16 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
+
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetLabels().getMap();
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      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
@@ -1635,11 +1512,12 @@ public 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 java.lang.NullPointerException();
-      }
-      java.util.Map map = internalGetLabels().getMap();
+
+    public java.lang.String getLabelsOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      java.util.Map map =
+          internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -1647,12 +1525,11 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearLabels() {
-      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
@@ -1662,21 +1539,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 java.lang.NullPointerException();
-      }
-      internalGetMutableLabels().getMutableMap().remove(key);
+
+    public Builder removeLabels(
+        java.lang.String key) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      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() {
       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
@@ -1686,19 +1565,16 @@ 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 java.lang.NullPointerException();
-      }
-      if (value == null) {
-        throw new java.lang.NullPointerException();
-      }
-      internalGetMutableLabels().getMutableMap().put(key, value);
+    public Builder putLabels(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new java.lang.NullPointerException(); }
+      if (value == null) { throw new java.lang.NullPointerException(); }
+      internalGetMutableLabels().getMutableMap()
+          .put(key, value);
       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,30 +1584,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);
       return this;
     }
 
     private java.util.List entries_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureEntriesIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
         entries_ = new java.util.ArrayList(entries_);
         bitField0_ |= 0x00000002;
-      }
+       }
     }
 
     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
@@ -1745,20 +1618,18 @@ private void ensureEntriesIsMutable() {
      * 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/quota-policy) in
+     * [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/quota-policy) for calls to
+     * [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.
      * 
* - * - * 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) { @@ -1768,8 +1639,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
@@ -1783,20 +1652,18 @@ public java.util.List getEntriesList() {
      * 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/quota-policy) in
+     * [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/quota-policy) for calls to
+     * [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.
      * 
* - * - * 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) { @@ -1806,8 +1673,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
@@ -1821,20 +1686,18 @@ public int getEntriesCount() {
      * 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/quota-policy) in
+     * [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/quota-policy) for calls to
+     * [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.
      * 
* - * - * 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) { @@ -1844,8 +1707,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
@@ -1859,22 +1720,21 @@ public com.google.logging.v2.LogEntry getEntries(int index) {
      * 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/quota-policy) in
+     * [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/quota-policy) for calls to
+     * [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.
      * 
* - * - * 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(); @@ -1888,8 +1748,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
@@ -1903,22 +1761,21 @@ public Builder setEntries(int index, com.google.logging.v2.LogEntry value) {
      * 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/quota-policy) in
+     * [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/quota-policy) for calls to
+     * [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.
      * 
* - * - * 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()); @@ -1929,8 +1786,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
@@ -1944,20 +1799,18 @@ public Builder setEntries(int index, com.google.logging.v2.LogEntry.Builder buil
      * 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/quota-policy) in
+     * [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/quota-policy) for calls to
+     * [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.
      * 
* - * - * 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) { @@ -1973,8 +1826,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
@@ -1988,22 +1839,21 @@ public Builder addEntries(com.google.logging.v2.LogEntry value) {
      * 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/quota-policy) in
+     * [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/quota-policy) for calls to
+     * [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.
      * 
* - * - * 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(); @@ -2017,8 +1867,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
@@ -2032,22 +1880,21 @@ public Builder addEntries(int index, com.google.logging.v2.LogEntry value) {
      * 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/quota-policy) in
+     * [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/quota-policy) for calls to
+     * [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.
      * 
* - * - * 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()); @@ -2058,8 +1905,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
@@ -2073,22 +1918,21 @@ public Builder addEntries(com.google.logging.v2.LogEntry.Builder builderForValue
      * 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/quota-policy) in
+     * [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/quota-policy) for calls to
+     * [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.
      * 
* - * - * 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()); @@ -2099,8 +1943,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
@@ -2114,26 +1956,25 @@ public Builder addEntries(int index, com.google.logging.v2.LogEntry.Builder buil
      * 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/quota-policy) in
+     * [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/quota-policy) for calls to
+     * [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.
      * 
* - * - * 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); @@ -2141,8 +1982,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
@@ -2156,20 +1995,18 @@ public Builder addAllEntries(
      * 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/quota-policy) in
+     * [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/quota-policy) for calls to
+     * [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.
      * 
* - * - * 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) { @@ -2182,8 +2019,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
@@ -2197,20 +2032,18 @@ public Builder clearEntries() {
      * 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/quota-policy) in
+     * [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/quota-policy) for calls to
+     * [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.
      * 
* - * - * 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) { @@ -2223,8 +2056,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
@@ -2238,27 +2069,24 @@ public Builder removeEntries(int index) {
      * 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/quota-policy) in
+     * [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/quota-policy) for calls to
+     * [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.
      * 
* - * - * 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
@@ -2272,31 +2100,27 @@ public com.google.logging.v2.LogEntry.Builder getEntriesBuilder(int index) {
      * 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/quota-policy) in
+     * [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/quota-policy) for calls to
+     * [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.
      * 
* - * - * 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
@@ -2310,23 +2134,21 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index) {
      * 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/quota-policy) in
+     * [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/quota-policy) for calls to
+     * [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.
      * 
* - * - * 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 { @@ -2334,8 +2156,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
@@ -2349,28 +2169,24 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index) {
      * 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/quota-policy) in
+     * [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/quota-policy) for calls to
+     * [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.
      * 
* - * - * 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
@@ -2384,28 +2200,25 @@ public com.google.logging.v2.LogEntry.Builder addEntriesBuilder() {
      * 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/quota-policy) in
+     * [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/quota-policy) for calls to
+     * [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.
      * 
* - * - * 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
@@ -2419,46 +2232,40 @@ public com.google.logging.v2.LogEntry.Builder addEntriesBuilder(int index) {
      * 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/quota-policy) in
+     * [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/quota-policy) for calls to
+     * [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.
      * 
* - * - * 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_ & 0x00000002) != 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_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); entries_ = null; } return entriesBuilder_; } - private boolean partialSuccess_; + private boolean partialSuccess_ ; /** - * - * *
      * Optional. Whether valid entries should be written even if some other
      * entries fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any
@@ -2468,7 +2275,6 @@ public java.util.List getEntriesBuilderL
      * 
* * bool partial_success = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The partialSuccess. */ @java.lang.Override @@ -2476,8 +2282,6 @@ public boolean getPartialSuccess() { return partialSuccess_; } /** - * - * *
      * Optional. Whether valid entries should be written even if some other
      * entries fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any
@@ -2487,19 +2291,16 @@ public boolean getPartialSuccess() {
      * 
* * bool partial_success = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The partialSuccess to set. * @return This builder for chaining. */ public Builder setPartialSuccess(boolean value) { - + partialSuccess_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Whether valid entries should be written even if some other
      * entries fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any
@@ -2509,20 +2310,17 @@ public Builder setPartialSuccess(boolean value) {
      * 
* * bool partial_success = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPartialSuccess() { - + partialSuccess_ = false; onChanged(); 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
@@ -2530,7 +2328,6 @@ public Builder clearPartialSuccess() {
      * 
* * bool dry_run = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The dryRun. */ @java.lang.Override @@ -2538,8 +2335,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
@@ -2547,19 +2342,16 @@ public boolean getDryRun() {
      * 
* * bool dry_run = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The dryRun to set. * @return This builder for chaining. */ public Builder setDryRun(boolean value) { - + dryRun_ = value; onChanged(); 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
@@ -2567,18 +2359,17 @@ public Builder setDryRun(boolean value) {
      * 
* * bool dry_run = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearDryRun() { - + dryRun_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2588,12 +2379,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(); } @@ -2602,16 +2393,16 @@ 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 { - return new WriteLogEntriesRequest(input, extensionRegistry); - } - }; + 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 { + return new WriteLogEntriesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2626,4 +2417,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 78% 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 e69969dd7..3ade2e622 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,84 +1,57 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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`:
-   *     "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]"
+   * * `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/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"
+   *     "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.
    * 
* - * - * 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`:
-   *     "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]"
+   * * `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/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"
+   *     "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.
    * 
* - * - * 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:
@@ -88,15 +61,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:
@@ -106,15 +75,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:
@@ -124,14 +89,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
@@ -143,8 +105,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
@@ -154,13 +114,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
@@ -170,10 +132,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
@@ -183,10 +144,11 @@ public interface WriteLogEntriesRequestOrBuilder
    *
    * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
    */
-  java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+  java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      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
@@ -196,11 +158,11 @@ public interface WriteLogEntriesRequestOrBuilder
    *
    * 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
@@ -214,25 +176,22 @@ public interface WriteLogEntriesRequestOrBuilder
    * 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/quota-policy) in
+   * [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/quota-policy) for calls to
+   * [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.
    * 
* - * - * 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
@@ -246,25 +205,21 @@ public interface WriteLogEntriesRequestOrBuilder
    * 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/quota-policy) in
+   * [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/quota-policy) for calls to
+   * [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.
    * 
* - * - * 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
@@ -278,25 +233,21 @@ public interface WriteLogEntriesRequestOrBuilder
    * 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/quota-policy) in
+   * [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/quota-policy) for calls to
+   * [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.
    * 
* - * - * 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
@@ -310,25 +261,22 @@ public interface WriteLogEntriesRequestOrBuilder
    * 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/quota-policy) in
+   * [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/quota-policy) for calls to
+   * [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.
    * 
* - * - * 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
@@ -342,26 +290,23 @@ public interface WriteLogEntriesRequestOrBuilder
    * 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/quota-policy) in
+   * [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/quota-policy) for calls to
+   * [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.
    * 
* - * - * 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 valid entries should be written even if some other
    * entries fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any
@@ -371,14 +316,11 @@ public interface WriteLogEntriesRequestOrBuilder
    * 
* * 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
@@ -386,7 +328,6 @@ public interface WriteLogEntriesRequestOrBuilder
    * 
* * 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 67% 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 fa53a3b88..6d695e355 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,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private WriteLogEntriesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,42 +52,39 @@ private WriteLogEntriesResponse( case 0: done = true; break; - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - 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; @@ -115,7 +96,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 { unknownFields.writeTo(output); } @@ -133,13 +115,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -157,127 +138,118 @@ 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() @@ -285,15 +257,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -301,9 +274,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 @@ -322,8 +295,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; } @@ -332,39 +304,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; @@ -401,9 +372,9 @@ public Builder mergeFrom( } return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -413,12 +384,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(); } @@ -427,16 +398,16 @@ 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 { - return new WriteLogEntriesResponse(input, extensionRegistry); - } - }; + 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 { + return new WriteLogEntriesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -451,4 +422,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 84% 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 index 3ad2cfbb5..997129369 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -24,8 +24,6 @@ import "google/logging/type/log_severity.proto"; import "google/protobuf/any.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; -import "google/rpc/status.proto"; -import "google/api/annotations.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Logging.V2"; @@ -37,8 +35,6 @@ option php_namespace = "Google\\Cloud\\Logging\\V2"; option ruby_package = "Google::Cloud::Logging::V2"; // An individual entry in a log. -// -// message LogEntry { option (google.api.resource) = { type: "logging.googleapis.com/Log" @@ -62,12 +58,13 @@ message LogEntry { // // `[LOG_ID]` must be URL-encoded within `log_name`. Example: // `"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`. + // // `[LOG_ID]` must be less than 512 characters long and can only include the // following characters: upper and lower case alphanumeric characters, // forward-slash, underscore, hyphen, and period. // // For backward compatibility, if `log_name` begins with a forward-slash, such - // as `/projects/...`, then the log entry is ingested as usual but the + // as `/projects/...`, then the log entry is ingested as usual, but the // forward-slash is removed. Listing the log entry will not show the leading // slash and filtering for a log name with a leading slash will never return // any results. @@ -126,7 +123,7 @@ message LogEntry { // de-duplication in the export of logs. // // If the `insert_id` is omitted when writing a log entry, the Logging API - // assigns its own unique identifier in this field. + // assigns its own unique identifier in this field. // // In queries, the `insert_id` is also used to order log entries that have // the same `log_name` and `timestamp` values. @@ -136,8 +133,20 @@ message LogEntry { // applicable. google.logging.type.HttpRequest http_request = 7 [(google.api.field_behavior) = OPTIONAL]; - // Optional. A set of user-defined (key, value) data that provides additional - // information about the log entry. + // Optional. A map of key, value pairs that provides additional information about the + // log entry. The labels can be user-defined or system-defined. + // + // User-defined labels are arbitrary key, value pairs that you can use to + // classify logs. + // + // System-defined labels are defined by GCP services for platform logs. + // They have two components - a service namespace component and the + // attribute name. For example: `compute.googleapis.com/resource_name`. + // + // Cloud Logging truncates label keys that exceed 512 B and label + // values that exceed 64 KB upon their associated log entry being + // written. The truncation is indicated by an ellipsis at the + // end of the character string. map labels = 11 [(google.api.field_behavior) = OPTIONAL]; // Optional. Information about an operation associated with the log entry, if @@ -168,6 +177,10 @@ message LogEntry { // Optional. Source code location information associated with the log entry, if any. LogEntrySourceLocation source_location = 23 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Information indicating this LogEntry is part of a sequence of multiple log + // entries split from a single LogEntry. + LogSplit split = 35 [(google.api.field_behavior) = OPTIONAL]; } // Additional information about a potentially long-running operation with which @@ -208,3 +221,21 @@ message LogEntrySourceLocation { // (Python). string function = 3 [(google.api.field_behavior) = OPTIONAL]; } + +// Additional information used to correlate multiple log entries. Used when a +// single LogEntry would exceed the Google Cloud Logging size limit and is +// split across multiple log entries. +message LogSplit { + // 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 + // part of the same sequence of split log entries. + string uid = 1; + + // 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 + // entries. + int32 index = 2; + + // The total number of log entries that the original LogEntry was split into. + int32 total_splits = 3; +} 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 84% 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 index f8b01a71e..b7f4f189d 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,18 +16,15 @@ syntax = "proto3"; package google.logging.v2; +import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/monitored_resource.proto"; import "google/api/resource.proto"; import "google/logging/v2/log_entry.proto"; -import "google/logging/v2/logging_config.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/empty.proto"; -import "google/protobuf/field_mask.proto"; -import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; -import "google/api/annotations.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Logging.V2"; @@ -48,10 +45,10 @@ service LoggingServiceV2 { "https://www.googleapis.com/auth/logging.read," "https://www.googleapis.com/auth/logging.write"; - // Deletes all the log entries in a log. 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. + // 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. rpc DeleteLog(DeleteLogRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v2/{log_name=projects/*/logs/*}" @@ -140,14 +137,15 @@ service LoggingServiceV2 { message DeleteLogRequest { // 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]" + // * `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/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`. + // `"organizations/123/logs/cloudaudit.googleapis.com%2Factivity"`. + // // For more information about log names, see // [LogEntry][google.logging.v2.LogEntry]. string log_name = 1 [ @@ -163,15 +161,15 @@ message WriteLogEntriesRequest { // 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]" + // * `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/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity" + // "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 @@ -214,14 +212,14 @@ message WriteLogEntriesRequest { // 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/quota-policy) in + // [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/quota-policy) for calls to + // [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. repeated LogEntry entries = 4 [(google.api.field_behavior) = REQUIRED]; @@ -240,7 +238,9 @@ message WriteLogEntriesRequest { } // Result returned from WriteLogEntries. -message WriteLogEntriesResponse {} +message WriteLogEntriesResponse { + +} // Error details for WriteLogEntries with partial success. message WriteLogEntriesPartialErrors { @@ -258,16 +258,17 @@ message ListLogEntriesRequest { // 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]" + // * `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] - // organization/[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] + // 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. repeated string resource_names = 8 [ @@ -294,10 +295,10 @@ message ListLogEntriesRequest { // timestamps are returned in order of their `insert_id` values. string order_by = 3 [(google.api.field_behavior) = OPTIONAL]; - // 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 rejected. The presence of `next_page_token` in the - // response indicates that more results might be available. + // 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 rejected. The + // presence of `next_page_token` in the response indicates that more results + // might be available. int32 page_size = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. If present, then retrieve the next batch of results from the @@ -356,10 +357,10 @@ message ListMonitoredResourceDescriptorsResponse { message ListLogsRequest { // Required. The resource name that owns the logs: // - // "projects/[PROJECT_ID]" - // "organizations/[ORGANIZATION_ID]" - // "billingAccounts/[BILLING_ACCOUNT_ID]" - // "folders/[FOLDER_ID]" + // * `projects/[PROJECT_ID]` + // * `organizations/[ORGANIZATION_ID]` + // * `billingAccounts/[BILLING_ACCOUNT_ID]` + // * `folders/[FOLDER_ID]` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -379,17 +380,24 @@ message ListLogsRequest { string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; // Optional. The resource name that owns the logs: - // projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] - // organization/[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/[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]` // // To support legacy queries, it could also be: - // "projects/[PROJECT_ID]" - // "organizations/[ORGANIZATION_ID]" - // "billingAccounts/[BILLING_ACCOUNT_ID]" - // "folders/[FOLDER_ID]" - repeated string resource_names = 8 [(google.api.field_behavior) = OPTIONAL]; + // + // * `projects/[PROJECT_ID]` + // * `organizations/[ORGANIZATION_ID]` + // * `billingAccounts/[BILLING_ACCOUNT_ID]` + // * `folders/[FOLDER_ID]` + repeated string resource_names = 8 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + child_type: "logging.googleapis.com/Log" + } + ]; } // Result returned from ListLogs. @@ -409,16 +417,17 @@ message ListLogsResponse { message TailLogEntriesRequest { // Required. Name of a parent resource from which to retrieve log entries: // - // "projects/[PROJECT_ID]" - // "organizations/[ORGANIZATION_ID]" - // "billingAccounts/[BILLING_ACCOUNT_ID]" - // "folders/[FOLDER_ID]" + // * `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]" - // "organization/[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/[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]` repeated string resource_names = 1 [(google.api.field_behavior) = REQUIRED]; // Optional. A filter that chooses which log entries to return. See [Advanced 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 68% 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 index 9b10932d6..ef0024063 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,14 +16,14 @@ syntax = "proto3"; package google.logging.v2; +import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -import "google/protobuf/duration.proto"; +import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; -import "google/api/annotations.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Logging.V2"; @@ -55,7 +55,7 @@ service ConfigServiceV2 { "https://www.googleapis.com/auth/logging.admin," "https://www.googleapis.com/auth/logging.read"; - // Lists buckets. + // Lists log buckets. rpc ListBuckets(ListBucketsRequest) returns (ListBucketsResponse) { option (google.api.http) = { get: "/v2/{parent=*/*/locations/*}/buckets" @@ -75,7 +75,7 @@ service ConfigServiceV2 { option (google.api.method_signature) = "parent"; } - // Gets a bucket. + // Gets a log bucket. rpc GetBucket(GetBucketRequest) returns (LogBucket) { option (google.api.http) = { get: "/v2/{name=*/*/locations/*/buckets/*}" @@ -94,8 +94,8 @@ service ConfigServiceV2 { }; } - // Creates a bucket that can be used to store log entries. Once a bucket has - // been created, the region cannot be changed. + // 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. rpc CreateBucket(CreateBucketRequest) returns (LogBucket) { option (google.api.http) = { post: "/v2/{parent=*/*/locations/*}/buckets" @@ -119,16 +119,16 @@ service ConfigServiceV2 { }; } - // Updates a bucket. This method replaces the following fields in the + // Updates a log bucket. This method replaces the following fields in the // existing bucket with values from the new bucket: `retention_period` // // If the retention period is decreased and the bucket is locked, - // FAILED_PRECONDITION will be returned. + // `FAILED_PRECONDITION` will be returned. // - // If the bucket has a LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION - // will be returned. + // If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then + // `FAILED_PRECONDITION` will be returned. // - // A buckets region may not be modified after it is created. + // After a bucket has been created, the bucket's location cannot be changed. rpc UpdateBucket(UpdateBucketRequest) returns (LogBucket) { option (google.api.http) = { patch: "/v2/{name=*/*/locations/*/buckets/*}" @@ -152,10 +152,11 @@ service ConfigServiceV2 { }; } - // Deletes a bucket. - // Moves the bucket to the DELETE_REQUESTED state. After 7 days, the - // bucket will be purged and all logs in the bucket will be permanently - // deleted. + // 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. rpc DeleteBucket(DeleteBucketRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v2/{name=*/*/locations/*/buckets/*}" @@ -174,8 +175,8 @@ service ConfigServiceV2 { }; } - // Undeletes a bucket. A bucket that has been deleted may be undeleted within - // the grace period of 7 days. + // Undeletes a log bucket. A bucket that has been deleted can be undeleted + // within the grace period of 7 days. rpc UndeleteBucket(UndeleteBucketRequest) returns (google.protobuf.Empty) { option (google.api.http) = { post: "/v2/{name=*/*/locations/*/buckets/*}:undelete" @@ -199,7 +200,7 @@ service ConfigServiceV2 { }; } - // Lists views on a bucket. + // Lists views on a log bucket. rpc ListViews(ListViewsRequest) returns (ListViewsResponse) { option (google.api.http) = { get: "/v2/{parent=*/*/locations/*/buckets/*}/views" @@ -219,7 +220,7 @@ service ConfigServiceV2 { option (google.api.method_signature) = "parent"; } - // Gets a view. + // Gets a view on a log bucket.. rpc GetView(GetViewRequest) returns (LogView) { option (google.api.http) = { get: "/v2/{name=*/*/locations/*/buckets/*/views/*}" @@ -238,8 +239,8 @@ service ConfigServiceV2 { }; } - // Creates a view over logs in a bucket. A bucket may contain a maximum of - // 50 views. + // Creates a view over log entries in a log bucket. A bucket may contain a + // maximum of 30 views. rpc CreateView(CreateViewRequest) returns (LogView) { option (google.api.http) = { post: "/v2/{parent=*/*/locations/*/buckets/*}/views" @@ -263,8 +264,11 @@ service ConfigServiceV2 { }; } - // Updates a view. This method replaces the following fields in the existing - // view with values from the new view: `filter`. + // 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. rpc UpdateView(UpdateViewRequest) returns (LogView) { option (google.api.http) = { patch: "/v2/{name=*/*/locations/*/buckets/*/views/*}" @@ -288,7 +292,10 @@ service ConfigServiceV2 { }; } - // Deletes a view from a bucket. + // 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. rpc DeleteView(DeleteViewRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v2/{name=*/*/locations/*/buckets/*/views/*}" @@ -442,7 +449,7 @@ service ConfigServiceV2 { option (google.api.method_signature) = "sink_name"; } - // Lists all the exclusions in a parent resource. + // Lists all the exclusions on the _Default sink in a parent resource. rpc ListExclusions(ListExclusionsRequest) returns (ListExclusionsResponse) { option (google.api.http) = { get: "/v2/{parent=*/*}/exclusions" @@ -462,7 +469,7 @@ service ConfigServiceV2 { option (google.api.method_signature) = "parent"; } - // Gets the description of an exclusion. + // Gets the description of an exclusion in the _Default sink. rpc GetExclusion(GetExclusionRequest) returns (LogExclusion) { option (google.api.http) = { get: "/v2/{name=*/*/exclusions/*}" @@ -482,9 +489,9 @@ service ConfigServiceV2 { option (google.api.method_signature) = "name"; } - // Creates a new exclusion 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. + // 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. rpc CreateExclusion(CreateExclusionRequest) returns (LogExclusion) { option (google.api.http) = { post: "/v2/{parent=*/*}/exclusions" @@ -509,7 +516,8 @@ service ConfigServiceV2 { option (google.api.method_signature) = "parent,exclusion"; } - // Changes one or more properties of an existing exclusion. + // Changes one or more properties of an existing exclusion in the _Default + // sink. rpc UpdateExclusion(UpdateExclusionRequest) returns (LogExclusion) { option (google.api.http) = { patch: "/v2/{name=*/*/exclusions/*}" @@ -534,7 +542,7 @@ service ConfigServiceV2 { option (google.api.method_signature) = "name,exclusion,update_mask"; } - // Deletes an exclusion. + // Deletes an exclusion in the _Default sink. rpc DeleteExclusion(DeleteExclusionRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v2/{name=*/*/exclusions/*}" @@ -554,29 +562,39 @@ service ConfigServiceV2 { option (google.api.method_signature) = "name"; } - // Gets the Logs Router CMEK settings for the given resource. + // Gets the Logging CMEK settings for the given resource. // - // Note: CMEK for the Logs Router can currently only be configured for GCP - // organizations. Once configured, it applies to all projects and folders in - // the GCP organization. + // 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 Logs + // See [Enabling CMEK for Log // Router](https://cloud.google.com/logging/docs/routing/managed-encryption) // for more information. rpc GetCmekSettings(GetCmekSettingsRequest) returns (CmekSettings) { option (google.api.http) = { get: "/v2/{name=*/*}/cmekSettings" + additional_bindings { + get: "/v2/{name=projects/*}/cmekSettings" + } additional_bindings { get: "/v2/{name=organizations/*}/cmekSettings" } + additional_bindings { + get: "/v2/{name=folders/*}/cmekSettings" + } + additional_bindings { + get: "/v2/{name=billingAccounts/*}/cmekSettings" + } }; } - // Updates the Logs Router CMEK settings for the given resource. + // Updates the Log Router CMEK settings for the given resource. // - // Note: CMEK for the Logs Router can currently only be configured for GCP - // organizations. Once configured, it applies to all projects and folders in - // the GCP organization. + // 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 @@ -584,7 +602,7 @@ service ConfigServiceV2 { // `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or // 3) access to the key is disabled. // - // See [Enabling CMEK for Logs + // See [Enabling CMEK for Log // Router](https://cloud.google.com/logging/docs/routing/managed-encryption) // for more information. rpc UpdateCmekSettings(UpdateCmekSettingsRequest) returns (CmekSettings) { @@ -597,9 +615,82 @@ service ConfigServiceV2 { } }; } + + // 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. + rpc GetSettings(GetSettingsRequest) returns (Settings) { + option (google.api.http) = { + get: "/v2/{name=*/*}/settings" + additional_bindings { + get: "/v2/{name=projects/*}/settings" + } + additional_bindings { + get: "/v2/{name=organizations/*}/settings" + } + additional_bindings { + get: "/v2/{name=folders/*}/settings" + } + additional_bindings { + get: "/v2/{name=billingAccounts/*}/settings" + } + }; + option (google.api.method_signature) = "name"; + } + + // 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. + rpc UpdateSettings(UpdateSettingsRequest) returns (Settings) { + option (google.api.http) = { + patch: "/v2/{name=*/*}/settings" + body: "settings" + additional_bindings { + patch: "/v2/{name=organizations/*}/settings" + body: "settings" + } + additional_bindings { + patch: "/v2/{name=folders/*}/settings" + body: "settings" + } + }; + option (google.api.method_signature) = "settings,update_mask"; + } + + // Copies a set of log entries from a log bucket to a Cloud Storage bucket. + rpc CopyLogEntries(CopyLogEntriesRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v2/entries:copy" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "CopyLogEntriesResponse" + metadata_type: "CopyLogEntriesMetadata" + }; + } } -// Describes a repository of logs. +// Describes a repository in which log entries are stored. message LogBucket { option (google.api.resource) = { type: "logging.googleapis.com/LogBucket" @@ -609,16 +700,20 @@ message LogBucket { pattern: "billingAccounts/{billing_account}/locations/{location}/buckets/{bucket}" }; - // The resource name of the bucket. + // Output only. The resource name of the bucket. + // // For example: - // "projects/my-project-id/locations/my-location/buckets/my-bucket-id The - // supported locations are: - // "global" // - // For the location of `global` it is unspecified where logs are actually - // stored. - // Once a bucket has been created, the location can not be changed. - string name = 1; + // `projects/my-project/locations/global/buckets/my-bucket` + // + // For a list of supported locations, see [Supported + // Regions](https://cloud.google.com/logging/docs/region-support) + // + // For the location of `global` it is unspecified where log entries are + // actually stored. + // + // After a bucket has been created, the location cannot be changed. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Describes this bucket. string description = 3; @@ -631,34 +726,38 @@ message LogBucket { google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; // 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 this value is set to zero at bucket creation time, the default time of - // 30 days will be used. + // will automatically be deleted. The minimum retention period is 1 day. If + // this value is set to zero at bucket creation time, the default time of 30 + // days will be used. int32 retention_days = 11; - // Whether the bucket has been locked. - // The retention period on a locked bucket may not be changed. - // Locked buckets may only be deleted if they are empty. + // Whether the bucket is locked. + // + // The retention period on a locked bucket cannot be changed. Locked buckets + // may only be deleted if they are empty. bool locked = 9; // Output only. The bucket lifecycle state. LifecycleState lifecycle_state = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; -} -// LogBucket lifecycle states. -enum LifecycleState { - // Unspecified state. This is only used/useful for distinguishing - // unset values. - LIFECYCLE_STATE_UNSPECIFIED = 0; - - // The normal and active state. - ACTIVE = 1; + // Log entry field paths that are denied access in this bucket. + // + // The following fields and their children are eligible: `textPayload`, + // `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`. + // + // Restricting a repeated field will restrict all values. Adding a parent will + // block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`) + repeated string restricted_fields = 15; - // The bucket has been marked for deletion by the user. - DELETE_REQUESTED = 2; + // 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 + // configuration. If a log bucket has CMEK settings, the CMEK settings cannot + // be disabled later by updating the log bucket. Changing the KMS key is + // allowed. + CmekSettings cmek_settings = 19; } -// Describes a view over logs in a bucket. +// Describes a view over log entries in a bucket. message LogView { option (google.api.resource) = { type: "logging.googleapis.com/LogView" @@ -669,8 +768,10 @@ message LogView { }; // The resource name of the view. - // For example - // "projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view + // + // For example: + // + // `projects/my-project/locations/global/buckets/my-bucket/views/my-view` string name = 1; // Describes this view. @@ -683,21 +784,27 @@ message LogView { google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; // Filter that restricts which log entries in a bucket are visible in this - // view. Filters are restricted to be a logical AND of ==/!= of any of the + // view. + // + // Filters are restricted to be a logical AND of ==/!= of any of the // following: - // originating project/folder/organization/billing account. - // resource type - // log id - // Example: SOURCE("projects/myproject") AND resource.type = "gce_instance" - // AND LOG_ID("stdout") + // + // - originating project/folder/organization/billing account. + // - resource type + // - log id + // + // For example: + // + // SOURCE("projects/myproject") AND resource.type = "gce_instance" + // AND LOG_ID("stdout") string filter = 7; } // Describes a sink used to export log entries to one of the following -// destinations in any project: a Cloud Storage bucket, a BigQuery dataset, or a -// Cloud Pub/Sub topic. A logs filter controls which log entries are exported. -// The sink must be created within a project, organization, billing account, or -// folder. +// destinations in any project: a Cloud Storage bucket, a BigQuery dataset, a +// Pub/Sub topic or a Cloud Logging log bucket. A logs filter controls which log +// entries are exported. The sink must be created within a project, +// organization, billing account, or folder. message LogSink { option (google.api.resource) = { type: "logging.googleapis.com/LogSink" @@ -719,9 +826,10 @@ message LogSink { V1 = 2; } - // Required. The client-assigned sink identifier, unique within the project. Example: - // `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited to 100 - // characters and can include only the following characters: upper and + // Required. The client-assigned sink identifier, unique within the project. + // + // For example: `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited + // to 100 characters and can include only the following characters: upper and // lower-case alphanumeric characters, underscores, hyphens, and periods. // First character has to be alphanumeric. string name = 1 [(google.api.field_behavior) = REQUIRED]; @@ -732,9 +840,9 @@ message LogSink { // "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]" // "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]" // - // The sink's `writer_identity`, set when the sink is created, must - // have permission to write to the destination or else the log - // entries are not exported. For more information, see + // The sink's `writer_identity`, set when the sink is created, must have + // permission to write to the destination or else the log entries are not + // exported. For more information, see // [Exporting Logs with // Sinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). string destination = 3 [ @@ -747,20 +855,24 @@ message LogSink { // Optional. An [advanced logs // filter](https://cloud.google.com/logging/docs/view/advanced-queries). The // only exported log entries are those that are in the resource owning the - // sink and that match the filter. For example: + // sink and that match the filter. + // + // For example: // - // logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR + // `logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR` string filter = 5 [(google.api.field_behavior) = OPTIONAL]; // Optional. A description of this sink. + // // The maximum length of the description is 8000 characters. string description = 18 [(google.api.field_behavior) = OPTIONAL]; - // Optional. If set to True, then this sink is disabled and it does not - // export any log entries. + // 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]; - // Optional. Log entries that match any of the exclusion filters will not be exported. + // Optional. Log entries that match any of these exclusion filters will not be exported. + // // If a log entry is matched by both `filter` and one of `exclusion_filters` // it will not be exported. repeated LogExclusion exclusions = 16 [(google.api.field_behavior) = OPTIONAL]; @@ -768,33 +880,42 @@ message LogSink { // Deprecated. This field is unused. VersionFormat output_version_format = 6 [deprecated = true]; - // Output only. An IAM identity—a service account or group—under which Logging - // writes the exported log entries to the sink's destination. This field is - // set by [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] and + // Output only. An IAM identity—a service account or group—under which Cloud + // Logging writes the exported log entries to the sink's destination. This + // field is set by + // [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] and // [sinks.update][google.logging.v2.ConfigServiceV2.UpdateSink] based on the // value of `unique_writer_identity` in those methods. // // Until you grant this identity write-access to the destination, log entry - // exports from this sink will fail. For more information, - // see [Granting Access for a + // exports from this sink will fail. For more information, see [Granting + // Access for a // Resource](https://cloud.google.com/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource). // Consult the destination service's documentation to determine the // appropriate IAM roles to assign to the identity. + // + // Sinks that have a destination that is a log bucket in the same project as + // the sink do not have a writer_identity and no additional permissions are + // required. string writer_identity = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - // 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 - // sink's parent resource are available for export. If the field is true, then - // logs from all the projects, folders, and billing accounts contained in the + // 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 sink's parent + // resource are available for export. If the field is true, then log entries + // from all the projects, folders, and billing accounts contained in the // sink's parent resource are also available for export. Whether a particular // log entry from the children is exported depends on the sink's filter - // expression. For example, if this field is true, then the filter + // expression. + // + // For example, if this field is true, then the filter // `resource.type=gce_instance` would export all Compute Engine VM instance - // log entries from all projects in the sink's parent. To only export entries - // from certain child projects, filter on the project part of the log name: + // log entries from all projects in the sink's parent. + // + // To only export entries from certain child projects, filter on the project + // part of the log name: // - // logName:("projects/test-project1/" OR "projects/test-project2/") AND - // resource.type=gce_instance + // logName:("projects/test-project1/" OR "projects/test-project2/") AND + // resource.type=gce_instance bool include_children = 9 [(google.api.field_behavior) = OPTIONAL]; // Destination dependent options. @@ -818,16 +939,17 @@ message LogSink { message BigQueryOptions { // Optional. Whether to use [BigQuery's partition // tables](https://cloud.google.com/bigquery/docs/partitioned-tables). By - // default, Logging creates dated tables based on the log entries' timestamps, - // e.g. syslog_20170523. With partitioned tables the date suffix is no longer - // present and [special query + // default, Cloud Logging creates dated tables based on the log entries' + // timestamps, e.g. syslog_20170523. With partitioned tables the date suffix + // is no longer present and [special query // syntax](https://cloud.google.com/bigquery/docs/querying-partitioned-tables) // has to be used instead. In both cases, tables are sharded based on UTC // timezone. bool use_partitioned_tables = 1 [(google.api.field_behavior) = OPTIONAL]; - // Output only. True if new timestamp column based partitioning is in use, - // false if legacy ingestion-time partitioning is in use. + // Output only. True if new timestamp column based partitioning is in use, false if legacy + // ingestion-time partitioning is in use. + // // All new sinks will have this field set true and will use timestamp column // based partitioning. If use_partitioned_tables is false, this value has no // meaning and will be false. Legacy sinks using partitioned tables will have @@ -854,15 +976,15 @@ message ListBucketsRequest { } ]; - // Optional. If present, then retrieve the next batch of results from the - // preceding call to this method. `pageToken` must be the value of - // `nextPageToken` from the previous response. The values of other method - // parameters should be identical to those in the previous call. + // Optional. If present, then retrieve the next batch of results from the preceding call + // to this method. `pageToken` must be the value of `nextPageToken` from the + // previous response. The values of other method parameters should be + // identical to those in the previous call. string page_token = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The maximum number of results to return from this request. - // Non-positive values are ignored. The presence of `nextPageToken` in the - // response indicates that more results might be available. + // Optional. The maximum number of results to return from this request. Non-positive + // values are ignored. The presence of `nextPageToken` in the response + // indicates that more results might be available. int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; } @@ -879,11 +1001,13 @@ message ListBucketsResponse { // The parameters to `CreateBucket`. message CreateBucketRequest { - // Required. The resource in which to create the bucket: + // Required. The resource in which to create the log bucket: // // "projects/[PROJECT_ID]/locations/[LOCATION_ID]" // - // Example: `"projects/my-logging-project/locations/global"` + // For example: + // + // `"projects/my-project/locations/global"` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -891,9 +1015,9 @@ message CreateBucketRequest { } ]; - // Required. A client-assigned identifier such as `"my-bucket"`. Identifiers are - // limited to 100 characters and can include only letters, digits, - // underscores, hyphens, and periods. + // Required. A client-assigned identifier such as `"my-bucket"`. Identifiers are limited + // to 100 characters and can include only letters, digits, underscores, + // hyphens, and periods. string bucket_id = 2 [(google.api.field_behavior) = REQUIRED]; // Required. The new bucket. The region specified in the new bucket must be compliant @@ -911,10 +1035,9 @@ message UpdateBucketRequest { // "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" // "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" // - // Example: - // `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`. Also - // requires permission "resourcemanager.projects.updateLiens" to set the - // locked property + // For example: + // + // `"projects/my-project/locations/global/buckets/my-bucket"` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -926,13 +1049,13 @@ message UpdateBucketRequest { LogBucket bucket = 2 [(google.api.field_behavior) = REQUIRED]; // 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 update - // mask. `name` and output only fields cannot be updated. + // bucket field will be overwritten if, and only if, it is in the update mask. + // `name` and output only fields cannot be updated. // - // For a detailed `FieldMask` definition, see + // For a detailed `FieldMask` definition, see: // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask // - // Example: `updateMask=retention_days`. + // For example: `updateMask=retention_days` google.protobuf.FieldMask update_mask = 4 [(google.api.field_behavior) = REQUIRED]; } @@ -945,8 +1068,9 @@ message GetBucketRequest { // "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" // "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" // - // Example: - // `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`. + // For example: + // + // `"projects/my-project/locations/global/buckets/my-bucket"` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -964,8 +1088,9 @@ message DeleteBucketRequest { // "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" // "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" // - // Example: - // `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`. + // For example: + // + // `"projects/my-project/locations/global/buckets/my-bucket"` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -983,8 +1108,9 @@ message UndeleteBucketRequest { // "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" // "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" // - // Example: - // `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`. + // For example: + // + // `"projects/my-project/locations/global/buckets/my-bucket"` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1000,13 +1126,14 @@ message ListViewsRequest { // "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" string parent = 1 [(google.api.field_behavior) = REQUIRED]; - // Optional. If present, then retrieve the next batch of results from the - // preceding call to this method. `pageToken` must be the value of - // `nextPageToken` from the previous response. The values of other method - // parameters should be identical to those in the previous call. + // Optional. If present, then retrieve the next batch of results from the preceding call + // to this method. `pageToken` must be the value of `nextPageToken` from the + // previous response. The values of other method parameters should be + // identical to those in the previous call. string page_token = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. The maximum number of results to return from this request. + // // Non-positive values are ignored. The presence of `nextPageToken` in the // response indicates that more results might be available. int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; @@ -1027,10 +1154,11 @@ message ListViewsResponse { message CreateViewRequest { // Required. The bucket in which to create the view // - // "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + // `"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"` + // + // For example: // - // Example: - // `"projects/my-logging-project/locations/my-location/buckets/my-bucket"` + // `"projects/my-project/locations/global/buckets/my-bucket"` string parent = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The id to use for this view. @@ -1046,8 +1174,9 @@ message UpdateViewRequest { // // "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" // - // Example: - // `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`. + // For example: + // + // `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"` string name = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The updated view. @@ -1060,7 +1189,7 @@ message UpdateViewRequest { // For a detailed `FieldMask` definition, see // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask // - // Example: `updateMask=filter`. + // For example: `updateMask=filter` google.protobuf.FieldMask update_mask = 4 [(google.api.field_behavior) = OPTIONAL]; } @@ -1070,8 +1199,9 @@ message GetViewRequest { // // "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" // - // Example: - // `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-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) = { @@ -1086,8 +1216,9 @@ message DeleteViewRequest { // // "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" // - // Example: - // `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-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) = { @@ -1143,7 +1274,9 @@ message GetSinkRequest { // "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" // "folders/[FOLDER_ID]/sinks/[SINK_ID]" // - // Example: `"projects/my-project-id/sinks/my-sink-id"`. + // For example: + // + // `"projects/my-project/sinks/my-sink"` string sink_name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1161,7 +1294,10 @@ message CreateSinkRequest { // "billingAccounts/[BILLING_ACCOUNT_ID]" // "folders/[FOLDER_ID]" // - // Examples: `"projects/my-logging-project"`, `"organizations/123456789"`. + // For examples: + // + // `"projects/my-project"` + // `"organizations/123456789"` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1176,9 +1312,9 @@ message CreateSinkRequest { // 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 // sink's parent is a project, then the value returned as `writer_identity` is - // the same group or service account used by Logging before the addition of - // writer identities to this API. The sink's destination must be in the same - // project as the sink itself. + // the same group or service account used by Cloud Logging before the addition + // of writer identities to this API. The sink's destination must be in the + // same project as the sink itself. // // If this field is set to true, or if the sink is owned by a non-project // resource such as an organization, then the value of `writer_identity` will @@ -1197,7 +1333,9 @@ message UpdateSinkRequest { // "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" // "folders/[FOLDER_ID]/sinks/[SINK_ID]" // - // Example: `"projects/my-project-id/sinks/my-sink-id"`. + // For example: + // + // `"projects/my-project/sinks/my-sink"` string sink_name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1226,16 +1364,18 @@ message UpdateSinkRequest { // 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 + // An empty `updateMask` is temporarily treated as using the following mask // for backwards compatibility purposes: - // destination,filter,includeChildren + // + // `destination,filter,includeChildren` + // // At some point in the future, behavior will be removed and specifying an - // empty updateMask will be an error. + // 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 // - // Example: `updateMask=filter`. + // For example: `updateMask=filter` google.protobuf.FieldMask update_mask = 4 [(google.api.field_behavior) = OPTIONAL]; } @@ -1249,7 +1389,9 @@ message DeleteSinkRequest { // "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" // "folders/[FOLDER_ID]/sinks/[SINK_ID]" // - // Example: `"projects/my-project-id/sinks/my-sink-id"`. + // For example: + // + // `"projects/my-project/sinks/my-sink"` string sink_name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1258,12 +1400,11 @@ message DeleteSinkRequest { ]; } -// Specifies a set of log entries that are not to be stored in -// Logging. If your GCP resource receives a large volume of logs, you can -// use exclusions to reduce your chargeable logs. Exclusions are -// processed after log sinks, so you can export log entries before they are -// excluded. Note that organization-level and folder-level exclusions don't -// apply to child resources, and that you can't exclude audit log entries. +// 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 +// use exclusions to reduce your chargeable logs. Note that exclusions on +// organization-level and folder-level sinks don't apply to child resources. +// Note also that you cannot modify the _Required sink or exclude logs from it. message LogExclusion { option (google.api.resource) = { type: "logging.googleapis.com/LogExclusion" @@ -1287,10 +1428,11 @@ message LogExclusion { // matches the log entries to be excluded. By using the [sample // function](https://cloud.google.com/logging/docs/view/advanced-queries#sample), // you can exclude less than 100% of the matching log entries. - // For example, the following query matches 99% of low-severity log - // entries from Google Cloud Storage buckets: // - // `"resource.type=gcs_bucket severity - * 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]" - * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`. - *
- * - * - * 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:
-   *     "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]"
-   * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/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 de3ddd153..000000000 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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/DeleteLogRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequestOrBuilder.java deleted file mode 100644 index b7365fb14..000000000 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequestOrBuilder.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 - // @@protoc_insertion_point(interface_extends:google.logging.v2.DeleteLogRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * 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/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
-   * For more information about log names, see
-   * [LogEntry][google.logging.v2.LogEntry].
-   * 
- * - * - * 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:
-   *     "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/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
-   * For more information about log names, see
-   * [LogEntry][google.logging.v2.LogEntry].
-   * 
- * - * - * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for logName. - */ - com.google.protobuf.ByteString getLogNameBytes(); -} 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 5e9385db1..000000000 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequestOrBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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]"
-   * Example:
-   *    `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`.
-   * 
- * - * - * 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]"
-   * Example:
-   *    `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/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 deleted file mode 100644 index f1be32ee6..000000000 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequestOrBuilder.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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 - // @@protoc_insertion_point(interface_extends:google.logging.v2.GetCmekSettingsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource for which to retrieve CMEK settings.
-   *     "projects/[PROJECT_ID]/cmekSettings"
-   *     "organizations/[ORGANIZATION_ID]/cmekSettings"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
-   *     "folders/[FOLDER_ID]/cmekSettings"
-   * Example: `"organizations/12345/cmekSettings"`.
-   * Note: CMEK for the Logs Router can currently only be configured for GCP
-   * organizations. Once configured, it applies to all projects and folders in
-   * the GCP organization.
-   * 
- * - * - * 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.
-   *     "projects/[PROJECT_ID]/cmekSettings"
-   *     "organizations/[ORGANIZATION_ID]/cmekSettings"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
-   *     "folders/[FOLDER_ID]/cmekSettings"
-   * Example: `"organizations/12345/cmekSettings"`.
-   * Note: CMEK for the Logs Router can currently only be configured for GCP
-   * organizations. Once configured, it applies to all projects and folders in
-   * the GCP organization.
-   * 
- * - * - * 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/GetExclusionRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequestOrBuilder.java deleted file mode 100644 index 7feee62f5..000000000 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequestOrBuilder.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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 - // @@protoc_insertion_point(interface_extends:google.logging.v2.GetExclusionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * 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]"
-   * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
-   * 
- * - * - * 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:
-   *     "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]"
-   * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/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 764dc3838..000000000 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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/GetSinkRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequestOrBuilder.java deleted file mode 100644 index 11bacc6e3..000000000 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequestOrBuilder.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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 - // @@protoc_insertion_point(interface_extends:google.logging.v2.GetSinkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * 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]"
-   * Example: `"projects/my-project-id/sinks/my-sink-id"`.
-   * 
- * - * - * 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:
-   *     "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]"
-   * Example: `"projects/my-project-id/sinks/my-sink-id"`.
-   * 
- * - * - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for sinkName. - */ - com.google.protobuf.ByteString getSinkNameBytes(); -} 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 76cf02e7e..000000000 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequestOrBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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]"
-   * Example:
-   * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`.
-   * 
- * - * - * 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]"
-   * Example:
-   * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/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 deleted file mode 100644 index a194cf472..000000000 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequestOrBuilder.java +++ /dev/null @@ -1,195 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 - // @@protoc_insertion_point(interface_extends:google.logging.v2.ListLogsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name that owns the logs:
-   *     "projects/[PROJECT_ID]"
-   *     "organizations/[ORGANIZATION_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-   *     "folders/[FOLDER_ID]"
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The resource name that owns the logs:
-   *     "projects/[PROJECT_ID]"
-   *     "organizations/[ORGANIZATION_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-   *     "folders/[FOLDER_ID]"
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Optional. The maximum number of results to return from this request.
-   * Non-positive values are ignored.  The presence of `nextPageToken` in the
-   * response indicates that more results might be available.
-   * 
- * - * 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
-   * `nextPageToken` from the previous response.  The values of other method
-   * parameters should be identical to those in the previous call.
-   * 
- * - * 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
-   * `nextPageToken` from the previous response.  The values of other method
-   * parameters should be identical to those in the previous call.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); - - /** - * - * - *
-   * Optional. The resource name that owns the logs:
-   *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   organization/[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]
-   * To support legacy queries, it could also be:
-   *     "projects/[PROJECT_ID]"
-   *     "organizations/[ORGANIZATION_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-   *     "folders/[FOLDER_ID]"
-   * 
- * - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the resourceNames. - */ - java.util.List getResourceNamesList(); - /** - * - * - *
-   * Optional. The resource name that owns the logs:
-   *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   organization/[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]
-   * To support legacy queries, it could also be:
-   *     "projects/[PROJECT_ID]"
-   *     "organizations/[ORGANIZATION_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-   *     "folders/[FOLDER_ID]"
-   * 
- * - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of resourceNames. - */ - int getResourceNamesCount(); - /** - * - * - *
-   * Optional. The resource name that owns the logs:
-   *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   organization/[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]
-   * To support legacy queries, it could also be:
-   *     "projects/[PROJECT_ID]"
-   *     "organizations/[ORGANIZATION_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-   *     "folders/[FOLDER_ID]"
-   * 
- * - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The resourceNames at the given index. - */ - java.lang.String getResourceNames(int index); - /** - * - * - *
-   * Optional. The resource name that owns the logs:
-   *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   organization/[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]
-   * To support legacy queries, it could also be:
-   *     "projects/[PROJECT_ID]"
-   *     "organizations/[ORGANIZATION_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-   *     "folders/[FOLDER_ID]"
-   * 
- * - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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); -} diff --git a/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 deleted file mode 100644 index 9f43c657d..000000000 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucket.java +++ /dev/null @@ -1,1821 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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 of logs.
- * 
- * - * Protobuf type {@code google.logging.v2.LogBucket} - */ -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; - // Use LogBucket.newBuilder() to construct. - private LogBucket(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private LogBucket() { - name_ = ""; - description_ = ""; - lifecycleState_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new LogBucket(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private LogBucket( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 34: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); - } - updateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); - } - - break; - } - case 72: - { - locked_ = input.readBool(); - break; - } - case 88: - { - retentionDays_ = input.readInt32(); - break; - } - case 96: - { - int rawValue = input.readEnum(); - - lifecycleState_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - 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 - .ensureFieldAccessorsInitialized( - com.google.logging.v2.LogBucket.class, com.google.logging.v2.LogBucket.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * The resource name of the bucket.
-   * For example:
-   * "projects/my-project-id/locations/my-location/buckets/my-bucket-id The
-   * supported locations are:
-   *   "global"
-   * For the location of `global` it is unspecified where logs are actually
-   * stored.
-   * Once a bucket has been created, the location can not be changed.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * - * - *
-   * The resource name of the bucket.
-   * For example:
-   * "projects/my-project-id/locations/my-location/buckets/my-bucket-id The
-   * supported locations are:
-   *   "global"
-   * For the location of `global` it is unspecified where logs are actually
-   * stored.
-   * Once a bucket has been created, the location can not be changed.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - @java.lang.Override - 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); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object description_; - /** - * - * - *
-   * Describes this bucket.
-   * 
- * - * string description = 3; - * - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - * - * - *
-   * Describes this bucket.
-   * 
- * - * string description = 3; - * - * @return The bytes for description. - */ - @java.lang.Override - 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); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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]; - * - * - * @return Whether the createTime field is set. - */ - @java.lang.Override - 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]; - * - * - * @return The createTime. - */ - @java.lang.Override - 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]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); - } - - 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]; - * - * - * @return Whether the updateTime field is set. - */ - @java.lang.Override - 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]; - * - * - * @return The updateTime. - */ - @java.lang.Override - 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]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); - } - - public static final int RETENTION_DAYS_FIELD_NUMBER = 11; - 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 this value is set to zero at bucket creation time, the default time of
-   * 30 days will be used.
-   * 
- * - * int32 retention_days = 11; - * - * @return The retentionDays. - */ - @java.lang.Override - public int getRetentionDays() { - return retentionDays_; - } - - public static final int LOCKED_FIELD_NUMBER = 9; - private boolean locked_; - /** - * - * - *
-   * Whether the bucket has been locked.
-   * The retention period on a locked bucket may not be changed.
-   * Locked buckets may only be deleted if they are empty.
-   * 
- * - * bool locked = 9; - * - * @return The locked. - */ - @java.lang.Override - public boolean getLocked() { - return locked_; - } - - public static final int LIFECYCLE_STATE_FIELD_NUMBER = 12; - private int lifecycleState_; - /** - * - * - *
-   * Output only. The bucket lifecycle state.
-   * 
- * - * - * .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() { - return lifecycleState_; - } - /** - * - * - *
-   * Output only. The bucket lifecycle state.
-   * 
- * - * - * .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() { - @SuppressWarnings("deprecation") - com.google.logging.v2.LifecycleState result = - com.google.logging.v2.LifecycleState.valueOf(lifecycleState_); - return result == null ? com.google.logging.v2.LifecycleState.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); - } - if (createTime_ != null) { - output.writeMessage(4, getCreateTime()); - } - if (updateTime_ != null) { - output.writeMessage(5, getUpdateTime()); - } - if (locked_ != false) { - output.writeBool(9, locked_); - } - if (retentionDays_ != 0) { - output.writeInt32(11, retentionDays_); - } - if (lifecycleState_ - != com.google.logging.v2.LifecycleState.LIFECYCLE_STATE_UNSPECIFIED.getNumber()) { - output.writeEnum(12, lifecycleState_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); - } - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); - } - if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); - } - if (locked_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, locked_); - } - if (retentionDays_ != 0) { - 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_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (hasUpdateTime() != other.hasUpdateTime()) return false; - if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; - } - if (getRetentionDays() != other.getRetentionDays()) return false; - if (getLocked() != other.getLocked()) return false; - if (lifecycleState_ != other.lifecycleState_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasUpdateTime()) { - hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getUpdateTime().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 = (37 * hash) + LIFECYCLE_STATE_FIELD_NUMBER; - hash = (53 * hash) + lifecycleState_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - 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) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - 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) - 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); - } - - public static com.google.logging.v2.LogBucket parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.logging.v2.LogBucket parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - 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) - throws java.io.IOException { - 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); - } - - 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); - } - - @java.lang.Override - 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); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Describes a repository of logs.
-   * 
- * - * Protobuf type {@code google.logging.v2.LogBucket} - */ - 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; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - 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() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - description_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - retentionDays_ = 0; - - locked_ = false; - - lifecycleState_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto - .internal_static_google_logging_v2_LogBucket_descriptor; - } - - @java.lang.Override - public com.google.logging.v2.LogBucket getDefaultInstanceForType() { - return com.google.logging.v2.LogBucket.getDefaultInstance(); - } - - @java.lang.Override - public com.google.logging.v2.LogBucket build() { - com.google.logging.v2.LogBucket result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.logging.v2.LogBucket buildPartial() { - com.google.logging.v2.LogBucket result = new com.google.logging.v2.LogBucket(this); - result.name_ = name_; - result.description_ = description_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); - } - result.retentionDays_ = retentionDays_; - result.locked_ = locked_; - result.lifecycleState_ = lifecycleState_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.logging.v2.LogBucket) { - return mergeFrom((com.google.logging.v2.LogBucket) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.logging.v2.LogBucket other) { - if (other == com.google.logging.v2.LogBucket.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - if (other.getRetentionDays() != 0) { - setRetentionDays(other.getRetentionDays()); - } - if (other.getLocked() != false) { - setLocked(other.getLocked()); - } - if (other.lifecycleState_ != 0) { - setLifecycleStateValue(other.getLifecycleStateValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.logging.v2.LogBucket parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.logging.v2.LogBucket) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The resource name of the bucket.
-     * For example:
-     * "projects/my-project-id/locations/my-location/buckets/my-bucket-id The
-     * supported locations are:
-     *   "global"
-     * For the location of `global` it is unspecified where logs are actually
-     * stored.
-     * Once a bucket has been created, the location can not be changed.
-     * 
- * - * 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; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * The resource name of the bucket.
-     * For example:
-     * "projects/my-project-id/locations/my-location/buckets/my-bucket-id The
-     * supported locations are:
-     *   "global"
-     * For the location of `global` it is unspecified where logs are actually
-     * stored.
-     * Once a bucket has been created, the location can not be changed.
-     * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * The resource name of the bucket.
-     * For example:
-     * "projects/my-project-id/locations/my-location/buckets/my-bucket-id The
-     * supported locations are:
-     *   "global"
-     * For the location of `global` it is unspecified where logs are actually
-     * stored.
-     * Once a bucket has been created, the location can not be changed.
-     * 
- * - * 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(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The resource name of the bucket.
-     * For example:
-     * "projects/my-project-id/locations/my-location/buckets/my-bucket-id The
-     * supported locations are:
-     *   "global"
-     * For the location of `global` it is unspecified where logs are actually
-     * stored.
-     * Once a bucket has been created, the location can not be changed.
-     * 
- * - * string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The resource name of the bucket.
-     * For example:
-     * "projects/my-project-id/locations/my-location/buckets/my-bucket-id The
-     * supported locations are:
-     *   "global"
-     * For the location of `global` it is unspecified where logs are actually
-     * stored.
-     * Once a bucket has been created, the location can not be changed.
-     * 
- * - * 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(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - 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; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Describes this bucket.
-     * 
- * - * string description = 3; - * - * @return The bytes for description. - */ - 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); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * 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(); - } - - description_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Describes this bucket.
-     * 
- * - * string description = 3; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - 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(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - 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_; - /** - * - * - *
-     * 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]; - * - * - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return createTimeBuilder_ != null || 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]; - * - * - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - 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]; - * - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - onChanged(); - } else { - createTimeBuilder_.setMessage(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]; - * - */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - onChanged(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - - 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]; - * - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); - } else { - createTime_ = value; - } - onChanged(); - } else { - createTimeBuilder_.mergeFrom(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]; - * - */ - public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; - createTimeBuilder_ = null; - } - - 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]; - * - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - - onChanged(); - 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]; - * - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - 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]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - 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()); - createTime_ = null; - } - return createTimeBuilder_; - } - - 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_; - /** - * - * - *
-     * Output only. The last update timestamp of the bucket.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the updateTime field is set. - */ - public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; - } - /** - * - * - *
-     * Output only. The last update timestamp of the bucket.
-     * 
- * - * - * .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_; - } 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]; - * - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateTime_ = value; - onChanged(); - } else { - updateTimeBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The last update timestamp of the bucket.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); - onChanged(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Output only. The last update timestamp of the bucket.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); - } else { - updateTime_ = value; - } - onChanged(); - } else { - updateTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Output only. The last update timestamp of the bucket.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; - updateTimeBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Output only. The last update timestamp of the bucket.
-     * 
- * - * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - - onChanged(); - return getUpdateTimeFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Output only. The last update timestamp of the bucket.
-     * 
- * - * - * .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_; - } - } - /** - * - * - *
-     * Output only. The last update timestamp of the bucket.
-     * 
- * - * - * .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> - 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()); - updateTime_ = null; - } - return updateTimeBuilder_; - } - - 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 this value is set to zero at bucket creation time, the default time of
-     * 30 days will be used.
-     * 
- * - * int32 retention_days = 11; - * - * @return The retentionDays. - */ - @java.lang.Override - 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 this value is set to zero at bucket creation time, the default time of
-     * 30 days will be used.
-     * 
- * - * int32 retention_days = 11; - * - * @param value The retentionDays to set. - * @return This builder for chaining. - */ - public Builder setRetentionDays(int value) { - - retentionDays_ = value; - onChanged(); - 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 this value is set to zero at bucket creation time, the default time of
-     * 30 days will be used.
-     * 
- * - * int32 retention_days = 11; - * - * @return This builder for chaining. - */ - public Builder clearRetentionDays() { - - retentionDays_ = 0; - onChanged(); - return this; - } - - private boolean locked_; - /** - * - * - *
-     * Whether the bucket has been locked.
-     * The retention period on a locked bucket may not be changed.
-     * Locked buckets may only be deleted if they are empty.
-     * 
- * - * bool locked = 9; - * - * @return The locked. - */ - @java.lang.Override - public boolean getLocked() { - return locked_; - } - /** - * - * - *
-     * Whether the bucket has been locked.
-     * The retention period on a locked bucket may not be changed.
-     * Locked buckets may only be deleted if they are empty.
-     * 
- * - * bool locked = 9; - * - * @param value The locked to set. - * @return This builder for chaining. - */ - public Builder setLocked(boolean value) { - - locked_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Whether the bucket has been locked.
-     * The retention period on a locked bucket may not be changed.
-     * Locked buckets may only be deleted if they are empty.
-     * 
- * - * bool locked = 9; - * - * @return This builder for chaining. - */ - public Builder clearLocked() { - - locked_ = false; - onChanged(); - return this; - } - - private int lifecycleState_ = 0; - /** - * - * - *
-     * Output only. The bucket lifecycle state.
-     * 
- * - * - * .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() { - return lifecycleState_; - } - /** - * - * - *
-     * Output only. The bucket lifecycle state.
-     * 
- * - * - * .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. - */ - public Builder setLifecycleStateValue(int value) { - - lifecycleState_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The bucket lifecycle state.
-     * 
- * - * - * .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() { - @SuppressWarnings("deprecation") - com.google.logging.v2.LifecycleState result = - com.google.logging.v2.LifecycleState.valueOf(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]; - * - * - * @param value The lifecycleState to set. - * @return This builder for chaining. - */ - public Builder setLifecycleState(com.google.logging.v2.LifecycleState value) { - if (value == null) { - throw new NullPointerException(); - } - - lifecycleState_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. The bucket lifecycle state.
-     * 
- * - * - * .google.logging.v2.LifecycleState lifecycle_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearLifecycleState() { - - lifecycleState_ = 0; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.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(); - } - - 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 { - return new LogBucket(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.logging.v2.LogBucket getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/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 deleted file mode 100644 index 74a5888d6..000000000 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucketOrBuilder.java +++ /dev/null @@ -1,228 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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 - // @@protoc_insertion_point(interface_extends:google.logging.v2.LogBucket) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The resource name of the bucket.
-   * For example:
-   * "projects/my-project-id/locations/my-location/buckets/my-bucket-id The
-   * supported locations are:
-   *   "global"
-   * For the location of `global` it is unspecified where logs are actually
-   * stored.
-   * Once a bucket has been created, the location can not be changed.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The resource name of the bucket.
-   * For example:
-   * "projects/my-project-id/locations/my-location/buckets/my-bucket-id The
-   * supported locations are:
-   *   "global"
-   * For the location of `global` it is unspecified where logs are actually
-   * stored.
-   * Once a bucket has been created, the location can not be changed.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - 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(); - - /** - * - * - *
-   * 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]; - * - * - * @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]; - * - * - * @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]; - * - */ - 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]; - * - * - * @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]; - * - * - * @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]; - * - */ - 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 this value is set to zero at bucket creation time, the default time of
-   * 30 days will be used.
-   * 
- * - * int32 retention_days = 11; - * - * @return The retentionDays. - */ - int getRetentionDays(); - - /** - * - * - *
-   * Whether the bucket has been locked.
-   * The retention period on a locked bucket may not be changed.
-   * Locked buckets may only be deleted if they are empty.
-   * 
- * - * 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]; - * - * - * @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]; - * - * - * @return The lifecycleState. - */ - com.google.logging.v2.LifecycleState getLifecycleState(); -} 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 6a9d60971..000000000 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryProto.java +++ /dev/null @@ -1,182 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License 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; - - 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\032\027google/rpc/status.proto\032\034google/api/a" - + "nnotations.proto\"\322\007\n\010LogEntry\022\025\n\010log_nam" - + "e\030\014 \001(\tB\003\340A\002\0224\n\010resource\030\010 \001(\0132\035.google." - + "api.MonitoredResourceB\003\340A\002\022-\n\rproto_payl" - + "oad\030\002 \001(\0132\024.google.protobuf.AnyH\000\022\026\n\014tex" - + "t_payload\030\003 \001(\tH\000\022/\n\014json_payload\030\006 \001(\0132" - + "\027.google.protobuf.StructH\000\0222\n\ttimestamp\030" - + "\t \001(\0132\032.google.protobuf.TimestampB\003\340A\001\022:" - + "\n\021receive_timestamp\030\030 \001(\0132\032.google.proto" - + "buf.TimestampB\003\340A\003\0227\n\010severity\030\n \001(\0162 .g" - + "oogle.logging.type.LogSeverityB\003\340A\001\022\026\n\ti" - + "nsert_id\030\004 \001(\tB\003\340A\001\022;\n\014http_request\030\007 \001(" - + "\0132 .google.logging.type.HttpRequestB\003\340A\001" - + "\022<\n\006labels\030\013 \003(\0132\'.google.logging.v2.Log" - + "Entry.LabelsEntryB\003\340A\001\022<\n\toperation\030\017 \001(" - + "\0132$.google.logging.v2.LogEntryOperationB" - + "\003\340A\001\022\022\n\005trace\030\026 \001(\tB\003\340A\001\022\024\n\007span_id\030\033 \001(" - + "\tB\003\340A\001\022\032\n\rtrace_sampled\030\036 \001(\010B\003\340A\001\022G\n\017so" - + "urce_location\030\027 \001(\0132).google.logging.v2." - + "LogEntrySourceLocationB\003\340A\001\032-\n\013LabelsEnt" - + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\275\001\352A\271" - + "\001\n\032logging.googleapis.com/Log\022\035projects/" - + "{project}/logs/{log}\022\'organizations/{org" - + "anization}/logs/{log}\022\033folders/{folder}/" - + "logs/{log}\022,billingAccounts/{billing_acc" - + "ount}/logs/{log}\032\010log_nameB\t\n\007payload\"b\n" - + "\021LogEntryOperation\022\017\n\002id\030\001 \001(\tB\003\340A\001\022\025\n\010p" - + "roducer\030\002 \001(\tB\003\340A\001\022\022\n\005first\030\003 \001(\010B\003\340A\001\022\021" - + "\n\004last\030\004 \001(\010B\003\340A\001\"U\n\026LogEntrySourceLocat" - + "ion\022\021\n\004file\030\001 \001(\tB\003\340A\001\022\021\n\004line\030\002 \001(\003B\003\340A" - + "\001\022\025\n\010function\030\003 \001(\tB\003\340A\001B\266\001\n\025com.google." - + "logging.v2B\rLogEntryProtoP\001Z8google.gola" - + "ng.org/genproto/googleapis/logging/v2;lo" - + "gging\370\001\001\252\002\027Google.Cloud.Logging.V2\312\002\027Goo" - + "gle\\Cloud\\Logging\\V2\352\002\032Google::Cloud::Lo" - + "gging::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(), - com.google.rpc.StatusProto.getDescriptor(), - com.google.api.AnnotationsProto.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", - "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", - }); - 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(); - com.google.rpc.StatusProto.getDescriptor(); - com.google.api.AnnotationsProto.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 ce795e9e8..000000000 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingConfigProto.java +++ /dev/null @@ -1,857 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific 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_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_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_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; - - 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\027google/api/client.p" - + "roto\032\037google/api/field_behavior.proto\032\031g" - + "oogle/api/resource.proto\032\036google/protobu" - + "f/duration.proto\032\033google/protobuf/empty." - + "proto\032 google/protobuf/field_mask.proto\032" - + "\037google/protobuf/timestamp.proto\032\034google" - + "/api/annotations.proto\"\253\004\n\tLogBucket\022\014\n\004" - + "name\030\001 \001(\t\022\023\n\013description\030\003 \001(\t\0224\n\013creat" - + "e_time\030\004 \001(\0132\032.google.protobuf.Timestamp" - + "B\003\340A\003\0224\n\013update_time\030\005 \001(\0132\032.google.prot" - + "obuf.TimestampB\003\340A\003\022\026\n\016retention_days\030\013 " - + "\001(\005\022\016\n\006locked\030\t \001(\010\022?\n\017lifecycle_state\030\014" - + " \001(\0162!.google.logging.v2.LifecycleStateB" - + "\003\340A\003:\245\002\352A\241\002\n logging.googleapis.com/LogB" - + "ucket\0228projects/{project}/locations/{loc" - + "ation}/buckets/{bucket}\022Borganizations/{" - + "organization}/locations/{location}/bucke" - + "ts/{bucket}\0226folders/{folder}/locations/" - + "{location}/buckets/{bucket}\022GbillingAcco" - + "unts/{billing_account}/locations/{locati" - + "on}/buckets/{bucket}\"\202\004\n\007LogView\022\014\n\004name" - + "\030\001 \001(\t\022\023\n\013description\030\003 \001(\t\0224\n\013create_ti" - + "me\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A" - + "\003\0224\n\013update_time\030\005 \001(\0132\032.google.protobuf" - + ".TimestampB\003\340A\003\022\016\n\006filter\030\007 \001(\t:\327\002\352A\323\002\n\036" - + "logging.googleapis.com/LogView\022Eprojects" - + "/{project}/locations/{location}/buckets/" - + "{bucket}/views/{view}\022Oorganizations/{or" - + "ganization}/locations/{location}/buckets" - + "/{bucket}/views/{view}\022Cfolders/{folder}" - + "/locations/{location}/buckets/{bucket}/v" - + "iews/{view}\022TbillingAccounts/{billing_ac" - + "count}/locations/{location}/buckets/{buc" - + "ket}/views/{view}\"\205\006\n\007LogSink\022\021\n\004name\030\001 " - + "\001(\tB\003\340A\002\022\036\n\013destination\030\003 \001(\tB\t\340A\002\372A\003\n\001*" - + "\022\023\n\006filter\030\005 \001(\tB\003\340A\001\022\030\n\013description\030\022 \001" - + "(\tB\003\340A\001\022\025\n\010disabled\030\023 \001(\010B\003\340A\001\0228\n\nexclus" - + "ions\030\020 \003(\0132\037.google.logging.v2.LogExclus" - + "ionB\003\340A\001\022K\n\025output_version_format\030\006 \001(\0162" - + "(.google.logging.v2.LogSink.VersionForma" - + "tB\002\030\001\022\034\n\017writer_identity\030\010 \001(\tB\003\340A\003\022\035\n\020i" - + "nclude_children\030\t \001(\010B\003\340A\001\022C\n\020bigquery_o" - + "ptions\030\014 \001(\0132\".google.logging.v2.BigQuer" - + "yOptionsB\003\340A\001H\000\0224\n\013create_time\030\r \001(\0132\032.g" - + "oogle.protobuf.TimestampB\003\340A\003\0224\n\013update_" - + "time\030\016 \001(\0132\032.google.protobuf.TimestampB\003" - + "\340A\003\"?\n\rVersionFormat\022\036\n\032VERSION_FORMAT_U" - + "NSPECIFIED\020\000\022\006\n\002V2\020\001\022\006\n\002V1\020\002:\277\001\352A\273\001\n\036log" - + "ging.googleapis.com/LogSink\022\037projects/{p" - + "roject}/sinks/{sink}\022)organizations/{org" - + "anization}/sinks/{sink}\022\035folders/{folder" - + "}/sinks/{sink}\022.billingAccounts/{billing" - + "_account}/sinks/{sink}B\t\n\007options\"g\n\017Big" - + "QueryOptions\022#\n\026use_partitioned_tables\030\001" - + " \001(\010B\003\340A\001\022/\n\"uses_timestamp_column_parti" - + "tioning\030\003 \001(\010B\003\340A\003\"\177\n\022ListBucketsRequest" - + "\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 logging.google" - + "apis.com/LogBucket\022\027\n\npage_token\030\002 \001(\tB\003" - + "\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\"]\n\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\"\232\001\n\023CreateBucketRequest\0228\n\006parent\030\001 \001" - + "(\tB(\340A\002\372A\"\022 logging.googleapis.com/LogBu" - + "cket\022\026\n\tbucket_id\030\002 \001(\tB\003\340A\002\0221\n\006bucket\030\003" - + " \001(\0132\034.google.logging.v2.LogBucketB\003\340A\002\"" - + "\266\001\n\023UpdateBucketRequest\0226\n\004name\030\001 \001(\tB(\340" - + "A\002\372A\"\n logging.googleapis.com/LogBucket\022" - + "1\n\006bucket\030\002 \001(\0132\034.google.logging.v2.LogB" - + "ucketB\003\340A\002\0224\n\013update_mask\030\004 \001(\0132\032.google" - + ".protobuf.FieldMaskB\003\340A\002\"J\n\020GetBucketReq" - + "uest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n logging.goog" - + "leapis.com/LogBucket\"M\n\023DeleteBucketRequ" - + "est\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n logging.googl" - + "eapis.com/LogBucket\"O\n\025UndeleteBucketReq" - + "uest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n logging.goog" - + "leapis.com/LogBucket\"X\n\020ListViewsRequest" - + "\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022\027\n\npage_token\030\002 \001(" - + "\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\"W\n\021ListVi" - + "ewsResponse\022)\n\005views\030\001 \003(\0132\032.google.logg" - + "ing.v2.LogView\022\027\n\017next_page_token\030\002 \001(\t\"" - + "m\n\021CreateViewRequest\022\023\n\006parent\030\001 \001(\tB\003\340A" - + "\002\022\024\n\007view_id\030\002 \001(\tB\003\340A\002\022-\n\004view\030\003 \001(\0132\032." - + "google.logging.v2.LogViewB\003\340A\002\"\213\001\n\021Updat" - + "eViewRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022-\n\004view\030" - + "\002 \001(\0132\032.google.logging.v2.LogViewB\003\340A\002\0224" - + "\n\013update_mask\030\004 \001(\0132\032.google.protobuf.Fi" - + "eldMaskB\003\340A\001\"F\n\016GetViewRequest\0224\n\004name\030\001" - + " \001(\tB&\340A\002\372A \n\036logging.googleapis.com/Log" - + "View\"I\n\021DeleteViewRequest\0224\n\004name\030\001 \001(\tB" - + "&\340A\002\372A \n\036logging.googleapis.com/LogView\"" - + "{\n\020ListSinksRequest\0226\n\006parent\030\001 \001(\tB&\340A\002" - + "\372A \022\036logging.googleapis.com/LogSink\022\027\n\np" - + "age_token\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B" - + "\003\340A\001\"W\n\021ListSinksResponse\022)\n\005sinks\030\001 \003(\013" - + "2\032.google.logging.v2.LogSink\022\027\n\017next_pag" - + "e_token\030\002 \001(\t\"K\n\016GetSinkRequest\0229\n\tsink_" - + "name\030\001 \001(\tB&\340A\002\372A \n\036logging.googleapis.c" - + "om/LogSink\"\237\001\n\021CreateSinkRequest\0226\n\006pare" - + "nt\030\001 \001(\tB&\340A\002\372A \022\036logging.googleapis.com" - + "/LogSink\022-\n\004sink\030\002 \001(\0132\032.google.logging." - + "v2.LogSinkB\003\340A\002\022#\n\026unique_writer_identit" - + "y\030\003 \001(\010B\003\340A\001\"\330\001\n\021UpdateSinkRequest\0229\n\tsi" - + "nk_name\030\001 \001(\tB&\340A\002\372A \n\036logging.googleapi" - + "s.com/LogSink\022-\n\004sink\030\002 \001(\0132\032.google.log" - + "ging.v2.LogSinkB\003\340A\002\022#\n\026unique_writer_id" - + "entity\030\003 \001(\010B\003\340A\001\0224\n\013update_mask\030\004 \001(\0132\032" - + ".google.protobuf.FieldMaskB\003\340A\001\"N\n\021Delet" - + "eSinkRequest\0229\n\tsink_name\030\001 \001(\tB&\340A\002\372A \n" - + "\036logging.googleapis.com/LogSink\"\302\003\n\014LogE" - + "xclusion\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\030\n\013descripti" - + "on\030\002 \001(\tB\003\340A\001\022\023\n\006filter\030\003 \001(\tB\003\340A\002\022\025\n\010di" - + "sabled\030\004 \001(\010B\003\340A\001\0224\n\013create_time\030\005 \001(\0132\032" - + ".google.protobuf.TimestampB\003\340A\003\0224\n\013updat" - + "e_time\030\006 \001(\0132\032.google.protobuf.Timestamp" - + "B\003\340A\003:\354\001\352A\350\001\n#logging.googleapis.com/Log" - + "Exclusion\022)projects/{project}/exclusions" - + "/{exclusion}\0223organizations/{organizatio" - + "n}/exclusions/{exclusion}\022\'folders/{fold" - + "er}/exclusions/{exclusion}\0228billingAccou" - + "nts/{billing_account}/exclusions/{exclus" - + "ion}\"\205\001\n\025ListExclusionsRequest\022;\n\006parent" - + "\030\001 \001(\tB+\340A\002\372A%\022#logging.googleapis.com/L" - + "ogExclusion\022\027\n\npage_token\030\002 \001(\tB\003\340A\001\022\026\n\t" - + "page_size\030\003 \001(\005B\003\340A\001\"f\n\026ListExclusionsRe" - + "sponse\0223\n\nexclusions\030\001 \003(\0132\037.google.logg" - + "ing.v2.LogExclusion\022\027\n\017next_page_token\030\002" - + " \001(\t\"P\n\023GetExclusionRequest\0229\n\004name\030\001 \001(" - + "\tB+\340A\002\372A%\n#logging.googleapis.com/LogExc" - + "lusion\"\216\001\n\026CreateExclusionRequest\022;\n\006par" - + "ent\030\001 \001(\tB+\340A\002\372A%\022#logging.googleapis.co" - + "m/LogExclusion\0227\n\texclusion\030\002 \001(\0132\037.goog" - + "le.logging.v2.LogExclusionB\003\340A\002\"\302\001\n\026Upda" - + "teExclusionRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%" - + "\n#logging.googleapis.com/LogExclusion\0227\n" - + "\texclusion\030\002 \001(\0132\037.google.logging.v2.Log" - + "ExclusionB\003\340A\002\0224\n\013update_mask\030\003 \001(\0132\032.go" - + "ogle.protobuf.FieldMaskB\003\340A\002\"S\n\026DeleteEx" - + "clusionRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#lo" - + "gging.googleapis.com/LogExclusion\"S\n\026Get" - + "CmekSettingsRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A" - + "%\n#logging.googleapis.com/CmekSettings\"\241" - + "\001\n\031UpdateCmekSettingsRequest\022\021\n\004name\030\001 \001" - + "(\tB\003\340A\002\022;\n\rcmek_settings\030\002 \001(\0132\037.google." - + "logging.v2.CmekSettingsB\003\340A\002\0224\n\013update_m" - + "ask\030\003 \001(\0132\032.google.protobuf.FieldMaskB\003\340" - + "A\001\"\237\002\n\014CmekSettings\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024" - + "\n\014kms_key_name\030\002 \001(\t\022\037\n\022service_account_" - + "id\030\003 \001(\tB\003\340A\003:\304\001\352A\300\001\n#logging.googleapis" - + ".com/CmekSettings\022\037projects/{project}/cm" - + "ekSettings\022)organizations/{organization}" - + "/cmekSettings\022\035folders/{folder}/cmekSett" - + "ings\022.billingAccounts/{billing_account}/" - + "cmekSettings*S\n\016LifecycleState\022\037\n\033LIFECY" - + "CLE_STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\024\n\020D" - + "ELETE_REQUESTED\020\0022\334>\n\017ConfigServiceV2\022\334\002" - + "\n\013ListBuckets\022%.google.logging.v2.ListBu" - + "cketsRequest\032&.google.logging.v2.ListBuc" - + "ketsResponse\"\375\001\202\323\344\223\002\355\001\022$/v2/{parent=*/*/" - + "locations/*}/bucketsZ-\022+/v2/{parent=proj" - + "ects/*/locations/*}/bucketsZ2\0220/v2/{pare" - + "nt=organizations/*/locations/*}/bucketsZ" - + ",\022*/v2/{parent=folders/*/locations/*}/bu" - + "cketsZ4\0222/v2/{parent=billingAccounts/*/l" - + "ocations/*}/buckets\332A\006parent\022\271\002\n\tGetBuck" - + "et\022#.google.logging.v2.GetBucketRequest\032" - + "\034.google.logging.v2.LogBucket\"\350\001\202\323\344\223\002\341\001\022" - + "$/v2/{name=*/*/locations/*/buckets/*}Z-\022" - + "+/v2/{name=projects/*/locations/*/bucket" - + "s/*}Z2\0220/v2/{name=organizations/*/locati" - + "ons/*/buckets/*}Z,\022*/v2/{name=folders/*/" - + "locations/*/buckets/*}Z(\022&/v2/{name=bill" - + "ingAccounts/*/buckets/*}\022\363\002\n\014CreateBucke" - + "t\022&.google.logging.v2.CreateBucketReques" - + "t\032\034.google.logging.v2.LogBucket\"\234\002\202\323\344\223\002\225" - + "\002\"$/v2/{parent=*/*/locations/*}/buckets:" - + "\006bucketZ5\"+/v2/{parent=projects/*/locati" - + "ons/*}/buckets:\006bucketZ:\"0/v2/{parent=or" - + "ganizations/*/locations/*}/buckets:\006buck" - + "etZ4\"*/v2/{parent=folders/*/locations/*}" - + "/buckets:\006bucketZ<\"2/v2/{parent=billingA" - + "ccounts/*/locations/*}/buckets:\006bucket\022\363" - + "\002\n\014UpdateBucket\022&.google.logging.v2.Upda" - + "teBucketRequest\032\034.google.logging.v2.LogB" - + "ucket\"\234\002\202\323\344\223\002\225\0022$/v2/{name=*/*/locations" - + "/*/buckets/*}:\006bucketZ52+/v2/{name=proje" - + "cts/*/locations/*/buckets/*}:\006bucketZ:20" - + "/v2/{name=organizations/*/locations/*/bu" - + "ckets/*}:\006bucketZ42*/v2/{name=folders/*/" - + "locations/*/buckets/*}:\006bucketZ<22/v2/{n" - + "ame=billingAccounts/*/locations/*/bucket" - + "s/*}:\006bucket\022\305\002\n\014DeleteBucket\022&.google.l" - + "ogging.v2.DeleteBucketRequest\032\026.google.p" - + "rotobuf.Empty\"\364\001\202\323\344\223\002\355\001*$/v2/{name=*/*/l" - + "ocations/*/buckets/*}Z-*+/v2/{name=proje" - + "cts/*/locations/*/buckets/*}Z2*0/v2/{nam" - + "e=organizations/*/locations/*/buckets/*}" - + "Z,**/v2/{name=folders/*/locations/*/buck" - + "ets/*}Z4*2/v2/{name=billingAccounts/*/lo" - + "cations/*/buckets/*}\022\205\003\n\016UndeleteBucket\022" - + "(.google.logging.v2.UndeleteBucketReques" - + "t\032\026.google.protobuf.Empty\"\260\002\202\323\344\223\002\251\002\"-/v2" - + "/{name=*/*/locations/*/buckets/*}:undele" - + "te:\001*Z9\"4/v2/{name=projects/*/locations/" - + "*/buckets/*}:undelete:\001*Z>\"9/v2/{name=or" - + "ganizations/*/locations/*/buckets/*}:und" - + "elete:\001*Z8\"3/v2/{name=folders/*/location" - + "s/*/buckets/*}:undelete:\001*Z@\";/v2/{name=" - + "billingAccounts/*/locations/*/buckets/*}" - + ":undelete:\001*\022\376\002\n\tListViews\022#.google.logg" - + "ing.v2.ListViewsRequest\032$.google.logging" - + ".v2.ListViewsResponse\"\245\002\202\323\344\223\002\225\002\022,/v2/{pa" - + "rent=*/*/locations/*/buckets/*}/viewsZ5\022" - + "3/v2/{parent=projects/*/locations/*/buck" - + "ets/*}/viewsZ:\0228/v2/{parent=organization" - + "s/*/locations/*/buckets/*}/viewsZ4\0222/v2/" - + "{parent=folders/*/locations/*/buckets/*}" - + "/viewsZ<\022:/v2/{parent=billingAccounts/*/" - + "locations/*/buckets/*}/views\332A\006parent\022\333\002" - + "\n\007GetView\022!.google.logging.v2.GetViewReq" - + "uest\032\032.google.logging.v2.LogView\"\220\002\202\323\344\223\002" - + "\211\002\022,/v2/{name=*/*/locations/*/buckets/*/" - + "views/*}Z5\0223/v2/{name=projects/*/locatio" - + "ns/*/buckets/*/views/*}Z:\0228/v2/{name=org" - + "anizations/*/locations/*/buckets/*/views" - + "/*}Z4\0222/v2/{name=folders/*/locations/*/b" - + "uckets/*/views/*}Z0\022./v2/{name=billingAc" - + "counts/*/buckets/*/views/*}\022\213\003\n\nCreateVi" - + "ew\022$.google.logging.v2.CreateViewRequest" - + "\032\032.google.logging.v2.LogView\"\272\002\202\323\344\223\002\263\002\"," - + "/v2/{parent=*/*/locations/*/buckets/*}/v" - + "iews:\004viewZ;\"3/v2/{parent=projects/*/loc" - + "ations/*/buckets/*}/views:\004viewZ@\"8/v2/{" - + "parent=organizations/*/locations/*/bucke" - + "ts/*}/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,/v" - + "2/{name=*/*/locations/*/buckets/*/views/" - + "*}:\004viewZ;23/v2/{name=projects/*/locatio" - + "ns/*/buckets/*/views/*}:\004viewZ@28/v2/{na" - + "me=organizations/*/locations/*/buckets/*" - + "/views/*}:\004viewZ:22/v2/{name=folders/*/l" - + "ocations/*/buckets/*/views/*}:\004viewZB2:/" - + "v2/{name=billingAccounts/*/locations/*/b" - + "uckets/*/views/*}:\004view\022\351\002\n\nDeleteView\022$" - + ".google.logging.v2.DeleteViewRequest\032\026.g" - + "oogle.protobuf.Empty\"\234\002\202\323\344\223\002\225\002*,/v2/{nam" - + "e=*/*/locations/*/buckets/*/views/*}Z5*3" - + "/v2/{name=projects/*/locations/*/buckets" - + "/*/views/*}Z:*8/v2/{name=organizations/*" - + "/locations/*/buckets/*/views/*}Z4*2/v2/{" - + "name=folders/*/locations/*/buckets/*/vie" - + "ws/*}Z<*:/v2/{name=billingAccounts/*/loc" - + "ations/*/buckets/*/views/*}\022\220\002\n\tListSink" - + "s\022#.google.logging.v2.ListSinksRequest\032$" - + ".google.logging.v2.ListSinksResponse\"\267\001\202" - + "\323\344\223\002\247\001\022\026/v2/{parent=*/*}/sinksZ\037\022\035/v2/{p" - + "arent=projects/*}/sinksZ$\022\"/v2/{parent=o" - + "rganizations/*}/sinksZ\036\022\034/v2/{parent=fol" - + "ders/*}/sinksZ&\022$/v2/{parent=billingAcco" - + "unts/*}/sinks\332A\006parent\022\236\002\n\007GetSink\022!.goo" - + "gle.logging.v2.GetSinkRequest\032\032.google.l" - + "ogging.v2.LogSink\"\323\001\202\323\344\223\002\300\001\022\033/v2/{sink_n" - + "ame=*/*/sinks/*}Z$\022\"/v2/{sink_name=proje" - + "cts/*/sinks/*}Z)\022\'/v2/{sink_name=organiz" - + "ations/*/sinks/*}Z#\022!/v2/{sink_name=fold" - + "ers/*/sinks/*}Z+\022)/v2/{sink_name=billing" - + "Accounts/*/sinks/*}\332A\tsink_name\022\253\002\n\nCrea" - + "teSink\022$.google.logging.v2.CreateSinkReq" - + "uest\032\032.google.logging.v2.LogSink\"\332\001\202\323\344\223\002" - + "\305\001\"\026/v2/{parent=*/*}/sinks:\004sinkZ%\"\035/v2/" - + "{parent=projects/*}/sinks:\004sinkZ*\"\"/v2/{" - + "parent=organizations/*}/sinks:\004sinkZ$\"\034/" - + "v2/{parent=folders/*}/sinks:\004sinkZ,\"$/v2" - + "/{parent=billingAccounts/*}/sinks:\004sink\332" - + "A\013parent,sink\022\237\004\n\nUpdateSink\022$.google.lo" - + "gging.v2.UpdateSinkRequest\032\032.google.logg" - + "ing.v2.LogSink\"\316\003\202\323\344\223\002\231\003\032\033/v2/{sink_name" - + "=*/*/sinks/*}:\004sinkZ*\032\"/v2/{sink_name=pr" - + "ojects/*/sinks/*}:\004sinkZ/\032\'/v2/{sink_nam" - + "e=organizations/*/sinks/*}:\004sinkZ)\032!/v2/" - + "{sink_name=folders/*/sinks/*}:\004sinkZ1\032)/" - + "v2/{sink_name=billingAccounts/*/sinks/*}" - + ":\004sinkZ*2\"/v2/{sink_name=projects/*/sink" - + "s/*}:\004sinkZ/2\'/v2/{sink_name=organizatio" - + "ns/*/sinks/*}:\004sinkZ)2!/v2/{sink_name=fo" - + "lders/*/sinks/*}:\004sinkZ12)/v2/{sink_name" - + "=billingAccounts/*/sinks/*}:\004sink\332A\032sink" - + "_name,sink,update_mask\332A\016sink_name,sink\022" - + "\240\002\n\nDeleteSink\022$.google.logging.v2.Delet" - + "eSinkRequest\032\026.google.protobuf.Empty\"\323\001\202" - + "\323\344\223\002\300\001*\033/v2/{sink_name=*/*/sinks/*}Z$*\"/" - + "v2/{sink_name=projects/*/sinks/*}Z)*\'/v2" - + "/{sink_name=organizations/*/sinks/*}Z#*!" - + "/v2/{sink_name=folders/*/sinks/*}Z+*)/v2" - + "/{sink_name=billingAccounts/*/sinks/*}\332A" - + "\tsink_name\022\270\002\n\016ListExclusions\022(.google.l" - + "ogging.v2.ListExclusionsRequest\032).google" - + ".logging.v2.ListExclusionsResponse\"\320\001\202\323\344" - + "\223\002\300\001\022\033/v2/{parent=*/*}/exclusionsZ$\022\"/v2" - + "/{parent=projects/*}/exclusionsZ)\022\'/v2/{" - + "parent=organizations/*}/exclusionsZ#\022!/v" - + "2/{parent=folders/*}/exclusionsZ+\022)/v2/{" - + "parent=billingAccounts/*}/exclusions\332A\006p" - + "arent\022\250\002\n\014GetExclusion\022&.google.logging." - + "v2.GetExclusionRequest\032\037.google.logging." - + "v2.LogExclusion\"\316\001\202\323\344\223\002\300\001\022\033/v2/{name=*/*" - + "/exclusions/*}Z$\022\"/v2/{name=projects/*/e" - + "xclusions/*}Z)\022\'/v2/{name=organizations/" - + "*/exclusions/*}Z#\022!/v2/{name=folders/*/e" - + "xclusions/*}Z+\022)/v2/{name=billingAccount" - + "s/*/exclusions/*}\332A\004name\022\361\002\n\017CreateExclu" - + "sion\022).google.logging.v2.CreateExclusion" - + "Request\032\037.google.logging.v2.LogExclusion" - + "\"\221\002\202\323\344\223\002\367\001\"\033/v2/{parent=*/*}/exclusions:" - + "\texclusionZ/\"\"/v2/{parent=projects/*}/ex" - + "clusions:\texclusionZ4\"\'/v2/{parent=organ" - + "izations/*}/exclusions:\texclusionZ.\"!/v2" - + "/{parent=folders/*}/exclusions:\texclusio" - + "nZ6\")/v2/{parent=billingAccounts/*}/excl" - + "usions:\texclusion\332A\020parent,exclusion\022\373\002\n" - + "\017UpdateExclusion\022).google.logging.v2.Upd" - + "ateExclusionRequest\032\037.google.logging.v2." - + "LogExclusion\"\233\002\202\323\344\223\002\367\0012\033/v2/{name=*/*/ex" - + "clusions/*}:\texclusionZ/2\"/v2/{name=proj" - + "ects/*/exclusions/*}:\texclusionZ42\'/v2/{" - + "name=organizations/*/exclusions/*}:\texcl" - + "usionZ.2!/v2/{name=folders/*/exclusions/" - + "*}:\texclusionZ62)/v2/{name=billingAccoun" - + "ts/*/exclusions/*}:\texclusion\332A\032name,exc" - + "lusion,update_mask\022\245\002\n\017DeleteExclusion\022)" - + ".google.logging.v2.DeleteExclusionReques" - + "t\032\026.google.protobuf.Empty\"\316\001\202\323\344\223\002\300\001*\033/v2" - + "/{name=*/*/exclusions/*}Z$*\"/v2/{name=pr" - + "ojects/*/exclusions/*}Z)*\'/v2/{name=orga" - + "nizations/*/exclusions/*}Z#*!/v2/{name=f" - + "olders/*/exclusions/*}Z+*)/v2/{name=bill" - + "ingAccounts/*/exclusions/*}\332A\004name\022\255\001\n\017G" - + "etCmekSettings\022).google.logging.v2.GetCm" - + "ekSettingsRequest\032\037.google.logging.v2.Cm" - + "ekSettings\"N\202\323\344\223\002H\022\033/v2/{name=*/*}/cmekS" - + "ettingsZ)\022\'/v2/{name=organizations/*}/cm" - + "ekSettings\022\321\001\n\022UpdateCmekSettings\022,.goog" - + "le.logging.v2.UpdateCmekSettingsRequest\032" - + "\037.google.logging.v2.CmekSettings\"l\202\323\344\223\002f" - + "2\033/v2/{name=*/*}/cmekSettings:\rcmek_sett" - + "ingsZ82\'/v2/{name=organizations/*}/cmekS" - + "ettings:\rcmek_settings\032\337\001\312A\026logging.goog" - + "leapis.com\322A\302\001https://www.googleapis.com" - + "/auth/cloud-platform,https://www.googlea" - + "pis.com/auth/cloud-platform.read-only,ht" - + "tps://www.googleapis.com/auth/logging.ad" - + "min,https://www.googleapis.com/auth/logg" - + "ing.readB\331\003\n\025com.google.logging.v2B\022Logg" - + "ingConfigProtoP\001Z8google.golang.org/genp" - + "roto/googleapis/logging/v2;logging\370\001\001\252\002\027" - + "Google.Cloud.Logging.V2\312\002\027Google\\Cloud\\L" - + "ogging\\V2\352\002\032Google::Cloud::Logging::V2\352A" - + "`\n+logging.googleapis.com/OrganizationLo" - + "cation\0221organizations/{organization}/loc" - + "ations/{location}\352AN\n%logging.googleapis" - + ".com/FolderLocation\022%folders/{folder}/lo" - + "cations/{location}\352Ag\n-logging.googleapi" - + "s.com/BillingAccountLocation\0226billingAcc" - + "ounts/{billing_account}/locations/{locat" - + "ion}b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - }); - internal_static_google_logging_v2_LogBucket_descriptor = - getDescriptor().getMessageTypes().get(0); - 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", - }); - internal_static_google_logging_v2_LogView_descriptor = getDescriptor().getMessageTypes().get(1); - 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(2); - 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_BigQueryOptions_descriptor = - getDescriptor().getMessageTypes().get(3); - 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(4); - 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(5); - 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(6); - 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(7); - 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(8); - 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(9); - 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(10); - 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(11); - 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(12); - 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(13); - 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(14); - 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(15); - 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(16); - 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(17); - 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(18); - 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(19); - 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(20); - 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(21); - 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(22); - 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_LogExclusion_descriptor = - getDescriptor().getMessageTypes().get(23); - 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(24); - 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(25); - 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(26); - 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(27); - 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(28); - 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(29); - 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(30); - 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(31); - 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(32); - 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", "ServiceAccountId", - }); - 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); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.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 a6e221a6e..000000000 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingMetricsProto.java +++ /dev/null @@ -1,259 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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\027google/api/client." - + "proto\032\035google/api/distribution.proto\032\037go" - + "ogle/api/field_behavior.proto\032\027google/ap" - + "i/metric.proto\032\031google/api/resource.prot" - + "o\032\036google/protobuf/duration.proto\032\033googl" - + "e/protobuf/empty.proto\032 google/protobuf/" - + "field_mask.proto\032\037google/protobuf/timest" - + "amp.proto\032\034google/api/annotations.proto\"" - + "\214\005\n\tLogMetric\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\030\n\013desc" - + "ription\030\002 \001(\tB\003\340A\001\022\023\n\006filter\030\003 \001(\tB\003\340A\002\022" - + "<\n\021metric_descriptor\030\005 \001(\0132\034.google.api." - + "MetricDescriptorB\003\340A\001\022\034\n\017value_extractor" - + "\030\006 \001(\tB\003\340A\001\022P\n\020label_extractors\030\007 \003(\01321." - + "google.logging.v2.LogMetric.LabelExtract" - + "orsEntryB\003\340A\001\022C\n\016bucket_options\030\010 \001(\0132&." - + "google.api.Distribution.BucketOptionsB\003\340" - + "A\001\0224\n\013create_time\030\t \001(\0132\032.google.protobu" - + "f.TimestampB\003\340A\003\0224\n\013update_time\030\n \001(\0132\032." - + "google.protobuf.TimestampB\003\340A\003\022<\n\007versio" - + "n\030\004 \001(\0162\'.google.logging.v2.LogMetric.Ap" - + "iVersionB\002\030\001\0326\n\024LabelExtractorsEntry\022\013\n\003" - + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\034\n\nApiVersi" - + "on\022\006\n\002V2\020\000\022\006\n\002V1\020\001:J\352AG\n logging.googlea" - + "pis.com/LogMetric\022#projects/{project}/me" - + "trics/{metric}\"\215\001\n\025ListLogMetricsRequest" - + "\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcem" - + "anager.googleapis.com/Project\022\027\n\npage_to" - + "ken\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\"`" - + "\n\026ListLogMetricsResponse\022-\n\007metrics\030\001 \003(" - + "\0132\034.google.logging.v2.LogMetric\022\027\n\017next_" - + "page_token\030\002 \001(\t\"T\n\023GetLogMetricRequest\022" - + "=\n\013metric_name\030\001 \001(\tB(\340A\002\372A\"\n logging.go" - + "ogleapis.com/LogMetric\"\205\001\n\026CreateLogMetr" - + "icRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 loggi" - + "ng.googleapis.com/LogMetric\0221\n\006metric\030\002 " - + "\001(\0132\034.google.logging.v2.LogMetricB\003\340A\002\"\212" - + "\001\n\026UpdateLogMetricRequest\022=\n\013metric_name" - + "\030\001 \001(\tB(\340A\002\372A\"\n logging.googleapis.com/L" - + "ogMetric\0221\n\006metric\030\002 \001(\0132\034.google.loggin" - + "g.v2.LogMetricB\003\340A\002\"W\n\026DeleteLogMetricRe" - + "quest\022=\n\013metric_name\030\001 \001(\tB(\340A\002\372A\"\n logg" - + "ing.googleapis.com/LogMetric2\256\010\n\020Metrics" - + "ServiceV2\022\227\001\n\016ListLogMetrics\022(.google.lo" - + "gging.v2.ListLogMetricsRequest\032).google." - + "logging.v2.ListLogMetricsResponse\"0\202\323\344\223\002" - + "!\022\037/v2/{parent=projects/*}/metrics\332A\006par" - + "ent\022\222\001\n\014GetLogMetric\022&.google.logging.v2" - + ".GetLogMetricRequest\032\034.google.logging.v2" - + ".LogMetric\"<\202\323\344\223\002(\022&/v2/{metric_name=pro" - + "jects/*/metrics/*}\332A\013metric_name\022\233\001\n\017Cre" - + "ateLogMetric\022).google.logging.v2.CreateL" - + "ogMetricRequest\032\034.google.logging.v2.LogM" - + "etric\"?\202\323\344\223\002)\"\037/v2/{parent=projects/*}/m" - + "etrics:\006metric\332A\rparent,metric\022\247\001\n\017Updat" - + "eLogMetric\022).google.logging.v2.UpdateLog" - + "MetricRequest\032\034.google.logging.v2.LogMet" - + "ric\"K\202\323\344\223\0020\032&/v2/{metric_name=projects/*" - + "/metrics/*}:\006metric\332A\022metric_name,metric" - + "\022\222\001\n\017DeleteLogMetric\022).google.logging.v2" - + ".DeleteLogMetricRequest\032\026.google.protobu" - + "f.Empty\"<\202\323\344\223\002(*&/v2/{metric_name=projec" - + "ts/*/metrics/*}\332A\013metric_name\032\215\002\312A\026loggi" - + "ng.googleapis.com\322A\360\001https://www.googlea" - + "pis.com/auth/cloud-platform,https://www." - + "googleapis.com/auth/cloud-platform.read-" - + "only,https://www.googleapis.com/auth/log" - + "ging.admin,https://www.googleapis.com/au" - + "th/logging.read,https://www.googleapis.c" - + "om/auth/logging.writeB\274\001\n\025com.google.log" - + "ging.v2B\023LoggingMetricsProtoP\001Z8google.g" - + "olang.org/genproto/googleapis/logging/v2" - + ";logging\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.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.DurationProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.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", - "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.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.DurationProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.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 cf78eb28a..000000000 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingProto.java +++ /dev/null @@ -1,363 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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\027google/api/client.proto\032\037g" - + "oogle/api/field_behavior.proto\032#google/a" - + "pi/monitored_resource.proto\032\031google/api/" - + "resource.proto\032!google/logging/v2/log_en" - + "try.proto\032&google/logging/v2/logging_con" - + "fig.proto\032\036google/protobuf/duration.prot" - + "o\032\033google/protobuf/empty.proto\032 google/p" - + "rotobuf/field_mask.proto\032\037google/protobu" - + "f/timestamp.proto\032\027google/rpc/status.pro" - + "to\032\034google/api/annotations.proto\"H\n\020Dele" - + "teLogRequest\0224\n\010log_name\030\001 \001(\tB\"\340A\002\372A\034\n\032" - + "logging.googleapis.com/Log\"\346\002\n\026WriteLogE" - + "ntriesRequest\0224\n\010log_name\030\001 \001(\tB\"\340A\001\372A\034\n" - + "\032logging.googleapis.com/Log\0224\n\010resource\030" - + "\002 \001(\0132\035.google.api.MonitoredResourceB\003\340A" - + "\001\022J\n\006labels\030\003 \003(\01325.google.logging.v2.Wr" - + "iteLogEntriesRequest.LabelsEntryB\003\340A\001\0221\n" - + "\007entries\030\004 \003(\0132\033.google.logging.v2.LogEn" - + "tryB\003\340A\002\022\034\n\017partial_success\030\005 \001(\010B\003\340A\001\022\024" - + "\n\007dry_run\030\006 \001(\010B\003\340A\001\032-\n\013LabelsEntry\022\013\n\003k" - + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\031\n\027WriteLogE" - + "ntriesResponse\"\310\001\n\034WriteLogEntriesPartia" - + "lErrors\022]\n\020log_entry_errors\030\001 \003(\0132C.goog" - + "le.logging.v2.WriteLogEntriesPartialErro" - + "rs.LogEntryErrorsEntry\032I\n\023LogEntryErrors" - + "Entry\022\013\n\003key\030\001 \001(\005\022!\n\005value\030\002 \001(\0132\022.goog" - + "le.rpc.Status:\0028\001\"\260\001\n\025ListLogEntriesRequ" - + "est\022:\n\016resource_names\030\010 \003(\tB\"\340A\002\372A\034\022\032log" - + "ging.googleapis.com/Log\022\023\n\006filter\030\002 \001(\tB" - + "\003\340A\001\022\025\n\010order_by\030\003 \001(\tB\003\340A\001\022\026\n\tpage_size" - + "\030\004 \001(\005B\003\340A\001\022\027\n\npage_token\030\005 \001(\tB\003\340A\001\"_\n\026" - + "ListLogEntriesResponse\022,\n\007entries\030\001 \003(\0132" - + "\033.google.logging.v2.LogEntry\022\027\n\017next_pag" - + "e_token\030\002 \001(\t\"Z\n\'ListMonitoredResourceDe" - + "scriptorsRequest\022\026\n\tpage_size\030\001 \001(\005B\003\340A\001" - + "\022\027\n\npage_token\030\002 \001(\tB\003\340A\001\"\212\001\n(ListMonito" - + "redResourceDescriptorsResponse\022E\n\024resour" - + "ce_descriptors\030\001 \003(\0132\'.google.api.Monito" - + "redResourceDescriptor\022\027\n\017next_page_token" - + "\030\002 \001(\t\"\223\001\n\017ListLogsRequest\0222\n\006parent\030\001 \001" - + "(\tB\"\340A\002\372A\034\022\032logging.googleapis.com/Log\022\026" - + "\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001" - + "(\tB\003\340A\001\022\033\n\016resource_names\030\010 \003(\tB\003\340A\001\">\n\020" - + "ListLogsResponse\022\021\n\tlog_names\030\003 \003(\t\022\027\n\017n" - + "ext_page_token\030\002 \001(\t\"\200\001\n\025TailLogEntriesR" - + "equest\022\033\n\016resource_names\030\001 \003(\tB\003\340A\002\022\023\n\006f" - + "ilter\030\002 \001(\tB\003\340A\001\0225\n\rbuffer_window\030\003 \001(\0132" - + "\031.google.protobuf.DurationB\003\340A\001\"\337\002\n\026Tail" - + "LogEntriesResponse\022,\n\007entries\030\001 \003(\0132\033.go" - + "ogle.logging.v2.LogEntry\022S\n\020suppression_" - + "info\030\002 \003(\01329.google.logging.v2.TailLogEn" - + "triesResponse.SuppressionInfo\032\301\001\n\017Suppre" - + "ssionInfo\022P\n\006reason\030\001 \001(\0162@.google.loggi" - + "ng.v2.TailLogEntriesResponse.Suppression" - + "Info.Reason\022\030\n\020suppressed_count\030\002 \001(\005\"B\n" - + "\006Reason\022\026\n\022REASON_UNSPECIFIED\020\000\022\016\n\nRATE_" - + "LIMIT\020\001\022\020\n\014NOT_CONSUMED\020\0022\346\013\n\020LoggingSer" - + "viceV2\022\223\002\n\tDeleteLog\022#.google.logging.v2" - + ".DeleteLogRequest\032\026.google.protobuf.Empt" - + "y\"\310\001\202\323\344\223\002\266\001* /v2/{log_name=projects/*/lo" - + "gs/*}Z\033*\031/v2/{log_name=*/*/logs/*}Z\'*%/v" - + "2/{log_name=organizations/*/logs/*}Z!*\037/" - + "v2/{log_name=folders/*/logs/*}Z)*\'/v2/{l" - + "og_name=billingAccounts/*/logs/*}\332A\010log_" - + "name\022\251\001\n\017WriteLogEntries\022).google.loggin" - + "g.v2.WriteLogEntriesRequest\032*.google.log" - + "ging.v2.WriteLogEntriesResponse\"?\202\323\344\223\002\026\"" - + "\021/v2/entries:write:\001*\332A log_name,resourc" - + "e,labels,entries\022\243\001\n\016ListLogEntries\022(.go" - + "ogle.logging.v2.ListLogEntriesRequest\032)." - + "google.logging.v2.ListLogEntriesResponse" - + "\"<\202\323\344\223\002\025\"\020/v2/entries:list:\001*\332A\036resource" - + "_names,filter,order_by\022\305\001\n ListMonitored" - + "ResourceDescriptors\022:.google.logging.v2." - + "ListMonitoredResourceDescriptorsRequest\032" - + ";.google.logging.v2.ListMonitoredResourc" - + "eDescriptorsResponse\"(\202\323\344\223\002\"\022 /v2/monito" - + "redResourceDescriptors\022\210\002\n\010ListLogs\022\".go" - + "ogle.logging.v2.ListLogsRequest\032#.google" - + ".logging.v2.ListLogsResponse\"\262\001\202\323\344\223\002\242\001\022\025" - + "/v2/{parent=*/*}/logsZ\036\022\034/v2/{parent=pro" - + "jects/*}/logsZ#\022!/v2/{parent=organizatio" - + "ns/*}/logsZ\035\022\033/v2/{parent=folders/*}/log" - + "sZ%\022#/v2/{parent=billingAccounts/*}/logs" - + "\332A\006parent\022\206\001\n\016TailLogEntries\022(.google.lo" - + "gging.v2.TailLogEntriesRequest\032).google." - + "logging.v2.TailLogEntriesResponse\"\033\202\323\344\223\002" - + "\025\"\020/v2/entries:tail:\001*(\0010\001\032\215\002\312A\026logging." - + "googleapis.com\322A\360\001https://www.googleapis" - + ".com/auth/cloud-platform,https://www.goo" - + "gleapis.com/auth/cloud-platform.read-onl" - + "y,https://www.googleapis.com/auth/loggin" - + "g.admin,https://www.googleapis.com/auth/" - + "logging.read,https://www.googleapis.com/" - + "auth/logging.writeB\265\001\n\025com.google.loggin" - + "g.v2B\014LoggingProtoP\001Z8google.golang.org/" - + "genproto/googleapis/logging/v2;logging\370\001" - + "\001\252\002\027Google.Cloud.Logging.V2\312\002\027Google\\Clo" - + "ud\\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.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.logging.v2.LoggingConfigProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - com.google.api.AnnotationsProto.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", "PageSize", "PageToken", "ResourceNames", - }); - 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.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.logging.v2.LoggingConfigProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - com.google.api.AnnotationsProto.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 133cac2a4..000000000 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesResponseOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for 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 da146a5e504d7218ca4d00da7ba3dfc6e10fb227 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 24 Feb 2022 21:09:24 +0000 Subject: [PATCH 2/3] =?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 | 655 +++- .../cloud/logging/v2/ConfigSettings.java | 52 + .../cloud/logging/v2/LoggingClient.java | 161 +- .../cloud/logging/v2/gapic_metadata.json | 9 + .../google/cloud/logging/v2/package-info.java | 4 +- .../logging/v2/stub/ConfigServiceV2Stub.java | 30 + .../v2/stub/ConfigServiceV2StubSettings.java | 131 +- .../v2/stub/GrpcConfigServiceV2Stub.java | 102 + .../cloud/logging/v2/ConfigClientTest.java | 201 + .../cloud/logging/v2/MetricsClientTest.java | 6 + .../logging/v2/MockConfigServiceV2Impl.java | 67 + .../logging/v2/ConfigServiceV2Grpc.java | 2288 +++++++---- .../logging/v2/LoggingServiceV2Grpc.java | 962 +++++ .../logging/v2/MetricsServiceV2Grpc.java | 801 ++++ .../google/cloud/logging/v2/ConfigClient.java | 3489 ----------------- .../cloud/logging/v2/ConfigSettings.java | 506 --- .../cloud/logging/v2/LoggingClient.java | 1290 ------ .../cloud/logging/v2/LoggingSettings.java | 266 -- .../cloud/logging/v2/MetricsClient.java | 790 ---- .../cloud/logging/v2/MetricsSettings.java | 235 -- .../cloud/logging/v2/gapic_metadata.json | 147 - .../google/cloud/logging/v2/package-info.java | 69 - .../logging/v2/stub/ConfigServiceV2Stub.java | 211 - .../v2/stub/ConfigServiceV2StubSettings.java | 1199 ------ .../GrpcConfigServiceV2CallableFactory.java | 113 - .../v2/stub/GrpcConfigServiceV2Stub.java | 957 ----- .../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 | 737 ---- .../logging/v2/stub/MetricsServiceV2Stub.java | 69 - .../v2/stub/MetricsServiceV2StubSettings.java | 463 --- .../cloud/logging/v2/ConfigClientTest.java | 2719 ------------- .../cloud/logging/v2/LoggingClientTest.java | 656 ---- .../cloud/logging/v2/MetricsClientTest.java | 544 --- .../cloud/logging/v2/MockConfigServiceV2.java | 59 - .../logging/v2/MockConfigServiceV2Impl.java | 633 --- .../logging/v2/MockLoggingServiceV2.java | 59 - .../logging/v2/MockLoggingServiceV2Impl.java | 213 - .../logging/v2/MockMetricsServiceV2.java | 59 - .../logging/v2/MockMetricsServiceV2Impl.java | 173 - .../logging/v2/LoggingServiceV2Grpc.java | 765 ---- .../logging/v2/MetricsServiceV2Grpc.java | 647 --- .../v2/CopyLogEntriesResponseOrBuilder.java | 19 - .../v2/DeleteLogMetricRequestOrBuilder.java | 31 - .../v2/DeleteViewRequestOrBuilder.java | 35 - .../v2/GetLogMetricRequestOrBuilder.java | 31 - .../logging/v2/GetViewRequestOrBuilder.java | 35 - .../com/google/logging/v2/LogEntryProto.java | 156 - .../google/logging/v2/LoggingConfigProto.java | 915 ----- .../logging/v2/LoggingMetricsProto.java | 223 -- .../com/google/logging/v2/LoggingProto.java | 326 -- .../v2/WriteLogEntriesResponseOrBuilder.java | 9 - .../google/logging/v2/BigQueryOptions.java | 315 +- .../logging/v2/BigQueryOptionsOrBuilder.java | 27 +- .../v2/BillingAccountLocationName.java | 0 .../google/logging/v2/BillingAccountName.java | 0 .../com/google/logging/v2/CmekSettings.java | 452 ++- .../google/logging/v2/CmekSettingsName.java | 116 +- .../logging/v2/CmekSettingsOrBuilder.java | 45 +- .../logging/v2/CopyLogEntriesMetadata.java | 705 ++-- .../v2/CopyLogEntriesMetadataOrBuilder.java | 63 +- .../logging/v2/CopyLogEntriesRequest.java | 459 ++- .../v2/CopyLogEntriesRequestOrBuilder.java | 45 +- .../logging/v2/CopyLogEntriesResponse.java | 262 +- .../v2/CopyLogEntriesResponseOrBuilder.java | 38 + .../logging/v2/CreateBucketRequest.java | 523 ++- .../v2/CreateBucketRequestOrBuilder.java | 52 +- .../logging/v2/CreateExclusionRequest.java | 474 ++- .../v2/CreateExclusionRequestOrBuilder.java | 52 +- .../logging/v2/CreateLogMetricRequest.java | 444 ++- .../v2/CreateLogMetricRequestOrBuilder.java | 43 +- .../google/logging/v2/CreateSinkRequest.java | 451 ++- .../v2/CreateSinkRequestOrBuilder.java | 46 +- .../google/logging/v2/CreateViewRequest.java | 465 ++- .../v2/CreateViewRequestOrBuilder.java | 44 +- .../logging/v2/DeleteBucketRequest.java | 329 +- .../v2/DeleteBucketRequestOrBuilder.java | 35 +- .../logging/v2/DeleteExclusionRequest.java | 329 +- .../v2/DeleteExclusionRequestOrBuilder.java | 35 +- .../logging/v2/DeleteLogMetricRequest.java | 329 +- .../v2/DeleteLogMetricRequestOrBuilder.java | 56 + .../google/logging/v2/DeleteLogRequest.java | 322 +- .../logging/v2/DeleteLogRequestOrBuilder.java | 35 +- .../google/logging/v2/DeleteSinkRequest.java | 326 +- .../v2/DeleteSinkRequestOrBuilder.java | 35 +- .../google/logging/v2/DeleteViewRequest.java | 326 +- .../v2/DeleteViewRequestOrBuilder.java | 60 + .../google/logging/v2/FolderLocationName.java | 0 .../com/google/logging/v2/FolderName.java | 0 .../google/logging/v2/GetBucketRequest.java | 322 +- .../logging/v2/GetBucketRequestOrBuilder.java | 35 +- .../logging/v2/GetCmekSettingsRequest.java | 329 +- .../v2/GetCmekSettingsRequestOrBuilder.java | 35 +- .../logging/v2/GetExclusionRequest.java | 329 +- .../v2/GetExclusionRequestOrBuilder.java | 35 +- .../logging/v2/GetLogMetricRequest.java | 329 +- .../v2/GetLogMetricRequestOrBuilder.java | 56 + .../google/logging/v2/GetSettingsRequest.java | 326 +- .../v2/GetSettingsRequestOrBuilder.java | 35 +- .../com/google/logging/v2/GetSinkRequest.java | 322 +- .../logging/v2/GetSinkRequestOrBuilder.java | 35 +- .../com/google/logging/v2/GetViewRequest.java | 322 +- .../logging/v2/GetViewRequestOrBuilder.java | 60 + .../com/google/logging/v2/LifecycleState.java | 82 +- .../google/logging/v2/ListBucketsRequest.java | 439 ++- .../v2/ListBucketsRequestOrBuilder.java | 47 +- .../logging/v2/ListBucketsResponse.java | 454 ++- .../v2/ListBucketsResponseOrBuilder.java | 46 +- .../logging/v2/ListExclusionsRequest.java | 442 ++- .../v2/ListExclusionsRequestOrBuilder.java | 47 +- .../logging/v2/ListExclusionsResponse.java | 449 ++- .../v2/ListExclusionsResponseOrBuilder.java | 45 +- .../logging/v2/ListLogEntriesRequest.java | 658 ++-- .../v2/ListLogEntriesRequestOrBuilder.java | 82 +- .../logging/v2/ListLogEntriesResponse.java | 454 ++- .../v2/ListLogEntriesResponseOrBuilder.java | 46 +- .../logging/v2/ListLogMetricsRequest.java | 442 ++- .../v2/ListLogMetricsRequestOrBuilder.java | 47 +- .../logging/v2/ListLogMetricsResponse.java | 454 ++- .../v2/ListLogMetricsResponseOrBuilder.java | 46 +- .../google/logging/v2/ListLogsRequest.java | 601 +-- .../logging/v2/ListLogsRequestOrBuilder.java | 81 +- .../google/logging/v2/ListLogsResponse.java | 405 +- .../logging/v2/ListLogsResponseOrBuilder.java | 45 +- ...stMonitoredResourceDescriptorsRequest.java | 360 +- ...edResourceDescriptorsRequestOrBuilder.java | 30 +- ...tMonitoredResourceDescriptorsResponse.java | 465 ++- ...dResourceDescriptorsResponseOrBuilder.java | 45 +- .../google/logging/v2/ListSinksRequest.java | 435 +- .../logging/v2/ListSinksRequestOrBuilder.java | 47 +- .../google/logging/v2/ListSinksResponse.java | 454 ++- .../v2/ListSinksResponseOrBuilder.java | 46 +- .../google/logging/v2/ListViewsRequest.java | 407 +- .../logging/v2/ListViewsRequestOrBuilder.java | 39 +- .../google/logging/v2/ListViewsResponse.java | 454 ++- .../v2/ListViewsResponseOrBuilder.java | 46 +- .../com/google/logging/v2/LocationName.java | 0 .../java/com/google/logging/v2/LogBucket.java | 1017 +++-- .../com/google/logging/v2/LogBucketName.java | 0 .../google/logging/v2/LogBucketOrBuilder.java | 116 +- .../java/com/google/logging/v2/LogEntry.java | 2232 +++++++---- .../google/logging/v2/LogEntryOperation.java | 451 ++- .../v2/LogEntryOperationOrBuilder.java | 42 +- .../google/logging/v2/LogEntryOrBuilder.java | 251 +- .../com/google/logging/v2/LogEntryProto.java | 192 + .../logging/v2/LogEntrySourceLocation.java | 417 +- .../v2/LogEntrySourceLocationOrBuilder.java | 39 +- .../com/google/logging/v2/LogExclusion.java | 767 ++-- .../google/logging/v2/LogExclusionName.java | 0 .../logging/v2/LogExclusionOrBuilder.java | 82 +- .../java/com/google/logging/v2/LogMetric.java | 1565 +++++--- .../com/google/logging/v2/LogMetricName.java | 0 .../google/logging/v2/LogMetricOrBuilder.java | 190 +- .../java/com/google/logging/v2/LogName.java | 0 .../java/com/google/logging/v2/LogSink.java | 1574 +++++--- .../com/google/logging/v2/LogSinkName.java | 0 .../google/logging/v2/LogSinkOrBuilder.java | 187 +- .../java/com/google/logging/v2/LogSplit.java | 356 +- .../google/logging/v2/LogSplitOrBuilder.java | 33 +- .../java/com/google/logging/v2/LogView.java | 726 ++-- .../com/google/logging/v2/LogViewName.java | 0 .../google/logging/v2/LogViewOrBuilder.java | 79 +- .../google/logging/v2/LoggingConfigProto.java | 992 +++++ .../logging/v2/LoggingMetricsProto.java | 255 ++ .../com/google/logging/v2/LoggingProto.java | 355 ++ .../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 | 562 +-- .../com/google/logging/v2/SettingsName.java | 0 .../google/logging/v2/SettingsOrBuilder.java | 57 +- .../logging/v2/TailLogEntriesRequest.java | 548 ++- .../v2/TailLogEntriesRequestOrBuilder.java | 62 +- .../logging/v2/TailLogEntriesResponse.java | 1066 +++-- .../v2/TailLogEntriesResponseOrBuilder.java | 66 +- .../logging/v2/UndeleteBucketRequest.java | 329 +- .../v2/UndeleteBucketRequestOrBuilder.java | 35 +- .../logging/v2/UpdateBucketRequest.java | 574 ++- .../v2/UpdateBucketRequestOrBuilder.java | 60 +- .../logging/v2/UpdateCmekSettingsRequest.java | 582 ++- .../UpdateCmekSettingsRequestOrBuilder.java | 64 +- .../logging/v2/UpdateExclusionRequest.java | 604 +-- .../v2/UpdateExclusionRequestOrBuilder.java | 69 +- .../logging/v2/UpdateLogMetricRequest.java | 444 ++- .../v2/UpdateLogMetricRequestOrBuilder.java | 43 +- .../logging/v2/UpdateSettingsRequest.java | 555 ++- .../v2/UpdateSettingsRequestOrBuilder.java | 61 +- .../google/logging/v2/UpdateSinkRequest.java | 579 +-- .../v2/UpdateSinkRequestOrBuilder.java | 63 +- .../google/logging/v2/UpdateViewRequest.java | 516 ++- .../v2/UpdateViewRequestOrBuilder.java | 52 +- .../v2/WriteLogEntriesPartialErrors.java | 459 ++- ...WriteLogEntriesPartialErrorsOrBuilder.java | 50 +- .../logging/v2/WriteLogEntriesRequest.java | 1045 +++-- .../v2/WriteLogEntriesRequestOrBuilder.java | 129 +- .../logging/v2/WriteLogEntriesResponse.java | 225 +- .../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 205 files changed, 29765 insertions(+), 34628 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%) create mode 100644 grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingServiceV2Grpc.java 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/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/LoggingServiceV2Grpc.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/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/BigQueryOptions.java (73%) 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/CmekSettings.java (79%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CmekSettingsName.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CmekSettingsOrBuilder.java (84%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CopyLogEntriesMetadata.java (73%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CopyLogEntriesMetadataOrBuilder.java (80%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CopyLogEntriesRequest.java (72%) 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 (68%) 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 (71%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CreateBucketRequestOrBuilder.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CreateExclusionRequest.java (66%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CreateExclusionRequestOrBuilder.java (62%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/CreateLogMetricRequest.java (68%) 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 (74%) 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 (71%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/DeleteBucketRequest.java (69%) 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 (68%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/DeleteExclusionRequestOrBuilder.java (55%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/DeleteLogMetricRequest.java (65%) 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 (70%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/DeleteLogRequestOrBuilder.java (59%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/DeleteSinkRequest.java (69%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/DeleteSinkRequestOrBuilder.java (55%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/DeleteViewRequest.java (67%) 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 (69%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/GetBucketRequestOrBuilder.java (57%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/GetCmekSettingsRequest.java (70%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/GetCmekSettingsRequestOrBuilder.java (61%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/GetExclusionRequest.java (68%) 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/GetLogMetricRequest.java (65%) 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 (71%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/GetSettingsRequestOrBuilder.java (62%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/GetSinkRequest.java (68%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/GetSinkRequestOrBuilder.java (52%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/GetViewRequest.java (67%) 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/LifecycleState.java (68%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListBucketsRequest.java (73%) 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 (73%) 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 (71%) 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 (74%) 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/ListLogEntriesRequest.java (78%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListLogEntriesRequestOrBuilder.java (81%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListLogEntriesResponse.java (78%) 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 (71%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListLogMetricsRequestOrBuilder.java (63%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListLogMetricsResponse.java (74%) 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 (74%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListLogsRequestOrBuilder.java (73%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ListLogsResponse.java (74%) 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 (71%) 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 (74%) 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 (72%) 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 (73%) 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 (74%) 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 (73%) 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/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 (73%) 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 (82%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogEntry.java (74%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogEntryOperation.java (74%) 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 (85%) 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 (74%) 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 (79%) 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 (73%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogSplitOrBuilder.java (65%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogView.java (69%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogViewName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/LogViewOrBuilder.java (74%) create mode 100644 proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingConfigProto.java create mode 100644 proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingMetricsProto.java create mode 100644 proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingProto.java rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/OperationState.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/OrganizationLocationName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/OrganizationName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/ProjectName.java (100%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/Settings.java (80%) 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 (85%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/TailLogEntriesRequest.java (78%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/TailLogEntriesRequestOrBuilder.java (85%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/TailLogEntriesResponse.java (74%) 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 (69%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UndeleteBucketRequestOrBuilder.java (58%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateBucketRequest.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateBucketRequestOrBuilder.java (76%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequest.java (72%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequestOrBuilder.java (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 (68%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateLogMetricRequestOrBuilder.java (63%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateSettingsRequest.java (74%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateSettingsRequestOrBuilder.java (78%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateSinkRequest.java (77%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateSinkRequestOrBuilder.java (82%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateViewRequest.java (74%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/UpdateViewRequestOrBuilder.java (78%) rename {owl-bot-staging/v2/proto-google-cloud-logging-v2 => proto-google-cloud-logging-v2}/src/main/java/com/google/logging/v2/WriteLogEntriesPartialErrors.java (67%) 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 (67%) 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 cf5b1db53..cf3f9a201 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 @@ -20,9 +20,11 @@ import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; 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; @@ -31,6 +33,9 @@ import com.google.logging.v2.BillingAccountLocationName; import com.google.logging.v2.BillingAccountName; 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.CreateSinkRequest; @@ -44,6 +49,7 @@ import com.google.logging.v2.GetBucketRequest; import com.google.logging.v2.GetCmekSettingsRequest; import com.google.logging.v2.GetExclusionRequest; +import com.google.logging.v2.GetSettingsRequest; import com.google.logging.v2.GetSinkRequest; import com.google.logging.v2.GetViewRequest; import com.google.logging.v2.ListBucketsRequest; @@ -64,12 +70,17 @@ 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; @@ -145,6 +156,7 @@ 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 { @@ -175,12 +187,14 @@ public static final ConfigClient create(ConfigServiceV2Stub stub) { protected ConfigClient(ConfigSettings settings) throws IOException { this.settings = settings; this.stub = ((ConfigServiceV2StubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected ConfigClient(ConfigServiceV2Stub stub) { this.settings = null; this.stub = stub; + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } public final ConfigSettings getSettings() { @@ -192,9 +206,17 @@ 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 buckets. + * Lists log buckets. * *

Sample code: * @@ -227,7 +249,7 @@ public final ListBucketsPagedResponse listBuckets(BillingAccountLocationName par // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists buckets. + * Lists log buckets. * *

Sample code: * @@ -259,7 +281,7 @@ public final ListBucketsPagedResponse listBuckets(FolderLocationName parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists buckets. + * Lists log buckets. * *

Sample code: * @@ -291,7 +313,7 @@ public final ListBucketsPagedResponse listBuckets(LocationName parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists buckets. + * Lists log buckets. * *

Sample code: * @@ -323,7 +345,7 @@ public final ListBucketsPagedResponse listBuckets(OrganizationLocationName paren // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists buckets. + * Lists log buckets. * *

Sample code: * @@ -352,7 +374,7 @@ public final ListBucketsPagedResponse listBuckets(String parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists buckets. + * Lists log buckets. * *

Sample code: * @@ -379,7 +401,7 @@ public final ListBucketsPagedResponse listBuckets(ListBucketsRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists buckets. + * Lists log buckets. * *

Sample code: * @@ -406,7 +428,7 @@ public final ListBucketsPagedResponse listBuckets(ListBucketsRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists buckets. + * Lists log buckets. * *

Sample code: * @@ -439,7 +461,7 @@ public final UnaryCallable listBucketsC // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a bucket. + * Gets a log bucket. * *

Sample code: * @@ -464,7 +486,7 @@ public final LogBucket getBucket(GetBucketRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a bucket. + * Gets a log bucket. * *

Sample code: * @@ -488,8 +510,8 @@ public final UnaryCallable getBucketCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a bucket that can be used to store log entries. Once a bucket has been created, the - * region cannot be changed. + * 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: * @@ -514,8 +536,8 @@ public final LogBucket createBucket(CreateBucketRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a bucket that can be used to store log entries. Once a bucket has been created, the - * region cannot be changed. + * 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: * @@ -539,16 +561,16 @@ public final UnaryCallable createBucketCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a bucket. This method replaces the following fields in the existing bucket with values - * from the new bucket: `retention_period` + * Updates a log bucket. This method replaces the following fields in the existing bucket with + * values from the new bucket: `retention_period` * - *

If the retention period is decreased and the bucket is locked, FAILED_PRECONDITION will be + *

If the retention period is decreased and the bucket is locked, `FAILED_PRECONDITION` will be * returned. * - *

If the bucket has a LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION will be - * returned. + *

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

A buckets region may not be modified after it is created. + *

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

Sample code: * @@ -575,16 +597,16 @@ public final LogBucket updateBucket(UpdateBucketRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a bucket. This method replaces the following fields in the existing bucket with values - * from the new bucket: `retention_period` + * Updates a log bucket. This method replaces the following fields in the existing bucket with + * values from the new bucket: `retention_period` * - *

If the retention period is decreased and the bucket is locked, FAILED_PRECONDITION will be + *

If the retention period is decreased and the bucket is locked, `FAILED_PRECONDITION` will be * returned. * - *

If the bucket has a LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION will be - * returned. + *

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

A buckets region may not be modified after it is created. + *

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

Sample code: * @@ -610,8 +632,10 @@ public final UnaryCallable updateBucketCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a bucket. Moves the bucket to the DELETE_REQUESTED state. After 7 days, the bucket will - * be purged and all logs in the bucket will be permanently deleted. + * 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: * @@ -636,8 +660,10 @@ public final void deleteBucket(DeleteBucketRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a bucket. Moves the bucket to the DELETE_REQUESTED state. After 7 days, the bucket will - * be purged and all logs in the bucket will be permanently deleted. + * 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: * @@ -661,8 +687,8 @@ public final UnaryCallable deleteBucketCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Undeletes a bucket. A bucket that has been deleted may be undeleted within the grace period of - * 7 days. + * Undeletes a log bucket. A bucket that has been deleted can be undeleted within the grace period + * of 7 days. * *

Sample code: * @@ -687,8 +713,8 @@ public final void undeleteBucket(UndeleteBucketRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Undeletes a bucket. A bucket that has been deleted may be undeleted within the grace period of - * 7 days. + * Undeletes a log bucket. A bucket that has been deleted can be undeleted within the grace period + * of 7 days. * *

Sample code: * @@ -712,7 +738,7 @@ public final UnaryCallable undeleteBucketCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists views on a bucket. + * Lists views on a log bucket. * *

Sample code: * @@ -736,7 +762,7 @@ public final ListViewsPagedResponse listViews(String parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists views on a bucket. + * Lists views on a log bucket. * *

Sample code: * @@ -763,7 +789,7 @@ public final ListViewsPagedResponse listViews(ListViewsRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists views on a bucket. + * Lists views on a log bucket. * *

Sample code: * @@ -789,7 +815,7 @@ public final UnaryCallable listViewsPa // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists views on a bucket. + * Lists views on a log bucket. * *

Sample code: * @@ -822,7 +848,7 @@ public final UnaryCallable listViewsCallabl // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a view. + * Gets a view on a log bucket.. * *

Sample code: * @@ -848,7 +874,7 @@ public final LogView getView(GetViewRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a view. + * Gets a view on a log bucket.. * *

Sample code: * @@ -873,7 +899,7 @@ public final UnaryCallable getViewCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a view over logs in a bucket. A bucket may contain a maximum of 50 views. + * Creates a view over log entries in a log bucket. A bucket may contain a maximum of 30 views. * *

Sample code: * @@ -898,7 +924,7 @@ public final LogView createView(CreateViewRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a view over logs in a bucket. A bucket may contain a maximum of 50 views. + * Creates a view over log entries in a log bucket. A bucket may contain a maximum of 30 views. * *

Sample code: * @@ -922,8 +948,10 @@ public final UnaryCallable createViewCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a view. This method replaces the following fields in the existing view with values from - * the new view: `filter`. + * 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: * @@ -948,8 +976,10 @@ public final LogView updateView(UpdateViewRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a view. This method replaces the following fields in the existing view with values from - * the new view: `filter`. + * 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: * @@ -973,7 +1003,9 @@ public final UnaryCallable updateViewCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a view from a bucket. + * 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: * @@ -999,7 +1031,9 @@ public final void deleteView(DeleteViewRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a view from a bucket. + * 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: * @@ -1255,7 +1289,8 @@ public final UnaryCallable listSinksCallabl * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" * "folders/[FOLDER_ID]/sinks/[SINK_ID]" - *

Example: `"projects/my-project-id/sinks/my-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) { @@ -1284,7 +1319,8 @@ public final LogSink getSink(LogSinkName sinkName) { * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" * "folders/[FOLDER_ID]/sinks/[SINK_ID]" - *

Example: `"projects/my-project-id/sinks/my-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) { @@ -1357,7 +1393,8 @@ public final UnaryCallable getSinkCallable() { * @param parent Required. The resource in which to create the sink: *

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

Examples: `"projects/my-logging-project"`, `"organizations/123456789"`. + *

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 @@ -1391,7 +1428,8 @@ public final LogSink createSink(BillingAccountName parent, LogSink 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]" - *

Examples: `"projects/my-logging-project"`, `"organizations/123456789"`. + *

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 @@ -1425,7 +1463,8 @@ public final LogSink createSink(FolderName parent, LogSink 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]" - *

Examples: `"projects/my-logging-project"`, `"organizations/123456789"`. + *

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 @@ -1459,7 +1498,8 @@ public final LogSink createSink(OrganizationName parent, LogSink 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]" - *

Examples: `"projects/my-logging-project"`, `"organizations/123456789"`. + *

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 @@ -1493,7 +1533,8 @@ public final LogSink createSink(ProjectName parent, LogSink 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]" - *

Examples: `"projects/my-logging-project"`, `"organizations/123456789"`. + *

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 @@ -1583,7 +1624,8 @@ public final UnaryCallable createSinkCallable() { * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" * "folders/[FOLDER_ID]/sinks/[SINK_ID]" - *

Example: `"projects/my-project-id/sinks/my-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 @@ -1621,7 +1663,8 @@ public final LogSink updateSink(LogSinkName sinkName, LogSink sink) { * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" * "folders/[FOLDER_ID]/sinks/[SINK_ID]" - *

Example: `"projects/my-project-id/sinks/my-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 @@ -1657,18 +1700,21 @@ public final LogSink updateSink(String sinkName, LogSink sink) { * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" * "folders/[FOLDER_ID]/sinks/[SINK_ID]" - *

Example: `"projects/my-project-id/sinks/my-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. + *

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 - *

Example: `updateMask=filter`. + *

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) { @@ -1706,18 +1752,21 @@ public final LogSink updateSink(LogSinkName sinkName, LogSink sink, FieldMask up * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" * "folders/[FOLDER_ID]/sinks/[SINK_ID]" - *

Example: `"projects/my-project-id/sinks/my-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. + *

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 - *

Example: `updateMask=filter`. + *

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) { @@ -1809,7 +1858,8 @@ public final UnaryCallable updateSinkCallable() { * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" * "folders/[FOLDER_ID]/sinks/[SINK_ID]" - *

Example: `"projects/my-project-id/sinks/my-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) { @@ -1840,7 +1890,8 @@ public final void deleteSink(LogSinkName sinkName) { * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" * "folders/[FOLDER_ID]/sinks/[SINK_ID]" - *

Example: `"projects/my-project-id/sinks/my-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) { @@ -1897,7 +1948,7 @@ public final UnaryCallable deleteSinkCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all the exclusions in a parent resource. + * Lists all the exclusions on the _Default sink in a parent resource. * *

Sample code: * @@ -1925,7 +1976,7 @@ public final ListExclusionsPagedResponse listExclusions(BillingAccountName paren // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all the exclusions in a parent resource. + * Lists all the exclusions on the _Default sink in a parent resource. * *

Sample code: * @@ -1953,7 +2004,7 @@ public final ListExclusionsPagedResponse listExclusions(FolderName parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all the exclusions in a parent resource. + * Lists all the exclusions on the _Default sink in a parent resource. * *

Sample code: * @@ -1981,7 +2032,7 @@ public final ListExclusionsPagedResponse listExclusions(OrganizationName parent) // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all the exclusions in a parent resource. + * Lists all the exclusions on the _Default sink in a parent resource. * *

Sample code: * @@ -2009,7 +2060,7 @@ public final ListExclusionsPagedResponse listExclusions(ProjectName parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all the exclusions in a parent resource. + * Lists all the exclusions on the _Default sink in a parent resource. * *

Sample code: * @@ -2034,7 +2085,7 @@ public final ListExclusionsPagedResponse listExclusions(String parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all the exclusions in a parent resource. + * Lists all the exclusions on the _Default sink in a parent resource. * *

Sample code: * @@ -2061,7 +2112,7 @@ public final ListExclusionsPagedResponse listExclusions(ListExclusionsRequest re // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all the exclusions in a parent resource. + * Lists all the exclusions on the _Default sink in a parent resource. * *

Sample code: * @@ -2089,7 +2140,7 @@ public final ListExclusionsPagedResponse listExclusions(ListExclusionsRequest re // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all the exclusions in a parent resource. + * Lists all the exclusions on the _Default sink in a parent resource. * *

Sample code: * @@ -2123,7 +2174,7 @@ public final ListExclusionsPagedResponse listExclusions(ListExclusionsRequest re // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the description of an exclusion. + * Gets the description of an exclusion in the _Default sink. * *

Sample code: * @@ -2139,7 +2190,8 @@ public final ListExclusionsPagedResponse listExclusions(ListExclusionsRequest re * "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" * "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" * "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" - *

Example: `"projects/my-project-id/exclusions/my-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) { @@ -2150,7 +2202,7 @@ public final LogExclusion getExclusion(LogExclusionName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the description of an exclusion. + * Gets the description of an exclusion in the _Default sink. * *

Sample code: * @@ -2166,7 +2218,8 @@ public final LogExclusion getExclusion(LogExclusionName name) { * "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" * "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" * "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" - *

Example: `"projects/my-project-id/exclusions/my-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) { @@ -2176,7 +2229,7 @@ public final LogExclusion getExclusion(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the description of an exclusion. + * Gets the description of an exclusion in the _Default sink. * *

Sample code: * @@ -2200,7 +2253,7 @@ public final LogExclusion getExclusion(GetExclusionRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the description of an exclusion. + * Gets the description of an exclusion in the _Default sink. * *

Sample code: * @@ -2223,8 +2276,8 @@ public final UnaryCallable getExclusionCallab // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new exclusion 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. + * 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: * @@ -2239,7 +2292,8 @@ public final UnaryCallable getExclusionCallab * @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]" - *

Examples: `"projects/my-logging-project"`, `"organizations/123456789"`. + *

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 @@ -2255,8 +2309,8 @@ public final LogExclusion createExclusion(BillingAccountName parent, LogExclusio // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new exclusion 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. + * 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: * @@ -2271,7 +2325,8 @@ public final LogExclusion createExclusion(BillingAccountName parent, LogExclusio * @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]" - *

Examples: `"projects/my-logging-project"`, `"organizations/123456789"`. + *

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 @@ -2287,8 +2342,8 @@ public final LogExclusion createExclusion(FolderName parent, LogExclusion exclus // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new exclusion 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. + * 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: * @@ -2303,7 +2358,8 @@ public final LogExclusion createExclusion(FolderName parent, LogExclusion exclus * @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]" - *

Examples: `"projects/my-logging-project"`, `"organizations/123456789"`. + *

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 @@ -2319,8 +2375,8 @@ public final LogExclusion createExclusion(OrganizationName parent, LogExclusion // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new exclusion 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. + * 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: * @@ -2335,7 +2391,8 @@ public final LogExclusion createExclusion(OrganizationName parent, LogExclusion * @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]" - *

Examples: `"projects/my-logging-project"`, `"organizations/123456789"`. + *

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 @@ -2351,8 +2408,8 @@ public final LogExclusion createExclusion(ProjectName parent, LogExclusion exclu // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new exclusion 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. + * 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: * @@ -2367,7 +2424,8 @@ public final LogExclusion createExclusion(ProjectName parent, LogExclusion exclu * @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]" - *

Examples: `"projects/my-logging-project"`, `"organizations/123456789"`. + *

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 @@ -2380,8 +2438,8 @@ public final LogExclusion createExclusion(String parent, LogExclusion exclusion) // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new exclusion 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. + * 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: * @@ -2405,8 +2463,8 @@ public final LogExclusion createExclusion(CreateExclusionRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new exclusion 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. + * 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: * @@ -2429,7 +2487,7 @@ public final UnaryCallable createExclusion // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Changes one or more properties of an existing exclusion. + * Changes one or more properties of an existing exclusion in the _Default sink. * *

Sample code: * @@ -2447,7 +2505,8 @@ public final UnaryCallable createExclusion * "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" * "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" * "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" - *

Example: `"projects/my-project-id/exclusions/my-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 @@ -2471,7 +2530,7 @@ public final LogExclusion updateExclusion( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Changes one or more properties of an existing exclusion. + * Changes one or more properties of an existing exclusion in the _Default sink. * *

Sample code: * @@ -2489,7 +2548,8 @@ public final LogExclusion updateExclusion( * "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" * "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" * "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" - *

Example: `"projects/my-project-id/exclusions/my-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 @@ -2513,7 +2573,7 @@ public final LogExclusion updateExclusion( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Changes one or more properties of an existing exclusion. + * Changes one or more properties of an existing exclusion in the _Default sink. * *

Sample code: * @@ -2539,7 +2599,7 @@ public final LogExclusion updateExclusion(UpdateExclusionRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Changes one or more properties of an existing exclusion. + * Changes one or more properties of an existing exclusion in the _Default sink. * *

Sample code: * @@ -2564,7 +2624,7 @@ public final UnaryCallable updateExclusion // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes an exclusion. + * Deletes an exclusion in the _Default sink. * *

Sample code: * @@ -2580,7 +2640,8 @@ public final UnaryCallable updateExclusion * "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" * "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" * "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" - *

Example: `"projects/my-project-id/exclusions/my-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) { @@ -2591,7 +2652,7 @@ public final void deleteExclusion(LogExclusionName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes an exclusion. + * Deletes an exclusion in the _Default sink. * *

Sample code: * @@ -2607,7 +2668,8 @@ public final void deleteExclusion(LogExclusionName name) { * "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]" * "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]" * "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" - *

Example: `"projects/my-project-id/exclusions/my-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) { @@ -2617,7 +2679,7 @@ public final void deleteExclusion(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes an exclusion. + * Deletes an exclusion in the _Default sink. * *

Sample code: * @@ -2641,7 +2703,7 @@ public final void deleteExclusion(DeleteExclusionRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes an exclusion. + * Deletes an exclusion in the _Default sink. * *

Sample code: * @@ -2664,12 +2726,13 @@ public final UnaryCallable deleteExclusionCallabl // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the Logs Router CMEK settings for the given resource. + * Gets the Logging CMEK settings for the given resource. * - *

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

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 Logs + *

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

Sample code: @@ -2693,12 +2756,13 @@ public final CmekSettings getCmekSettings(GetCmekSettingsRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the Logs Router CMEK settings for the given resource. + * Gets the Logging CMEK settings for the given resource. * - *

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

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 Logs + *

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

Sample code: @@ -2721,17 +2785,18 @@ public final UnaryCallable getCmekSettings // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the Logs Router CMEK settings for the given resource. + * Updates the Log Router CMEK settings for the given resource. * - *

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

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 Logs + *

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

Sample code: @@ -2757,17 +2822,18 @@ public final CmekSettings updateCmekSettings(UpdateCmekSettingsRequest request) // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the Logs Router CMEK settings for the given resource. + * Updates the Log Router CMEK settings for the given resource. * - *

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

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 Logs + *

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

Sample code: @@ -2791,6 +2857,335 @@ public final UnaryCallable updateCmekSe 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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
+   * 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(); diff --git a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigSettings.java b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigSettings.java index 49d551d7b..c99c394cc 100644 --- a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigSettings.java +++ b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigSettings.java @@ -29,11 +29,15 @@ 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.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.logging.v2.stub.ConfigServiceV2StubSettings; 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.CreateSinkRequest; @@ -45,6 +49,7 @@ import com.google.logging.v2.GetBucketRequest; import com.google.logging.v2.GetCmekSettingsRequest; import com.google.logging.v2.GetExclusionRequest; +import com.google.logging.v2.GetSettingsRequest; import com.google.logging.v2.GetSinkRequest; import com.google.logging.v2.GetViewRequest; import com.google.logging.v2.ListBucketsRequest; @@ -59,12 +64,15 @@ 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; @@ -224,6 +232,28 @@ public UnaryCallSettings updateCmekSett 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(); } @@ -445,6 +475,28 @@ public UnaryCallSettings.Builder deleteExclusionS 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/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 01da1d3ed..479e271a2 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 @@ -167,9 +167,10 @@ public LoggingServiceV2Stub getStub() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes all the log entries in a log. 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. + * 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: * @@ -181,11 +182,15 @@ public LoggingServiceV2Stub getStub() { * }

* * @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]" + *

    + *
  • `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/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`. For more - * information about log names, see [LogEntry][google.logging.v2.LogEntry]. + * `"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) { @@ -198,9 +203,10 @@ public final void deleteLog(LogName logName) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes all the log entries in a log. 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. + * 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: * @@ -212,11 +218,15 @@ public final void deleteLog(LogName 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]" + *

    + *
  • `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/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`. For more - * information about log names, see [LogEntry][google.logging.v2.LogEntry]. + * `"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) { @@ -226,9 +236,10 @@ public final void deleteLog(String logName) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes all the log entries in a log. 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. + * 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: * @@ -251,9 +262,10 @@ public final void deleteLog(DeleteLogRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes all the log entries in a log. 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. + * 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: * @@ -295,11 +307,15 @@ public final UnaryCallable deleteLogCallable() { * * @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]" + *

    + *
  • `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/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity" + * "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. @@ -323,14 +339,14 @@ public final UnaryCallable deleteLogCallable() { * 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/quota-policy) 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 + * 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/quota-policy) 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. + * 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( @@ -370,11 +386,15 @@ public final WriteLogEntriesResponse writeLogEntries( * * @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]" + *

    + *
  • `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/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity" + * "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. @@ -398,14 +418,14 @@ public final WriteLogEntriesResponse writeLogEntries( * 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/quota-policy) 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 + * 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/quota-policy) 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. + * 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( @@ -508,13 +528,19 @@ public final WriteLogEntriesResponse writeLogEntries(WriteLogEntriesRequest requ * * @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] - * organization/[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/[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. * @param filter Optional. A filter that chooses which log entries to return. See [Advanced Logs * Queries](https://cloud.google.com/logging/docs/view/advanced-queries). Only log entries @@ -748,8 +774,13 @@ public final ListMonitoredResourceDescriptorsPagedResponse listMonitoredResource * }

* * @param parent Required. The resource name that owns the logs: - *

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

    + *
  • `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) { @@ -775,8 +806,13 @@ public final ListLogsPagedResponse listLogs(BillingAccountName parent) { * }
* * @param parent Required. The resource name that owns the logs: - *

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

    + *
  • `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) { @@ -802,8 +838,13 @@ public final ListLogsPagedResponse listLogs(FolderName parent) { * }
* * @param parent Required. The resource name that owns the logs: - *

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

    + *
  • `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) { @@ -829,8 +870,13 @@ public final ListLogsPagedResponse listLogs(OrganizationName parent) { * }
* * @param parent Required. The resource name that owns the logs: - *

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

    + *
  • `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) { @@ -856,8 +902,13 @@ public final ListLogsPagedResponse listLogs(ProjectName parent) { * }
* * @param parent Required. The resource name that owns the logs: - *

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

    + *
  • `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) { diff --git a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/gapic_metadata.json b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/gapic_metadata.json index 19d23c676..3f7d36cb8 100644 --- a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/gapic_metadata.json +++ b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/gapic_metadata.json @@ -37,6 +37,9 @@ "grpc": { "libraryClient": "ConfigClient", "rpcs": { + "CopyLogEntries": { + "methods": ["copyLogEntriesAsync", "copyLogEntriesOperationCallable", "copyLogEntriesCallable"] + }, "CreateBucket": { "methods": ["createBucket", "createBucketCallable"] }, @@ -70,6 +73,9 @@ "GetExclusion": { "methods": ["getExclusion", "getExclusion", "getExclusion", "getExclusionCallable"] }, + "GetSettings": { + "methods": ["getSettings", "getSettings", "getSettings", "getSettingsCallable"] + }, "GetSink": { "methods": ["getSink", "getSink", "getSink", "getSinkCallable"] }, @@ -100,6 +106,9 @@ "UpdateExclusion": { "methods": ["updateExclusion", "updateExclusion", "updateExclusion", "updateExclusionCallable"] }, + "UpdateSettings": { + "methods": ["updateSettings", "updateSettings", "updateSettingsCallable"] + }, "UpdateSink": { "methods": ["updateSink", "updateSink", "updateSink", "updateSink", "updateSink", "updateSinkCallable"] }, diff --git a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/package-info.java b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/package-info.java index c9561f16e..0e2f30ef0 100644 --- a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/package-info.java +++ b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/package-info.java @@ -15,7 +15,9 @@ */ /** - * The interfaces provided are listed below, along with usage samples. + * A client to Cloud Logging API + * + *

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

======================= LoggingClient ======================= * diff --git a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2Stub.java b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2Stub.java index 5091901f6..9372aeb54 100644 --- a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2Stub.java +++ b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2Stub.java @@ -22,8 +22,12 @@ 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.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.CreateSinkRequest; @@ -35,6 +39,7 @@ import com.google.logging.v2.GetBucketRequest; import com.google.logging.v2.GetCmekSettingsRequest; import com.google.logging.v2.GetExclusionRequest; +import com.google.logging.v2.GetSettingsRequest; import com.google.logging.v2.GetSinkRequest; import com.google.logging.v2.GetViewRequest; import com.google.logging.v2.ListBucketsRequest; @@ -49,12 +54,16 @@ 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; @@ -67,6 +76,10 @@ @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()"); } @@ -176,6 +189,23 @@ public UnaryCallable updateCmekSettings 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/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 faf8137ee..5a8e8633a 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 @@ -30,10 +30,14 @@ 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; @@ -48,6 +52,9 @@ import com.google.common.collect.ImmutableSet; import com.google.common.collect.Lists; 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.CreateSinkRequest; @@ -59,6 +66,7 @@ import com.google.logging.v2.GetBucketRequest; import com.google.logging.v2.GetCmekSettingsRequest; import com.google.logging.v2.GetExclusionRequest; +import com.google.logging.v2.GetSettingsRequest; import com.google.logging.v2.GetSinkRequest; import com.google.logging.v2.GetViewRequest; import com.google.logging.v2.ListBucketsRequest; @@ -73,12 +81,15 @@ 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; @@ -157,6 +168,12 @@ public class ConfigServiceV2StubSettings extends StubSettings 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 = @@ -492,6 +509,28 @@ public UnaryCallSettings updateCmekSett 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; + } + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public ConfigServiceV2Stub createStub() throws IOException { if (getTransportChannelProvider() @@ -591,6 +630,10 @@ protected ConfigServiceV2StubSettings(Builder settingsBuilder) throws IOExceptio 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. */ @@ -631,6 +674,13 @@ public static class Builder extends StubSettings.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; @@ -709,6 +759,10 @@ protected Builder(ClientContext clientContext) { deleteExclusionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getCmekSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateCmekSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + copyLogEntriesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + copyLogEntriesOperationSettings = OperationCallSettings.newBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -734,7 +788,10 @@ protected Builder(ClientContext clientContext) { updateExclusionSettings, deleteExclusionSettings, getCmekSettingsSettings, - updateCmekSettingsSettings); + updateCmekSettingsSettings, + getSettingsSettings, + updateSettingsSettings, + copyLogEntriesSettings); initDefaults(this); } @@ -764,6 +821,10 @@ protected Builder(ConfigServiceV2StubSettings settings) { 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( @@ -789,7 +850,10 @@ protected Builder(ConfigServiceV2StubSettings settings) { updateExclusionSettings, deleteExclusionSettings, getCmekSettingsSettings, - updateCmekSettingsSettings); + updateCmekSettingsSettings, + getSettingsSettings, + updateSettingsSettings, + copyLogEntriesSettings); } private static Builder createDefault() { @@ -921,6 +985,45 @@ private static Builder initDefaults(Builder builder) { .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 + .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; } @@ -1064,6 +1167,30 @@ public UnaryCallSettings.Builder deleteExclusionS 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; + } + @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/GrpcConfigServiceV2Stub.java b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2Stub.java index e8eafac0c..0d913bfb9 100644 --- a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2Stub.java +++ b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2Stub.java @@ -26,9 +26,13 @@ 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.UnaryCallable; import com.google.common.collect.ImmutableMap; 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.CreateSinkRequest; @@ -40,6 +44,7 @@ import com.google.logging.v2.GetBucketRequest; import com.google.logging.v2.GetCmekSettingsRequest; import com.google.logging.v2.GetExclusionRequest; +import com.google.logging.v2.GetSettingsRequest; import com.google.logging.v2.GetSinkRequest; import com.google.logging.v2.GetViewRequest; import com.google.logging.v2.ListBucketsRequest; @@ -54,12 +59,15 @@ 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; @@ -282,6 +290,34 @@ public class GrpcConfigServiceV2Stub extends ConfigServiceV2Stub { .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; @@ -311,6 +347,12 @@ public class GrpcConfigServiceV2Stub extends ConfigServiceV2Stub { 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; @@ -587,6 +629,30 @@ protected GrpcConfigServiceV2Stub( return params.build(); }) .build(); + GrpcCallSettings getSettingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getSettingsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings updateSettingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateSettingsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings copyLogEntriesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(copyLogEntriesMethodDescriptor) + .build(); this.listBucketsCallable = callableFactory.createUnaryCallable( @@ -671,6 +737,21 @@ protected GrpcConfigServiceV2Stub( 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()); @@ -816,6 +897,27 @@ public UnaryCallable updateCmekSettings 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 { diff --git a/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/ConfigClientTest.java b/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/ConfigClientTest.java index 0cb699db3..dc6381e82 100644 --- a/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/ConfigClientTest.java +++ b/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/ConfigClientTest.java @@ -28,11 +28,14 @@ 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.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.CreateSinkRequest; @@ -46,6 +49,7 @@ import com.google.logging.v2.GetBucketRequest; import com.google.logging.v2.GetCmekSettingsRequest; import com.google.logging.v2.GetExclusionRequest; +import com.google.logging.v2.GetSettingsRequest; import com.google.logging.v2.GetSinkRequest; import com.google.logging.v2.GetViewRequest; import com.google.logging.v2.LifecycleState; @@ -69,13 +73,18 @@ 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; @@ -85,6 +94,7 @@ 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; @@ -366,6 +376,8 @@ public void getBucketTest() throws Exception { .setRetentionDays(1544391896) .setLocked(true) .setLifecycleState(LifecycleState.forNumber(0)) + .addAllRestrictedFields(new ArrayList()) + .setCmekSettings(CmekSettings.newBuilder().build()) .build(); mockConfigServiceV2.addResponse(expectedResponse); @@ -422,6 +434,8 @@ public void createBucketTest() throws Exception { .setRetentionDays(1544391896) .setLocked(true) .setLifecycleState(LifecycleState.forNumber(0)) + .addAllRestrictedFields(new ArrayList()) + .setCmekSettings(CmekSettings.newBuilder().build()) .build(); mockConfigServiceV2.addResponse(expectedResponse); @@ -480,6 +494,8 @@ public void updateBucketTest() throws Exception { .setRetentionDays(1544391896) .setLocked(true) .setLifecycleState(LifecycleState.forNumber(0)) + .addAllRestrictedFields(new ArrayList()) + .setCmekSettings(CmekSettings.newBuilder().build()) .build(); mockConfigServiceV2.addResponse(expectedResponse); @@ -2515,4 +2531,189 @@ public void updateCmekSettingsExceptionTest() throws Exception { // 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/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MetricsClientTest.java b/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MetricsClientTest.java index a81e0368a..1e79775cb 100644 --- a/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MetricsClientTest.java +++ b/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MetricsClientTest.java @@ -187,6 +187,7 @@ public void getLogMetricTest() throws Exception { .setName(LogMetricName.of("[PROJECT]", "[METRIC]").toString()) .setDescription("description-1724546052") .setFilter("filter-1274492040") + .setDisabled(true) .setMetricDescriptor(MetricDescriptor.newBuilder().build()) .setValueExtractor("valueExtractor-1867420749") .putAllLabelExtractors(new HashMap()) @@ -233,6 +234,7 @@ public void getLogMetricTest2() throws Exception { .setName(LogMetricName.of("[PROJECT]", "[METRIC]").toString()) .setDescription("description-1724546052") .setFilter("filter-1274492040") + .setDisabled(true) .setMetricDescriptor(MetricDescriptor.newBuilder().build()) .setValueExtractor("valueExtractor-1867420749") .putAllLabelExtractors(new HashMap()) @@ -279,6 +281,7 @@ public void createLogMetricTest() throws Exception { .setName(LogMetricName.of("[PROJECT]", "[METRIC]").toString()) .setDescription("description-1724546052") .setFilter("filter-1274492040") + .setDisabled(true) .setMetricDescriptor(MetricDescriptor.newBuilder().build()) .setValueExtractor("valueExtractor-1867420749") .putAllLabelExtractors(new HashMap()) @@ -328,6 +331,7 @@ public void createLogMetricTest2() throws Exception { .setName(LogMetricName.of("[PROJECT]", "[METRIC]").toString()) .setDescription("description-1724546052") .setFilter("filter-1274492040") + .setDisabled(true) .setMetricDescriptor(MetricDescriptor.newBuilder().build()) .setValueExtractor("valueExtractor-1867420749") .putAllLabelExtractors(new HashMap()) @@ -377,6 +381,7 @@ public void updateLogMetricTest() throws Exception { .setName(LogMetricName.of("[PROJECT]", "[METRIC]").toString()) .setDescription("description-1724546052") .setFilter("filter-1274492040") + .setDisabled(true) .setMetricDescriptor(MetricDescriptor.newBuilder().build()) .setValueExtractor("valueExtractor-1867420749") .putAllLabelExtractors(new HashMap()) @@ -426,6 +431,7 @@ public void updateLogMetricTest2() throws Exception { .setName(LogMetricName.of("[PROJECT]", "[METRIC]").toString()) .setDescription("description-1724546052") .setFilter("filter-1274492040") + .setDisabled(true) .setMetricDescriptor(MetricDescriptor.newBuilder().build()) .setValueExtractor("valueExtractor-1867420749") .putAllLabelExtractors(new HashMap()) diff --git a/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockConfigServiceV2Impl.java b/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockConfigServiceV2Impl.java index 406467a56..255cacf1f 100644 --- a/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockConfigServiceV2Impl.java +++ b/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockConfigServiceV2Impl.java @@ -19,6 +19,7 @@ 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.CreateSinkRequest; @@ -30,6 +31,7 @@ import com.google.logging.v2.GetBucketRequest; import com.google.logging.v2.GetCmekSettingsRequest; import com.google.logging.v2.GetExclusionRequest; +import com.google.logging.v2.GetSettingsRequest; import com.google.logging.v2.GetSinkRequest; import com.google.logging.v2.GetViewRequest; import com.google.logging.v2.ListBucketsRequest; @@ -44,12 +46,15 @@ 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; @@ -563,4 +568,66 @@ public void updateCmekSettings( 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/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 7331f0641..7345bd826 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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,895 +35,1164 @@ private ConfigServiceV2Grpc() {} public static final 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 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 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.
    * 
*/ - public static abstract class ConfigServiceV2ImplBase implements io.grpc.BindableService { + public abstract static class ConfigServiceV2ImplBase implements io.grpc.BindableService { /** + * + * *
      * 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.ServerCalls.asyncUnimplementedUnaryCall(getListBucketsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListBucketsMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getGetBucketMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getCreateBucketMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateBucketMethod(), responseObserver); } /** + * + * *
      * Updates a log bucket. This method replaces the following fields in the
      * existing bucket with values from the new bucket: `retention_period`
@@ -917,12 +1203,16 @@ 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.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.
@@ -930,54 +1220,71 @@ 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.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.
      * 
*/ - 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.ServerCalls.asyncUnimplementedUnaryCall(getUndeleteBucketMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUndeleteBucketMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getListViewsMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getGetViewMethod(), 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.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`.
@@ -986,12 +1293,15 @@ 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.ServerCalls.asyncUnimplementedUnaryCall(getUpdateViewMethod(), responseObserver); } /** + * + * *
      * Deletes a view on a log bucket.
      * If an `UNAVAILABLE` error is returned, this indicates that system is not in
@@ -999,32 +1309,41 @@ 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.ServerCalls.asyncUnimplementedUnaryCall(getDeleteViewMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getListSinksMethod(), 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.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
@@ -1032,12 +1351,15 @@ 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.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`.
@@ -1045,76 +1367,103 @@ 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.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSinkMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSinkMethod(), 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) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListExclusionsMethod(), responseObserver); + public 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.
      * 
*/ - 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.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.
      * 
*/ - 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.ServerCalls.asyncUnimplementedUnaryCall(getCreateExclusionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateExclusionMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall(getUpdateExclusionMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateExclusionMethod(), 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.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,
@@ -1126,12 +1475,16 @@ 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.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
@@ -1147,12 +1500,16 @@ 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.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,
@@ -1164,12 +1521,16 @@ 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.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
@@ -1186,261 +1547,259 @@ 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.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.
      * 
*/ - 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.ServerCalls.asyncUnimplementedUnaryCall(getCopyLogEntriesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCopyLogEntriesMethod(), responseObserver); } - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { 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>( - this, METHODID_LIST_BUCKETS))) + getListBucketsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.ListBucketsRequest, + com.google.logging.v2.ListBucketsResponse>(this, METHODID_LIST_BUCKETS))) .addMethod( - getGetBucketMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.GetBucketRequest, - com.google.logging.v2.LogBucket>( - this, METHODID_GET_BUCKET))) + getGetBucketMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.GetBucketRequest, com.google.logging.v2.LogBucket>( + this, METHODID_GET_BUCKET))) .addMethod( - getCreateBucketMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.CreateBucketRequest, - com.google.logging.v2.LogBucket>( - this, METHODID_CREATE_BUCKET))) + getCreateBucketMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.CreateBucketRequest, com.google.logging.v2.LogBucket>( + this, METHODID_CREATE_BUCKET))) .addMethod( - getUpdateBucketMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.UpdateBucketRequest, - com.google.logging.v2.LogBucket>( - this, METHODID_UPDATE_BUCKET))) + getUpdateBucketMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.UpdateBucketRequest, com.google.logging.v2.LogBucket>( + this, METHODID_UPDATE_BUCKET))) .addMethod( - getDeleteBucketMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.DeleteBucketRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_BUCKET))) + getDeleteBucketMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.DeleteBucketRequest, com.google.protobuf.Empty>( + this, METHODID_DELETE_BUCKET))) .addMethod( - getUndeleteBucketMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.UndeleteBucketRequest, - com.google.protobuf.Empty>( - this, METHODID_UNDELETE_BUCKET))) + getUndeleteBucketMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.UndeleteBucketRequest, com.google.protobuf.Empty>( + this, METHODID_UNDELETE_BUCKET))) .addMethod( - getListViewsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.ListViewsRequest, - com.google.logging.v2.ListViewsResponse>( - this, METHODID_LIST_VIEWS))) + getListViewsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.ListViewsRequest, + com.google.logging.v2.ListViewsResponse>(this, METHODID_LIST_VIEWS))) .addMethod( - getGetViewMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.GetViewRequest, - com.google.logging.v2.LogView>( - this, METHODID_GET_VIEW))) + getGetViewMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.GetViewRequest, com.google.logging.v2.LogView>( + this, METHODID_GET_VIEW))) .addMethod( - getCreateViewMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.CreateViewRequest, - com.google.logging.v2.LogView>( - this, METHODID_CREATE_VIEW))) + getCreateViewMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.CreateViewRequest, com.google.logging.v2.LogView>( + this, METHODID_CREATE_VIEW))) .addMethod( - getUpdateViewMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.UpdateViewRequest, - com.google.logging.v2.LogView>( - this, METHODID_UPDATE_VIEW))) + getUpdateViewMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.UpdateViewRequest, com.google.logging.v2.LogView>( + this, METHODID_UPDATE_VIEW))) .addMethod( - getDeleteViewMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.DeleteViewRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_VIEW))) + getDeleteViewMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.DeleteViewRequest, com.google.protobuf.Empty>( + this, METHODID_DELETE_VIEW))) .addMethod( - getListSinksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.ListSinksRequest, - com.google.logging.v2.ListSinksResponse>( - this, METHODID_LIST_SINKS))) + getListSinksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.ListSinksRequest, + com.google.logging.v2.ListSinksResponse>(this, METHODID_LIST_SINKS))) .addMethod( - getGetSinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.GetSinkRequest, - com.google.logging.v2.LogSink>( - this, METHODID_GET_SINK))) + getGetSinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.GetSinkRequest, com.google.logging.v2.LogSink>( + this, METHODID_GET_SINK))) .addMethod( - getCreateSinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.CreateSinkRequest, - com.google.logging.v2.LogSink>( - this, METHODID_CREATE_SINK))) + getCreateSinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.CreateSinkRequest, com.google.logging.v2.LogSink>( + this, METHODID_CREATE_SINK))) .addMethod( - getUpdateSinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.UpdateSinkRequest, - com.google.logging.v2.LogSink>( - this, METHODID_UPDATE_SINK))) + getUpdateSinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.UpdateSinkRequest, com.google.logging.v2.LogSink>( + this, METHODID_UPDATE_SINK))) .addMethod( - getDeleteSinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.DeleteSinkRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_SINK))) + getDeleteSinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.DeleteSinkRequest, com.google.protobuf.Empty>( + this, METHODID_DELETE_SINK))) .addMethod( - getListExclusionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.ListExclusionsRequest, - com.google.logging.v2.ListExclusionsResponse>( - this, METHODID_LIST_EXCLUSIONS))) + getListExclusionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.ListExclusionsRequest, + com.google.logging.v2.ListExclusionsResponse>( + this, METHODID_LIST_EXCLUSIONS))) .addMethod( - getGetExclusionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.GetExclusionRequest, - com.google.logging.v2.LogExclusion>( - this, METHODID_GET_EXCLUSION))) + getGetExclusionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.GetExclusionRequest, + com.google.logging.v2.LogExclusion>(this, METHODID_GET_EXCLUSION))) .addMethod( - getCreateExclusionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.CreateExclusionRequest, - com.google.logging.v2.LogExclusion>( - this, METHODID_CREATE_EXCLUSION))) + getCreateExclusionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.CreateExclusionRequest, + com.google.logging.v2.LogExclusion>(this, METHODID_CREATE_EXCLUSION))) .addMethod( - getUpdateExclusionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.UpdateExclusionRequest, - com.google.logging.v2.LogExclusion>( - this, METHODID_UPDATE_EXCLUSION))) + getUpdateExclusionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.UpdateExclusionRequest, + com.google.logging.v2.LogExclusion>(this, METHODID_UPDATE_EXCLUSION))) .addMethod( - getDeleteExclusionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.DeleteExclusionRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_EXCLUSION))) + getDeleteExclusionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.DeleteExclusionRequest, com.google.protobuf.Empty>( + this, METHODID_DELETE_EXCLUSION))) .addMethod( - getGetCmekSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.GetCmekSettingsRequest, - com.google.logging.v2.CmekSettings>( - this, METHODID_GET_CMEK_SETTINGS))) + getGetCmekSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.GetCmekSettingsRequest, + com.google.logging.v2.CmekSettings>(this, METHODID_GET_CMEK_SETTINGS))) .addMethod( - getUpdateCmekSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.UpdateCmekSettingsRequest, - com.google.logging.v2.CmekSettings>( - this, METHODID_UPDATE_CMEK_SETTINGS))) + getUpdateCmekSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.UpdateCmekSettingsRequest, + com.google.logging.v2.CmekSettings>(this, METHODID_UPDATE_CMEK_SETTINGS))) .addMethod( - getGetSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.GetSettingsRequest, - com.google.logging.v2.Settings>( - this, METHODID_GET_SETTINGS))) + getGetSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.GetSettingsRequest, com.google.logging.v2.Settings>( + this, METHODID_GET_SETTINGS))) .addMethod( - getUpdateSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.UpdateSettingsRequest, - com.google.logging.v2.Settings>( - this, METHODID_UPDATE_SETTINGS))) + getUpdateSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.UpdateSettingsRequest, com.google.logging.v2.Settings>( + this, METHODID_UPDATE_SETTINGS))) .addMethod( - getCopyLogEntriesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.CopyLogEntriesRequest, - com.google.longrunning.Operation>( - this, METHODID_COPY_LOG_ENTRIES))) + getCopyLogEntriesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.CopyLogEntriesRequest, + com.google.longrunning.Operation>(this, METHODID_COPY_LOG_ENTRIES))) .build(); } } /** + * + * *
    * 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) { + public static final class ConfigServiceV2Stub + extends io.grpc.stub.AbstractAsyncStub { + 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 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. This method replaces the following fields in the
      * existing bucket with values from the new bucket: `retention_period`
@@ -1451,13 +1810,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.
@@ -1465,59 +1829,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`.
@@ -1526,13 +1909,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
@@ -1540,35 +1926,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
@@ -1576,13 +1971,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`.
@@ -1590,83 +1988,115 @@ 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); } /** + * + * *
      * 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,
@@ -1678,13 +2108,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
@@ -1700,13 +2135,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,
@@ -1718,13 +2158,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
@@ -1741,32 +2186,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); } } /** + * + * *
    * 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) { + public static final class ConfigServiceV2BlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private ConfigServiceV2BlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -1777,37 +2232,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 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. This method replaces the following fields in the
      * existing bucket with values from the new bucket: `retention_period`
@@ -1818,12 +2284,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.
@@ -1831,33 +2300,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..
      * 
@@ -1868,17 +2346,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`.
@@ -1887,12 +2370,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
@@ -1906,16 +2392,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.
      * 
@@ -1926,6 +2417,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
@@ -1933,12 +2426,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`.
@@ -1946,12 +2442,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.
@@ -1963,59 +2462,76 @@ public com.google.protobuf.Empty deleteSink(com.google.logging.v2.DeleteSinkRequ
     }
 
     /**
+     *
+     *
      * 
      * 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,
@@ -2027,12 +2543,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
@@ -2048,12 +2567,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,
@@ -2065,12 +2587,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
@@ -2087,30 +2612,36 @@ 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); } } /** + * + * *
    * 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) { + public static final class ConfigServiceV2FutureStub + extends io.grpc.stub.AbstractFutureStub { + private ConfigServiceV2FutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -2121,40 +2652,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 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. This method replaces the following fields in the
      * existing bucket with values from the new bucket: `retention_period`
@@ -2165,13 +2705,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.
@@ -2179,59 +2721,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`.
@@ -2240,13 +2793,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
@@ -2261,28 +2816,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
@@ -2290,13 +2852,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`.
@@ -2304,13 +2868,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.
@@ -2323,64 +2889,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,
@@ -2392,13 +2971,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
@@ -2414,13 +2995,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,
@@ -2432,13 +3015,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
@@ -2455,19 +3040,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); } @@ -2500,11 +3087,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 ConfigServiceV2ImplBase serviceImpl; private final int methodId; @@ -2518,107 +3105,137 @@ 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: - 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_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: @@ -2637,8 +3254,9 @@ public io.grpc.stub.StreamObserver invoke( } } - 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 @@ -2680,35 +3298,37 @@ 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(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(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(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(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/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingServiceV2Grpc.java new file mode 100644 index 000000000..dd74ab68c --- /dev/null +++ b/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingServiceV2Grpc.java @@ -0,0 +1,962 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/logging/v2/logging.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class LoggingServiceV2Grpc { + + private LoggingServiceV2Grpc() {} + + public static final 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; + + @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; + 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(); + } + } + } + return getDeleteLogMethod; + } + + 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< + 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(); + } + } + } + return getWriteLogEntriesMethod; + } + + 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< + 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(); + } + } + } + return getListLogEntriesMethod; + } + + 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< + 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(); + } + } + } + return getListMonitoredResourceDescriptorsMethod; + } + + 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< + 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(); + } + } + } + return getListLogsMethod; + } + + 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< + 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(); + } + } + } + return getTailLogEntriesMethod; + } + + /** 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); + } + }; + 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) { + 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); + } + }; + 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) { + 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); + } + }; + return LoggingServiceV2FutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service for ingesting and querying logs.
+   * 
+ */ + public abstract static class LoggingServiceV2ImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * 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.
+     * 
+ */ + public 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
+     * 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)
+     * 
+ */ + public 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
+     * entries, see [Exporting
+     * Logs](https://cloud.google.com/logging/docs/export).
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public io.grpc.stub.StreamObserver tailLogEntries( + io.grpc.stub.StreamObserver + responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( + getTailLogEntriesMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getDeleteLogMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.DeleteLogRequest, com.google.protobuf.Empty>( + this, METHODID_DELETE_LOG))) + .addMethod( + getWriteLogEntriesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.WriteLogEntriesRequest, + com.google.logging.v2.WriteLogEntriesResponse>( + this, METHODID_WRITE_LOG_ENTRIES))) + .addMethod( + getListLogEntriesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.ListLogEntriesRequest, + com.google.logging.v2.ListLogEntriesResponse>( + this, METHODID_LIST_LOG_ENTRIES))) + .addMethod( + getListMonitoredResourceDescriptorsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.ListMonitoredResourceDescriptorsRequest, + com.google.logging.v2.ListMonitoredResourceDescriptorsResponse>( + this, METHODID_LIST_MONITORED_RESOURCE_DESCRIPTORS))) + .addMethod( + getListLogsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.ListLogsRequest, + com.google.logging.v2.ListLogsResponse>(this, METHODID_LIST_LOGS))) + .addMethod( + getTailLogEntriesMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.logging.v2.TailLogEntriesRequest, + com.google.logging.v2.TailLogEntriesResponse>( + this, METHODID_TAIL_LOG_ENTRIES))) + .build(); + } + } + + /** + * + * + *
+   * 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) { + super(channel, callOptions); + } + + @java.lang.Override + 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
+     * the delete operation might not be deleted. Entries received after the
+     * delete operation with a timestamp before the operation will be deleted.
+     * 
+ */ + 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
+     * 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)
+     * 
+ */ + 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); + } + + /** + * + * + *
+     * 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).
+     * 
+ */ + 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); + } + + /** + * + * + *
+     * Lists the descriptors for monitored resource types used by Logging.
+     * 
+ */ + 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); + } + + /** + * + * + *
+     * 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, + 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) { + return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( + getChannel().newCall(getTailLogEntriesMethod(), getCallOptions()), responseObserver); + } + } + + /** + * + * + *
+   * 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) { + super(channel, callOptions); + } + + @java.lang.Override + protected LoggingServiceV2BlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LoggingServiceV2BlockingStub(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
+     * the delete operation might not be deleted. Entries received after the
+     * delete operation with a timestamp before the operation will be deleted.
+     * 
+ */ + public com.google.protobuf.Empty deleteLog(com.google.logging.v2.DeleteLogRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteLogMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * 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)
+     * 
+ */ + 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
+     * entries, see [Exporting
+     * Logs](https://cloud.google.com/logging/docs/export).
+     * 
+ */ + 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) { + 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) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListLogsMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * 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) { + super(channel, callOptions); + } + + @java.lang.Override + protected LoggingServiceV2FutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LoggingServiceV2FutureStub(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
+     * the delete operation might not be deleted. Entries received after the
+     * delete operation with a timestamp before the operation will be deleted.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteLog( + com.google.logging.v2.DeleteLogRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteLogMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * 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)
+     * 
+ */ + 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
+     * entries, see [Exporting
+     * Logs](https://cloud.google.com/logging/docs/export).
+     * 
+ */ + 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< + com.google.logging.v2.ListMonitoredResourceDescriptorsResponse> + listMonitoredResourceDescriptors( + com.google.logging.v2.ListMonitoredResourceDescriptorsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + 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) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListLogsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_DELETE_LOG = 0; + private static final int METHODID_WRITE_LOG_ENTRIES = 1; + private static final int METHODID_LIST_LOG_ENTRIES = 2; + private static final int METHODID_LIST_MONITORED_RESOURCE_DESCRIPTORS = 3; + private static final int METHODID_LIST_LOGS = 4; + private static final int METHODID_TAIL_LOG_ENTRIES = 5; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final LoggingServiceV2ImplBase serviceImpl; + private final int methodId; + + MethodHandlers(LoggingServiceV2ImplBase 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_DELETE_LOG: + 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); + break; + case METHODID_LIST_LOG_ENTRIES: + 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); + break; + case METHODID_LIST_LOGS: + serviceImpl.listLogs( + (com.google.logging.v2.ListLogsRequest) 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) { + case METHODID_TAIL_LOG_ENTRIES: + return (io.grpc.stub.StreamObserver) + serviceImpl.tailLogEntries( + (io.grpc.stub.StreamObserver) + responseObserver); + default: + throw new AssertionError(); + } + } + } + + private abstract static class LoggingServiceV2BaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + LoggingServiceV2BaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.logging.v2.LoggingProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("LoggingServiceV2"); + } + } + + private static final class LoggingServiceV2FileDescriptorSupplier + extends LoggingServiceV2BaseDescriptorSupplier { + LoggingServiceV2FileDescriptorSupplier() {} + } + + private static final class LoggingServiceV2MethodDescriptorSupplier + extends LoggingServiceV2BaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + LoggingServiceV2MethodDescriptorSupplier(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 (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(); + } + } + } + return result; + } +} 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..d6b9a75ca --- /dev/null +++ b/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/MetricsServiceV2Grpc.java @@ -0,0 +1,801 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 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 abstract static class MetricsServiceV2ImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Lists logs-based metrics.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public 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.
+     * 
+ */ + public void deleteLogMetric( + com.google.logging.v2.DeleteLogMetricRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteLogMetricMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + 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>( + this, METHODID_LIST_LOG_METRICS))) + .addMethod( + getGetLogMetricMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.GetLogMetricRequest, com.google.logging.v2.LogMetric>( + this, METHODID_GET_LOG_METRIC))) + .addMethod( + getCreateLogMetricMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.CreateLogMetricRequest, + com.google.logging.v2.LogMetric>(this, METHODID_CREATE_LOG_METRIC))) + .addMethod( + getUpdateLogMetricMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.UpdateLogMetricRequest, + com.google.logging.v2.LogMetric>(this, METHODID_UPDATE_LOG_METRIC))) + .addMethod( + getDeleteLogMetricMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.DeleteLogMetricRequest, com.google.protobuf.Empty>( + this, METHODID_DELETE_LOG_METRIC))) + .build(); + } + } + + /** + * + * + *
+   * 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); + } + } + + /** + * + * + *
+   * 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); + } + } + + /** + * + * + *
+   * 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 MetricsServiceV2ImplBase serviceImpl; + private final int methodId; + + MethodHandlers(MetricsServiceV2ImplBase 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(); + } + } + } + + 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 String methodName; + + MetricsServiceV2MethodDescriptorSupplier(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 c85d5988c..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigClient.java +++ /dev/null @@ -1,3489 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.core.BetaApi; -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.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.CreateSinkRequest; -import com.google.logging.v2.CreateViewRequest; -import com.google.logging.v2.DeleteBucketRequest; -import com.google.logging.v2.DeleteExclusionRequest; -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.GetSettingsRequest; -import com.google.logging.v2.GetSinkRequest; -import com.google.logging.v2.GetViewRequest; -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.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.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
- * 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(). - * - *

The surface of this class includes several types of Java methods for each of the API's - * methods: - * - *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been - * converted into function parameters. It may be the case that not all fields are available as - * parameters, and not every API method will have a flattened method entry point. - *
  2. A "request object" method. This type of method only takes one parameter, a request object, - * which must be constructed before the call. Not every API method will have a request object - * method. - *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API - * callable object, which can be used to initiate calls to the service. - *
- * - *

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
- * ConfigSettings configSettings =
- *     ConfigSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * ConfigClient configClient = ConfigClient.create(configSettings);
- * }
- * - *

To customize the endpoint: - * - *

{@code
- * 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). - */ - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - 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()); - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - protected ConfigClient(ConfigServiceV2Stub stub) { - this.settings = null; - this.stub = stub; - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); - } - - public final ConfigSettings getSettings() { - return settings; - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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.getResponsesList()) {
-   *       // 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
-   * 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
-   * 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 that can be used to store log entries. After a bucket has been created, - * the bucket's location cannot be changed. - * - *

Sample code: - * - *

{@code
-   * 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
-   * 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. This method replaces the following fields in the existing bucket with - * values from the new bucket: `retention_period` - * - *

If the retention period is decreased and the bucket is locked, `FAILED_PRECONDITION` will be - * returned. - * - *

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
-   * 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. This method replaces the following fields in the existing bucket with - * values from the new bucket: `retention_period` - * - *

If the retention period is decreased and the bucket is locked, `FAILED_PRECONDITION` will be - * returned. - * - *

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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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.getResponsesList()) {
-   *       // 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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.getResponsesList()) {
-   *       // 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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. - /** - * Lists all the exclusions on the _Default sink in a parent resource. - * - *

Sample code: - * - *

{@code
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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.getResponsesList()) {
-   *       // 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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 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 a1e1cc08a..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigSettings.java +++ /dev/null @@ -1,506 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.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.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.CreateSinkRequest; -import com.google.logging.v2.CreateViewRequest; -import com.google.logging.v2.DeleteBucketRequest; -import com.google.logging.v2.DeleteExclusionRequest; -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.GetSettingsRequest; -import com.google.logging.v2.GetSinkRequest; -import com.google.logging.v2.GetViewRequest; -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.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
- * 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 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 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 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 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 a6376aa4e..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingClient.java +++ /dev/null @@ -1,1290 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.core.BetaApi; -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
- * 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(). - * - *

The surface of this class includes several types of Java methods for each of the API's - * methods: - * - *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been - * converted into function parameters. It may be the case that not all fields are available as - * parameters, and not every API method will have a flattened method entry point. - *
  2. A "request object" method. This type of method only takes one parameter, a request object, - * which must be constructed before the call. Not every API method will have a request object - * method. - *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API - * callable object, which can be used to initiate calls to the service. - *
- * - *

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
- * LoggingSettings loggingSettings =
- *     LoggingSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * LoggingClient loggingClient = LoggingClient.create(loggingSettings);
- * }
- * - *

To customize the endpoint: - * - *

{@code
- * 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). - */ - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - 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(); - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - protected LoggingClient(LoggingServiceV2Stub stub) { - this.settings = null; - this.stub = stub; - } - - public final LoggingSettings getSettings() { - return settings; - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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. - * @param filter Optional. A filter that chooses which log entries to return. See [Advanced Logs - * Queries](https://cloud.google.com/logging/docs/view/advanced-queries). 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 the - * filter is 20000 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
-   * 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
-   * 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
-   * 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.getResponsesList()) {
-   *       // 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
-   * 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
-   * 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
-   * 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.getResponsesList()) {
-   *       // 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
-   * 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 that owns the logs: - *
    - *
  • `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
-   * 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 that owns the logs: - *
    - *
  • `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
-   * 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 that owns the logs: - *
    - *
  • `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
-   * 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 that owns the logs: - *
    - *
  • `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
-   * 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 that owns the logs: - *
    - *
  • `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
-   * try (LoggingClient loggingClient = LoggingClient.create()) {
-   *   ListLogsRequest request =
-   *       ListLogsRequest.newBuilder()
-   *           .setParent(ProjectName.of("[PROJECT]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .addAllResourceNames(new ArrayList())
-   *           .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
-   * try (LoggingClient loggingClient = LoggingClient.create()) {
-   *   ListLogsRequest request =
-   *       ListLogsRequest.newBuilder()
-   *           .setParent(ProjectName.of("[PROJECT]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .addAllResourceNames(new ArrayList())
-   *           .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
-   * try (LoggingClient loggingClient = LoggingClient.create()) {
-   *   ListLogsRequest request =
-   *       ListLogsRequest.newBuilder()
-   *           .setParent(ProjectName.of("[PROJECT]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .addAllResourceNames(new ArrayList())
-   *           .build();
-   *   while (true) {
-   *     ListLogsResponse response = loggingClient.listLogsCallable().call(request);
-   *     for (String element : response.getResponsesList()) {
-   *       // 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
-   * 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 9e6d3fe5b..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingSettings.java +++ /dev/null @@ -1,266 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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
- * 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 64eaa803b..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsClient.java +++ /dev/null @@ -1,790 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.core.BetaApi; -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
- * 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(). - * - *

The surface of this class includes several types of Java methods for each of the API's - * methods: - * - *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been - * converted into function parameters. It may be the case that not all fields are available as - * parameters, and not every API method will have a flattened method entry point. - *
  2. A "request object" method. This type of method only takes one parameter, a request object, - * which must be constructed before the call. Not every API method will have a request object - * method. - *
  3. A "callable" method. This type of method takes no parameters and returns an immutable API - * callable object, which can be used to initiate calls to the service. - *
- * - *

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
- * MetricsSettings metricsSettings =
- *     MetricsSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * MetricsClient metricsClient = MetricsClient.create(metricsSettings);
- * }
- * - *

To customize the endpoint: - * - *

{@code
- * 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). - */ - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - 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(); - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - protected MetricsClient(MetricsServiceV2Stub stub) { - this.settings = null; - this.stub = stub; - } - - public final MetricsSettings getSettings() { - return settings; - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - public MetricsServiceV2Stub getStub() { - return stub; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists logs-based metrics. - * - *

Sample code: - * - *

{@code
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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.getResponsesList()) {
-   *       // 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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
-   * 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 cdb4e568d..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsSettings.java +++ /dev/null @@ -1,235 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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
- * 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 3f7d36cb8..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/gapic_metadata.json +++ /dev/null @@ -1,147 +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"] - }, - "CreateExclusion": { - "methods": ["createExclusion", "createExclusion", "createExclusion", "createExclusion", "createExclusion", "createExclusion", "createExclusionCallable"] - }, - "CreateSink": { - "methods": ["createSink", "createSink", "createSink", "createSink", "createSink", "createSink", "createSinkCallable"] - }, - "CreateView": { - "methods": ["createView", "createViewCallable"] - }, - "DeleteBucket": { - "methods": ["deleteBucket", "deleteBucketCallable"] - }, - "DeleteExclusion": { - "methods": ["deleteExclusion", "deleteExclusion", "deleteExclusion", "deleteExclusionCallable"] - }, - "DeleteSink": { - "methods": ["deleteSink", "deleteSink", "deleteSink", "deleteSinkCallable"] - }, - "DeleteView": { - "methods": ["deleteView", "deleteViewCallable"] - }, - "GetBucket": { - "methods": ["getBucket", "getBucketCallable"] - }, - "GetCmekSettings": { - "methods": ["getCmekSettings", "getCmekSettingsCallable"] - }, - "GetExclusion": { - "methods": ["getExclusion", "getExclusion", "getExclusion", "getExclusionCallable"] - }, - "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"] - }, - "ListSinks": { - "methods": ["listSinks", "listSinks", "listSinks", "listSinks", "listSinks", "listSinks", "listSinksPagedCallable", "listSinksCallable"] - }, - "ListViews": { - "methods": ["listViews", "listViews", "listViewsPagedCallable", "listViewsCallable"] - }, - "UndeleteBucket": { - "methods": ["undeleteBucket", "undeleteBucketCallable"] - }, - "UpdateBucket": { - "methods": ["updateBucket", "updateBucketCallable"] - }, - "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 0e2f30ef0..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/package-info.java +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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
- * 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
- * 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
- * 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 9372aeb54..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2Stub.java +++ /dev/null @@ -1,211 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.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.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.CreateSinkRequest; -import com.google.logging.v2.CreateViewRequest; -import com.google.logging.v2.DeleteBucketRequest; -import com.google.logging.v2.DeleteExclusionRequest; -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.GetSettingsRequest; -import com.google.logging.v2.GetSinkRequest; -import com.google.logging.v2.GetViewRequest; -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.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 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 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 4e314830a..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java +++ /dev/null @@ -1,1199 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.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.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.CreateSinkRequest; -import com.google.logging.v2.CreateViewRequest; -import com.google.logging.v2.DeleteBucketRequest; -import com.google.logging.v2.DeleteExclusionRequest; -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.GetSettingsRequest; -import com.google.logging.v2.GetSinkRequest; -import com.google.logging.v2.GetViewRequest; -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.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
- * 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 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 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< - 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< - 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 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 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; - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - 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 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(); - 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(); - 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 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 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(); - 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(); - 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, - createBucketSettings, - updateBucketSettings, - deleteBucketSettings, - undeleteBucketSettings, - listViewsSettings, - getViewSettings, - createViewSettings, - updateViewSettings, - deleteViewSettings, - listSinksSettings, - getSinkSettings, - createSinkSettings, - updateSinkSettings, - deleteSinkSettings, - 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(); - 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(); - 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, - createBucketSettings, - updateBucketSettings, - deleteBucketSettings, - undeleteBucketSettings, - listViewsSettings, - getViewSettings, - createViewSettings, - updateViewSettings, - deleteViewSettings, - listSinksSettings, - getSinkSettings, - createSinkSettings, - updateSinkSettings, - deleteSinkSettings, - 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.setEndpoint(getDefaultEndpoint()); - 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 - .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 - .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 - .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 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 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; - } - - @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 9a6c5c85f..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 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 0b737663b..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2Stub.java +++ /dev/null @@ -1,957 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.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.UnaryCallable; -import com.google.common.collect.ImmutableMap; -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.CreateSinkRequest; -import com.google.logging.v2.CreateViewRequest; -import com.google.logging.v2.DeleteBucketRequest; -import com.google.logging.v2.DeleteExclusionRequest; -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.GetSettingsRequest; -import com.google.logging.v2.GetSinkRequest; -import com.google.logging.v2.GetViewRequest; -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.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 - 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 - 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 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 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 -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings getBucketTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getBucketMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings createBucketTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createBucketMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings updateBucketTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateBucketMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings deleteBucketTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteBucketMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings undeleteBucketTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(undeleteBucketMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings listViewsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listViewsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings getViewTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getViewMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings createViewTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createViewMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings updateViewTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateViewMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings deleteViewTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteViewMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings listSinksTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listSinksMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings getSinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getSinkMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("sink_name", String.valueOf(request.getSinkName())); - return params.build(); - }) - .build(); - GrpcCallSettings createSinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createSinkMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings updateSinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateSinkMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("sink_name", String.valueOf(request.getSinkName())); - return params.build(); - }) - .build(); - GrpcCallSettings deleteSinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteSinkMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("sink_name", String.valueOf(request.getSinkName())); - return params.build(); - }) - .build(); - GrpcCallSettings - listExclusionsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listExclusionsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings getExclusionTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getExclusionMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings createExclusionTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createExclusionMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings updateExclusionTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateExclusionMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings deleteExclusionTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteExclusionMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings getCmekSettingsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getCmekSettingsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings updateCmekSettingsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateCmekSettingsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings getSettingsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getSettingsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings updateSettingsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateSettingsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.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.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.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 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 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 2875552eb..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 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 f92e4f643..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 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.UnaryCallable; -import com.google.common.collect.ImmutableMap; -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 -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("log_name", String.valueOf(request.getLogName())); - return params.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 -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.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 224f4da9c..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 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 0fda0bb3d..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 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.UnaryCallable; -import com.google.common.collect.ImmutableMap; -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 -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings getLogMetricTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getLogMetricMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("metric_name", String.valueOf(request.getMetricName())); - return params.build(); - }) - .build(); - GrpcCallSettings createLogMetricTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createLogMetricMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings updateLogMetricTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateLogMetricMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("metric_name", String.valueOf(request.getMetricName())); - return params.build(); - }) - .build(); - GrpcCallSettings deleteLogMetricTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteLogMetricMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("metric_name", String.valueOf(request.getMetricName())); - return params.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 a62a66270..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 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 47e022d17..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java +++ /dev/null @@ -1,737 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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
- * 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; - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - 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 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.setEndpoint(getDefaultEndpoint()); - 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; - } - - @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 47931fb0d..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 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 8a599fde9..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java +++ /dev/null @@ -1,463 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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
- * 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; - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - 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 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.setEndpoint(getDefaultEndpoint()); - 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; - } - - @Override - public MetricsServiceV2StubSettings build() throws IOException { - return new MetricsServiceV2StubSettings(this); - } - } -} 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 60a04e1f0..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/ConfigClientTest.java +++ /dev/null @@ -1,2719 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.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.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.CreateSinkRequest; -import com.google.logging.v2.CreateViewRequest; -import com.google.logging.v2.DeleteBucketRequest; -import com.google.logging.v2.DeleteExclusionRequest; -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.GetSettingsRequest; -import com.google.logging.v2.GetSinkRequest; -import com.google.logging.v2.GetViewRequest; -import com.google.logging.v2.LifecycleState; -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.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)) - .addAllRestrictedFields(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 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)) - .addAllRestrictedFields(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)) - .addAllRestrictedFields(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 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") - .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") - .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 34c69dc87..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 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 1e79775cb..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MetricsClientTest.java +++ /dev/null @@ -1,544 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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") - .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") - .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") - .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") - .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") - .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") - .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 6a3559f37..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 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 255cacf1f..000000000 --- a/owl-bot-staging/v2/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockConfigServiceV2Impl.java +++ /dev/null @@ -1,633 +0,0 @@ -/* - * Copyright 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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.CreateSinkRequest; -import com.google.logging.v2.CreateViewRequest; -import com.google.logging.v2.DeleteBucketRequest; -import com.google.logging.v2.DeleteExclusionRequest; -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.GetSettingsRequest; -import com.google.logging.v2.GetSinkRequest; -import com.google.logging.v2.GetViewRequest; -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.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 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 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 934d32680..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 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 e98eccb92..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 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 f0288045b..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 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 716d44770..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 2021 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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/LoggingServiceV2Grpc.java b/owl-bot-staging/v2/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingServiceV2Grpc.java deleted file mode 100644 index 013e44a96..000000000 --- a/owl-bot-staging/v2/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingServiceV2Grpc.java +++ /dev/null @@ -1,765 +0,0 @@ -package com.google.logging.v2; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Service for ingesting and querying logs.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/logging/v2/logging.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class LoggingServiceV2Grpc { - - private LoggingServiceV2Grpc() {} - - public static final String SERVICE_NAME = "google.logging.v2.LoggingServiceV2"; - - // Static method descriptors that strictly reflect the proto. - 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 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(); - } - } - } - return getDeleteLogMethod; - } - - 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 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(); - } - } - } - return getWriteLogEntriesMethod; - } - - 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 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(); - } - } - } - return getListLogEntriesMethod; - } - - 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 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(); - } - } - } - return getListMonitoredResourceDescriptorsMethod; - } - - 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 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(); - } - } - } - return getListLogsMethod; - } - - 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 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(); - } - } - } - return getTailLogEntriesMethod; - } - - /** - * 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); - } - }; - 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) { - 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); - } - }; - 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) { - 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); - } - }; - return LoggingServiceV2FutureStub.newStub(factory, channel); - } - - /** - *
-   * Service for ingesting and querying logs.
-   * 
- */ - public static abstract class LoggingServiceV2ImplBase implements io.grpc.BindableService { - - /** - *
-     * 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.
-     * 
- */ - public 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
-     * 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)
-     * 
- */ - public 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
-     * entries, see [Exporting
-     * Logs](https://cloud.google.com/logging/docs/export).
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public io.grpc.stub.StreamObserver tailLogEntries( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getTailLogEntriesMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getDeleteLogMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.DeleteLogRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_LOG))) - .addMethod( - getWriteLogEntriesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.WriteLogEntriesRequest, - com.google.logging.v2.WriteLogEntriesResponse>( - this, METHODID_WRITE_LOG_ENTRIES))) - .addMethod( - getListLogEntriesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.ListLogEntriesRequest, - com.google.logging.v2.ListLogEntriesResponse>( - this, METHODID_LIST_LOG_ENTRIES))) - .addMethod( - getListMonitoredResourceDescriptorsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.ListMonitoredResourceDescriptorsRequest, - com.google.logging.v2.ListMonitoredResourceDescriptorsResponse>( - this, METHODID_LIST_MONITORED_RESOURCE_DESCRIPTORS))) - .addMethod( - getListLogsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.ListLogsRequest, - com.google.logging.v2.ListLogsResponse>( - this, METHODID_LIST_LOGS))) - .addMethod( - getTailLogEntriesMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.logging.v2.TailLogEntriesRequest, - com.google.logging.v2.TailLogEntriesResponse>( - this, METHODID_TAIL_LOG_ENTRIES))) - .build(); - } - } - - /** - *
-   * 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) { - super(channel, callOptions); - } - - @java.lang.Override - 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
-     * the delete operation might not be deleted. Entries received after the
-     * delete operation with a timestamp before the operation will be deleted.
-     * 
- */ - 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
-     * 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)
-     * 
- */ - 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); - } - - /** - *
-     * 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).
-     * 
- */ - 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); - } - - /** - *
-     * Lists the descriptors for monitored resource types used by Logging.
-     * 
- */ - 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); - } - - /** - *
-     * 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, - 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) { - return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( - getChannel().newCall(getTailLogEntriesMethod(), getCallOptions()), responseObserver); - } - } - - /** - *
-   * 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) { - super(channel, callOptions); - } - - @java.lang.Override - protected LoggingServiceV2BlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LoggingServiceV2BlockingStub(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
-     * the delete operation might not be deleted. Entries received after the
-     * delete operation with a timestamp before the operation will be deleted.
-     * 
- */ - public com.google.protobuf.Empty deleteLog(com.google.logging.v2.DeleteLogRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteLogMethod(), getCallOptions(), request); - } - - /** - *
-     * 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)
-     * 
- */ - 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
-     * entries, see [Exporting
-     * Logs](https://cloud.google.com/logging/docs/export).
-     * 
- */ - 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) { - 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) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListLogsMethod(), getCallOptions(), request); - } - } - - /** - *
-   * 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) { - super(channel, callOptions); - } - - @java.lang.Override - protected LoggingServiceV2FutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new LoggingServiceV2FutureStub(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
-     * the delete operation might not be deleted. Entries received after the
-     * delete operation with a timestamp before the operation will be deleted.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteLog( - com.google.logging.v2.DeleteLogRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteLogMethod(), getCallOptions()), request); - } - - /** - *
-     * 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)
-     * 
- */ - 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
-     * entries, see [Exporting
-     * Logs](https://cloud.google.com/logging/docs/export).
-     * 
- */ - 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 listMonitoredResourceDescriptors( - com.google.logging.v2.ListMonitoredResourceDescriptorsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - 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) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListLogsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_DELETE_LOG = 0; - private static final int METHODID_WRITE_LOG_ENTRIES = 1; - private static final int METHODID_LIST_LOG_ENTRIES = 2; - private static final int METHODID_LIST_MONITORED_RESOURCE_DESCRIPTORS = 3; - private static final int METHODID_LIST_LOGS = 4; - private static final int METHODID_TAIL_LOG_ENTRIES = 5; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final LoggingServiceV2ImplBase serviceImpl; - private final int methodId; - - MethodHandlers(LoggingServiceV2ImplBase 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_DELETE_LOG: - 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); - break; - case METHODID_LIST_LOG_ENTRIES: - 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); - break; - case METHODID_LIST_LOGS: - serviceImpl.listLogs((com.google.logging.v2.ListLogsRequest) 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) { - case METHODID_TAIL_LOG_ENTRIES: - return (io.grpc.stub.StreamObserver) serviceImpl.tailLogEntries( - (io.grpc.stub.StreamObserver) responseObserver); - default: - throw new AssertionError(); - } - } - } - - private static abstract class LoggingServiceV2BaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - LoggingServiceV2BaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.logging.v2.LoggingProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("LoggingServiceV2"); - } - } - - private static final class LoggingServiceV2FileDescriptorSupplier - extends LoggingServiceV2BaseDescriptorSupplier { - LoggingServiceV2FileDescriptorSupplier() {} - } - - private static final class LoggingServiceV2MethodDescriptorSupplier - extends LoggingServiceV2BaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - LoggingServiceV2MethodDescriptorSupplier(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 (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(); - } - } - } - return result; - } -} 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 c5a034fae..000000000 --- a/owl-bot-staging/v2/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/MetricsServiceV2Grpc.java +++ /dev/null @@ -1,647 +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 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 static abstract class MetricsServiceV2ImplBase implements io.grpc.BindableService { - - /** - *
-     * Lists logs-based metrics.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public 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.
-     * 
- */ - public void deleteLogMetric(com.google.logging.v2.DeleteLogMetricRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteLogMetricMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - 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>( - this, METHODID_LIST_LOG_METRICS))) - .addMethod( - getGetLogMetricMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.GetLogMetricRequest, - com.google.logging.v2.LogMetric>( - this, METHODID_GET_LOG_METRIC))) - .addMethod( - getCreateLogMetricMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.CreateLogMetricRequest, - com.google.logging.v2.LogMetric>( - this, METHODID_CREATE_LOG_METRIC))) - .addMethod( - getUpdateLogMetricMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.UpdateLogMetricRequest, - com.google.logging.v2.LogMetric>( - this, METHODID_UPDATE_LOG_METRIC))) - .addMethod( - getDeleteLogMetricMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.logging.v2.DeleteLogMetricRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_LOG_METRIC))) - .build(); - } - } - - /** - *
-   * 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); - } - } - - /** - *
-   * 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); - } - } - - /** - *
-   * 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 MetricsServiceV2ImplBase serviceImpl; - private final int methodId; - - MethodHandlers(MetricsServiceV2ImplBase 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(); - } - } - } - - 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 String methodName; - - MetricsServiceV2MethodDescriptorSupplier(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 8a30d8296..000000000 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequestOrBuilder.java +++ /dev/null @@ -1,31 +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 d34a96a00..000000000 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequestOrBuilder.java +++ /dev/null @@ -1,35 +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 2c437f6cb..000000000 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequestOrBuilder.java +++ /dev/null @@ -1,31 +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 73484dc2e..000000000 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequestOrBuilder.java +++ /dev/null @@ -1,35 +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/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 e1519c9fc..000000000 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryProto.java +++ /dev/null @@ -1,156 +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\"\203\010\n\010LogEntry\022\025\n\010log_name\030\014 \001(\tB\003\340A\002\0224\n" + - "\010resource\030\010 \001(\0132\035.google.api.MonitoredRe" + - "sourceB\003\340A\002\022-\n\rproto_payload\030\002 \001(\0132\024.goo" + - "gle.protobuf.AnyH\000\022\026\n\014text_payload\030\003 \001(\t" + - "H\000\022/\n\014json_payload\030\006 \001(\0132\027.google.protob" + - "uf.StructH\000\0222\n\ttimestamp\030\t \001(\0132\032.google." + - "protobuf.TimestampB\003\340A\001\022:\n\021receive_times" + - "tamp\030\030 \001(\0132\032.google.protobuf.TimestampB\003" + - "\340A\003\0227\n\010severity\030\n \001(\0162 .google.logging.t" + - "ype.LogSeverityB\003\340A\001\022\026\n\tinsert_id\030\004 \001(\tB" + - "\003\340A\001\022;\n\014http_request\030\007 \001(\0132 .google.logg" + - "ing.type.HttpRequestB\003\340A\001\022<\n\006labels\030\013 \003(" + - "\0132\'.google.logging.v2.LogEntry.LabelsEnt" + - "ryB\003\340A\001\022<\n\toperation\030\017 \001(\0132$.google.logg" + - "ing.v2.LogEntryOperationB\003\340A\001\022\022\n\005trace\030\026" + - " \001(\tB\003\340A\001\022\024\n\007span_id\030\033 \001(\tB\003\340A\001\022\032\n\rtrace" + - "_sampled\030\036 \001(\010B\003\340A\001\022G\n\017source_location\030\027" + - " \001(\0132).google.logging.v2.LogEntrySourceL" + - "ocationB\003\340A\001\022/\n\005split\030# \001(\0132\033.google.log" + - "ging.v2.LogSplitB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003" + - "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\275\001\352A\271\001\n\032log" + - "ging.googleapis.com/Log\022\035projects/{proje" + - "ct}/logs/{log}\022\'organizations/{organizat" + - "ion}/logs/{log}\022\033folders/{folder}/logs/{" + - "log}\022,billingAccounts/{billing_account}/" + - "logs/{log}\032\010log_nameB\t\n\007payload\"b\n\021LogEn" + - "tryOperation\022\017\n\002id\030\001 \001(\tB\003\340A\001\022\025\n\010produce" + - "r\030\002 \001(\tB\003\340A\001\022\022\n\005first\030\003 \001(\010B\003\340A\001\022\021\n\004last" + - "\030\004 \001(\010B\003\340A\001\"U\n\026LogEntrySourceLocation\022\021\n" + - "\004file\030\001 \001(\tB\003\340A\001\022\021\n\004line\030\002 \001(\003B\003\340A\001\022\025\n\010f" + - "unction\030\003 \001(\tB\003\340A\001\"<\n\010LogSplit\022\013\n\003uid\030\001 " + - "\001(\t\022\r\n\005index\030\002 \001(\005\022\024\n\014total_splits\030\003 \001(\005" + - "B\266\001\n\025com.google.logging.v2B\rLogEntryProt" + - "oP\001Z8google.golang.org/genproto/googleap" + - "is/logging/v2;logging\370\001\001\252\002\027Google.Cloud." + - "Logging.V2\312\002\027Google\\Cloud\\Logging\\V2\352\002\032G" + - "oogle::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 86b792588..000000000 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingConfigProto.java +++ /dev/null @@ -1,915 +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_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_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_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; - - 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\"\203\005\n\tLogBucke" + - "t\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\023\n\013description\030\003 \001(" + - "\t\0224\n\013create_time\030\004 \001(\0132\032.google.protobuf" + - ".TimestampB\003\340A\003\0224\n\013update_time\030\005 \001(\0132\032.g" + - "oogle.protobuf.TimestampB\003\340A\003\022\026\n\016retenti" + - "on_days\030\013 \001(\005\022\016\n\006locked\030\t \001(\010\022?\n\017lifecyc" + - "le_state\030\014 \001(\0162!.google.logging.v2.Lifec" + - "ycleStateB\003\340A\003\022\031\n\021restricted_fields\030\017 \003(" + - "\t\0226\n\rcmek_settings\030\023 \001(\0132\037.google.loggin" + - "g.v2.CmekSettings:\245\002\352A\241\002\n logging.google" + - "apis.com/LogBucket\0228projects/{project}/l" + - "ocations/{location}/buckets/{bucket}\022Bor" + - "ganizations/{organization}/locations/{lo" + - "cation}/buckets/{bucket}\0226folders/{folde" + - "r}/locations/{location}/buckets/{bucket}" + - "\022GbillingAccounts/{billing_account}/loca" + - "tions/{location}/buckets/{bucket}\"\202\004\n\007Lo" + - "gView\022\014\n\004name\030\001 \001(\t\022\023\n\013description\030\003 \001(\t" + - "\0224\n\013create_time\030\004 \001(\0132\032.google.protobuf." + - "TimestampB\003\340A\003\0224\n\013update_time\030\005 \001(\0132\032.go" + - "ogle.protobuf.TimestampB\003\340A\003\022\016\n\006filter\030\007" + - " \001(\t:\327\002\352A\323\002\n\036logging.googleapis.com/LogV" + - "iew\022Eprojects/{project}/locations/{locat" + - "ion}/buckets/{bucket}/views/{view}\022Oorga" + - "nizations/{organization}/locations/{loca" + - "tion}/buckets/{bucket}/views/{view}\022Cfol" + - "ders/{folder}/locations/{location}/bucke" + - "ts/{bucket}/views/{view}\022TbillingAccount" + - "s/{billing_account}/locations/{location}" + - "/buckets/{bucket}/views/{view}\"\205\006\n\007LogSi" + - "nk\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\036\n\013destination\030\003 \001" + - "(\tB\t\340A\002\372A\003\n\001*\022\023\n\006filter\030\005 \001(\tB\003\340A\001\022\030\n\013de" + - "scription\030\022 \001(\tB\003\340A\001\022\025\n\010disabled\030\023 \001(\010B\003" + - "\340A\001\0228\n\nexclusions\030\020 \003(\0132\037.google.logging" + - ".v2.LogExclusionB\003\340A\001\022K\n\025output_version_" + - "format\030\006 \001(\0162(.google.logging.v2.LogSink" + - ".VersionFormatB\002\030\001\022\034\n\017writer_identity\030\010 " + - "\001(\tB\003\340A\003\022\035\n\020include_children\030\t \001(\010B\003\340A\001\022" + - "C\n\020bigquery_options\030\014 \001(\0132\".google.loggi" + - "ng.v2.BigQueryOptionsB\003\340A\001H\000\0224\n\013create_t" + - "ime\030\r \001(\0132\032.google.protobuf.TimestampB\003\340" + - "A\003\0224\n\013update_time\030\016 \001(\0132\032.google.protobu" + - "f.TimestampB\003\340A\003\"?\n\rVersionFormat\022\036\n\032VER" + - "SION_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/LogSink" + - "\022\037projects/{project}/sinks/{sink}\022)organ" + - "izations/{organization}/sinks/{sink}\022\035fo" + - "lders/{folder}/sinks/{sink}\022.billingAcco" + - "unts/{billing_account}/sinks/{sink}B\t\n\007o" + - "ptions\"g\n\017BigQueryOptions\022#\n\026use_partiti" + - "oned_tables\030\001 \001(\010B\003\340A\001\022/\n\"uses_timestamp" + - "_column_partitioning\030\003 \001(\010B\003\340A\003\"\177\n\022ListB" + - "ucketsRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 l" + - "ogging.googleapis.com/LogBucket\022\027\n\npage_" + - "token\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001" + - "\"]\n\023ListBucketsResponse\022-\n\007buckets\030\001 \003(\013" + - "2\034.google.logging.v2.LogBucket\022\027\n\017next_p" + - "age_token\030\002 \001(\t\"\232\001\n\023CreateBucketRequest\022" + - "8\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 logging.googlea" + - "pis.com/LogBucket\022\026\n\tbucket_id\030\002 \001(\tB\003\340A" + - "\002\0221\n\006bucket\030\003 \001(\0132\034.google.logging.v2.Lo" + - "gBucketB\003\340A\002\"\266\001\n\023UpdateBucketRequest\0226\n\004" + - "name\030\001 \001(\tB(\340A\002\372A\"\n logging.googleapis.c" + - "om/LogBucket\0221\n\006bucket\030\002 \001(\0132\034.google.lo" + - "gging.v2.LogBucketB\003\340A\002\0224\n\013update_mask\030\004" + - " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"J\n" + - "\020GetBucketRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n" + - " logging.googleapis.com/LogBucket\"M\n\023Del" + - "eteBucketRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n " + - "logging.googleapis.com/LogBucket\"O\n\025Unde" + - "leteBucketRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n" + - " logging.googleapis.com/LogBucket\"X\n\020Lis" + - "tViewsRequest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022\027\n\npa" + - "ge_token\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003" + - "\340A\001\"W\n\021ListViewsResponse\022)\n\005views\030\001 \003(\0132" + - "\032.google.logging.v2.LogView\022\027\n\017next_page" + - "_token\030\002 \001(\t\"m\n\021CreateViewRequest\022\023\n\006par" + - "ent\030\001 \001(\tB\003\340A\002\022\024\n\007view_id\030\002 \001(\tB\003\340A\002\022-\n\004" + - "view\030\003 \001(\0132\032.google.logging.v2.LogViewB\003" + - "\340A\002\"\213\001\n\021UpdateViewRequest\022\021\n\004name\030\001 \001(\tB" + - "\003\340A\002\022-\n\004view\030\002 \001(\0132\032.google.logging.v2.L" + - "ogViewB\003\340A\002\0224\n\013update_mask\030\004 \001(\0132\032.googl" + - "e.protobuf.FieldMaskB\003\340A\001\"F\n\016GetViewRequ" + - "est\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036logging.googl" + - "eapis.com/LogView\"I\n\021DeleteViewRequest\0224" + - "\n\004name\030\001 \001(\tB&\340A\002\372A \n\036logging.googleapis" + - ".com/LogView\"{\n\020ListSinksRequest\0226\n\006pare" + - "nt\030\001 \001(\tB&\340A\002\372A \022\036logging.googleapis.com" + - "/LogSink\022\027\n\npage_token\030\002 \001(\tB\003\340A\001\022\026\n\tpag" + - "e_size\030\003 \001(\005B\003\340A\001\"W\n\021ListSinksResponse\022)" + - "\n\005sinks\030\001 \003(\0132\032.google.logging.v2.LogSin" + - "k\022\027\n\017next_page_token\030\002 \001(\t\"K\n\016GetSinkReq" + - "uest\0229\n\tsink_name\030\001 \001(\tB&\340A\002\372A \n\036logging" + - ".googleapis.com/LogSink\"\237\001\n\021CreateSinkRe" + - "quest\0226\n\006parent\030\001 \001(\tB&\340A\002\372A \022\036logging.g" + - "oogleapis.com/LogSink\022-\n\004sink\030\002 \001(\0132\032.go" + - "ogle.logging.v2.LogSinkB\003\340A\002\022#\n\026unique_w" + - "riter_identity\030\003 \001(\010B\003\340A\001\"\330\001\n\021UpdateSink" + - "Request\0229\n\tsink_name\030\001 \001(\tB&\340A\002\372A \n\036logg" + - "ing.googleapis.com/LogSink\022-\n\004sink\030\002 \001(\013" + - "2\032.google.logging.v2.LogSinkB\003\340A\002\022#\n\026uni" + - "que_writer_identity\030\003 \001(\010B\003\340A\001\0224\n\013update" + - "_mask\030\004 \001(\0132\032.google.protobuf.FieldMaskB" + - "\003\340A\001\"N\n\021DeleteSinkRequest\0229\n\tsink_name\030\001" + - " \001(\tB&\340A\002\372A \n\036logging.googleapis.com/Log" + - "Sink\"\302\003\n\014LogExclusion\022\021\n\004name\030\001 \001(\tB\003\340A\002" + - "\022\030\n\013description\030\002 \001(\tB\003\340A\001\022\023\n\006filter\030\003 \001" + - "(\tB\003\340A\002\022\025\n\010disabled\030\004 \001(\010B\003\340A\001\0224\n\013create" + - "_time\030\005 \001(\0132\032.google.protobuf.TimestampB" + - "\003\340A\003\0224\n\013update_time\030\006 \001(\0132\032.google.proto" + - "buf.TimestampB\003\340A\003:\354\001\352A\350\001\n#logging.googl" + - "eapis.com/LogExclusion\022)projects/{projec" + - "t}/exclusions/{exclusion}\0223organizations" + - "/{organization}/exclusions/{exclusion}\022\'" + - "folders/{folder}/exclusions/{exclusion}\022" + - "8billingAccounts/{billing_account}/exclu" + - "sions/{exclusion}\"\205\001\n\025ListExclusionsRequ" + - "est\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\022#logging.goo" + - "gleapis.com/LogExclusion\022\027\n\npage_token\030\002" + - " \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\"f\n\026Lis" + - "tExclusionsResponse\0223\n\nexclusions\030\001 \003(\0132" + - "\037.google.logging.v2.LogExclusion\022\027\n\017next" + - "_page_token\030\002 \001(\t\"P\n\023GetExclusionRequest" + - "\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#logging.googleap" + - "is.com/LogExclusion\"\216\001\n\026CreateExclusionR" + - "equest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\022#logging." + - "googleapis.com/LogExclusion\0227\n\texclusion" + - "\030\002 \001(\0132\037.google.logging.v2.LogExclusionB" + - "\003\340A\002\"\302\001\n\026UpdateExclusionRequest\0229\n\004name\030" + - "\001 \001(\tB+\340A\002\372A%\n#logging.googleapis.com/Lo" + - "gExclusion\0227\n\texclusion\030\002 \001(\0132\037.google.l" + - "ogging.v2.LogExclusionB\003\340A\002\0224\n\013update_ma" + - "sk\030\003 \001(\0132\032.google.protobuf.FieldMaskB\003\340A" + - "\002\"S\n\026DeleteExclusionRequest\0229\n\004name\030\001 \001(" + - "\tB+\340A\002\372A%\n#logging.googleapis.com/LogExc" + - "lusion\"S\n\026GetCmekSettingsRequest\0229\n\004name" + - "\030\001 \001(\tB+\340A\002\372A%\n#logging.googleapis.com/C" + - "mekSettings\"\241\001\n\031UpdateCmekSettingsReques" + - "t\022\021\n\004name\030\001 \001(\tB\003\340A\002\022;\n\rcmek_settings\030\002 " + - "\001(\0132\037.google.logging.v2.CmekSettingsB\003\340A" + - "\002\0224\n\013update_mask\030\003 \001(\0132\032.google.protobuf" + - ".FieldMaskB\003\340A\001\"\237\002\n\014CmekSettings\022\021\n\004name" + - "\030\001 \001(\tB\003\340A\003\022\024\n\014kms_key_name\030\002 \001(\t\022\037\n\022ser" + - "vice_account_id\030\003 \001(\tB\003\340A\003:\304\001\352A\300\001\n#loggi" + - "ng.googleapis.com/CmekSettings\022\037projects" + - "/{project}/cmekSettings\022)organizations/{" + - "organization}/cmekSettings\022\035folders/{fol" + - "der}/cmekSettings\022.billingAccounts/{bill" + - "ing_account}/cmekSettings\"K\n\022GetSettings" + - "Request\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037logging.g" + - "oogleapis.com/Settings\"\224\001\n\025UpdateSetting" + - "sRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\0222\n\010settings\030" + - "\002 \001(\0132\033.google.logging.v2.SettingsB\003\340A\002\022" + - "4\n\013update_mask\030\003 \001(\0132\032.google.protobuf.F" + - "ieldMaskB\003\340A\001\"\322\002\n\010Settings\022\021\n\004name\030\001 \001(\t" + - "B\003\340A\003\022\031\n\014kms_key_name\030\002 \001(\tB\003\340A\001\022#\n\026kms_" + - "service_account_id\030\003 \001(\tB\003\340A\003\022\035\n\020storage" + - "_location\030\004 \001(\tB\003\340A\001\022!\n\024disable_default_" + - "sink\030\005 \001(\010B\003\340A\001:\260\001\352A\254\001\n\037logging.googleap" + - "is.com/Settings\022\033projects/{project}/sett" + - "ings\022%organizations/{organization}/setti" + - "ngs\022\031folders/{folder}/settings\022*billingA" + - "ccounts/{billing_account}/settings\"Y\n\025Co" + - "pyLogEntriesRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\023" + - "\n\006filter\030\003 \001(\tB\003\340A\001\022\030\n\013destination\030\004 \001(\t" + - "B\003\340A\002\"\256\002\n\026CopyLogEntriesMetadata\022.\n\nstar" + - "t_time\030\001 \001(\0132\032.google.protobuf.Timestamp" + - "\022,\n\010end_time\030\002 \001(\0132\032.google.protobuf.Tim" + - "estamp\0220\n\005state\030\003 \001(\0162!.google.logging.v" + - "2.OperationState\022\036\n\026cancellation_request" + - "ed\030\004 \001(\010\0229\n\007request\030\005 \001(\0132(.google.loggi" + - "ng.v2.CopyLogEntriesRequest\022\020\n\010progress\030" + - "\006 \001(\005\022\027\n\017writer_identity\030\007 \001(\t\":\n\026CopyLo" + - "gEntriesResponse\022 \n\030log_entries_copied_c" + - "ount\030\001 \001(\003*S\n\016LifecycleState\022\037\n\033LIFECYCL" + - "E_STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\024\n\020DEL" + - "ETE_REQUESTED\020\002*\364\001\n\016OperationState\022\037\n\033OP" + - "ERATION_STATE_UNSPECIFIED\020\000\022\035\n\031OPERATION" + - "_STATE_SCHEDULED\020\001\022+\n\'OPERATION_STATE_WA" + - "ITING_FOR_PERMISSIONS\020\002\022\033\n\027OPERATION_STA" + - "TE_RUNNING\020\003\022\035\n\031OPERATION_STATE_SUCCEEDE" + - "D\020\004\022\032\n\026OPERATION_STATE_FAILED\020\005\022\035\n\031OPERA" + - "TION_STATE_CANCELLED\020\0062\214E\n\017ConfigService" + - "V2\022\334\002\n\013ListBuckets\022%.google.logging.v2.L" + - "istBucketsRequest\032&.google.logging.v2.Li" + - "stBucketsResponse\"\375\001\202\323\344\223\002\355\001\022$/v2/{parent" + - "=*/*/locations/*}/bucketsZ-\022+/v2/{parent" + - "=projects/*/locations/*}/bucketsZ2\0220/v2/" + - "{parent=organizations/*/locations/*}/buc" + - "ketsZ,\022*/v2/{parent=folders/*/locations/" + - "*}/bucketsZ4\0222/v2/{parent=billingAccount" + - "s/*/locations/*}/buckets\332A\006parent\022\271\002\n\tGe" + - "tBucket\022#.google.logging.v2.GetBucketReq" + - "uest\032\034.google.logging.v2.LogBucket\"\350\001\202\323\344" + - "\223\002\341\001\022$/v2/{name=*/*/locations/*/buckets/" + - "*}Z-\022+/v2/{name=projects/*/locations/*/b" + - "uckets/*}Z2\0220/v2/{name=organizations/*/l" + - "ocations/*/buckets/*}Z,\022*/v2/{name=folde" + - "rs/*/locations/*/buckets/*}Z(\022&/v2/{name" + - "=billingAccounts/*/buckets/*}\022\363\002\n\014Create" + - "Bucket\022&.google.logging.v2.CreateBucketR" + - "equest\032\034.google.logging.v2.LogBucket\"\234\002\202" + - "\323\344\223\002\225\002\"$/v2/{parent=*/*/locations/*}/buc" + - "kets:\006bucketZ5\"+/v2/{parent=projects/*/l" + - "ocations/*}/buckets:\006bucketZ:\"0/v2/{pare" + - "nt=organizations/*/locations/*}/buckets:" + - "\006bucketZ4\"*/v2/{parent=folders/*/locatio" + - "ns/*}/buckets:\006bucketZ<\"2/v2/{parent=bil" + - "lingAccounts/*/locations/*}/buckets:\006buc" + - "ket\022\363\002\n\014UpdateBucket\022&.google.logging.v2" + - ".UpdateBucketRequest\032\034.google.logging.v2" + - ".LogBucket\"\234\002\202\323\344\223\002\225\0022$/v2/{name=*/*/loca" + - "tions/*/buckets/*}:\006bucketZ52+/v2/{name=" + - "projects/*/locations/*/buckets/*}:\006bucke" + - "tZ:20/v2/{name=organizations/*/locations" + - "/*/buckets/*}:\006bucketZ42*/v2/{name=folde" + - "rs/*/locations/*/buckets/*}:\006bucketZ<22/" + - "v2/{name=billingAccounts/*/locations/*/b" + - "uckets/*}:\006bucket\022\305\002\n\014DeleteBucket\022&.goo" + - "gle.logging.v2.DeleteBucketRequest\032\026.goo" + - "gle.protobuf.Empty\"\364\001\202\323\344\223\002\355\001*$/v2/{name=" + - "*/*/locations/*/buckets/*}Z-*+/v2/{name=" + - "projects/*/locations/*/buckets/*}Z2*0/v2" + - "/{name=organizations/*/locations/*/bucke" + - "ts/*}Z,**/v2/{name=folders/*/locations/*" + - "/buckets/*}Z4*2/v2/{name=billingAccounts" + - "/*/locations/*/buckets/*}\022\205\003\n\016UndeleteBu" + - "cket\022(.google.logging.v2.UndeleteBucketR" + - "equest\032\026.google.protobuf.Empty\"\260\002\202\323\344\223\002\251\002" + - "\"-/v2/{name=*/*/locations/*/buckets/*}:u" + - "ndelete:\001*Z9\"4/v2/{name=projects/*/locat" + - "ions/*/buckets/*}:undelete:\001*Z>\"9/v2/{na" + - "me=organizations/*/locations/*/buckets/*" + - "}:undelete:\001*Z8\"3/v2/{name=folders/*/loc" + - "ations/*/buckets/*}:undelete:\001*Z@\";/v2/{" + - "name=billingAccounts/*/locations/*/bucke" + - "ts/*}:undelete:\001*\022\376\002\n\tListViews\022#.google" + - ".logging.v2.ListViewsRequest\032$.google.lo" + - "gging.v2.ListViewsResponse\"\245\002\202\323\344\223\002\225\002\022,/v" + - "2/{parent=*/*/locations/*/buckets/*}/vie" + - "wsZ5\0223/v2/{parent=projects/*/locations/*" + - "/buckets/*}/viewsZ:\0228/v2/{parent=organiz" + - "ations/*/locations/*/buckets/*}/viewsZ4\022" + - "2/v2/{parent=folders/*/locations/*/bucke" + - "ts/*}/viewsZ<\022:/v2/{parent=billingAccoun" + - "ts/*/locations/*/buckets/*}/views\332A\006pare" + - "nt\022\333\002\n\007GetView\022!.google.logging.v2.GetVi" + - "ewRequest\032\032.google.logging.v2.LogView\"\220\002" + - "\202\323\344\223\002\211\002\022,/v2/{name=*/*/locations/*/bucke" + - "ts/*/views/*}Z5\0223/v2/{name=projects/*/lo" + - "cations/*/buckets/*/views/*}Z:\0228/v2/{nam" + - "e=organizations/*/locations/*/buckets/*/" + - "views/*}Z4\0222/v2/{name=folders/*/location" + - "s/*/buckets/*/views/*}Z0\022./v2/{name=bill" + - "ingAccounts/*/buckets/*/views/*}\022\213\003\n\nCre" + - "ateView\022$.google.logging.v2.CreateViewRe" + - "quest\032\032.google.logging.v2.LogView\"\272\002\202\323\344\223" + - "\002\263\002\",/v2/{parent=*/*/locations/*/buckets" + - "/*}/views:\004viewZ;\"3/v2/{parent=projects/" + - "*/locations/*/buckets/*}/views:\004viewZ@\"8" + - "/v2/{parent=organizations/*/locations/*/" + - "buckets/*}/views:\004viewZ:\"2/v2/{parent=fo" + - "lders/*/locations/*/buckets/*}/views:\004vi" + - "ewZB\":/v2/{parent=billingAccounts/*/loca" + - "tions/*/buckets/*}/views:\004view\022\213\003\n\nUpdat" + - "eView\022$.google.logging.v2.UpdateViewRequ" + - "est\032\032.google.logging.v2.LogView\"\272\002\202\323\344\223\002\263" + - "\0022,/v2/{name=*/*/locations/*/buckets/*/v" + - "iews/*}:\004viewZ;23/v2/{name=projects/*/lo" + - "cations/*/buckets/*/views/*}:\004viewZ@28/v" + - "2/{name=organizations/*/locations/*/buck" + - "ets/*/views/*}:\004viewZ:22/v2/{name=folder" + - "s/*/locations/*/buckets/*/views/*}:\004view" + - "ZB2:/v2/{name=billingAccounts/*/location" + - "s/*/buckets/*/views/*}:\004view\022\351\002\n\nDeleteV" + - "iew\022$.google.logging.v2.DeleteViewReques" + - "t\032\026.google.protobuf.Empty\"\234\002\202\323\344\223\002\225\002*,/v2" + - "/{name=*/*/locations/*/buckets/*/views/*" + - "}Z5*3/v2/{name=projects/*/locations/*/bu" + - "ckets/*/views/*}Z:*8/v2/{name=organizati" + - "ons/*/locations/*/buckets/*/views/*}Z4*2" + - "/v2/{name=folders/*/locations/*/buckets/" + - "*/views/*}Z<*:/v2/{name=billingAccounts/" + - "*/locations/*/buckets/*/views/*}\022\220\002\n\tLis" + - "tSinks\022#.google.logging.v2.ListSinksRequ" + - "est\032$.google.logging.v2.ListSinksRespons" + - "e\"\267\001\202\323\344\223\002\247\001\022\026/v2/{parent=*/*}/sinksZ\037\022\035/" + - "v2/{parent=projects/*}/sinksZ$\022\"/v2/{par" + - "ent=organizations/*}/sinksZ\036\022\034/v2/{paren" + - "t=folders/*}/sinksZ&\022$/v2/{parent=billin" + - "gAccounts/*}/sinks\332A\006parent\022\236\002\n\007GetSink\022" + - "!.google.logging.v2.GetSinkRequest\032\032.goo" + - "gle.logging.v2.LogSink\"\323\001\202\323\344\223\002\300\001\022\033/v2/{s" + - "ink_name=*/*/sinks/*}Z$\022\"/v2/{sink_name=" + - "projects/*/sinks/*}Z)\022\'/v2/{sink_name=or" + - "ganizations/*/sinks/*}Z#\022!/v2/{sink_name" + - "=folders/*/sinks/*}Z+\022)/v2/{sink_name=bi" + - "llingAccounts/*/sinks/*}\332A\tsink_name\022\253\002\n" + - "\nCreateSink\022$.google.logging.v2.CreateSi" + - "nkRequest\032\032.google.logging.v2.LogSink\"\332\001" + - "\202\323\344\223\002\305\001\"\026/v2/{parent=*/*}/sinks:\004sinkZ%\"" + - "\035/v2/{parent=projects/*}/sinks:\004sinkZ*\"\"" + - "/v2/{parent=organizations/*}/sinks:\004sink" + - "Z$\"\034/v2/{parent=folders/*}/sinks:\004sinkZ," + - "\"$/v2/{parent=billingAccounts/*}/sinks:\004" + - "sink\332A\013parent,sink\022\237\004\n\nUpdateSink\022$.goog" + - "le.logging.v2.UpdateSinkRequest\032\032.google" + - ".logging.v2.LogSink\"\316\003\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\332A" + - "\032sink_name,sink,update_mask\332A\016sink_name," + - "sink\022\240\002\n\nDeleteSink\022$.google.logging.v2." + - "DeleteSinkRequest\032\026.google.protobuf.Empt" + - "y\"\323\001\202\323\344\223\002\300\001*\033/v2/{sink_name=*/*/sinks/*}" + - "Z$*\"/v2/{sink_name=projects/*/sinks/*}Z)" + - "*\'/v2/{sink_name=organizations/*/sinks/*" + - "}Z#*!/v2/{sink_name=folders/*/sinks/*}Z+" + - "*)/v2/{sink_name=billingAccounts/*/sinks" + - "/*}\332A\tsink_name\022\270\002\n\016ListExclusions\022(.goo" + - "gle.logging.v2.ListExclusionsRequest\032).g" + - "oogle.logging.v2.ListExclusionsResponse\"" + - "\320\001\202\323\344\223\002\300\001\022\033/v2/{parent=*/*}/exclusionsZ$" + - "\022\"/v2/{parent=projects/*}/exclusionsZ)\022\'" + - "/v2/{parent=organizations/*}/exclusionsZ" + - "#\022!/v2/{parent=folders/*}/exclusionsZ+\022)" + - "/v2/{parent=billingAccounts/*}/exclusion" + - "s\332A\006parent\022\250\002\n\014GetExclusion\022&.google.log" + - "ging.v2.GetExclusionRequest\032\037.google.log" + - "ging.v2.LogExclusion\"\316\001\202\323\344\223\002\300\001\022\033/v2/{nam" + - "e=*/*/exclusions/*}Z$\022\"/v2/{name=project" + - "s/*/exclusions/*}Z)\022\'/v2/{name=organizat" + - "ions/*/exclusions/*}Z#\022!/v2/{name=folder" + - "s/*/exclusions/*}Z+\022)/v2/{name=billingAc" + - "counts/*/exclusions/*}\332A\004name\022\361\002\n\017Create" + - "Exclusion\022).google.logging.v2.CreateExcl" + - "usionRequest\032\037.google.logging.v2.LogExcl" + - "usion\"\221\002\202\323\344\223\002\367\001\"\033/v2/{parent=*/*}/exclus" + - "ions:\texclusionZ/\"\"/v2/{parent=projects/" + - "*}/exclusions:\texclusionZ4\"\'/v2/{parent=" + - "organizations/*}/exclusions:\texclusionZ." + - "\"!/v2/{parent=folders/*}/exclusions:\texc" + - "lusionZ6\")/v2/{parent=billingAccounts/*}" + - "/exclusions:\texclusion\332A\020parent,exclusio" + - "n\022\373\002\n\017UpdateExclusion\022).google.logging.v" + - "2.UpdateExclusionRequest\032\037.google.loggin" + - "g.v2.LogExclusion\"\233\002\202\323\344\223\002\367\0012\033/v2/{name=*" + - "/*/exclusions/*}:\texclusionZ/2\"/v2/{name" + - "=projects/*/exclusions/*}:\texclusionZ42\'" + - "/v2/{name=organizations/*/exclusions/*}:" + - "\texclusionZ.2!/v2/{name=folders/*/exclus" + - "ions/*}:\texclusionZ62)/v2/{name=billingA" + - "ccounts/*/exclusions/*}:\texclusion\332A\032nam" + - "e,exclusion,update_mask\022\245\002\n\017DeleteExclus" + - "ion\022).google.logging.v2.DeleteExclusionR" + - "equest\032\026.google.protobuf.Empty\"\316\001\202\323\344\223\002\300\001" + - "*\033/v2/{name=*/*/exclusions/*}Z$*\"/v2/{na" + - "me=projects/*/exclusions/*}Z)*\'/v2/{name" + - "=organizations/*/exclusions/*}Z#*!/v2/{n" + - "ame=folders/*/exclusions/*}Z+*)/v2/{name" + - "=billingAccounts/*/exclusions/*}\332A\004name\022" + - "\247\002\n\017GetCmekSettings\022).google.logging.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=projects/*}/" + - "cmekSettingsZ)\022\'/v2/{name=organizations/" + - "*}/cmekSettingsZ#\022!/v2/{name=folders/*}/" + - "cmekSettingsZ+\022)/v2/{name=billingAccount" + - "s/*}/cmekSettings\022\321\001\n\022UpdateCmekSettings" + - "\022,.google.logging.v2.UpdateCmekSettingsR" + - "equest\032\037.google.logging.v2.CmekSettings\"" + - "l\202\323\344\223\002f2\033/v2/{name=*/*}/cmekSettings:\rcm" + - "ek_settingsZ82\'/v2/{name=organizations/*" + - "}/cmekSettings:\rcmek_settings\022\216\002\n\013GetSet" + - "tings\022%.google.logging.v2.GetSettingsReq" + - "uest\032\033.google.logging.v2.Settings\"\272\001\202\323\344\223" + - "\002\254\001\022\027/v2/{name=*/*}/settingsZ \022\036/v2/{nam" + - "e=projects/*}/settingsZ%\022#/v2/{name=orga" + - "nizations/*}/settingsZ\037\022\035/v2/{name=folde" + - "rs/*}/settingsZ\'\022%/v2/{name=billingAccou" + - "nts/*}/settings\332A\004name\022\366\001\n\016UpdateSetting" + - "s\022(.google.logging.v2.UpdateSettingsRequ" + - "est\032\033.google.logging.v2.Settings\"\234\001\202\323\344\223\002" + - "\1772\027/v2/{name=*/*}/settings:\010settingsZ/2#" + - "/v2/{name=organizations/*}/settings:\010set" + - "tingsZ)2\035/v2/{name=folders/*}/settings:\010", - "settings\332A\024settings,update_mask\022\251\001\n\016Copy" + - "LogEntries\022(.google.logging.v2.CopyLogEn" + - "triesRequest\032\035.google.longrunning.Operat" + - "ion\"N\202\323\344\223\002\025\"\020/v2/entries:copy:\001*\312A0\n\026Cop" + - "yLogEntriesResponse\022\026CopyLogEntriesMetad" + - "ata\032\337\001\312A\026logging.googleapis.com\322A\302\001https" + - "://www.googleapis.com/auth/cloud-platfor" + - "m,https://www.googleapis.com/auth/cloud-" + - "platform.read-only,https://www.googleapi" + - "s.com/auth/logging.admin,https://www.goo" + - "gleapis.com/auth/logging.readB\331\003\n\025com.go" + - "ogle.logging.v2B\022LoggingConfigProtoP\001Z8g" + - "oogle.golang.org/genproto/googleapis/log" + - "ging/v2;logging\370\001\001\252\002\027Google.Cloud.Loggin" + - "g.V2\312\002\027Google\\Cloud\\Logging\\V2\352\002\032Google:" + - ":Cloud::Logging::V2\352A`\n+logging.googleap" + - "is.com/OrganizationLocation\0221organizatio" + - "ns/{organization}/locations/{location}\352A" + - "N\n%logging.googleapis.com/FolderLocation" + - "\022%folders/{folder}/locations/{location}\352" + - "Ag\n-logging.googleapis.com/BillingAccoun" + - "tLocation\0226billingAccounts/{billing_acco" + - "unt}/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_LogBucket_descriptor = - getDescriptor().getMessageTypes().get(0); - 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", "RestrictedFields", "CmekSettings", }); - internal_static_google_logging_v2_LogView_descriptor = - getDescriptor().getMessageTypes().get(1); - 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(2); - 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_BigQueryOptions_descriptor = - getDescriptor().getMessageTypes().get(3); - 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(4); - 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(5); - 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(6); - 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(7); - 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(8); - 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(9); - 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(10); - 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(11); - 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(12); - 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(13); - 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(14); - 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(15); - 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(16); - 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(17); - 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(18); - 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(19); - 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(20); - 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(21); - 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(22); - 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_LogExclusion_descriptor = - getDescriptor().getMessageTypes().get(23); - 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(24); - 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(25); - 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(26); - 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(27); - 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(28); - 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(29); - 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(30); - 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(31); - 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(32); - 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", "ServiceAccountId", }); - internal_static_google_logging_v2_GetSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(33); - 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(34); - 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(35); - 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(36); - 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(37); - 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(38); - 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", }); - 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 e9ec9519b..000000000 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingMetricsProto.java +++ /dev/null @@ -1,223 +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\"\243\005\n\tLogMetric\022\021\n\004name\030\001 \001(" + - "\tB\003\340A\002\022\030\n\013description\030\002 \001(\tB\003\340A\001\022\023\n\006filt" + - "er\030\003 \001(\tB\003\340A\002\022\025\n\010disabled\030\014 \001(\010B\003\340A\001\022<\n\021" + - "metric_descriptor\030\005 \001(\0132\034.google.api.Met" + - "ricDescriptorB\003\340A\001\022\034\n\017value_extractor\030\006 " + - "\001(\tB\003\340A\001\022P\n\020label_extractors\030\007 \003(\01321.goo" + - "gle.logging.v2.LogMetric.LabelExtractors" + - "EntryB\003\340A\001\022C\n\016bucket_options\030\010 \001(\0132&.goo" + - "gle.api.Distribution.BucketOptionsB\003\340A\001\022" + - "4\n\013create_time\030\t \001(\0132\032.google.protobuf.T" + - "imestampB\003\340A\003\0224\n\013update_time\030\n \001(\0132\032.goo" + - "gle.protobuf.TimestampB\003\340A\003\022<\n\007version\030\004" + - " \001(\0162\'.google.logging.v2.LogMetric.ApiVe" + - "rsionB\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\002V2\020\000\022\006\n\002V1\020\001:J\352AG\n logging.googleapis" + - ".com/LogMetric\022#projects/{project}/metri" + - "cs/{metric}\"\215\001\n\025ListLogMetricsRequest\022C\n" + - "\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemana" + - "ger.googleapis.com/Project\022\027\n\npage_token" + - "\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\"`\n\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\"T\n\023GetLogMetricRequest\022=\n\013" + - "metric_name\030\001 \001(\tB(\340A\002\372A\"\n logging.googl" + - "eapis.com/LogMetric\"\205\001\n\026CreateLogMetricR" + - "equest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 logging." + - "googleapis.com/LogMetric\0221\n\006metric\030\002 \001(\013" + - "2\034.google.logging.v2.LogMetricB\003\340A\002\"\212\001\n\026" + - "UpdateLogMetricRequest\022=\n\013metric_name\030\001 " + - "\001(\tB(\340A\002\372A\"\n logging.googleapis.com/LogM" + - "etric\0221\n\006metric\030\002 \001(\0132\034.google.logging.v" + - "2.LogMetricB\003\340A\002\"W\n\026DeleteLogMetricReque" + - "st\022=\n\013metric_name\030\001 \001(\tB(\340A\002\372A\"\n logging" + - ".googleapis.com/LogMetric2\256\010\n\020MetricsSer" + - "viceV2\022\227\001\n\016ListLogMetrics\022(.google.loggi" + - "ng.v2.ListLogMetricsRequest\032).google.log" + - "ging.v2.ListLogMetricsResponse\"0\202\323\344\223\002!\022\037" + - "/v2/{parent=projects/*}/metrics\332A\006parent" + - "\022\222\001\n\014GetLogMetric\022&.google.logging.v2.Ge" + - "tLogMetricRequest\032\034.google.logging.v2.Lo" + - "gMetric\"<\202\323\344\223\002(\022&/v2/{metric_name=projec" + - "ts/*/metrics/*}\332A\013metric_name\022\233\001\n\017Create" + - "LogMetric\022).google.logging.v2.CreateLogM" + - "etricRequest\032\034.google.logging.v2.LogMetr" + - "ic\"?\202\323\344\223\002)\"\037/v2/{parent=projects/*}/metr" + - "ics:\006metric\332A\rparent,metric\022\247\001\n\017UpdateLo" + - "gMetric\022).google.logging.v2.UpdateLogMet" + - "ricRequest\032\034.google.logging.v2.LogMetric" + - "\"K\202\323\344\223\0020\032&/v2/{metric_name=projects/*/me" + - "trics/*}:\006metric\332A\022metric_name,metric\022\222\001" + - "\n\017DeleteLogMetric\022).google.logging.v2.De" + - "leteLogMetricRequest\032\026.google.protobuf.E" + - "mpty\"<\202\323\344\223\002(*&/v2/{metric_name=projects/" + - "*/metrics/*}\332A\013metric_name\032\215\002\312A\026logging." + - "googleapis.com\322A\360\001https://www.googleapis" + - ".com/auth/cloud-platform,https://www.goo" + - "gleapis.com/auth/cloud-platform.read-onl" + - "y,https://www.googleapis.com/auth/loggin" + - "g.admin,https://www.googleapis.com/auth/" + - "logging.read,https://www.googleapis.com/" + - "auth/logging.writeB\274\001\n\025com.google.loggin" + - "g.v2B\023LoggingMetricsProtoP\001Z8google.gola" + - "ng.org/genproto/googleapis/logging/v2;lo" + - "gging\370\001\001\252\002\027Google.Cloud.Logging.V2\312\002\027Goo" + - "gle\\Cloud\\Logging\\V2\352\002\032Google::Cloud::Lo" + - "gging::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", "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 c96fd2b66..000000000 --- a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingProto.java +++ /dev/null @@ -1,326 +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\"H\n\020DeleteLogRequest\0224\n\010log_name\030\001 " + - "\001(\tB\"\340A\002\372A\034\n\032logging.googleapis.com/Log\"" + - "\346\002\n\026WriteLogEntriesRequest\0224\n\010log_name\030\001" + - " \001(\tB\"\340A\001\372A\034\n\032logging.googleapis.com/Log" + - "\0224\n\010resource\030\002 \001(\0132\035.google.api.Monitore" + - "dResourceB\003\340A\001\022J\n\006labels\030\003 \003(\01325.google." + - "logging.v2.WriteLogEntriesRequest.Labels" + - "EntryB\003\340A\001\0221\n\007entries\030\004 \003(\0132\033.google.log" + - "ging.v2.LogEntryB\003\340A\002\022\034\n\017partial_success" + - "\030\005 \001(\010B\003\340A\001\022\024\n\007dry_run\030\006 \001(\010B\003\340A\001\032-\n\013Lab" + - "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + - "\"\031\n\027WriteLogEntriesResponse\"\310\001\n\034WriteLog" + - "EntriesPartialErrors\022]\n\020log_entry_errors" + - "\030\001 \003(\0132C.google.logging.v2.WriteLogEntri" + - "esPartialErrors.LogEntryErrorsEntry\032I\n\023L" + - "ogEntryErrorsEntry\022\013\n\003key\030\001 \001(\005\022!\n\005value" + - "\030\002 \001(\0132\022.google.rpc.Status:\0028\001\"\260\001\n\025ListL" + - "ogEntriesRequest\022:\n\016resource_names\030\010 \003(\t" + - "B\"\340A\002\372A\034\022\032logging.googleapis.com/Log\022\023\n\006" + - "filter\030\002 \001(\tB\003\340A\001\022\025\n\010order_by\030\003 \001(\tB\003\340A\001" + - "\022\026\n\tpage_size\030\004 \001(\005B\003\340A\001\022\027\n\npage_token\030\005" + - " \001(\tB\003\340A\001\"_\n\026ListLogEntriesResponse\022,\n\007e" + - "ntries\030\001 \003(\0132\033.google.logging.v2.LogEntr" + - "y\022\027\n\017next_page_token\030\002 \001(\t\"Z\n\'ListMonito" + - "redResourceDescriptorsRequest\022\026\n\tpage_si" + - "ze\030\001 \001(\005B\003\340A\001\022\027\n\npage_token\030\002 \001(\tB\003\340A\001\"\212" + - "\001\n(ListMonitoredResourceDescriptorsRespo" + - "nse\022E\n\024resource_descriptors\030\001 \003(\0132\'.goog" + - "le.api.MonitoredResourceDescriptor\022\027\n\017ne" + - "xt_page_token\030\002 \001(\t\"\262\001\n\017ListLogsRequest\022" + - "2\n\006parent\030\001 \001(\tB\"\340A\002\372A\034\022\032logging.googlea" + - "pis.com/Log\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\np" + - "age_token\030\003 \001(\tB\003\340A\001\022:\n\016resource_names\030\010" + - " \003(\tB\"\340A\001\372A\034\022\032logging.googleapis.com/Log" + - "\">\n\020ListLogsResponse\022\021\n\tlog_names\030\003 \003(\t\022" + - "\027\n\017next_page_token\030\002 \001(\t\"\200\001\n\025TailLogEntr" + - "iesRequest\022\033\n\016resource_names\030\001 \003(\tB\003\340A\002\022" + - "\023\n\006filter\030\002 \001(\tB\003\340A\001\0225\n\rbuffer_window\030\003 " + - "\001(\0132\031.google.protobuf.DurationB\003\340A\001\"\337\002\n\026" + - "TailLogEntriesResponse\022,\n\007entries\030\001 \003(\0132" + - "\033.google.logging.v2.LogEntry\022S\n\020suppress" + - "ion_info\030\002 \003(\01329.google.logging.v2.TailL" + - "ogEntriesResponse.SuppressionInfo\032\301\001\n\017Su" + - "ppressionInfo\022P\n\006reason\030\001 \001(\0162@.google.l" + - "ogging.v2.TailLogEntriesResponse.Suppres" + - "sionInfo.Reason\022\030\n\020suppressed_count\030\002 \001(" + - "\005\"B\n\006Reason\022\026\n\022REASON_UNSPECIFIED\020\000\022\016\n\nR" + - "ATE_LIMIT\020\001\022\020\n\014NOT_CONSUMED\020\0022\346\013\n\020Loggin" + - "gServiceV2\022\223\002\n\tDeleteLog\022#.google.loggin" + - "g.v2.DeleteLogRequest\032\026.google.protobuf." + - "Empty\"\310\001\202\323\344\223\002\266\001* /v2/{log_name=projects/" + - "*/logs/*}Z\033*\031/v2/{log_name=*/*/logs/*}Z\'" + - "*%/v2/{log_name=organizations/*/logs/*}Z" + - "!*\037/v2/{log_name=folders/*/logs/*}Z)*\'/v" + - "2/{log_name=billingAccounts/*/logs/*}\332A\010" + - "log_name\022\251\001\n\017WriteLogEntries\022).google.lo" + - "gging.v2.WriteLogEntriesRequest\032*.google" + - ".logging.v2.WriteLogEntriesResponse\"?\202\323\344" + - "\223\002\026\"\021/v2/entries:write:\001*\332A log_name,res" + - "ource,labels,entries\022\243\001\n\016ListLogEntries\022" + - "(.google.logging.v2.ListLogEntriesReques" + - "t\032).google.logging.v2.ListLogEntriesResp" + - "onse\"<\202\323\344\223\002\025\"\020/v2/entries:list:\001*\332A\036reso" + - "urce_names,filter,order_by\022\305\001\n ListMonit" + - "oredResourceDescriptors\022:.google.logging" + - ".v2.ListMonitoredResourceDescriptorsRequ" + - "est\032;.google.logging.v2.ListMonitoredRes" + - "ourceDescriptorsResponse\"(\202\323\344\223\002\"\022 /v2/mo" + - "nitoredResourceDescriptors\022\210\002\n\010ListLogs\022" + - "\".google.logging.v2.ListLogsRequest\032#.go" + - "ogle.logging.v2.ListLogsResponse\"\262\001\202\323\344\223\002" + - "\242\001\022\025/v2/{parent=*/*}/logsZ\036\022\034/v2/{parent" + - "=projects/*}/logsZ#\022!/v2/{parent=organiz" + - "ations/*}/logsZ\035\022\033/v2/{parent=folders/*}" + - "/logsZ%\022#/v2/{parent=billingAccounts/*}/" + - "logs\332A\006parent\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\265\001\n\025com.google.lo" + - "gging.v2B\014LoggingProtoP\001Z8google.golang." + - "org/genproto/googleapis/logging/v2;loggi" + - "ng\370\001\001\252\002\027Google.Cloud.Logging.V2\312\002\027Google" + - "\\Cloud\\Logging\\V2\352\002\032Google::Cloud::Loggi" + - "ng::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", "PageSize", "PageToken", "ResourceNames", }); - 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/BigQueryOptions.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptions.java similarity index 73% 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 6758c6ea4..cfc05eaf7 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,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BigQueryOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,51 +68,55 @@ private BigQueryOptions( case 0: done = true; break; - case 8: { - - usePartitionedTables_ = input.readBool(); - break; - } - case 24: { - - usesTimestampColumnPartitioning_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 8: + { + usePartitionedTables_ = input.readBool(); + break; + } + case 24: + { + usesTimestampColumnPartitioning_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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_; /** + * + * *
    * Optional. Whether to use [BigQuery's partition
    * tables](https://cloud.google.com/bigquery/docs/partitioned-tables). By
@@ -109,6 +129,7 @@ private BigQueryOptions(
    * 
* * bool use_partitioned_tables = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The usePartitionedTables. */ @java.lang.Override @@ -119,6 +140,8 @@ public boolean getUsePartitionedTables() { public static final int USES_TIMESTAMP_COLUMN_PARTITIONING_FIELD_NUMBER = 3; private boolean usesTimestampColumnPartitioning_; /** + * + * *
    * Output only. True if new timestamp column based partitioning is in use, false if legacy
    * ingestion-time partitioning is in use.
@@ -128,7 +151,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 @@ -137,6 +162,7 @@ public boolean getUsesTimestampColumnPartitioning() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -148,8 +174,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } @@ -166,12 +191,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -181,17 +206,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,128 +228,136 @@ 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) + unknownFields.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() @@ -333,16 +365,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -354,9 +385,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 @@ -375,7 +406,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); + com.google.logging.v2.BigQueryOptions result = + new com.google.logging.v2.BigQueryOptions(this); result.usePartitionedTables_ = usePartitionedTables_; result.usesTimestampColumnPartitioning_ = usesTimestampColumnPartitioning_; onBuilt(); @@ -386,38 +418,39 @@ public com.google.logging.v2.BigQueryOptions 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.BigQueryOptions) { - return mergeFrom((com.google.logging.v2.BigQueryOptions)other); + return mergeFrom((com.google.logging.v2.BigQueryOptions) other); } else { super.mergeFrom(other); return this; @@ -461,8 +494,10 @@ public Builder mergeFrom( return this; } - private boolean usePartitionedTables_ ; + private boolean usePartitionedTables_; /** + * + * *
      * Optional. Whether to use [BigQuery's partition
      * tables](https://cloud.google.com/bigquery/docs/partitioned-tables). By
@@ -475,6 +510,7 @@ public Builder mergeFrom(
      * 
* * bool use_partitioned_tables = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The usePartitionedTables. */ @java.lang.Override @@ -482,6 +518,8 @@ public boolean getUsePartitionedTables() { return usePartitionedTables_; } /** + * + * *
      * Optional. Whether to use [BigQuery's partition
      * tables](https://cloud.google.com/bigquery/docs/partitioned-tables). By
@@ -494,16 +532,19 @@ public boolean getUsePartitionedTables() {
      * 
* * bool use_partitioned_tables = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The usePartitionedTables to set. * @return This builder for chaining. */ public Builder setUsePartitionedTables(boolean value) { - + usePartitionedTables_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Whether to use [BigQuery's partition
      * tables](https://cloud.google.com/bigquery/docs/partitioned-tables). By
@@ -516,17 +557,20 @@ public Builder setUsePartitionedTables(boolean value) {
      * 
* * bool use_partitioned_tables = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearUsePartitionedTables() { - + usePartitionedTables_ = false; onChanged(); 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.
@@ -536,7 +580,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 @@ -544,6 +591,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.
@@ -553,17 +602,22 @@ 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. */ public Builder setUsesTimestampColumnPartitioning(boolean value) { - + usesTimestampColumnPartitioning_ = value; onChanged(); return this; } /** + * + * *
      * Output only. True if new timestamp column based partitioning is in use, false if legacy
      * ingestion-time partitioning is in use.
@@ -573,18 +627,21 @@ 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() { - + usesTimestampColumnPartitioning_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -594,12 +651,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(); } @@ -608,16 +665,16 @@ 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 { - return new BigQueryOptions(input, extensionRegistry); - } - }; + 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 { + return new BigQueryOptions(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -632,6 +689,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 436ceb57d..65f52f765 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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.
@@ -34,7 +55,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/CmekSettings.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettings.java similarity index 79% 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 c29b93384..f385e76ed 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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.
@@ -17,15 +34,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_ = "";
@@ -34,16 +52,15 @@ private CmekSettings() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CmekSettings();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private CmekSettings(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -62,64 +79,72 @@ private CmekSettings(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            kmsKeyName_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              kmsKeyName_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            serviceAccountId_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              serviceAccountId_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  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;
   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 @@ -128,29 +153,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 { @@ -161,6 +186,8 @@ public java.lang.String getName() { public static final int KMS_KEY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object kmsKeyName_; /** + * + * *
    * The resource name for the configured Cloud KMS key.
    * KMS key name format:
@@ -183,6 +210,7 @@ public java.lang.String getName() {
    * 
* * string kms_key_name = 2; + * * @return The kmsKeyName. */ @java.lang.Override @@ -191,14 +219,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.
    * KMS key name format:
@@ -221,16 +250,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 { @@ -241,6 +269,8 @@ public java.lang.String getKmsKeyName() { public static final int SERVICE_ACCOUNT_ID_FIELD_NUMBER = 3; 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.
@@ -255,6 +285,7 @@ public java.lang.String getKmsKeyName() {
    * 
* * string service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The serviceAccountId. */ @java.lang.Override @@ -263,14 +294,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.
@@ -285,16 +317,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 { @@ -303,6 +334,7 @@ public java.lang.String getServiceAccountId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -314,8 +346,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -351,19 +382,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.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 (!getServiceAccountId() - .equals(other.getServiceAccountId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; + if (!getServiceAccountId().equals(other.getServiceAccountId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -386,97 +414,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.
@@ -490,21 +524,23 @@ 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()
@@ -512,16 +548,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -535,9 +570,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_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
@@ -568,38 +603,39 @@ public com.google.logging.v2.CmekSettings 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.CmekSettings) {
-        return mergeFrom((com.google.logging.v2.CmekSettings)other);
+        return mergeFrom((com.google.logging.v2.CmekSettings) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -651,18 +687,20 @@ public Builder mergeFrom(
 
     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; @@ -671,20 +709,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 { @@ -692,54 +731,61 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); onChanged(); 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -747,6 +793,8 @@ public Builder setNameBytes( private java.lang.Object kmsKeyName_ = ""; /** + * + * *
      * The resource name for the configured Cloud KMS key.
      * KMS key name format:
@@ -769,13 +817,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; @@ -784,6 +832,8 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
      * The resource name for the configured Cloud KMS key.
      * KMS key name format:
@@ -806,15 +856,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 { @@ -822,6 +871,8 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
      * The resource name for the configured Cloud KMS key.
      * KMS key name format:
@@ -844,20 +895,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) { + public Builder setKmsKeyName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kmsKeyName_ = value; onChanged(); return this; } /** + * + * *
      * The resource name for the configured Cloud KMS key.
      * KMS key name format:
@@ -880,15 +933,18 @@ public Builder setKmsKeyName(
      * 
* * string kms_key_name = 2; + * * @return This builder for chaining. */ public Builder clearKmsKeyName() { - + kmsKeyName_ = getDefaultInstance().getKmsKeyName(); onChanged(); return this; } /** + * + * *
      * The resource name for the configured Cloud KMS key.
      * KMS key name format:
@@ -911,16 +967,16 @@ 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) { + public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKeyName_ = value; onChanged(); return this; @@ -928,6 +984,8 @@ public Builder setKmsKeyNameBytes( private java.lang.Object serviceAccountId_ = ""; /** + * + * *
      * Output only. The service account that will be used by the Log Router to access your
      * Cloud KMS key.
@@ -942,13 +1000,13 @@ public Builder setKmsKeyNameBytes(
      * 
* * 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; @@ -957,6 +1015,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.
@@ -971,15 +1031,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 { @@ -987,6 +1046,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.
@@ -1001,20 +1062,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) { + public Builder setServiceAccountId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + serviceAccountId_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The service account that will be used by the Log Router to access your
      * Cloud KMS key.
@@ -1029,15 +1092,18 @@ public Builder setServiceAccountId(
      * 
* * string service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearServiceAccountId() { - + serviceAccountId_ = getDefaultInstance().getServiceAccountId(); onChanged(); return this; } /** + * + * *
      * Output only. The service account that will be used by the Log Router to access your
      * Cloud KMS key.
@@ -1052,23 +1118,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) { + public Builder setServiceAccountIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceAccountId_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1078,12 +1144,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(); } @@ -1092,16 +1158,16 @@ 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 { - return new CmekSettings(input, extensionRegistry); - } - }; + 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 { + return new CmekSettings(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1116,6 +1182,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 72% 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 899281352..af9b20244 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()} 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()} 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()} 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()} 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()} 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()} 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()} 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()} 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 84% 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 60dca8e32..d485be213 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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.
    * KMS key name format:
@@ -50,10 +73,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.
    * KMS key name format:
@@ -76,12 +102,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(); /** + * + * *
    * Output only. The service account that will be used by the Log Router to access your
    * Cloud KMS key.
@@ -96,10 +124,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.
@@ -114,8 +145,8 @@ public interface CmekSettingsOrBuilder extends
    * 
* * string service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for serviceAccountId. */ - com.google.protobuf.ByteString - getServiceAccountIdBytes(); + com.google.protobuf.ByteString getServiceAccountIdBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadata.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadata.java similarity index 73% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadata.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadata.java index 91bf61cb6..83d5fad9c 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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,16 +44,15 @@ private CopyLogEntriesMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CopyLogEntriesMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CopyLogEntriesMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,107 +71,121 @@ private CopyLogEntriesMetadata( case 0: done = true; break; - case 10: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (startTime_ != null) { - subBuilder = startTime_.toBuilder(); + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } + + break; } - startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startTime_); - startTime_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; } + case 24: + { + int rawValue = input.readEnum(); - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); + state_ = rawValue; + break; } - endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); + case 32: + { + cancellationRequested_ = input.readBool(); + break; } - - break; - } - case 24: { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 32: { - - cancellationRequested_ = input.readBool(); - break; - } - case 42: { - com.google.logging.v2.CopyLogEntriesRequest.Builder subBuilder = null; - if (request_ != null) { - subBuilder = request_.toBuilder(); + case 42: + { + com.google.logging.v2.CopyLogEntriesRequest.Builder subBuilder = null; + if (request_ != null) { + subBuilder = request_.toBuilder(); + } + request_ = + input.readMessage( + com.google.logging.v2.CopyLogEntriesRequest.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(request_); + request_ = subBuilder.buildPartial(); + } + + break; } - request_ = input.readMessage(com.google.logging.v2.CopyLogEntriesRequest.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(request_); - request_ = subBuilder.buildPartial(); + case 48: + { + progress_ = input.readInt32(); + break; } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 48: { - - progress_ = input.readInt32(); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - writerIdentity_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + writerIdentity_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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 @@ -162,11 +193,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 @@ -174,6 +208,8 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * The create time of an operation.
    * 
@@ -188,11 +224,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 @@ -200,11 +239,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 @@ -212,6 +254,8 @@ public com.google.protobuf.Timestamp getEndTime() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } /** + * + * *
    * The end time of an operation.
    * 
@@ -226,38 +270,50 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { public static final int STATE_FIELD_NUMBER = 3; private int state_; /** + * + * *
    * 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() { + @java.lang.Override + public com.google.logging.v2.OperationState getState() { @SuppressWarnings("deprecation") - com.google.logging.v2.OperationState result = com.google.logging.v2.OperationState.valueOf(state_); + com.google.logging.v2.OperationState result = + com.google.logging.v2.OperationState.valueOf(state_); return result == null ? com.google.logging.v2.OperationState.UNRECOGNIZED : result; } public static final int CANCELLATION_REQUESTED_FIELD_NUMBER = 4; private boolean cancellationRequested_; /** + * + * *
    * Identifies whether the user has requested cancellation of the operation.
    * 
* * bool cancellation_requested = 4; + * * @return The cancellationRequested. */ @java.lang.Override @@ -268,11 +324,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 @@ -280,18 +339,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.
    * 
@@ -306,11 +372,14 @@ public com.google.logging.v2.CopyLogEntriesRequestOrBuilder getRequestOrBuilder( public static final int PROGRESS_FIELD_NUMBER = 6; private int progress_; /** + * + * *
    * Estimated progress of the operation (0 - 100%).
    * 
* * int32 progress = 6; + * * @return The progress. */ @java.lang.Override @@ -321,6 +390,8 @@ public int getProgress() { public static final int WRITER_IDENTITY_FIELD_NUMBER = 7; private volatile java.lang.Object writerIdentity_; /** + * + * *
    * The IAM identity of a service account that must be granted access to the
    * destination.
@@ -330,6 +401,7 @@ public int getProgress() {
    * 
* * string writer_identity = 7; + * * @return The writerIdentity. */ @java.lang.Override @@ -338,14 +410,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.
@@ -355,16 +428,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 { @@ -373,6 +445,7 @@ public java.lang.String getWriterIdentity() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -384,8 +457,7 @@ public final boolean isInitialized() { } @java.lang.Override - public 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()); } @@ -417,28 +489,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_); @@ -451,35 +517,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -502,8 +563,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(); @@ -517,118 +577,127 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.CopyLogEntriesMetadata parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.CopyLogEntriesMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.CopyLogEntriesMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.CopyLogEntriesMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.CopyLogEntriesMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.CopyLogEntriesMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.CopyLogEntriesMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.CopyLogEntriesMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.CopyLogEntriesMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.CopyLogEntriesMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.logging.v2.CopyLogEntriesMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.logging.v2.CopyLogEntriesMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.CopyLogEntriesMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.CopyLogEntriesMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.CopyLogEntriesMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Metadata for CopyLogEntries long running operations.
    * 
* * Protobuf type {@code google.logging.v2.CopyLogEntriesMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.CopyLogEntriesMetadata) com.google.logging.v2.CopyLogEntriesMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CopyLogEntriesMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CopyLogEntriesMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CopyLogEntriesMetadata_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CopyLogEntriesMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.CopyLogEntriesMetadata.class, com.google.logging.v2.CopyLogEntriesMetadata.Builder.class); + com.google.logging.v2.CopyLogEntriesMetadata.class, + com.google.logging.v2.CopyLogEntriesMetadata.Builder.class); } // Construct using com.google.logging.v2.CopyLogEntriesMetadata.newBuilder() @@ -636,16 +705,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -679,9 +747,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 @@ -700,7 +768,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); + com.google.logging.v2.CopyLogEntriesMetadata result = + new com.google.logging.v2.CopyLogEntriesMetadata(this); if (startTimeBuilder_ == null) { result.startTime_ = startTime_; } else { @@ -728,38 +797,39 @@ public com.google.logging.v2.CopyLogEntriesMetadata 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.CopyLogEntriesMetadata) { - return mergeFrom((com.google.logging.v2.CopyLogEntriesMetadata)other); + return mergeFrom((com.google.logging.v2.CopyLogEntriesMetadata) other); } else { super.mergeFrom(other); return this; @@ -821,24 +891,33 @@ public Builder mergeFrom( 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 startTimeBuilder_ != null || startTime_ != null; } /** + * + * *
      * The create time of an operation.
      * 
* * .google.protobuf.Timestamp start_time = 1; + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -849,6 +928,8 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * The create time of an operation.
      * 
@@ -869,14 +950,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(); onChanged(); @@ -887,6 +969,8 @@ public Builder setStartTime( return this; } /** + * + * *
      * The create time of an operation.
      * 
@@ -897,7 +981,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -909,6 +993,8 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The create time of an operation.
      * 
@@ -927,6 +1013,8 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * The create time of an operation.
      * 
@@ -934,11 +1022,13 @@ public Builder clearStartTime() { * .google.protobuf.Timestamp start_time = 1; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The create time of an operation.
      * 
@@ -949,11 +1039,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.
      * 
@@ -961,14 +1052,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_; @@ -976,24 +1070,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 endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * The end time of an operation.
      * 
* * .google.protobuf.Timestamp end_time = 2; + * * @return The endTime. */ public com.google.protobuf.Timestamp getEndTime() { @@ -1004,6 +1107,8 @@ public com.google.protobuf.Timestamp getEndTime() { } } /** + * + * *
      * The end time of an operation.
      * 
@@ -1024,14 +1129,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(); onChanged(); @@ -1042,6 +1148,8 @@ public Builder setEndTime( return this; } /** + * + * *
      * The end time of an operation.
      * 
@@ -1052,7 +1160,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { if (endTime_ != null) { endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); } else { endTime_ = value; } @@ -1064,6 +1172,8 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The end time of an operation.
      * 
@@ -1082,6 +1192,8 @@ public Builder clearEndTime() { return this; } /** + * + * *
      * The end time of an operation.
      * 
@@ -1089,11 +1201,13 @@ public Builder clearEndTime() { * .google.protobuf.Timestamp end_time = 2; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + onChanged(); return getEndTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The end time of an operation.
      * 
@@ -1104,11 +1218,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.
      * 
@@ -1116,14 +1231,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_; @@ -1131,51 +1249,65 @@ 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. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); 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() { @SuppressWarnings("deprecation") - com.google.logging.v2.OperationState result = com.google.logging.v2.OperationState.valueOf(state_); + com.google.logging.v2.OperationState result = + com.google.logging.v2.OperationState.valueOf(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. */ @@ -1183,33 +1315,39 @@ public Builder setState(com.google.logging.v2.OperationState value) { if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * State of an operation.
      * 
* * .google.logging.v2.OperationState state = 3; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); 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 @@ -1217,30 +1355,36 @@ 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. */ public Builder setCancellationRequested(boolean value) { - + cancellationRequested_ = value; onChanged(); return this; } /** + * + * *
      * Identifies whether the user has requested cancellation of the operation.
      * 
* * bool cancellation_requested = 4; + * * @return This builder for chaining. */ public Builder clearCancellationRequested() { - + cancellationRequested_ = false; onChanged(); return this; @@ -1248,34 +1392,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 requestBuilder_ != null || request_ != null; } /** + * + * *
      * 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.
      * 
@@ -1296,14 +1453,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(); onChanged(); @@ -1314,6 +1472,8 @@ public Builder setRequest( return this; } /** + * + * *
      * CopyLogEntries RPC request.
      * 
@@ -1324,7 +1484,9 @@ public Builder mergeRequest(com.google.logging.v2.CopyLogEntriesRequest value) { if (requestBuilder_ == null) { if (request_ != null) { request_ = - com.google.logging.v2.CopyLogEntriesRequest.newBuilder(request_).mergeFrom(value).buildPartial(); + com.google.logging.v2.CopyLogEntriesRequest.newBuilder(request_) + .mergeFrom(value) + .buildPartial(); } else { request_ = value; } @@ -1336,6 +1498,8 @@ public Builder mergeRequest(com.google.logging.v2.CopyLogEntriesRequest value) { return this; } /** + * + * *
      * CopyLogEntries RPC request.
      * 
@@ -1354,6 +1518,8 @@ public Builder clearRequest() { return this; } /** + * + * *
      * CopyLogEntries RPC request.
      * 
@@ -1361,11 +1527,13 @@ public Builder clearRequest() { * .google.logging.v2.CopyLogEntriesRequest request = 5; */ public com.google.logging.v2.CopyLogEntriesRequest.Builder getRequestBuilder() { - + onChanged(); return getRequestFieldBuilder().getBuilder(); } /** + * + * *
      * CopyLogEntries RPC request.
      * 
@@ -1376,11 +1544,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.
      * 
@@ -1388,26 +1559,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 @@ -1415,30 +1592,36 @@ 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. */ public Builder setProgress(int value) { - + progress_ = value; onChanged(); return this; } /** + * + * *
      * Estimated progress of the operation (0 - 100%).
      * 
* * int32 progress = 6; + * * @return This builder for chaining. */ public Builder clearProgress() { - + progress_ = 0; onChanged(); return this; @@ -1446,6 +1629,8 @@ public Builder clearProgress() { private java.lang.Object writerIdentity_ = ""; /** + * + * *
      * The IAM identity of a service account that must be granted access to the
      * destination.
@@ -1455,13 +1640,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; @@ -1470,6 +1655,8 @@ public java.lang.String getWriterIdentity() { } } /** + * + * *
      * The IAM identity of a service account that must be granted access to the
      * destination.
@@ -1479,15 +1666,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 { @@ -1495,6 +1681,8 @@ public java.lang.String getWriterIdentity() { } } /** + * + * *
      * The IAM identity of a service account that must be granted access to the
      * destination.
@@ -1504,20 +1692,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) { + public Builder setWriterIdentity(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + writerIdentity_ = value; onChanged(); return this; } /** + * + * *
      * The IAM identity of a service account that must be granted access to the
      * destination.
@@ -1527,15 +1717,18 @@ public Builder setWriterIdentity(
      * 
* * string writer_identity = 7; + * * @return This builder for chaining. */ public Builder clearWriterIdentity() { - + writerIdentity_ = getDefaultInstance().getWriterIdentity(); onChanged(); return this; } /** + * + * *
      * The IAM identity of a service account that must be granted access to the
      * destination.
@@ -1545,23 +1738,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) { + public Builder setWriterIdentityBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + writerIdentity_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1571,12 +1764,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(); } @@ -1585,16 +1778,16 @@ 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 { - return new CopyLogEntriesMetadata(input, extensionRegistry); - } - }; + 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 { + return new CopyLogEntriesMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1609,6 +1802,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 d1900b701..9beff6c6a 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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.
@@ -137,10 +191,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.
@@ -150,8 +207,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 72% 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 fc2a34794..ac1a8d86f 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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,16 +45,15 @@ private CopyLogEntriesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CopyLogEntriesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CopyLogEntriesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,59 +72,66 @@ private CopyLogEntriesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - destination_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + destination_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object name_; /** + * + * *
    * Required. Log bucket from which to copy log entries.
    * For example:
@@ -115,6 +139,7 @@ private CopyLogEntriesRequest(
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -123,14 +148,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.
    * For example:
@@ -138,16 +164,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 { @@ -158,12 +183,15 @@ public java.lang.String getName() { public static final int FILTER_FIELD_NUMBER = 3; 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 @@ -172,30 +200,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 { @@ -206,11 +234,14 @@ public java.lang.String getFilter() { public static final int DESTINATION_FIELD_NUMBER = 4; 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 @@ -219,29 +250,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 { @@ -250,6 +281,7 @@ public java.lang.String getDestination() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -261,8 +293,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -298,19 +329,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -333,118 +362,127 @@ 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() @@ -452,16 +490,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -475,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_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 @@ -496,7 +533,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); + com.google.logging.v2.CopyLogEntriesRequest result = + new com.google.logging.v2.CopyLogEntriesRequest(this); result.name_ = name_; result.filter_ = filter_; result.destination_ = destination_; @@ -508,38 +546,39 @@ public com.google.logging.v2.CopyLogEntriesRequest 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.CopyLogEntriesRequest) { - return mergeFrom((com.google.logging.v2.CopyLogEntriesRequest)other); + return mergeFrom((com.google.logging.v2.CopyLogEntriesRequest) other); } else { super.mergeFrom(other); return this; @@ -591,6 +630,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Log bucket from which to copy log entries.
      * For example:
@@ -598,13 +639,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; @@ -613,6 +654,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Log bucket from which to copy log entries.
      * For example:
@@ -620,15 +663,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 { @@ -636,6 +678,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Log bucket from which to copy log entries.
      * For example:
@@ -643,20 +687,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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. Log bucket from which to copy log entries.
      * For example:
@@ -664,15 +710,18 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. Log bucket from which to copy log entries.
      * For example:
@@ -680,16 +729,16 @@ 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -697,19 +746,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; @@ -718,21 +769,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 { @@ -740,57 +792,64 @@ 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) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; 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() { - + filter_ = getDefaultInstance().getFilter(); 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]; + * * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -798,18 +857,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; @@ -818,20 +879,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 { @@ -839,61 +901,68 @@ 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) { + public Builder setDestination(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + destination_ = value; 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() { - + destination_ = getDefaultInstance().getDestination(); onChanged(); 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) { + public Builder setDestinationBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destination_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -903,12 +972,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(); } @@ -917,16 +986,16 @@ 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 { - return new CopyLogEntriesRequest(input, extensionRegistry); - } - }; + 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 { + return new CopyLogEntriesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -941,6 +1010,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 7e65051c3..94380119c 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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.
    * For example:
@@ -15,10 +33,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.
    * For example:
@@ -26,50 +47,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 68% 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 fb2ac6a5d..e0bfeac7a 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,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CopyLogEntriesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,51 +68,56 @@ private CopyLogEntriesResponse( case 0: done = true; break; - case 8: { - - logEntriesCopiedCount_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 8: + { + logEntriesCopiedCount_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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_; /** + * + * *
    * Number of log entries copied.
    * 
* * int64 log_entries_copied_count = 1; + * * @return The logEntriesCopiedCount. */ @java.lang.Override @@ -105,6 +126,7 @@ public long getLogEntriesCopiedCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -116,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 (logEntriesCopiedCount_ != 0L) { output.writeInt64(1, logEntriesCopiedCount_); } @@ -131,8 +152,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -142,15 +162,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -163,125 +183,133 @@ 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) + unknownFields.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() @@ -289,16 +317,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -308,9 +335,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 @@ -329,7 +356,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); + com.google.logging.v2.CopyLogEntriesResponse result = + new com.google.logging.v2.CopyLogEntriesResponse(this); result.logEntriesCopiedCount_ = logEntriesCopiedCount_; onBuilt(); return result; @@ -339,38 +367,39 @@ public com.google.logging.v2.CopyLogEntriesResponse 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.CopyLogEntriesResponse) { - return mergeFrom((com.google.logging.v2.CopyLogEntriesResponse)other); + return mergeFrom((com.google.logging.v2.CopyLogEntriesResponse) other); } else { super.mergeFrom(other); return this; @@ -411,13 +440,16 @@ public Builder mergeFrom( return this; } - private long logEntriesCopiedCount_ ; + private long logEntriesCopiedCount_; /** + * + * *
      * Number of log entries copied.
      * 
* * int64 log_entries_copied_count = 1; + * * @return The logEntriesCopiedCount. */ @java.lang.Override @@ -425,37 +457,43 @@ 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. */ public Builder setLogEntriesCopiedCount(long value) { - + logEntriesCopiedCount_ = value; onChanged(); return this; } /** + * + * *
      * Number of log entries copied.
      * 
* * int64 log_entries_copied_count = 1; + * * @return This builder for chaining. */ public Builder clearLogEntriesCopiedCount() { - + logEntriesCopiedCount_ = 0L; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -465,12 +503,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(); } @@ -479,16 +517,16 @@ 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 { - return new CopyLogEntriesResponse(input, extensionRegistry); - } - }; + 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 { + return new CopyLogEntriesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -503,6 +541,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..afd947659 --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponseOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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 71% 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 80d873616..9bf1b12cf 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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,16 +44,15 @@ private CreateBucketRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateBucketRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateBucketRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,66 +71,74 @@ private CreateBucketRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - bucketId_ = s; - break; - } - case 26: { - com.google.logging.v2.LogBucket.Builder subBuilder = null; - if (bucket_ != null) { - subBuilder = bucket_.toBuilder(); + parent_ = s; + break; } - bucket_ = input.readMessage(com.google.logging.v2.LogBucket.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(bucket_); - bucket_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + bucketId_ = s; + break; } + case 26: + { + com.google.logging.v2.LogBucket.Builder subBuilder = null; + if (bucket_ != null) { + subBuilder = bucket_.toBuilder(); + } + bucket_ = + input.readMessage(com.google.logging.v2.LogBucket.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(bucket_); + bucket_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The resource in which to create the log bucket:
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
@@ -121,7 +146,10 @@ private CreateBucketRequest(
    *   `"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 @@ -130,14 +158,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:
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
@@ -145,17 +174,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 { @@ -166,6 +196,8 @@ public java.lang.String getParent() { public static final int BUCKET_ID_FIELD_NUMBER = 2; 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, underscores,
@@ -173,6 +205,7 @@ public java.lang.String getParent() {
    * 
* * string bucket_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bucketId. */ @java.lang.Override @@ -181,14 +214,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, underscores,
@@ -196,16 +230,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 { @@ -216,6 +249,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 bucket is
@@ -223,6 +258,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 @@ -230,6 +266,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 bucket is
@@ -237,6 +275,7 @@ public boolean hasBucket() {
    * 
* * .google.logging.v2.LogBucket bucket = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bucket. */ @java.lang.Override @@ -244,6 +283,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 bucket is
@@ -258,6 +299,7 @@ public com.google.logging.v2.LogBucketOrBuilder getBucketOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -269,8 +311,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
     }
@@ -296,8 +337,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -307,21 +347,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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -347,118 +385,127 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.logging.v2.CreateBucketRequest parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.logging.v2.CreateBucketRequest parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.logging.v2.CreateBucketRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.logging.v2.CreateBucketRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.logging.v2.CreateBucketRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.logging.v2.CreateBucketRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.logging.v2.CreateBucketRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.logging.v2.CreateBucketRequest parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.logging.v2.CreateBucketRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.logging.v2.CreateBucketRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.logging.v2.CreateBucketRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.logging.v2.CreateBucketRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.logging.v2.CreateBucketRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.logging.v2.CreateBucketRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.logging.v2.CreateBucketRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * The parameters to `CreateBucket`.
    * 
* * Protobuf type {@code google.logging.v2.CreateBucketRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.CreateBucketRequest) com.google.logging.v2.CreateBucketRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateBucketRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CreateBucketRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateBucketRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CreateBucketRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.CreateBucketRequest.class, com.google.logging.v2.CreateBucketRequest.Builder.class); + com.google.logging.v2.CreateBucketRequest.class, + com.google.logging.v2.CreateBucketRequest.Builder.class); } // Construct using com.google.logging.v2.CreateBucketRequest.newBuilder() @@ -466,16 +513,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -493,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_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 @@ -514,7 +560,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); + com.google.logging.v2.CreateBucketRequest result = + new com.google.logging.v2.CreateBucketRequest(this); result.parent_ = parent_; result.bucketId_ = bucketId_; if (bucketBuilder_ == null) { @@ -530,38 +577,39 @@ public com.google.logging.v2.CreateBucketRequest 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.CreateBucketRequest) { - return mergeFrom((com.google.logging.v2.CreateBucketRequest)other); + return mergeFrom((com.google.logging.v2.CreateBucketRequest) other); } else { super.mergeFrom(other); return this; @@ -612,6 +660,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The resource in which to create the log bucket:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
@@ -619,14 +669,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; @@ -635,6 +687,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource in which to create the log bucket:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
@@ -642,16 +696,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 { @@ -659,6 +714,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource in which to create the log bucket:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
@@ -666,21 +723,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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource in which to create the log bucket:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
@@ -688,16 +749,21 @@ 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The resource in which to create the log bucket:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
@@ -705,17 +771,19 @@ 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) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -723,6 +791,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, underscores,
@@ -730,13 +800,13 @@ public Builder setParentBytes(
      * 
* * string bucket_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bucketId. */ public java.lang.String getBucketId() { java.lang.Object ref = bucketId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); bucketId_ = s; return s; @@ -745,6 +815,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, underscores,
@@ -752,15 +824,14 @@ public java.lang.String getBucketId() {
      * 
* * string bucket_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for bucketId. */ - public com.google.protobuf.ByteString - getBucketIdBytes() { + public com.google.protobuf.ByteString getBucketIdBytes() { java.lang.Object ref = bucketId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); bucketId_ = b; return b; } else { @@ -768,6 +839,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, underscores,
@@ -775,20 +848,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) { + public Builder setBucketId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + bucketId_ = value; onChanged(); return this; } /** + * + * *
      * Required. A client-assigned identifier such as `"my-bucket"`. Identifiers are limited
      * to 100 characters and can include only letters, digits, underscores,
@@ -796,15 +871,18 @@ public Builder setBucketId(
      * 
* * string bucket_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearBucketId() { - + bucketId_ = getDefaultInstance().getBucketId(); onChanged(); return this; } /** + * + * *
      * Required. A client-assigned identifier such as `"my-bucket"`. Identifiers are limited
      * to 100 characters and can include only letters, digits, underscores,
@@ -812,16 +890,16 @@ 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) { + public Builder setBucketIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bucketId_ = value; onChanged(); return this; @@ -829,28 +907,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 bucketBuilder_ != null || 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 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() { @@ -861,13 +950,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) { @@ -883,16 +975,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(); onChanged(); @@ -903,19 +997,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 (bucket_ != null) { bucket_ = - com.google.logging.v2.LogBucket.newBuilder(bucket_).mergeFrom(value).buildPartial(); + com.google.logging.v2.LogBucket.newBuilder(bucket_).mergeFrom(value).buildPartial(); } else { bucket_ = value; } @@ -927,13 +1024,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() { if (bucketBuilder_ == null) { @@ -947,61 +1047,72 @@ 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() { - + onChanged(); 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); } @@ -1011,12 +1122,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(); } @@ -1025,16 +1136,16 @@ 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 { - return new CreateBucketRequest(input, extensionRegistry); - } - }; + 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 { + return new CreateBucketRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1049,6 +1160,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 70% 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 cc9ee5501..c11f6c828 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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:
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
@@ -15,11 +33,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:
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
@@ -27,13 +50,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, underscores,
@@ -41,10 +68,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, underscores,
@@ -52,12 +82,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 bucket is
@@ -65,10 +97,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 bucket is
@@ -76,10 +111,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 bucket is
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 66%
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 61e2b5655..5f55149ff 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,40 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateExclusionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,60 +70,67 @@ private CreateExclusionRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.logging.v2.LogExclusion.Builder subBuilder = null; - if (exclusion_ != null) { - subBuilder = exclusion_.toBuilder(); + parent_ = s; + break; } - exclusion_ = input.readMessage(com.google.logging.v2.LogExclusion.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(exclusion_); - exclusion_ = subBuilder.buildPartial(); + case 18: + { + com.google.logging.v2.LogExclusion.Builder subBuilder = null; + if (exclusion_ != null) { + subBuilder = exclusion_.toBuilder(); + } + exclusion_ = + input.readMessage(com.google.logging.v2.LogExclusion.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(exclusion_); + exclusion_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource in which to create the exclusion:
    *     "projects/[PROJECT_ID]"
@@ -118,7 +142,10 @@ private CreateExclusionRequest(
    *   `"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 @@ -127,14 +154,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:
    *     "projects/[PROJECT_ID]"
@@ -146,17 +174,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 { @@ -167,12 +196,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 @@ -180,25 +213,34 @@ 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() { @@ -206,6 +248,7 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -217,8 +260,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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,8 +280,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -249,19 +290,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -285,118 +325,127 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.CreateExclusionRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.CreateExclusionRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.CreateExclusionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.CreateExclusionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.CreateExclusionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.CreateExclusionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.CreateExclusionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.CreateExclusionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.CreateExclusionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.CreateExclusionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.logging.v2.CreateExclusionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.logging.v2.CreateExclusionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.CreateExclusionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.CreateExclusionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.CreateExclusionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to `CreateExclusion`.
    * 
* * Protobuf type {@code google.logging.v2.CreateExclusionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.CreateExclusionRequest) com.google.logging.v2.CreateExclusionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateExclusionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CreateExclusionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateExclusionRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CreateExclusionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.CreateExclusionRequest.class, com.google.logging.v2.CreateExclusionRequest.Builder.class); + com.google.logging.v2.CreateExclusionRequest.class, + com.google.logging.v2.CreateExclusionRequest.Builder.class); } // Construct using com.google.logging.v2.CreateExclusionRequest.newBuilder() @@ -404,16 +453,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -429,9 +477,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 @@ -450,7 +498,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); + com.google.logging.v2.CreateExclusionRequest result = + new com.google.logging.v2.CreateExclusionRequest(this); result.parent_ = parent_; if (exclusionBuilder_ == null) { result.exclusion_ = exclusion_; @@ -465,38 +514,39 @@ public com.google.logging.v2.CreateExclusionRequest 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.CreateExclusionRequest) { - return mergeFrom((com.google.logging.v2.CreateExclusionRequest)other); + return mergeFrom((com.google.logging.v2.CreateExclusionRequest) other); } else { super.mergeFrom(other); return this; @@ -543,6 +593,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource in which to create the exclusion:
      *     "projects/[PROJECT_ID]"
@@ -554,14 +606,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; @@ -570,6 +624,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource in which to create the exclusion:
      *     "projects/[PROJECT_ID]"
@@ -581,16 +637,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 { @@ -598,6 +655,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource in which to create the exclusion:
      *     "projects/[PROJECT_ID]"
@@ -609,21 +668,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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource in which to create the exclusion:
      *     "projects/[PROJECT_ID]"
@@ -635,16 +698,21 @@ 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource in which to create the exclusion:
      *     "projects/[PROJECT_ID]"
@@ -656,17 +724,19 @@ 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) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -674,42 +744,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 exclusionBuilder_ != null || 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. */ 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) { @@ -725,15 +814,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(); onChanged(); @@ -744,18 +836,24 @@ 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 (exclusion_ != null) { exclusion_ = - com.google.logging.v2.LogExclusion.newBuilder(exclusion_).mergeFrom(value).buildPartial(); + com.google.logging.v2.LogExclusion.newBuilder(exclusion_) + .mergeFrom(value) + .buildPartial(); } else { exclusion_ = value; } @@ -767,12 +865,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() { if (exclusionBuilder_ == null) { @@ -786,58 +888,74 @@ 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() { - + onChanged(); return getExclusionFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The new exclusion, whose `name` parameter is an exclusion name
      * that is not already used in the parent resource.
      * 
* - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.logging.v2.LogExclusionOrBuilder getExclusionOrBuilder() { if (exclusionBuilder_ != null) { return exclusionBuilder_.getMessageOrBuilder(); } else { - return exclusion_ == null ? - com.google.logging.v2.LogExclusion.getDefaultInstance() : exclusion_; + return exclusion_ == null + ? com.google.logging.v2.LogExclusion.getDefaultInstance() + : exclusion_; } } /** + * + * *
      * Required. The new exclusion, whose `name` parameter is an exclusion name
      * that is not already used in the parent resource.
      * 
* - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogExclusion, com.google.logging.v2.LogExclusion.Builder, com.google.logging.v2.LogExclusionOrBuilder> + com.google.logging.v2.LogExclusion, + com.google.logging.v2.LogExclusion.Builder, + com.google.logging.v2.LogExclusionOrBuilder> getExclusionFieldBuilder() { if (exclusionBuilder_ == null) { - exclusionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.logging.v2.LogExclusion, com.google.logging.v2.LogExclusion.Builder, com.google.logging.v2.LogExclusionOrBuilder>( - getExclusion(), - getParentForChildren(), - isClean()); + exclusionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.LogExclusion, + com.google.logging.v2.LogExclusion.Builder, + com.google.logging.v2.LogExclusionOrBuilder>( + getExclusion(), getParentForChildren(), isClean()); exclusion_ = null; } return exclusionBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -847,12 +965,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.CreateExclusionRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.CreateExclusionRequest) private static final com.google.logging.v2.CreateExclusionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.CreateExclusionRequest(); } @@ -861,16 +979,16 @@ 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 { - return new CreateExclusionRequest(input, extensionRegistry); - } - }; + 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 { + return new CreateExclusionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -885,6 +1003,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 62% 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 ef8d90781..c46164936 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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:
    *     "projects/[PROJECT_ID]"
@@ -19,11 +37,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:
    *     "projects/[PROJECT_ID]"
@@ -35,39 +58,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/CreateLogMetricRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequest.java similarity index 68% 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 b4a64ebbe..a24f55c23 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,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateLogMetricRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,67 +70,77 @@ private CreateLogMetricRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.logging.v2.LogMetric.Builder subBuilder = null; - if (metric_ != null) { - subBuilder = metric_.toBuilder(); + parent_ = s; + break; } - metric_ = input.readMessage(com.google.logging.v2.LogMetric.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metric_); - metric_ = subBuilder.buildPartial(); + case 18: + { + com.google.logging.v2.LogMetric.Builder subBuilder = null; + if (metric_ != null) { + subBuilder = metric_.toBuilder(); + } + metric_ = + input.readMessage(com.google.logging.v2.LogMetric.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metric_); + metric_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object 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.
    * 
* - * string parent = 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 @@ -122,31 +149,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 resource name of the project in which to create the metric:
    *     "projects/[PROJECT_ID]"
    * 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 { @@ -157,12 +186,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 @@ -170,12 +202,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 @@ -183,6 +218,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.
@@ -196,6 +233,7 @@ public com.google.logging.v2.LogMetricOrBuilder getMetricOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -207,8 +245,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
     }
@@ -228,8 +265,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -239,19 +275,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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -275,118 +310,127 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.logging.v2.CreateLogMetricRequest parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.logging.v2.CreateLogMetricRequest parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.logging.v2.CreateLogMetricRequest parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.logging.v2.CreateLogMetricRequest parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.logging.v2.CreateLogMetricRequest parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.logging.v2.CreateLogMetricRequest parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.logging.v2.CreateLogMetricRequest parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.logging.v2.CreateLogMetricRequest parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.logging.v2.CreateLogMetricRequest parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.logging.v2.CreateLogMetricRequest parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.logging.v2.CreateLogMetricRequest parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.logging.v2.CreateLogMetricRequest parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.logging.v2.CreateLogMetricRequest parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.logging.v2.CreateLogMetricRequest parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.logging.v2.CreateLogMetricRequest prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * The parameters to CreateLogMetric.
    * 
* * Protobuf type {@code google.logging.v2.CreateLogMetricRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.CreateLogMetricRequest) com.google.logging.v2.CreateLogMetricRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_CreateLogMetricRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingMetricsProto + .internal_static_google_logging_v2_CreateLogMetricRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_CreateLogMetricRequest_fieldAccessorTable + return com.google.logging.v2.LoggingMetricsProto + .internal_static_google_logging_v2_CreateLogMetricRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.CreateLogMetricRequest.class, com.google.logging.v2.CreateLogMetricRequest.Builder.class); + com.google.logging.v2.CreateLogMetricRequest.class, + com.google.logging.v2.CreateLogMetricRequest.Builder.class); } // Construct using com.google.logging.v2.CreateLogMetricRequest.newBuilder() @@ -394,16 +438,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -419,9 +462,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 @@ -440,7 +483,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); + com.google.logging.v2.CreateLogMetricRequest result = + new com.google.logging.v2.CreateLogMetricRequest(this); result.parent_ = parent_; if (metricBuilder_ == null) { result.metric_ = metric_; @@ -455,38 +499,39 @@ public com.google.logging.v2.CreateLogMetricRequest 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.CreateLogMetricRequest) { - return mergeFrom((com.google.logging.v2.CreateLogMetricRequest)other); + return mergeFrom((com.google.logging.v2.CreateLogMetricRequest) other); } else { super.mergeFrom(other); return this; @@ -533,20 +578,24 @@ public Builder mergeFrom( private java.lang.Object 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.
      * 
* - * string parent = 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; @@ -555,22 +604,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * 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.
      * 
* - * string parent = 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 { @@ -578,60 +630,73 @@ public java.lang.String getParent() { } } /** + * + * *
      * 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.
      * 
* - * 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * 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.
      * 
* - * string 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * 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.
      * 
* - * 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) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -639,26 +704,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 metricBuilder_ != null || 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]; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The metric. */ public com.google.logging.v2.LogMetric getMetric() { @@ -669,12 +745,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) { @@ -690,15 +769,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(); onChanged(); @@ -709,18 +790,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 (metric_ != null) { metric_ = - com.google.logging.v2.LogMetric.newBuilder(metric_).mergeFrom(value).buildPartial(); + com.google.logging.v2.LogMetric.newBuilder(metric_).mergeFrom(value).buildPartial(); } else { metric_ = value; } @@ -732,12 +816,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() { if (metricBuilder_ == null) { @@ -751,58 +838,69 @@ 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() { - + onChanged(); 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); } @@ -812,12 +910,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(); } @@ -826,16 +924,16 @@ 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 { - return new CreateLogMetricRequest(input, extensionRegistry); - } - }; + 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 { + return new CreateLogMetricRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -850,6 +948,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 1fd0680a1..f11b3761a 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,57 +1,90 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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:
    *     "projects/[PROJECT_ID]"
    * 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:
    *     "projects/[PROJECT_ID]"
    * 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 74%
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 3e05c9f0e..7bd9b54bf 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,40 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateSinkRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,65 +70,71 @@ private CreateSinkRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.logging.v2.LogSink.Builder subBuilder = null; - if (sink_ != null) { - subBuilder = sink_.toBuilder(); + parent_ = s; + break; } - sink_ = input.readMessage(com.google.logging.v2.LogSink.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sink_); - sink_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { + case 18: + { + com.google.logging.v2.LogSink.Builder subBuilder = null; + if (sink_ != null) { + subBuilder = sink_.toBuilder(); + } + sink_ = input.readMessage(com.google.logging.v2.LogSink.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sink_); + sink_ = subBuilder.buildPartial(); + } - uniqueWriterIdentity_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + case 24: + { + uniqueWriterIdentity_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The resource in which to create the sink:
    *     "projects/[PROJECT_ID]"
@@ -123,7 +146,10 @@ private CreateSinkRequest(
    *   `"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 @@ -132,14 +158,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:
    *     "projects/[PROJECT_ID]"
@@ -151,17 +178,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 { @@ -172,12 +200,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 @@ -185,12 +216,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 @@ -198,6 +232,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.
@@ -213,6 +249,8 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() {
   public static final int UNIQUE_WRITER_IDENTITY_FIELD_NUMBER = 3;
   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
@@ -227,6 +265,7 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() {
    * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The uniqueWriterIdentity. */ @java.lang.Override @@ -235,6 +274,7 @@ public boolean getUniqueWriterIdentity() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -246,8 +286,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -270,12 +309,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -285,22 +322,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -319,125 +353,133 @@ public int hashCode() { hash = (53 * hash) + getSink().hashCode(); } hash = (37 * hash) + UNIQUE_WRITER_IDENTITY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getUniqueWriterIdentity()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUniqueWriterIdentity()); hash = (29 * hash) + unknownFields.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() @@ -445,16 +487,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -472,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_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 @@ -493,7 +534,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); + com.google.logging.v2.CreateSinkRequest result = + new com.google.logging.v2.CreateSinkRequest(this); result.parent_ = parent_; if (sinkBuilder_ == null) { result.sink_ = sink_; @@ -509,38 +551,39 @@ public com.google.logging.v2.CreateSinkRequest 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.CreateSinkRequest) { - return mergeFrom((com.google.logging.v2.CreateSinkRequest)other); + return mergeFrom((com.google.logging.v2.CreateSinkRequest) other); } else { super.mergeFrom(other); return this; @@ -590,6 +633,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The resource in which to create the sink:
      *     "projects/[PROJECT_ID]"
@@ -601,14 +646,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; @@ -617,6 +664,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource in which to create the sink:
      *     "projects/[PROJECT_ID]"
@@ -628,16 +677,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 { @@ -645,6 +695,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource in which to create the sink:
      *     "projects/[PROJECT_ID]"
@@ -656,21 +708,25 @@ public java.lang.String getParent() {
      *   `"organizations/123456789"`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource in which to create the sink:
      *     "projects/[PROJECT_ID]"
@@ -682,16 +738,21 @@ 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The resource in which to create the sink:
      *     "projects/[PROJECT_ID]"
@@ -703,17 +764,19 @@ 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) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -721,26 +784,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 sinkBuilder_ != null || 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. */ public com.google.logging.v2.LogSink getSink() { @@ -751,6 +823,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.
@@ -772,6 +846,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.
@@ -779,8 +855,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();
         onChanged();
@@ -791,6 +866,8 @@ public Builder setSink(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The new sink, whose `name` parameter is a sink identifier that
      * is not already in use.
@@ -801,8 +878,7 @@ public Builder setSink(
     public Builder mergeSink(com.google.logging.v2.LogSink value) {
       if (sinkBuilder_ == null) {
         if (sink_ != null) {
-          sink_ =
-            com.google.logging.v2.LogSink.newBuilder(sink_).mergeFrom(value).buildPartial();
+          sink_ = com.google.logging.v2.LogSink.newBuilder(sink_).mergeFrom(value).buildPartial();
         } else {
           sink_ = value;
         }
@@ -814,6 +890,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.
@@ -833,6 +911,8 @@ public Builder clearSink() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The new sink, whose `name` parameter is a sink identifier that
      * is not already in use.
@@ -841,11 +921,13 @@ public Builder clearSink() {
      * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED];
      */
     public com.google.logging.v2.LogSink.Builder getSinkBuilder() {
-      
+
       onChanged();
       return getSinkFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Required. The new sink, whose `name` parameter is a sink identifier that
      * is not already in use.
@@ -857,11 +939,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.
@@ -870,21 +953,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
@@ -899,6 +987,7 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() {
      * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The uniqueWriterIdentity. */ @java.lang.Override @@ -906,6 +995,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
@@ -920,16 +1011,19 @@ public boolean getUniqueWriterIdentity() {
      * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The uniqueWriterIdentity to set. * @return This builder for chaining. */ public Builder setUniqueWriterIdentity(boolean value) { - + uniqueWriterIdentity_ = value; onChanged(); 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
@@ -944,17 +1038,18 @@ public Builder setUniqueWriterIdentity(boolean value) {
      * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearUniqueWriterIdentity() { - + uniqueWriterIdentity_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -964,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(); } @@ -978,16 +1073,16 @@ 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 { - return new CreateSinkRequest(input, extensionRegistry); - } - }; + 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 { + return new CreateSinkRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1002,6 +1097,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 8ee8ce033..775ef0c17 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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:
    *     "projects/[PROJECT_ID]"
@@ -19,11 +37,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:
    *     "projects/[PROJECT_ID]"
@@ -35,33 +58,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.
@@ -72,6 +105,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
@@ -86,6 +121,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 2b794e5fd..4ae5983da 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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,16 +44,15 @@ private CreateViewRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateViewRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateViewRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,66 +71,73 @@ private CreateViewRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - viewId_ = s; - break; - } - case 26: { - com.google.logging.v2.LogView.Builder subBuilder = null; - if (view_ != null) { - subBuilder = view_.toBuilder(); + parent_ = s; + break; } - view_ = input.readMessage(com.google.logging.v2.LogView.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(view_); - view_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + viewId_ = s; + break; } + case 26: + { + com.google.logging.v2.LogView.Builder subBuilder = null; + if (view_ != null) { + subBuilder = view_.toBuilder(); + } + view_ = input.readMessage(com.google.logging.v2.LogView.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(view_); + view_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The bucket in which to create the view
    *     `"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"`
@@ -122,6 +146,7 @@ private CreateViewRequest(
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ @java.lang.Override @@ -130,14 +155,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
    *     `"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"`
@@ -146,16 +172,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 { @@ -166,11 +191,14 @@ public java.lang.String getParent() { public static final int VIEW_ID_FIELD_NUMBER = 2; private volatile java.lang.Object viewId_; /** + * + * *
    * Required. The id to use for this view.
    * 
* * string view_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The viewId. */ @java.lang.Override @@ -179,29 +207,29 @@ 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. The id to use for this view.
    * 
* * 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 { @@ -212,11 +240,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 @@ -224,11 +255,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 @@ -236,6 +270,8 @@ public com.google.logging.v2.LogView getView() { return view_ == null ? com.google.logging.v2.LogView.getDefaultInstance() : view_; } /** + * + * *
    * Required. The new view.
    * 
@@ -248,6 +284,7 @@ public com.google.logging.v2.LogViewOrBuilder getViewOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -259,8 +296,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -286,8 +322,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -297,21 +332,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -337,118 +369,127 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.CreateViewRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.CreateViewRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.CreateViewRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.CreateViewRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.CreateViewRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.CreateViewRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.CreateViewRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.CreateViewRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.CreateViewRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.CreateViewRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.logging.v2.CreateViewRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.logging.v2.CreateViewRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.CreateViewRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.CreateViewRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.CreateViewRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to `CreateView`.
    * 
* * Protobuf type {@code google.logging.v2.CreateViewRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.CreateViewRequest) com.google.logging.v2.CreateViewRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateViewRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CreateViewRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_CreateViewRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CreateViewRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.CreateViewRequest.class, com.google.logging.v2.CreateViewRequest.Builder.class); + com.google.logging.v2.CreateViewRequest.class, + com.google.logging.v2.CreateViewRequest.Builder.class); } // Construct using com.google.logging.v2.CreateViewRequest.newBuilder() @@ -456,16 +497,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -483,9 +523,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 @@ -504,7 +544,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); + com.google.logging.v2.CreateViewRequest result = + new com.google.logging.v2.CreateViewRequest(this); result.parent_ = parent_; result.viewId_ = viewId_; if (viewBuilder_ == null) { @@ -520,38 +561,39 @@ public com.google.logging.v2.CreateViewRequest 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.CreateViewRequest) { - return mergeFrom((com.google.logging.v2.CreateViewRequest)other); + return mergeFrom((com.google.logging.v2.CreateViewRequest) other); } else { super.mergeFrom(other); return this; @@ -602,6 +644,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The bucket in which to create the view
      *     `"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"`
@@ -610,13 +654,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; @@ -625,6 +669,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The bucket in which to create the view
      *     `"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"`
@@ -633,15 +679,14 @@ public java.lang.String getParent() {
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -649,6 +694,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The bucket in which to create the view
      *     `"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"`
@@ -657,20 +704,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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The bucket in which to create the view
      *     `"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"`
@@ -679,15 +728,18 @@ public Builder setParent(
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The bucket in which to create the view
      *     `"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"`
@@ -696,16 +748,16 @@ 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) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -713,18 +765,20 @@ public Builder setParentBytes( private java.lang.Object viewId_ = ""; /** + * + * *
      * Required. The id to use for this view.
      * 
* * 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; @@ -733,20 +787,21 @@ public java.lang.String getViewId() { } } /** + * + * *
      * Required. The id to use for this view.
      * 
* * 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 { @@ -754,54 +809,61 @@ public java.lang.String getViewId() { } } /** + * + * *
      * Required. The id to use for this view.
      * 
* * 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) { + public Builder setViewId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + viewId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The id to use for this view.
      * 
* * string view_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearViewId() { - + viewId_ = getDefaultInstance().getViewId(); onChanged(); return this; } /** + * + * *
      * Required. The id to use for this view.
      * 
* * 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) { + public Builder setViewIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + viewId_ = value; onChanged(); return this; @@ -809,24 +871,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 viewBuilder_ != null || view_ != null; } /** + * + * *
      * 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() { @@ -837,6 +908,8 @@ public com.google.logging.v2.LogView getView() { } } /** + * + * *
      * Required. The new view.
      * 
@@ -857,14 +930,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(); onChanged(); @@ -875,6 +949,8 @@ public Builder setView( return this; } /** + * + * *
      * Required. The new view.
      * 
@@ -884,8 +960,7 @@ public Builder setView( public Builder mergeView(com.google.logging.v2.LogView value) { if (viewBuilder_ == null) { if (view_ != null) { - view_ = - com.google.logging.v2.LogView.newBuilder(view_).mergeFrom(value).buildPartial(); + view_ = com.google.logging.v2.LogView.newBuilder(view_).mergeFrom(value).buildPartial(); } else { view_ = value; } @@ -897,6 +972,8 @@ public Builder mergeView(com.google.logging.v2.LogView value) { return this; } /** + * + * *
      * Required. The new view.
      * 
@@ -915,6 +992,8 @@ public Builder clearView() { return this; } /** + * + * *
      * Required. The new view.
      * 
@@ -922,11 +1001,13 @@ public Builder clearView() { * .google.logging.v2.LogView view = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.logging.v2.LogView.Builder getViewBuilder() { - + onChanged(); return getViewFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The new view.
      * 
@@ -937,11 +1018,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.
      * 
@@ -949,21 +1031,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); } @@ -973,12 +1058,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(); } @@ -987,16 +1072,16 @@ 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 { - return new CreateViewRequest(input, extensionRegistry); - } - }; + 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 { + return new CreateViewRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1011,6 +1096,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 71% 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 8cb5b37cb..2cdbdb4b0 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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
    *     `"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"`
@@ -16,10 +34,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
    *     `"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"`
@@ -28,50 +49,63 @@ 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. The id to use for this view.
    * 
* * string view_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The viewId. */ java.lang.String getViewId(); /** + * + * *
    * Required. The id to use for this view.
    * 
* * 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 69% 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 4fcfb7058..033e7bac5 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,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteBucketRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,47 +70,52 @@ private DeleteBucketRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object name_; /** + * + * *
    * Required. The full resource name of the bucket to delete.
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
@@ -104,7 +126,10 @@ private DeleteBucketRequest(
    *   `"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 @@ -113,14 +138,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.
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
@@ -131,17 +157,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 { @@ -150,6 +177,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -161,8 +189,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -186,15 +213,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -213,118 +240,127 @@ 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() @@ -332,16 +368,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -351,9 +386,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 @@ -372,7 +407,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); + com.google.logging.v2.DeleteBucketRequest result = + new com.google.logging.v2.DeleteBucketRequest(this); result.name_ = name_; onBuilt(); return result; @@ -382,38 +418,39 @@ public com.google.logging.v2.DeleteBucketRequest 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.DeleteBucketRequest) { - return mergeFrom((com.google.logging.v2.DeleteBucketRequest)other); + return mergeFrom((com.google.logging.v2.DeleteBucketRequest) other); } else { super.mergeFrom(other); return this; @@ -457,6 +494,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The full resource name of the bucket to delete.
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
@@ -467,14 +506,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; @@ -483,6 +524,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full resource name of the bucket to delete.
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
@@ -493,16 +536,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 { @@ -510,6 +554,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full resource name of the bucket to delete.
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
@@ -520,21 +566,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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The full resource name of the bucket to delete.
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
@@ -545,16 +595,21 @@ 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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The full resource name of the bucket to delete.
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
@@ -565,24 +620,26 @@ public Builder clearName() {
      *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -592,12 +649,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.DeleteBucketRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.DeleteBucketRequest) private static final com.google.logging.v2.DeleteBucketRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.DeleteBucketRequest(); } @@ -606,16 +663,16 @@ 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 { - return new DeleteBucketRequest(input, extensionRegistry); - } - }; + 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 { + return new DeleteBucketRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -630,6 +687,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 4b4ac5ea3..d52ae463c 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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.
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
@@ -18,11 +36,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.
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
@@ -33,9 +56,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 68% 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 15e19d2b8..81414b227 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,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteExclusionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,47 +70,52 @@ private DeleteExclusionRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of an existing exclusion to delete:
    *     "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
@@ -104,7 +126,10 @@ private DeleteExclusionRequest(
    *   `"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 @@ -113,14 +138,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:
    *     "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
@@ -131,17 +157,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 { @@ -150,6 +177,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -161,8 +189,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -186,15 +213,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -213,118 +240,127 @@ 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() @@ -332,16 +368,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -351,9 +386,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 @@ -372,7 +407,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); + com.google.logging.v2.DeleteExclusionRequest result = + new com.google.logging.v2.DeleteExclusionRequest(this); result.name_ = name_; onBuilt(); return result; @@ -382,38 +418,39 @@ public com.google.logging.v2.DeleteExclusionRequest 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.DeleteExclusionRequest) { - return mergeFrom((com.google.logging.v2.DeleteExclusionRequest)other); + return mergeFrom((com.google.logging.v2.DeleteExclusionRequest) other); } else { super.mergeFrom(other); return this; @@ -457,6 +494,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of an existing exclusion to delete:
      *     "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
@@ -467,14 +506,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; @@ -483,6 +524,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of an existing exclusion to delete:
      *     "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
@@ -493,16 +536,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 { @@ -510,6 +554,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of an existing exclusion to delete:
      *     "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
@@ -520,21 +566,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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of an existing exclusion to delete:
      *     "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
@@ -545,16 +595,21 @@ 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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of an existing exclusion to delete:
      *     "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
@@ -565,24 +620,26 @@ public Builder clearName() {
      *   `"projects/my-project/exclusions/my-exclusion"`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -592,12 +649,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.DeleteExclusionRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.DeleteExclusionRequest) private static final com.google.logging.v2.DeleteExclusionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.DeleteExclusionRequest(); } @@ -606,16 +663,16 @@ 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 { - return new DeleteExclusionRequest(input, extensionRegistry); - } - }; + 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 { + return new DeleteExclusionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -630,6 +687,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 55% 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 ec4dc6d95..7e863687a 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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:
    *     "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
@@ -18,11 +36,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:
    *     "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
@@ -33,9 +56,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/DeleteLogMetricRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequest.java similarity index 65% 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 6eac2a421..88f1381cf 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,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteLogMetricRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,53 +70,61 @@ private DeleteLogMetricRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - metricName_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + metricName_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -108,30 +133,32 @@ 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 { @@ -140,6 +167,7 @@ public java.lang.String getMetricName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricName_); } @@ -176,15 +203,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -203,118 +230,127 @@ 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() @@ -322,16 +358,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +376,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 @@ -362,7 +397,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); + com.google.logging.v2.DeleteLogMetricRequest result = + new com.google.logging.v2.DeleteLogMetricRequest(this); result.metricName_ = metricName_; onBuilt(); return result; @@ -372,38 +408,39 @@ public com.google.logging.v2.DeleteLogMetricRequest 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.DeleteLogMetricRequest) { - return mergeFrom((com.google.logging.v2.DeleteLogMetricRequest)other); + return mergeFrom((com.google.logging.v2.DeleteLogMetricRequest) other); } else { super.mergeFrom(other); return this; @@ -447,19 +484,23 @@ public Builder mergeFrom( 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; @@ -468,21 +509,24 @@ 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 { @@ -490,64 +534,77 @@ 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) { + public Builder setMetricName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + metricName_ = value; 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() { - + metricName_ = getDefaultInstance().getMetricName(); 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) = { ... } + * + * * @param value The bytes for metricName to set. * @return This builder for chaining. */ - public Builder setMetricNameBytes( - com.google.protobuf.ByteString value) { + public Builder setMetricNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + metricName_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -557,12 +614,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(); } @@ -571,16 +628,16 @@ 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 { - return new DeleteLogMetricRequest(input, extensionRegistry); - } - }; + 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 { + return new DeleteLogMetricRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -595,6 +652,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..de3ddd153 --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 70% 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 cb435bd8b..edb9f5f75 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,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteLogRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,47 +70,52 @@ private DeleteLogRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - logName_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + logName_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object logName_; /** + * + * *
    * Required. The resource name of the log to delete:
    * * `projects/[PROJECT_ID]/logs/[LOG_ID]`
@@ -107,7 +129,10 @@ private DeleteLogRequest(
    * [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 @@ -116,14 +141,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:
    * * `projects/[PROJECT_ID]/logs/[LOG_ID]`
@@ -137,17 +163,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 { @@ -156,6 +183,7 @@ public java.lang.String getLogName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -167,8 +195,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(logName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, logName_); } @@ -192,15 +219,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -219,118 +245,127 @@ 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() @@ -338,16 +373,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -357,9 +391,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 @@ -378,7 +412,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); + com.google.logging.v2.DeleteLogRequest result = + new com.google.logging.v2.DeleteLogRequest(this); result.logName_ = logName_; onBuilt(); return result; @@ -388,38 +423,39 @@ public com.google.logging.v2.DeleteLogRequest 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.DeleteLogRequest) { - return mergeFrom((com.google.logging.v2.DeleteLogRequest)other); + return mergeFrom((com.google.logging.v2.DeleteLogRequest) other); } else { super.mergeFrom(other); return this; @@ -463,6 +499,8 @@ public Builder mergeFrom( private java.lang.Object logName_ = ""; /** + * + * *
      * Required. The resource name of the log to delete:
      * * `projects/[PROJECT_ID]/logs/[LOG_ID]`
@@ -476,14 +514,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; @@ -492,6 +532,8 @@ public java.lang.String getLogName() { } } /** + * + * *
      * Required. The resource name of the log to delete:
      * * `projects/[PROJECT_ID]/logs/[LOG_ID]`
@@ -505,16 +547,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 { @@ -522,6 +565,8 @@ public java.lang.String getLogName() { } } /** + * + * *
      * Required. The resource name of the log to delete:
      * * `projects/[PROJECT_ID]/logs/[LOG_ID]`
@@ -535,21 +580,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) { + public Builder setLogName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + logName_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the log to delete:
      * * `projects/[PROJECT_ID]/logs/[LOG_ID]`
@@ -563,16 +612,21 @@ 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() { - + logName_ = getDefaultInstance().getLogName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the log to delete:
      * * `projects/[PROJECT_ID]/logs/[LOG_ID]`
@@ -586,24 +640,26 @@ public Builder clearLogName() {
      * [LogEntry][google.logging.v2.LogEntry].
      * 
* - * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for logName to set. * @return This builder for chaining. */ - public Builder setLogNameBytes( - com.google.protobuf.ByteString value) { + public Builder setLogNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + logName_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -613,12 +669,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.DeleteLogRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.DeleteLogRequest) private static final com.google.logging.v2.DeleteLogRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.DeleteLogRequest(); } @@ -627,16 +683,16 @@ 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 { - return new DeleteLogRequest(input, extensionRegistry); - } - }; + 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 { + return new DeleteLogRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -651,6 +707,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 59% 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 4316542c4..e2ddc3230 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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:
    * * `projects/[PROJECT_ID]/logs/[LOG_ID]`
@@ -21,11 +39,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:
    * * `projects/[PROJECT_ID]/logs/[LOG_ID]`
@@ -39,9 +62,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 69% 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 736e916cf..8eb6eefb9 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,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteSinkRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,47 +70,52 @@ private DeleteSinkRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - sinkName_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + sinkName_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object sinkName_; /** + * + * *
    * Required. The full resource name of the sink to delete, including the parent
    * resource and the sink identifier:
@@ -105,7 +127,10 @@ private DeleteSinkRequest(
    *   `"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 @@ -114,14 +139,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:
@@ -133,17 +159,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 { @@ -152,6 +179,7 @@ public java.lang.String getSinkName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -163,8 +191,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -188,15 +215,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -215,118 +241,127 @@ 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() @@ -334,16 +369,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -353,9 +387,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 @@ -374,7 +408,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); + com.google.logging.v2.DeleteSinkRequest result = + new com.google.logging.v2.DeleteSinkRequest(this); result.sinkName_ = sinkName_; onBuilt(); return result; @@ -384,38 +419,39 @@ public com.google.logging.v2.DeleteSinkRequest 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.DeleteSinkRequest) { - return mergeFrom((com.google.logging.v2.DeleteSinkRequest)other); + return mergeFrom((com.google.logging.v2.DeleteSinkRequest) other); } else { super.mergeFrom(other); return this; @@ -459,6 +495,8 @@ public Builder mergeFrom( private java.lang.Object sinkName_ = ""; /** + * + * *
      * Required. The full resource name of the sink to delete, including the parent
      * resource and the sink identifier:
@@ -470,14 +508,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; @@ -486,6 +526,8 @@ public java.lang.String getSinkName() { } } /** + * + * *
      * Required. The full resource name of the sink to delete, including the parent
      * resource and the sink identifier:
@@ -497,16 +539,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 { @@ -514,6 +557,8 @@ public java.lang.String getSinkName() { } } /** + * + * *
      * Required. The full resource name of the sink to delete, including the parent
      * resource and the sink identifier:
@@ -525,21 +570,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) { + public Builder setSinkName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sinkName_ = value; onChanged(); return this; } /** + * + * *
      * Required. The full resource name of the sink to delete, including the parent
      * resource and the sink identifier:
@@ -551,16 +600,21 @@ 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() { - + sinkName_ = getDefaultInstance().getSinkName(); onChanged(); return this; } /** + * + * *
      * Required. The full resource name of the sink to delete, including the parent
      * resource and the sink identifier:
@@ -572,24 +626,26 @@ public Builder clearSinkName() {
      *   `"projects/my-project/sinks/my-sink"`
      * 
* - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for sinkName to set. * @return This builder for chaining. */ - public Builder setSinkNameBytes( - com.google.protobuf.ByteString value) { + public Builder setSinkNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sinkName_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -599,12 +655,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.DeleteSinkRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.DeleteSinkRequest) private static final com.google.logging.v2.DeleteSinkRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.DeleteSinkRequest(); } @@ -613,16 +669,16 @@ 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 { - return new DeleteSinkRequest(input, extensionRegistry); - } - }; + 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 { + return new DeleteSinkRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -637,6 +693,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 55% 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 911e93136..79667a089 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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:
@@ -19,11 +37,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:
@@ -35,9 +58,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 67% 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 58dd2a4e2..a59ae8e23 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,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteViewRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,47 +70,52 @@ private DeleteViewRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object name_; /** + * + * *
    * Required. The full resource name of the view to delete:
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
@@ -101,7 +123,10 @@ private DeleteViewRequest(
    *    `"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 @@ -110,14 +135,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:
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
@@ -125,17 +151,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 { @@ -144,6 +171,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -180,15 +207,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -207,118 +233,127 @@ 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() @@ -326,16 +361,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -345,9 +379,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 @@ -366,7 +400,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); + com.google.logging.v2.DeleteViewRequest result = + new com.google.logging.v2.DeleteViewRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,38 +411,39 @@ public com.google.logging.v2.DeleteViewRequest 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.DeleteViewRequest) { - return mergeFrom((com.google.logging.v2.DeleteViewRequest)other); + return mergeFrom((com.google.logging.v2.DeleteViewRequest) other); } else { super.mergeFrom(other); return this; @@ -451,6 +487,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The full resource name of the view to delete:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
@@ -458,14 +496,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; @@ -474,6 +514,8 @@ public 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]"
@@ -481,16 +523,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 { @@ -498,6 +541,8 @@ public 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]"
@@ -505,21 +550,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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The full resource name of the view to delete:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
@@ -527,16 +576,21 @@ 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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The full resource name of the view to delete:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
@@ -544,24 +598,26 @@ public Builder clearName() {
      *    `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -571,12 +627,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.DeleteViewRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.DeleteViewRequest) private static final com.google.logging.v2.DeleteViewRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.DeleteViewRequest(); } @@ -585,16 +641,16 @@ 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 { - return new DeleteViewRequest(input, extensionRegistry); - } - }; + 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 { + return new DeleteViewRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -609,6 +665,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..ecd296107 --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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 69% 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 6fb38e922..afe70b4c4 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,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetBucketRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,47 +70,52 @@ private GetBucketRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the bucket:
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
@@ -104,7 +126,10 @@ private GetBucketRequest(
    *   `"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 @@ -113,14 +138,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:
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
@@ -131,17 +157,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 { @@ -150,6 +177,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -161,8 +189,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -186,15 +213,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -213,118 +239,127 @@ 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() @@ -332,16 +367,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -351,9 +385,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 @@ -372,7 +406,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); + com.google.logging.v2.GetBucketRequest result = + new com.google.logging.v2.GetBucketRequest(this); result.name_ = name_; onBuilt(); return result; @@ -382,38 +417,39 @@ public com.google.logging.v2.GetBucketRequest 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.GetBucketRequest) { - return mergeFrom((com.google.logging.v2.GetBucketRequest)other); + return mergeFrom((com.google.logging.v2.GetBucketRequest) other); } else { super.mergeFrom(other); return this; @@ -457,6 +493,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the bucket:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
@@ -467,14 +505,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; @@ -483,6 +523,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the bucket:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
@@ -493,16 +535,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 { @@ -510,6 +553,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the bucket:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
@@ -520,21 +565,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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the bucket:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
@@ -545,16 +594,21 @@ 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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the bucket:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
@@ -565,24 +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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -592,12 +648,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.GetBucketRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.GetBucketRequest) private static final com.google.logging.v2.GetBucketRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.GetBucketRequest(); } @@ -606,16 +662,16 @@ 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 { - return new GetBucketRequest(input, extensionRegistry); - } - }; + 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 { + return new GetBucketRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -630,6 +686,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 57% 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 11399928e..3be788db4 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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:
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
@@ -18,11 +36,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:
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
@@ -33,9 +56,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 70% 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 4ed49570e..e166ad6c4 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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].
@@ -14,31 +31,31 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private GetCmekSettingsRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,47 +74,52 @@ private GetCmekSettingsRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              name_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  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;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Required. The resource for which to retrieve CMEK settings.
    *     "projects/[PROJECT_ID]/cmekSettings"
@@ -112,7 +134,10 @@ private GetCmekSettingsRequest(
    * 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 @@ -121,14 +146,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.
    *     "projects/[PROJECT_ID]/cmekSettings"
@@ -143,17 +169,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 { @@ -162,6 +189,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -198,15 +225,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -225,97 +252,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].
@@ -326,21 +360,23 @@ 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()
@@ -348,16 +384,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -367,9 +402,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
@@ -388,7 +423,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);
+      com.google.logging.v2.GetCmekSettingsRequest result =
+          new com.google.logging.v2.GetCmekSettingsRequest(this);
       result.name_ = name_;
       onBuilt();
       return result;
@@ -398,38 +434,39 @@ public com.google.logging.v2.GetCmekSettingsRequest 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.GetCmekSettingsRequest) {
-        return mergeFrom((com.google.logging.v2.GetCmekSettingsRequest)other);
+        return mergeFrom((com.google.logging.v2.GetCmekSettingsRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -473,6 +510,8 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The resource for which to retrieve CMEK settings.
      *     "projects/[PROJECT_ID]/cmekSettings"
@@ -487,14 +526,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; @@ -503,6 +544,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource for which to retrieve CMEK settings.
      *     "projects/[PROJECT_ID]/cmekSettings"
@@ -517,16 +560,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 { @@ -534,6 +578,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource for which to retrieve CMEK settings.
      *     "projects/[PROJECT_ID]/cmekSettings"
@@ -548,21 +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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource for which to retrieve CMEK settings.
      *     "projects/[PROJECT_ID]/cmekSettings"
@@ -577,16 +627,21 @@ 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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource for which to retrieve CMEK settings.
      *     "projects/[PROJECT_ID]/cmekSettings"
@@ -601,24 +656,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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -628,12 +685,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(); } @@ -642,16 +699,16 @@ 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 { - return new GetCmekSettingsRequest(input, extensionRegistry); - } - }; + 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 { + return new GetCmekSettingsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -666,6 +723,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 61% 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 f55f35128..c59b26e69 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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.
    *     "projects/[PROJECT_ID]/cmekSettings"
@@ -22,11 +40,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.
    *     "projects/[PROJECT_ID]/cmekSettings"
@@ -41,9 +64,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 68% 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 20e624723..cae5c731e 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,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetExclusionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,47 +70,52 @@ private GetExclusionRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of an existing exclusion:
    *     "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
@@ -104,7 +126,10 @@ private GetExclusionRequest(
    *   `"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 @@ -113,14 +138,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:
    *     "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
@@ -131,17 +157,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 { @@ -150,6 +177,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -161,8 +189,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -186,15 +213,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -213,118 +240,127 @@ 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() @@ -332,16 +368,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -351,9 +386,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 @@ -372,7 +407,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); + com.google.logging.v2.GetExclusionRequest result = + new com.google.logging.v2.GetExclusionRequest(this); result.name_ = name_; onBuilt(); return result; @@ -382,38 +418,39 @@ public com.google.logging.v2.GetExclusionRequest 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.GetExclusionRequest) { - return mergeFrom((com.google.logging.v2.GetExclusionRequest)other); + return mergeFrom((com.google.logging.v2.GetExclusionRequest) other); } else { super.mergeFrom(other); return this; @@ -457,6 +494,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of an existing exclusion:
      *     "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
@@ -467,14 +506,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; @@ -483,6 +524,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of an existing exclusion:
      *     "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
@@ -493,16 +536,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 { @@ -510,6 +554,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of an existing exclusion:
      *     "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
@@ -520,21 +566,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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of an existing exclusion:
      *     "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
@@ -545,16 +595,21 @@ 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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of an existing exclusion:
      *     "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
@@ -565,24 +620,26 @@ public Builder clearName() {
      *   `"projects/my-project/exclusions/my-exclusion"`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -592,12 +649,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.GetExclusionRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.GetExclusionRequest) private static final com.google.logging.v2.GetExclusionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.GetExclusionRequest(); } @@ -606,16 +663,16 @@ 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 { - return new GetExclusionRequest(input, extensionRegistry); - } - }; + 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 { + return new GetExclusionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -630,6 +687,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 5e37b339c..e66eaa839 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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:
    *     "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
@@ -18,11 +36,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:
    *     "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
@@ -33,9 +56,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/GetLogMetricRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequest.java similarity index 65% 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 59d6f7eb9..166b6932a 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,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetLogMetricRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,53 +70,61 @@ private GetLogMetricRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - metricName_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + metricName_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -108,30 +133,32 @@ 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 { @@ -140,6 +167,7 @@ public java.lang.String getMetricName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +179,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricName_); } @@ -176,15 +203,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -203,118 +230,127 @@ 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() @@ -322,16 +358,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -341,9 +376,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 @@ -362,7 +397,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); + com.google.logging.v2.GetLogMetricRequest result = + new com.google.logging.v2.GetLogMetricRequest(this); result.metricName_ = metricName_; onBuilt(); return result; @@ -372,38 +408,39 @@ public com.google.logging.v2.GetLogMetricRequest 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.GetLogMetricRequest) { - return mergeFrom((com.google.logging.v2.GetLogMetricRequest)other); + return mergeFrom((com.google.logging.v2.GetLogMetricRequest) other); } else { super.mergeFrom(other); return this; @@ -447,19 +484,23 @@ public Builder mergeFrom( 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; @@ -468,21 +509,24 @@ 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 { @@ -490,64 +534,77 @@ 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) { + public Builder setMetricName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + metricName_ = value; 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() { - + metricName_ = getDefaultInstance().getMetricName(); 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) = { ... } + * + * * @param value The bytes for metricName to set. * @return This builder for chaining. */ - public Builder setMetricNameBytes( - com.google.protobuf.ByteString value) { + public Builder setMetricNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + metricName_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -557,12 +614,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(); } @@ -571,16 +628,16 @@ 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 { - return new GetLogMetricRequest(input, extensionRegistry); - } - }; + 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 { + return new GetLogMetricRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -595,6 +652,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..764dc3838 --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 71% 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 03b47590d..808678e44 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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].
@@ -14,31 +31,31 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private GetSettingsRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,47 +74,52 @@ private GetSettingsRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              name_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  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;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Required. The resource for which to retrieve settings.
    *     "projects/[PROJECT_ID]/settings"
@@ -112,7 +134,10 @@ private GetSettingsRequest(
    * 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 @@ -121,14 +146,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.
    *     "projects/[PROJECT_ID]/settings"
@@ -143,17 +169,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 { @@ -162,6 +189,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -198,15 +225,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -225,97 +251,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].
@@ -326,21 +359,23 @@ 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()
@@ -348,16 +383,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -367,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_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
@@ -388,7 +422,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);
+      com.google.logging.v2.GetSettingsRequest result =
+          new com.google.logging.v2.GetSettingsRequest(this);
       result.name_ = name_;
       onBuilt();
       return result;
@@ -398,38 +433,39 @@ public com.google.logging.v2.GetSettingsRequest 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.GetSettingsRequest) {
-        return mergeFrom((com.google.logging.v2.GetSettingsRequest)other);
+        return mergeFrom((com.google.logging.v2.GetSettingsRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -473,6 +509,8 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The resource for which to retrieve settings.
      *     "projects/[PROJECT_ID]/settings"
@@ -487,14 +525,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; @@ -503,6 +543,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource for which to retrieve settings.
      *     "projects/[PROJECT_ID]/settings"
@@ -517,16 +559,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 { @@ -534,6 +577,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource for which to retrieve settings.
      *     "projects/[PROJECT_ID]/settings"
@@ -548,21 +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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource for which to retrieve settings.
      *     "projects/[PROJECT_ID]/settings"
@@ -577,16 +626,21 @@ 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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource for which to retrieve settings.
      *     "projects/[PROJECT_ID]/settings"
@@ -601,24 +655,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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -628,12 +684,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(); } @@ -642,16 +698,16 @@ 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 { - return new GetSettingsRequest(input, extensionRegistry); - } - }; + 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 { + return new GetSettingsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -666,6 +722,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 62% 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 97343aab4..1acc66b3f 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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.
    *     "projects/[PROJECT_ID]/settings"
@@ -22,11 +40,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.
    *     "projects/[PROJECT_ID]/settings"
@@ -41,9 +64,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 68% 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 7d54900c4..7007382d5 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,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetSinkRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,47 +70,52 @@ private GetSinkRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - sinkName_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + sinkName_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object sinkName_; /** + * + * *
    * Required. The resource name of the sink:
    *     "projects/[PROJECT_ID]/sinks/[SINK_ID]"
@@ -104,7 +126,10 @@ private GetSinkRequest(
    *   `"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 @@ -113,14 +138,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:
    *     "projects/[PROJECT_ID]/sinks/[SINK_ID]"
@@ -131,17 +157,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 { @@ -150,6 +177,7 @@ public java.lang.String getSinkName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -161,8 +189,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sinkName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, sinkName_); } @@ -186,15 +213,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -213,118 +239,126 @@ 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() @@ -332,16 +366,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -351,9 +384,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 @@ -382,38 +415,39 @@ public com.google.logging.v2.GetSinkRequest 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.GetSinkRequest) { - return mergeFrom((com.google.logging.v2.GetSinkRequest)other); + return mergeFrom((com.google.logging.v2.GetSinkRequest) other); } else { super.mergeFrom(other); return this; @@ -457,6 +491,8 @@ public Builder mergeFrom( private java.lang.Object sinkName_ = ""; /** + * + * *
      * Required. The resource name of the sink:
      *     "projects/[PROJECT_ID]/sinks/[SINK_ID]"
@@ -467,14 +503,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; @@ -483,6 +521,8 @@ public java.lang.String getSinkName() { } } /** + * + * *
      * Required. The resource name of the sink:
      *     "projects/[PROJECT_ID]/sinks/[SINK_ID]"
@@ -493,16 +533,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 { @@ -510,6 +551,8 @@ public java.lang.String getSinkName() { } } /** + * + * *
      * Required. The resource name of the sink:
      *     "projects/[PROJECT_ID]/sinks/[SINK_ID]"
@@ -520,21 +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) { + public Builder setSinkName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sinkName_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the sink:
      *     "projects/[PROJECT_ID]/sinks/[SINK_ID]"
@@ -545,16 +592,21 @@ 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() { - + sinkName_ = getDefaultInstance().getSinkName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the sink:
      *     "projects/[PROJECT_ID]/sinks/[SINK_ID]"
@@ -565,24 +617,26 @@ public Builder clearSinkName() {
      *   `"projects/my-project/sinks/my-sink"`
      * 
* - * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for sinkName to set. * @return This builder for chaining. */ - public Builder setSinkNameBytes( - com.google.protobuf.ByteString value) { + public Builder setSinkNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sinkName_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -592,12 +646,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.GetSinkRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.GetSinkRequest) private static final com.google.logging.v2.GetSinkRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.GetSinkRequest(); } @@ -606,16 +660,16 @@ 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 { - return new GetSinkRequest(input, extensionRegistry); - } - }; + 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 { + return new GetSinkRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -630,6 +684,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 52% 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 4de6e031f..13fc21290 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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:
    *     "projects/[PROJECT_ID]/sinks/[SINK_ID]"
@@ -18,11 +36,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:
    *     "projects/[PROJECT_ID]/sinks/[SINK_ID]"
@@ -33,9 +56,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 67% 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 36a9a68fb..f2aee9fd1 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,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetViewRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,47 +70,52 @@ private GetViewRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the policy:
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
@@ -101,7 +123,10 @@ private GetViewRequest(
    *   `"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 @@ -110,14 +135,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:
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
@@ -125,17 +151,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 { @@ -144,6 +171,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +183,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -180,15 +207,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -207,118 +233,126 @@ 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() @@ -326,16 +360,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -345,9 +378,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 @@ -376,38 +409,39 @@ public com.google.logging.v2.GetViewRequest 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.GetViewRequest) { - return mergeFrom((com.google.logging.v2.GetViewRequest)other); + return mergeFrom((com.google.logging.v2.GetViewRequest) other); } else { super.mergeFrom(other); return this; @@ -451,6 +485,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the policy:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
@@ -458,14 +494,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; @@ -474,6 +512,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the policy:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
@@ -481,16 +521,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 { @@ -498,6 +539,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the policy:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
@@ -505,21 +548,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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the policy:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
@@ -527,16 +574,21 @@ 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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the policy:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
@@ -544,24 +596,26 @@ public Builder clearName() {
      *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -571,12 +625,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.GetViewRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.GetViewRequest) private static final com.google.logging.v2.GetViewRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.GetViewRequest(); } @@ -585,16 +639,16 @@ 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 { - return new GetViewRequest(input, extensionRegistry); - } - }; + 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 { + return new GetViewRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -609,6 +663,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..bf2724a08 --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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/LifecycleState.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LifecycleState.java similarity index 68% 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 b9818a847..a915b5423 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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.
@@ -42,6 +64,8 @@ public enum LifecycleState
   ;
 
   /**
+   *
+   *
    * 
    * Unspecified state. This is only used/useful for distinguishing unset
    * values.
@@ -51,6 +75,8 @@ public enum LifecycleState
    */
   public static final int LIFECYCLE_STATE_UNSPECIFIED_VALUE = 0;
   /**
+   *
+   *
    * 
    * The normal and active state.
    * 
@@ -59,6 +85,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.
@@ -68,7 +96,6 @@ public enum LifecycleState
    */
   public static final int DELETE_REQUESTED_VALUE = 2;
 
-
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -93,49 +120,49 @@ 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;
-      default: return null;
+      case 0:
+        return LIFECYCLE_STATE_UNSPECIFIED;
+      case 1:
+        return ACTIVE;
+      case 2:
+        return DELETE_REQUESTED;
+      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(0);
   }
 
   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;
@@ -151,4 +178,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/ListBucketsRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsRequest.java
similarity index 73%
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 228f95aa9..5da707c0b 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 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific 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,16 +44,15 @@ private ListBucketsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListBucketsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListBucketsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,58 +71,64 @@ private ListBucketsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 24: { + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource whose buckets are to be listed:
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
@@ -117,7 +140,10 @@ private ListBucketsRequest(
    * 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 @@ -126,14 +152,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:
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
@@ -145,17 +172,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 { @@ -166,6 +194,8 @@ public java.lang.String getParent() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; 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 `nextPageToken` from the
@@ -174,6 +204,7 @@ public java.lang.String getParent() {
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -182,14 +213,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 `nextPageToken` from the
@@ -198,16 +230,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 { @@ -218,6 +249,8 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; 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 response
@@ -225,6 +258,7 @@ public java.lang.String getPageToken() {
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -233,6 +267,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -244,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(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -271,8 +305,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -282,19 +315,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -317,118 +347,127 @@ 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() @@ -436,16 +475,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -459,9 +497,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 @@ -480,7 +518,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); + com.google.logging.v2.ListBucketsRequest result = + new com.google.logging.v2.ListBucketsRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -492,38 +531,39 @@ public com.google.logging.v2.ListBucketsRequest 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.ListBucketsRequest) { - return mergeFrom((com.google.logging.v2.ListBucketsRequest)other); + return mergeFrom((com.google.logging.v2.ListBucketsRequest) other); } else { super.mergeFrom(other); return this; @@ -574,6 +614,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource whose buckets are to be listed:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
@@ -585,14 +627,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; @@ -601,6 +645,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource whose buckets are to be listed:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
@@ -612,16 +658,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 { @@ -629,6 +676,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource whose buckets are to be listed:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
@@ -640,21 +689,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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource whose buckets are to be listed:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
@@ -666,16 +719,21 @@ 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource whose buckets are to be listed:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
@@ -687,17 +745,19 @@ 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) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -705,6 +765,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 `nextPageToken` from the
@@ -713,13 +775,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; @@ -728,6 +790,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 `nextPageToken` from the
@@ -736,15 +800,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 { @@ -752,6 +815,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 `nextPageToken` from the
@@ -760,20 +825,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) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; 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 `nextPageToken` from the
@@ -782,15 +849,18 @@ public Builder setPageToken(
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); 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 `nextPageToken` from the
@@ -799,23 +869,25 @@ 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) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); 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 response
@@ -823,6 +895,7 @@ public Builder setPageTokenBytes(
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -830,6 +903,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 response
@@ -837,16 +912,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The maximum number of results to return from this request. Non-positive
      * values are ignored. The presence of `nextPageToken` in the response
@@ -854,17 +932,18 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 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); } @@ -874,12 +953,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(); } @@ -888,16 +967,16 @@ 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 { - return new ListBucketsRequest(input, extensionRegistry); - } - }; + 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 { + return new ListBucketsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -912,6 +991,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 ef71fdde8..afdd84396 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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:
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
@@ -19,11 +37,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:
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
@@ -35,13 +58,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 `nextPageToken` from the
@@ -50,10 +77,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 `nextPageToken` from the
@@ -62,12 +92,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 response
@@ -75,6 +107,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 73% 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 594406209..c4f4935e2 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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,16 +44,15 @@ private ListBucketsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListBucketsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListBucketsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,35 +72,36 @@ private ListBucketsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - buckets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + buckets_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + buckets_.add( + input.readMessage(com.google.logging.v2.LogBucket.parser(), extensionRegistry)); + break; } - buckets_.add( - input.readMessage(com.google.logging.v2.LogBucket.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { buckets_ = java.util.Collections.unmodifiableList(buckets_); @@ -92,22 +110,27 @@ private ListBucketsResponse( makeExtensionsImmutable(); } } - 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; private java.util.List buckets_; /** + * + * *
    * A list of buckets.
    * 
@@ -119,6 +142,8 @@ public java.util.List getBucketsList() { return buckets_; } /** + * + * *
    * A list of buckets.
    * 
@@ -126,11 +151,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.
    * 
@@ -142,6 +169,8 @@ public int getBucketsCount() { return buckets_.size(); } /** + * + * *
    * A list of buckets.
    * 
@@ -153,6 +182,8 @@ public com.google.logging.v2.LogBucket getBuckets(int index) { return buckets_.get(index); } /** + * + * *
    * A list of buckets.
    * 
@@ -160,14 +191,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; 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
@@ -175,6 +207,7 @@ public com.google.logging.v2.LogBucketOrBuilder getBucketsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -183,14 +216,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
@@ -198,16 +232,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 { @@ -216,6 +249,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +261,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -245,8 +278,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_); @@ -259,17 +291,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -292,118 +323,127 @@ 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() @@ -411,17 +451,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getBucketsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,9 +477,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 @@ -458,7 +498,8 @@ 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); int from_bitField0_ = bitField0_; if (bucketsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,38 +519,39 @@ public com.google.logging.v2.ListBucketsResponse 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.ListBucketsResponse) { - return mergeFrom((com.google.logging.v2.ListBucketsResponse)other); + return mergeFrom((com.google.logging.v2.ListBucketsResponse) other); } else { super.mergeFrom(other); return this; @@ -536,9 +578,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_); } @@ -576,21 +619,28 @@ public Builder mergeFrom( } 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.
      * 
@@ -605,6 +655,8 @@ public java.util.List getBucketsList() { } } /** + * + * *
      * A list of buckets.
      * 
@@ -619,6 +671,8 @@ public int getBucketsCount() { } } /** + * + * *
      * A list of buckets.
      * 
@@ -633,14 +687,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(); @@ -654,14 +709,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()); @@ -672,6 +728,8 @@ public Builder setBuckets( return this; } /** + * + * *
      * A list of buckets.
      * 
@@ -692,14 +750,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(); @@ -713,14 +772,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()); @@ -731,14 +791,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()); @@ -749,6 +810,8 @@ public Builder addBuckets( return this; } /** + * + * *
      * A list of buckets.
      * 
@@ -759,8 +822,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); @@ -768,6 +830,8 @@ public Builder addAllBuckets( return this; } /** + * + * *
      * A list of buckets.
      * 
@@ -785,6 +849,8 @@ public Builder clearBuckets() { return this; } /** + * + * *
      * A list of buckets.
      * 
@@ -802,39 +868,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 { @@ -842,6 +913,8 @@ public com.google.logging.v2.LogBucketOrBuilder getBucketsOrBuilder( } } /** + * + * *
      * A list of buckets.
      * 
@@ -849,42 +922,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_; @@ -892,6 +970,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
@@ -899,13 +979,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; @@ -914,6 +994,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
@@ -921,15 +1003,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 { @@ -937,6 +1018,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
@@ -944,20 +1027,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) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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
@@ -965,15 +1050,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); 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
@@ -981,23 +1069,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) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1007,12 +1095,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(); } @@ -1021,16 +1109,16 @@ 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 { - return new ListBucketsResponse(input, extensionRegistry); - } - }; + 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 { + return new ListBucketsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1045,6 +1133,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..2133deb62 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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 71% 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 3765da6ea..75e5b08fe 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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,16 +44,15 @@ private ListExclusionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListExclusionsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListExclusionsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,58 +71,64 @@ private ListExclusionsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 24: { + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource whose exclusions are to be listed.
    *     "projects/[PROJECT_ID]"
@@ -114,7 +137,10 @@ private ListExclusionsRequest(
    *     "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 @@ -123,14 +149,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.
    *     "projects/[PROJECT_ID]"
@@ -139,17 +166,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 { @@ -160,6 +188,8 @@ public java.lang.String getParent() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; 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
@@ -168,6 +198,7 @@ public java.lang.String getParent() {
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -176,14 +207,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
@@ -192,16 +224,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 { @@ -212,6 +243,8 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; 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
@@ -219,6 +252,7 @@ public java.lang.String getPageToken() {
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -227,6 +261,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -238,8 +273,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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,8 +299,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -276,19 +309,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -311,118 +342,127 @@ 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() @@ -430,16 +470,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -453,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_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 @@ -474,7 +513,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); + com.google.logging.v2.ListExclusionsRequest result = + new com.google.logging.v2.ListExclusionsRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -486,38 +526,39 @@ public com.google.logging.v2.ListExclusionsRequest 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.ListExclusionsRequest) { - return mergeFrom((com.google.logging.v2.ListExclusionsRequest)other); + return mergeFrom((com.google.logging.v2.ListExclusionsRequest) other); } else { super.mergeFrom(other); return this; @@ -568,6 +609,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource whose exclusions are to be listed.
      *     "projects/[PROJECT_ID]"
@@ -576,14 +619,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; @@ -592,6 +637,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource whose exclusions are to be listed.
      *     "projects/[PROJECT_ID]"
@@ -600,16 +647,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 { @@ -617,6 +665,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource whose exclusions are to be listed.
      *     "projects/[PROJECT_ID]"
@@ -625,21 +675,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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource whose exclusions are to be listed.
      *     "projects/[PROJECT_ID]"
@@ -648,16 +702,21 @@ 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource whose exclusions are to be listed.
      *     "projects/[PROJECT_ID]"
@@ -666,17 +725,19 @@ 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) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -684,6 +745,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
@@ -692,13 +755,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; @@ -707,6 +770,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,15 +780,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 { @@ -731,6 +795,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
@@ -739,20 +805,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) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; 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
@@ -761,15 +829,18 @@ public Builder setPageToken(
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); 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
@@ -778,23 +849,25 @@ 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) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); 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
@@ -802,6 +875,7 @@ public Builder setPageTokenBytes(
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -809,6 +883,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
@@ -816,16 +892,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -833,17 +912,18 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 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); } @@ -853,12 +933,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(); } @@ -867,16 +947,16 @@ 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 { - return new ListExclusionsRequest(input, extensionRegistry); - } - }; + 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 { + return new ListExclusionsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -891,6 +971,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 3ff96567c..3f41330e7 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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.
    *     "projects/[PROJECT_ID]"
@@ -16,11 +34,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.
    *     "projects/[PROJECT_ID]"
@@ -29,13 +52,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
@@ -44,10 +71,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
@@ -56,12 +86,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
@@ -69,6 +101,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 74% 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 4f41046f2..72fd5f107 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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,16 +44,15 @@ private ListExclusionsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListExclusionsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListExclusionsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,35 +72,37 @@ private ListExclusionsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - exclusions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + exclusions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + exclusions_.add( + input.readMessage( + com.google.logging.v2.LogExclusion.parser(), extensionRegistry)); + break; } - exclusions_.add( - input.readMessage(com.google.logging.v2.LogExclusion.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { exclusions_ = java.util.Collections.unmodifiableList(exclusions_); @@ -92,22 +111,27 @@ private ListExclusionsResponse( makeExtensionsImmutable(); } } - 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; private java.util.List exclusions_; /** + * + * *
    * A list of exclusions.
    * 
@@ -119,6 +143,8 @@ public java.util.List getExclusionsList() { return exclusions_; } /** + * + * *
    * A list of exclusions.
    * 
@@ -126,11 +152,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.
    * 
@@ -142,6 +170,8 @@ public int getExclusionsCount() { return exclusions_.size(); } /** + * + * *
    * A list of exclusions.
    * 
@@ -153,6 +183,8 @@ public com.google.logging.v2.LogExclusion getExclusions(int index) { return exclusions_.get(index); } /** + * + * *
    * A list of exclusions.
    * 
@@ -160,14 +192,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; 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
@@ -175,6 +208,7 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -183,14 +217,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
@@ -198,16 +233,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 { @@ -216,6 +250,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +262,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < exclusions_.size(); i++) { output.writeMessage(1, exclusions_.get(i)); } @@ -245,8 +279,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_); @@ -259,17 +292,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -292,118 +324,127 @@ 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() @@ -411,17 +452,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getExclusionsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,9 +478,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 @@ -458,7 +499,8 @@ 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); int from_bitField0_ = bitField0_; if (exclusionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,38 +520,39 @@ public com.google.logging.v2.ListExclusionsResponse 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.ListExclusionsResponse) { - return mergeFrom((com.google.logging.v2.ListExclusionsResponse)other); + return mergeFrom((com.google.logging.v2.ListExclusionsResponse) other); } else { super.mergeFrom(other); return this; @@ -536,9 +579,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_); } @@ -576,21 +620,28 @@ public Builder mergeFrom( } 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.
      * 
@@ -605,6 +656,8 @@ public java.util.List getExclusionsList() { } } /** + * + * *
      * A list of exclusions.
      * 
@@ -619,6 +672,8 @@ public int getExclusionsCount() { } } /** + * + * *
      * A list of exclusions.
      * 
@@ -633,14 +688,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(); @@ -654,6 +710,8 @@ public Builder setExclusions( return this; } /** + * + * *
      * A list of exclusions.
      * 
@@ -672,6 +730,8 @@ public Builder setExclusions( return this; } /** + * + * *
      * A list of exclusions.
      * 
@@ -692,14 +752,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(); @@ -713,14 +774,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()); @@ -731,6 +793,8 @@ public Builder addExclusions( return this; } /** + * + * *
      * A list of exclusions.
      * 
@@ -749,6 +813,8 @@ public Builder addExclusions( return this; } /** + * + * *
      * A list of exclusions.
      * 
@@ -759,8 +825,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); @@ -768,6 +833,8 @@ public Builder addAllExclusions( return this; } /** + * + * *
      * A list of exclusions.
      * 
@@ -785,6 +852,8 @@ public Builder clearExclusions() { return this; } /** + * + * *
      * A list of exclusions.
      * 
@@ -802,39 +871,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 { @@ -842,6 +916,8 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder( } } /** + * + * *
      * A list of exclusions.
      * 
@@ -849,42 +925,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_; @@ -892,6 +973,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
@@ -899,13 +982,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; @@ -914,6 +997,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If there might be more results than appear in this response, then
      * `nextPageToken` is included. To get the next set of results, call the same
@@ -921,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 { @@ -937,6 +1021,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
@@ -944,20 +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) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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
@@ -965,15 +1053,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); 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
@@ -981,23 +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) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1007,12 +1098,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(); } @@ -1021,16 +1112,16 @@ 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 { - return new ListExclusionsResponse(input, extensionRegistry); - } - }; + 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 { + return new ListExclusionsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1045,6 +1136,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..da8b8fff5 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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/ListLogEntriesRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequest.java similarity index 78% 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 d8d8a54ce..31c35801f 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,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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.EMPTY; filter_ = ""; @@ -28,16 +46,15 @@ private ListLogEntriesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListLogEntriesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListLogEntriesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -57,52 +74,55 @@ private ListLogEntriesRequest( case 0: done = true; break; - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - orderBy_ = s; - break; - } - case 32: { + filter_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + orderBy_ = s; + break; + } + case 32: + { + pageSize_ = input.readInt32(); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - resourceNames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + pageToken_ = s; + break; } - resourceNames_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + resourceNames_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + resourceNames_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { resourceNames_ = resourceNames_.getUnmodifiableView(); @@ -111,22 +131,27 @@ private ListLogEntriesRequest( makeExtensionsImmutable(); } } - 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; private com.google.protobuf.LazyStringList resourceNames_; /** + * + * *
    * Required. Names of one or more parent resources from which to
    * retrieve log entries:
@@ -142,14 +167,18 @@ private ListLogEntriesRequest(
    * Projects listed in the `project_ids` field are added to this list.
    * 
* - * 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:
@@ -165,13 +194,18 @@ private ListLogEntriesRequest(
    * Projects listed in the `project_ids` field are added to this list.
    * 
* - * 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:
@@ -187,7 +221,10 @@ public int getResourceNamesCount() {
    * Projects listed in the `project_ids` field are added to this list.
    * 
* - * 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. */ @@ -195,6 +232,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:
@@ -210,18 +249,22 @@ public java.lang.String getResourceNames(int index) {
    * Projects listed in the `project_ids` field are added to this list.
    * 
* - * 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; private volatile java.lang.Object filter_; /** + * + * *
    * Optional. A filter that chooses which log entries to return.  See [Advanced
    * Logs Queries](https://cloud.google.com/logging/docs/view/advanced-queries).
@@ -233,6 +276,7 @@ public java.lang.String getResourceNames(int index) {
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -241,14 +285,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Optional. A filter that chooses which log entries to return.  See [Advanced
    * Logs Queries](https://cloud.google.com/logging/docs/view/advanced-queries).
@@ -260,16 +305,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 { @@ -280,6 +324,8 @@ public java.lang.String getFilter() { public static final int ORDER_BY_FIELD_NUMBER = 3; 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
@@ -290,6 +336,7 @@ public java.lang.String getFilter() {
    * 
* * string order_by = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The orderBy. */ @java.lang.Override @@ -298,14 +345,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
@@ -316,16 +364,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 { @@ -336,6 +383,8 @@ public java.lang.String getOrderBy() { public static final int PAGE_SIZE_FIELD_NUMBER = 4; 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 rejected. The
@@ -344,6 +393,7 @@ public java.lang.String getOrderBy() {
    * 
* * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -354,6 +404,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 5; 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
@@ -362,6 +414,7 @@ public int getPageSize() {
    * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -370,14 +423,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
@@ -386,16 +440,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 { @@ -404,6 +457,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -415,8 +469,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -448,8 +501,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_); @@ -470,23 +522,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -515,118 +563,127 @@ 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() @@ -634,16 +691,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -661,9 +717,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 @@ -682,7 +738,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); + com.google.logging.v2.ListLogEntriesRequest result = + new com.google.logging.v2.ListLogEntriesRequest(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { resourceNames_ = resourceNames_.getUnmodifiableView(); @@ -701,38 +758,39 @@ public com.google.logging.v2.ListLogEntriesRequest 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.ListLogEntriesRequest) { - return mergeFrom((com.google.logging.v2.ListLogEntriesRequest)other); + return mergeFrom((com.google.logging.v2.ListLogEntriesRequest) other); } else { super.mergeFrom(other); return this; @@ -794,16 +852,21 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList resourceNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList resourceNames_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureResourceNamesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { resourceNames_ = new com.google.protobuf.LazyStringArrayList(resourceNames_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Required. Names of one or more parent resources from which to
      * retrieve log entries:
@@ -819,14 +882,18 @@ private void ensureResourceNamesIsMutable() {
      * Projects listed in the `project_ids` field are added to this list.
      * 
* - * 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_.getUnmodifiableView(); } /** + * + * *
      * Required. Names of one or more parent resources from which to
      * retrieve log entries:
@@ -842,13 +909,18 @@ private void ensureResourceNamesIsMutable() {
      * Projects listed in the `project_ids` field are added to this list.
      * 
* - * 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:
@@ -864,7 +936,10 @@ public int getResourceNamesCount() {
      * Projects listed in the `project_ids` field are added to this list.
      * 
* - * 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. */ @@ -872,6 +947,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:
@@ -887,15 +964,19 @@ public java.lang.String getResourceNames(int index) {
      * Projects listed in the `project_ids` field are added to this list.
      * 
* - * 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:
@@ -911,22 +992,26 @@ public java.lang.String getResourceNames(int index) {
      * Projects listed in the `project_ids` field are added to this list.
      * 
* - * 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) { + public Builder setResourceNames(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureResourceNamesIsMutable(); + throw new NullPointerException(); + } + ensureResourceNamesIsMutable(); resourceNames_.set(index, value); onChanged(); return this; } /** + * + * *
      * Required. Names of one or more parent resources from which to
      * retrieve log entries:
@@ -942,21 +1027,25 @@ public Builder setResourceNames(
      * Projects listed in the `project_ids` field are added to this list.
      * 
* - * 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) { + public Builder addResourceNames(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureResourceNamesIsMutable(); + throw new NullPointerException(); + } + ensureResourceNamesIsMutable(); resourceNames_.add(value); onChanged(); return this; } /** + * + * *
      * Required. Names of one or more parent resources from which to
      * retrieve log entries:
@@ -972,19 +1061,22 @@ public Builder addResourceNames(
      * Projects listed in the `project_ids` field are added to this list.
      * 
* - * 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_); onChanged(); return this; } /** + * + * *
      * Required. Names of one or more parent resources from which to
      * retrieve log entries:
@@ -1000,7 +1092,10 @@ public Builder addAllResourceNames(
      * Projects listed in the `project_ids` field are added to this list.
      * 
* - * 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() { @@ -1010,6 +1105,8 @@ public Builder clearResourceNames() { return this; } /** + * + * *
      * Required. Names of one or more parent resources from which to
      * retrieve log entries:
@@ -1025,16 +1122,18 @@ public Builder clearResourceNames() {
      * Projects listed in the `project_ids` field are added to this list.
      * 
* - * 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) { + public Builder addResourceNamesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureResourceNamesIsMutable(); resourceNames_.add(value); onChanged(); @@ -1043,6 +1142,8 @@ public Builder addResourceNamesBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. A filter that chooses which log entries to return.  See [Advanced
      * Logs Queries](https://cloud.google.com/logging/docs/view/advanced-queries).
@@ -1054,13 +1155,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; @@ -1069,6 +1170,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. A filter that chooses which log entries to return.  See [Advanced
      * Logs Queries](https://cloud.google.com/logging/docs/view/advanced-queries).
@@ -1080,15 +1183,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 { @@ -1096,6 +1198,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. A filter that chooses which log entries to return.  See [Advanced
      * Logs Queries](https://cloud.google.com/logging/docs/view/advanced-queries).
@@ -1107,20 +1211,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) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Optional. A filter that chooses which log entries to return.  See [Advanced
      * Logs Queries](https://cloud.google.com/logging/docs/view/advanced-queries).
@@ -1132,15 +1238,18 @@ public Builder setFilter(
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Optional. A filter that chooses which log entries to return.  See [Advanced
      * Logs Queries](https://cloud.google.com/logging/docs/view/advanced-queries).
@@ -1152,16 +1261,16 @@ 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) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1169,6 +1278,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
@@ -1179,13 +1290,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; @@ -1194,6 +1305,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
@@ -1204,15 +1317,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 { @@ -1220,6 +1332,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
@@ -1230,20 +1344,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) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + orderBy_ = value; onChanged(); return this; } /** + * + * *
      * Optional. How the results should be sorted.  Presently, the only permitted
      * values are `"timestamp asc"` (default) and `"timestamp desc"`. The first
@@ -1254,15 +1370,18 @@ public Builder setOrderBy(
      * 
* * string order_by = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearOrderBy() { - + orderBy_ = getDefaultInstance().getOrderBy(); onChanged(); return this; } /** + * + * *
      * Optional. How the results should be sorted.  Presently, the only permitted
      * values are `"timestamp asc"` (default) and `"timestamp desc"`. The first
@@ -1273,23 +1392,25 @@ 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) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; onChanged(); 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 rejected. The
@@ -1298,6 +1419,7 @@ public Builder setOrderByBytes(
      * 
* * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -1305,6 +1427,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 rejected. The
@@ -1313,16 +1437,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); 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 rejected. The
@@ -1331,10 +1458,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -1342,6 +1470,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
@@ -1350,13 +1480,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; @@ -1365,6 +1495,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
@@ -1373,15 +1505,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 { @@ -1389,6 +1520,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
@@ -1397,20 +1530,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) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; 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
@@ -1419,15 +1554,18 @@ public Builder setPageToken(
      * 
* * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); 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
@@ -1436,23 +1574,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) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1462,12 +1600,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(); } @@ -1476,16 +1614,16 @@ 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 { - return new ListLogEntriesRequest(input, extensionRegistry); - } - }; + 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 { + return new ListLogEntriesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1500,6 +1638,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 81% 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 618722f59..171732b5d 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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:
@@ -23,12 +41,16 @@ public interface ListLogEntriesRequestOrBuilder extends
    * Projects listed in the `project_ids` field are added to this list.
    * 
* - * 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:
@@ -44,11 +66,16 @@ public interface ListLogEntriesRequestOrBuilder extends
    * Projects listed in the `project_ids` field are added to this list.
    * 
* - * 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:
@@ -64,12 +91,17 @@ public interface ListLogEntriesRequestOrBuilder extends
    * Projects listed in the `project_ids` field are added to this list.
    * 
* - * 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:
@@ -85,14 +117,18 @@ public interface ListLogEntriesRequestOrBuilder extends
    * Projects listed in the `project_ids` field are added to this list.
    * 
* - * 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. A filter that chooses which log entries to return.  See [Advanced
    * Logs Queries](https://cloud.google.com/logging/docs/view/advanced-queries).
@@ -104,10 +140,13 @@ public interface ListLogEntriesRequestOrBuilder extends
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Optional. A filter that chooses which log entries to return.  See [Advanced
    * Logs Queries](https://cloud.google.com/logging/docs/view/advanced-queries).
@@ -119,12 +158,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
@@ -135,10 +176,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
@@ -149,12 +193,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 rejected. The
@@ -163,11 +209,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
@@ -176,10 +225,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
@@ -188,8 +240,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 78% 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 27d095329..a10f63b56 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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,16 +44,15 @@ private ListLogEntriesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListLogEntriesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListLogEntriesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,35 +72,36 @@ private ListLogEntriesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - entries_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + entries_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + entries_.add( + input.readMessage(com.google.logging.v2.LogEntry.parser(), extensionRegistry)); + break; } - entries_.add( - input.readMessage(com.google.logging.v2.LogEntry.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { entries_ = java.util.Collections.unmodifiableList(entries_); @@ -92,22 +110,27 @@ private ListLogEntriesResponse( makeExtensionsImmutable(); } } - 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; 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
@@ -121,6 +144,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
@@ -130,11 +155,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
@@ -148,6 +175,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
@@ -161,6 +190,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
@@ -170,14 +201,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;
   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
@@ -191,6 +223,7 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -199,14 +232,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
@@ -220,16 +254,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 { @@ -238,6 +271,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -249,8 +283,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -267,8 +300,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_); @@ -281,17 +313,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -314,118 +345,127 @@ 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() @@ -433,17 +473,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getEntriesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -459,9 +499,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 @@ -480,7 +520,8 @@ 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); int from_bitField0_ = bitField0_; if (entriesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -500,38 +541,39 @@ public com.google.logging.v2.ListLogEntriesResponse 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.ListLogEntriesResponse) { - return mergeFrom((com.google.logging.v2.ListLogEntriesResponse)other); + return mergeFrom((com.google.logging.v2.ListLogEntriesResponse) other); } else { super.mergeFrom(other); return this; @@ -558,9 +600,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_); } @@ -598,21 +641,28 @@ public Builder mergeFrom( } 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
@@ -629,6 +679,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
@@ -645,6 +697,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
@@ -661,6 +715,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
@@ -669,8 +725,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();
@@ -684,6 +739,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
@@ -692,8 +749,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());
@@ -704,6 +760,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
@@ -726,6 +784,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
@@ -734,8 +794,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();
@@ -749,6 +808,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
@@ -757,8 +818,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());
@@ -769,6 +829,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
@@ -777,8 +839,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());
@@ -789,6 +850,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
@@ -801,8 +864,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);
@@ -810,6 +872,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
@@ -829,6 +893,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
@@ -848,6 +914,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
@@ -856,11 +924,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
@@ -869,14 +938,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
@@ -885,8 +956,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 {
@@ -894,6 +965,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
@@ -903,10 +976,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
@@ -915,12 +990,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
@@ -929,20 +1005,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_;
@@ -950,6 +1028,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
@@ -963,13 +1043,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; @@ -978,6 +1058,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
@@ -991,15 +1073,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 { @@ -1007,6 +1088,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
@@ -1020,20 +1103,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) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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
@@ -1047,15 +1132,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); 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
@@ -1069,23 +1157,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) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1095,12 +1183,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(); } @@ -1109,16 +1197,16 @@ 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 { - return new ListLogEntriesResponse(input, extensionRegistry); - } - }; + 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 { + return new ListLogEntriesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1133,6 +1221,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 c520cd30b..22b524420 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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
@@ -75,10 +100,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
@@ -92,8 +120,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 71% 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 73d451122..c41736ad9 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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,16 +44,15 @@ private ListLogMetricsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListLogMetricsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListLogMetricsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,64 +71,73 @@ private ListLogMetricsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 24: { + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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 @@ -120,30 +146,32 @@ 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 { @@ -154,6 +182,8 @@ public java.lang.String getParent() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; 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
@@ -162,6 +192,7 @@ public java.lang.String getParent() {
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -170,14 +201,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
@@ -186,16 +218,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 { @@ -206,6 +237,8 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; 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
@@ -213,6 +246,7 @@ public java.lang.String getPageToken() {
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -221,6 +255,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -232,8 +267,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -259,8 +293,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -270,19 +303,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -305,118 +336,127 @@ 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() @@ -424,16 +464,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -447,9 +486,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 @@ -468,7 +507,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); + com.google.logging.v2.ListLogMetricsRequest result = + new com.google.logging.v2.ListLogMetricsRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -480,38 +520,39 @@ public com.google.logging.v2.ListLogMetricsRequest 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.ListLogMetricsRequest) { - return mergeFrom((com.google.logging.v2.ListLogMetricsRequest)other); + return mergeFrom((com.google.logging.v2.ListLogMetricsRequest) other); } else { super.mergeFrom(other); return this; @@ -562,19 +603,23 @@ public Builder mergeFrom( 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; @@ -583,21 +628,24 @@ 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 { @@ -605,57 +653,70 @@ 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; 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() { - + parent_ = getDefaultInstance().getParent(); 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) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -663,6 +724,8 @@ public Builder setParentBytes( private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. If present, then retrieve the next batch of results from the
      * preceding call to this method. `pageToken` must be the value of
@@ -671,13 +734,13 @@ public Builder setParentBytes(
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -686,6 +749,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
@@ -694,15 +759,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 { @@ -710,6 +774,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
@@ -718,20 +784,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) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; 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
@@ -740,15 +808,18 @@ public Builder setPageToken(
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); 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
@@ -757,23 +828,25 @@ 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) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); 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 +854,7 @@ public Builder setPageTokenBytes(
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -788,6 +862,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,16 +871,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -812,17 +891,18 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 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); } @@ -832,12 +912,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(); } @@ -846,16 +926,16 @@ 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 { - return new ListLogMetricsRequest(input, extensionRegistry); - } - }; + 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 { + return new ListLogMetricsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -870,6 +950,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 63% 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 1a370a1ff..7bc9456dc 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,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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
@@ -38,10 +65,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
@@ -50,12 +80,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
@@ -63,6 +95,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 74% 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 6cdf31a57..73f35f69f 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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,16 +44,15 @@ private ListLogMetricsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListLogMetricsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListLogMetricsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,35 +72,36 @@ private ListLogMetricsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - metrics_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + metrics_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + metrics_.add( + input.readMessage(com.google.logging.v2.LogMetric.parser(), extensionRegistry)); + break; } - metrics_.add( - input.readMessage(com.google.logging.v2.LogMetric.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { metrics_ = java.util.Collections.unmodifiableList(metrics_); @@ -92,22 +110,27 @@ private ListLogMetricsResponse( makeExtensionsImmutable(); } } - 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; private java.util.List metrics_; /** + * + * *
    * A list of logs-based metrics.
    * 
@@ -119,6 +142,8 @@ public java.util.List getMetricsList() { return metrics_; } /** + * + * *
    * A list of logs-based metrics.
    * 
@@ -126,11 +151,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.
    * 
@@ -142,6 +169,8 @@ public int getMetricsCount() { return metrics_.size(); } /** + * + * *
    * A list of logs-based metrics.
    * 
@@ -153,6 +182,8 @@ public com.google.logging.v2.LogMetric getMetrics(int index) { return metrics_.get(index); } /** + * + * *
    * A list of logs-based metrics.
    * 
@@ -160,14 +191,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; 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
@@ -175,6 +207,7 @@ public com.google.logging.v2.LogMetricOrBuilder getMetricsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -183,14 +216,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
@@ -198,16 +232,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 { @@ -216,6 +249,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +261,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -245,8 +278,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_); @@ -259,17 +291,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -292,118 +323,127 @@ 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() @@ -411,17 +451,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getMetricsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,9 +477,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 @@ -458,7 +498,8 @@ 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); int from_bitField0_ = bitField0_; if (metricsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,38 +519,39 @@ public com.google.logging.v2.ListLogMetricsResponse 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.ListLogMetricsResponse) { - return mergeFrom((com.google.logging.v2.ListLogMetricsResponse)other); + return mergeFrom((com.google.logging.v2.ListLogMetricsResponse) other); } else { super.mergeFrom(other); return this; @@ -536,9 +578,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_); } @@ -576,21 +619,28 @@ public Builder mergeFrom( } 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.
      * 
@@ -605,6 +655,8 @@ public java.util.List getMetricsList() { } } /** + * + * *
      * A list of logs-based metrics.
      * 
@@ -619,6 +671,8 @@ public int getMetricsCount() { } } /** + * + * *
      * A list of logs-based metrics.
      * 
@@ -633,14 +687,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(); @@ -654,14 +709,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()); @@ -672,6 +728,8 @@ public Builder setMetrics( return this; } /** + * + * *
      * A list of logs-based metrics.
      * 
@@ -692,14 +750,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(); @@ -713,14 +772,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()); @@ -731,14 +791,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()); @@ -749,6 +810,8 @@ public Builder addMetrics( return this; } /** + * + * *
      * A list of logs-based metrics.
      * 
@@ -759,8 +822,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); @@ -768,6 +830,8 @@ public Builder addAllMetrics( return this; } /** + * + * *
      * A list of logs-based metrics.
      * 
@@ -785,6 +849,8 @@ public Builder clearMetrics() { return this; } /** + * + * *
      * A list of logs-based metrics.
      * 
@@ -802,39 +868,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 { @@ -842,6 +913,8 @@ public com.google.logging.v2.LogMetricOrBuilder getMetricsOrBuilder( } } /** + * + * *
      * A list of logs-based metrics.
      * 
@@ -849,42 +922,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_; @@ -892,6 +970,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
@@ -899,13 +979,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; @@ -914,6 +994,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
@@ -921,15 +1003,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 { @@ -937,6 +1018,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
@@ -944,20 +1027,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) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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
@@ -965,15 +1050,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); 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
@@ -981,23 +1069,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) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1007,12 +1095,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(); } @@ -1021,16 +1109,16 @@ 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 { - return new ListLogMetricsResponse(input, extensionRegistry); - } - }; + 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 { + return new ListLogMetricsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1045,6 +1133,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..666ff3467 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 74% 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 06e04a1c0..585a4e7c9 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,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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_ = ""; pageToken_ = ""; @@ -27,16 +45,15 @@ private ListLogsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListLogsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListLogsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,46 +73,48 @@ private ListLogsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - resourceNames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + pageToken_ = s; + break; } - resourceNames_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + resourceNames_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + resourceNames_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { resourceNames_ = resourceNames_.getUnmodifiableView(); @@ -104,22 +123,27 @@ private ListLogsRequest( makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The resource name that owns the logs:
    * *  `projects/[PROJECT_ID]`
@@ -128,7 +152,10 @@ private ListLogsRequest(
    * *  `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 @@ -137,14 +164,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 that owns the logs:
    * *  `projects/[PROJECT_ID]`
@@ -153,17 +181,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 { @@ -174,6 +203,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; 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
@@ -181,6 +212,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -191,6 +223,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; 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
@@ -199,6 +233,7 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -207,14 +242,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
@@ -223,16 +259,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 { @@ -243,6 +278,8 @@ public java.lang.String getPageToken() { public static final int RESOURCE_NAMES_FIELD_NUMBER = 8; private com.google.protobuf.LazyStringList resourceNames_; /** + * + * *
    * Optional. The resource name that owns the logs:
    *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
@@ -256,14 +293,18 @@ public java.lang.String getPageToken() {
    * *  `folders/[FOLDER_ID]`
    * 
* - * 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. The resource name that owns the logs:
    *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
@@ -277,13 +318,18 @@ public java.lang.String getPageToken() {
    * *  `folders/[FOLDER_ID]`
    * 
* - * 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. The resource name that owns the logs:
    *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
@@ -297,7 +343,10 @@ public int getResourceNamesCount() {
    * *  `folders/[FOLDER_ID]`
    * 
* - * 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. */ @@ -305,6 +354,8 @@ public java.lang.String getResourceNames(int index) { return resourceNames_.get(index); } /** + * + * *
    * Optional. The resource name that owns the logs:
    *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
@@ -318,16 +369,19 @@ public java.lang.String getResourceNames(int index) {
    * *  `folders/[FOLDER_ID]`
    * 
* - * 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); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -339,8 +393,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -366,8 +419,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_); @@ -388,21 +440,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 (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!getResourceNamesList() - .equals(other.getResourceNamesList())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getResourceNamesList().equals(other.getResourceNamesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -429,118 +477,126 @@ 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() @@ -548,16 +604,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -573,9 +628,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_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 @@ -594,7 +649,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); + com.google.logging.v2.ListLogsRequest result = + new com.google.logging.v2.ListLogsRequest(this); int from_bitField0_ = bitField0_; result.parent_ = parent_; result.pageSize_ = pageSize_; @@ -612,38 +668,39 @@ public com.google.logging.v2.ListLogsRequest 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.ListLogsRequest) { - return mergeFrom((com.google.logging.v2.ListLogsRequest)other); + return mergeFrom((com.google.logging.v2.ListLogsRequest) other); } else { super.mergeFrom(other); return this; @@ -701,10 +758,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The resource name that owns the logs:
      * *  `projects/[PROJECT_ID]`
@@ -713,14 +773,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; @@ -729,6 +791,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name that owns the logs:
      * *  `projects/[PROJECT_ID]`
@@ -737,16 +801,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 { @@ -754,6 +819,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource name that owns the logs:
      * *  `projects/[PROJECT_ID]`
@@ -762,21 +829,25 @@ public java.lang.String getParent() {
      * *  `folders/[FOLDER_ID]`
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name that owns the logs:
      * *  `projects/[PROJECT_ID]`
@@ -785,16 +856,21 @@ 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The resource name that owns the logs:
      * *  `projects/[PROJECT_ID]`
@@ -803,24 +879,28 @@ 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) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); 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
@@ -828,6 +908,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -835,6 +916,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
@@ -842,16 +925,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored.  The presence of `nextPageToken` in the
@@ -859,10 +945,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -870,6 +957,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
@@ -878,13 +967,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; @@ -893,6 +982,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
@@ -901,15 +992,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 { @@ -917,6 +1007,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
@@ -925,20 +1017,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) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; 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
@@ -947,15 +1041,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); 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
@@ -964,29 +1061,33 @@ 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) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList resourceNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList resourceNames_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureResourceNamesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { resourceNames_ = new com.google.protobuf.LazyStringArrayList(resourceNames_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Optional. The resource name that owns the logs:
      *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
@@ -1000,14 +1101,18 @@ private void ensureResourceNamesIsMutable() {
      * *  `folders/[FOLDER_ID]`
      * 
* - * 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_.getUnmodifiableView(); } /** + * + * *
      * Optional. The resource name that owns the logs:
      *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
@@ -1021,13 +1126,18 @@ private void ensureResourceNamesIsMutable() {
      * *  `folders/[FOLDER_ID]`
      * 
* - * 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. The resource name that owns the logs:
      *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
@@ -1041,7 +1151,10 @@ public int getResourceNamesCount() {
      * *  `folders/[FOLDER_ID]`
      * 
* - * 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. */ @@ -1049,6 +1162,8 @@ public java.lang.String getResourceNames(int index) { return resourceNames_.get(index); } /** + * + * *
      * Optional. The resource name that owns the logs:
      *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
@@ -1062,15 +1177,19 @@ public java.lang.String getResourceNames(int index) {
      * *  `folders/[FOLDER_ID]`
      * 
* - * 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. The resource name that owns the logs:
      *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
@@ -1084,22 +1203,26 @@ public java.lang.String getResourceNames(int index) {
      * *  `folders/[FOLDER_ID]`
      * 
* - * 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) { + public Builder setResourceNames(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureResourceNamesIsMutable(); + throw new NullPointerException(); + } + ensureResourceNamesIsMutable(); resourceNames_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. The resource name that owns the logs:
      *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
@@ -1113,21 +1236,25 @@ public Builder setResourceNames(
      * *  `folders/[FOLDER_ID]`
      * 
* - * 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) { + public Builder addResourceNames(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureResourceNamesIsMutable(); + throw new NullPointerException(); + } + ensureResourceNamesIsMutable(); resourceNames_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. The resource name that owns the logs:
      *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
@@ -1141,19 +1268,22 @@ public Builder addResourceNames(
      * *  `folders/[FOLDER_ID]`
      * 
* - * 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_); onChanged(); return this; } /** + * + * *
      * Optional. The resource name that owns the logs:
      *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
@@ -1167,7 +1297,10 @@ public Builder addAllResourceNames(
      * *  `folders/[FOLDER_ID]`
      * 
* - * 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() { @@ -1177,6 +1310,8 @@ public Builder clearResourceNames() { return this; } /** + * + * *
      * Optional. The resource name that owns the logs:
      *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
@@ -1190,24 +1325,26 @@ public Builder clearResourceNames() {
      * *  `folders/[FOLDER_ID]`
      * 
* - * 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) { + public Builder addResourceNamesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureResourceNamesIsMutable(); resourceNames_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1217,12 +1354,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(); } @@ -1231,16 +1368,16 @@ 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 { - return new ListLogsRequest(input, extensionRegistry); - } - }; + 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 { + return new ListLogsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1255,6 +1392,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 73% 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 e2c58392a..788b0faf9 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 that owns the logs:
    * *  `projects/[PROJECT_ID]`
@@ -16,11 +34,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 that owns the logs:
    * *  `projects/[PROJECT_ID]`
@@ -29,13 +52,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. The maximum number of results to return from this request.
    * Non-positive values are ignored.  The presence of `nextPageToken` in the
@@ -43,11 +70,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
@@ -56,10 +86,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
@@ -68,12 +101,14 @@ 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(); /** + * + * *
    * Optional. The resource name that owns the logs:
    *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
@@ -87,12 +122,16 @@ public interface ListLogsRequestOrBuilder extends
    * *  `folders/[FOLDER_ID]`
    * 
* - * 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. The resource name that owns the logs:
    *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
@@ -106,11 +145,16 @@ public interface ListLogsRequestOrBuilder extends
    * *  `folders/[FOLDER_ID]`
    * 
* - * 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. The resource name that owns the logs:
    *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
@@ -124,12 +168,17 @@ public interface ListLogsRequestOrBuilder extends
    * *  `folders/[FOLDER_ID]`
    * 
* - * 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. The resource name that owns the logs:
    *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
@@ -143,10 +192,12 @@ public interface ListLogsRequestOrBuilder extends
    * *  `folders/[FOLDER_ID]`
    * 
* - * 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); } 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 74% 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 d0754742c..1bec6134c 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,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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.EMPTY; nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListLogsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListLogsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListLogsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,35 +72,36 @@ private ListLogsResponse( case 0: done = true; break; - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - logNames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + nextPageToken_ = s; + break; } - logNames_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + logNames_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + logNames_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { logNames_ = logNames_.getUnmodifiableView(); @@ -92,22 +110,27 @@ private ListLogsResponse( makeExtensionsImmutable(); } } - 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; private com.google.protobuf.LazyStringList logNames_; /** + * + * *
    * A list of log names. For example,
    * `"projects/my-project/logs/syslog"` or
@@ -115,13 +138,15 @@ private ListLogsResponse(
    * 
* * 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
@@ -129,12 +154,15 @@ private ListLogsResponse(
    * 
* * 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
@@ -142,6 +170,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. */ @@ -149,6 +178,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
@@ -156,17 +187,19 @@ 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; 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
@@ -174,6 +207,7 @@ public java.lang.String getLogNames(int index) {
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -182,14 +216,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
@@ -197,16 +232,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 { @@ -215,6 +249,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -226,8 +261,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -262,17 +296,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -295,118 +327,127 @@ 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() @@ -414,16 +455,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -435,9 +475,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_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 @@ -456,7 +496,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); + com.google.logging.v2.ListLogsResponse result = + new com.google.logging.v2.ListLogsResponse(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { logNames_ = logNames_.getUnmodifiableView(); @@ -472,38 +513,39 @@ public com.google.logging.v2.ListLogsResponse 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.ListLogsResponse) { - return mergeFrom((com.google.logging.v2.ListLogsResponse)other); + return mergeFrom((com.google.logging.v2.ListLogsResponse) other); } else { super.mergeFrom(other); return this; @@ -554,16 +596,21 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList logNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList logNames_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureLogNamesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { logNames_ = new com.google.protobuf.LazyStringArrayList(logNames_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * A list of log names. For example,
      * `"projects/my-project/logs/syslog"` or
@@ -571,13 +618,15 @@ 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() { return logNames_.getUnmodifiableView(); } /** + * + * *
      * A list of log names. For example,
      * `"projects/my-project/logs/syslog"` or
@@ -585,12 +634,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
@@ -598,6 +650,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. */ @@ -605,6 +658,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
@@ -612,14 +667,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
@@ -627,21 +684,23 @@ 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) { + public Builder setLogNames(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLogNamesIsMutable(); + throw new NullPointerException(); + } + ensureLogNamesIsMutable(); logNames_.set(index, value); onChanged(); return this; } /** + * + * *
      * A list of log names. For example,
      * `"projects/my-project/logs/syslog"` or
@@ -649,20 +708,22 @@ 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) { + public Builder addLogNames(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureLogNamesIsMutable(); + throw new NullPointerException(); + } + ensureLogNamesIsMutable(); logNames_.add(value); onChanged(); return this; } /** + * + * *
      * A list of log names. For example,
      * `"projects/my-project/logs/syslog"` or
@@ -670,18 +731,19 @@ 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_); onChanged(); return this; } /** + * + * *
      * A list of log names. For example,
      * `"projects/my-project/logs/syslog"` or
@@ -689,6 +751,7 @@ public Builder addAllLogNames(
      * 
* * repeated string log_names = 3; + * * @return This builder for chaining. */ public Builder clearLogNames() { @@ -698,6 +761,8 @@ public Builder clearLogNames() { return this; } /** + * + * *
      * A list of log names. For example,
      * `"projects/my-project/logs/syslog"` or
@@ -705,15 +770,15 @@ 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) { + public Builder addLogNamesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureLogNamesIsMutable(); logNames_.add(value); onChanged(); @@ -722,6 +787,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
@@ -729,13 +796,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; @@ -744,6 +811,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If there might be more results than those appearing in this response, then
      * `nextPageToken` is included.  To get the next set of results, call this
@@ -751,15 +820,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 { @@ -767,6 +835,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
@@ -774,20 +844,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) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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
@@ -795,15 +867,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); 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
@@ -811,23 +886,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) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -837,12 +912,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(); } @@ -851,16 +926,16 @@ 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 { - return new ListLogsResponse(input, extensionRegistry); - } - }; + 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 { + return new ListLogsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -875,6 +950,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..881527c08 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 71% 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 58affcf0b..906300070 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,40 +1,59 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListMonitoredResourceDescriptorsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,52 +72,57 @@ private ListMonitoredResourceDescriptorsRequest( case 0: done = true; break; - case 8: { - - pageSize_ = input.readInt32(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 8: + { + pageSize_ = input.readInt32(); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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_; /** + * + * *
    * Optional. The maximum number of results to return from this request.
    * Non-positive values are ignored.  The presence of `nextPageToken` in the
@@ -106,6 +130,7 @@ private ListMonitoredResourceDescriptorsRequest(
    * 
* * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -116,6 +141,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; 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
@@ -124,6 +151,7 @@ public int getPageSize() {
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -132,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
@@ -148,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 { @@ -166,6 +194,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -177,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 (pageSize_ != 0) { output.writeInt32(1, pageSize_); } @@ -195,8 +223,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_); @@ -209,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.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -241,117 +267,127 @@ 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() @@ -359,16 +395,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -380,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_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(); } @@ -401,7 +437,8 @@ 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); + com.google.logging.v2.ListMonitoredResourceDescriptorsRequest result = + new com.google.logging.v2.ListMonitoredResourceDescriptorsRequest(this); result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; onBuilt(); @@ -412,38 +449,39 @@ public com.google.logging.v2.ListMonitoredResourceDescriptorsRequest buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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; @@ -451,7 +489,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()); } @@ -478,7 +518,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.logging.v2.ListMonitoredResourceDescriptorsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.logging.v2.ListMonitoredResourceDescriptorsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -488,8 +530,10 @@ public Builder mergeFrom( 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
@@ -497,6 +541,7 @@ public Builder mergeFrom(
      * 
* * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -504,6 +549,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
@@ -511,16 +558,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored.  The presence of `nextPageToken` in the
@@ -528,10 +578,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -539,6 +590,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
@@ -547,13 +600,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; @@ -562,6 +615,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
@@ -570,15 +625,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 { @@ -586,6 +640,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
@@ -594,20 +650,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) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; 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
@@ -616,15 +674,18 @@ public Builder setPageToken(
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); 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
@@ -633,23 +694,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) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -659,12 +720,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(); } @@ -673,16 +735,16 @@ 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 { - return new ListMonitoredResourceDescriptorsRequest(input, extensionRegistry); - } - }; + 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 { + return new ListMonitoredResourceDescriptorsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -697,6 +759,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..193bf02e2 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 74% 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 c65445cec..8724aba3a 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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,16 +46,15 @@ private ListMonitoredResourceDescriptorsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListMonitoredResourceDescriptorsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListMonitoredResourceDescriptorsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,35 +74,38 @@ private ListMonitoredResourceDescriptorsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - resourceDescriptors_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + resourceDescriptors_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + resourceDescriptors_.add( + input.readMessage( + com.google.api.MonitoredResourceDescriptor.parser(), extensionRegistry)); + break; } - resourceDescriptors_.add( - input.readMessage(com.google.api.MonitoredResourceDescriptor.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { resourceDescriptors_ = java.util.Collections.unmodifiableList(resourceDescriptors_); @@ -92,22 +114,27 @@ private ListMonitoredResourceDescriptorsResponse( makeExtensionsImmutable(); } } - 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; private java.util.List resourceDescriptors_; /** + * + * *
    * A list of resource descriptors.
    * 
@@ -119,6 +146,8 @@ public java.util.List getResourceDes return resourceDescriptors_; } /** + * + * *
    * A list of resource descriptors.
    * 
@@ -126,11 +155,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.
    * 
@@ -142,6 +173,8 @@ public int getResourceDescriptorsCount() { return resourceDescriptors_.size(); } /** + * + * *
    * A list of resource descriptors.
    * 
@@ -153,6 +186,8 @@ public com.google.api.MonitoredResourceDescriptor getResourceDescriptors(int ind return resourceDescriptors_.get(index); } /** + * + * *
    * A list of resource descriptors.
    * 
@@ -168,6 +203,8 @@ public com.google.api.MonitoredResourceDescriptorOrBuilder getResourceDescriptor public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; 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
@@ -175,6 +212,7 @@ public com.google.api.MonitoredResourceDescriptorOrBuilder getResourceDescriptor
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -183,14 +221,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
@@ -198,16 +237,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 { @@ -216,6 +254,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +266,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < resourceDescriptors_.size(); i++) { output.writeMessage(1, resourceDescriptors_.get(i)); } @@ -245,8 +283,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_); @@ -259,17 +297,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,117 +330,127 @@ 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() @@ -411,17 +458,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getResourceDescriptorsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,13 +484,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(); } @@ -458,7 +506,8 @@ 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); int from_bitField0_ = bitField0_; if (resourceDescriptorsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,38 +527,39 @@ public com.google.logging.v2.ListMonitoredResourceDescriptorsResponse buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.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; @@ -517,7 +567,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()) { @@ -536,9 +588,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_); } @@ -567,7 +620,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.logging.v2.ListMonitoredResourceDescriptorsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.logging.v2.ListMonitoredResourceDescriptorsResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,21 +631,30 @@ public Builder mergeFrom( } 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.
      * 
@@ -605,6 +669,8 @@ public java.util.List getResourceDes } } /** + * + * *
      * A list of resource descriptors.
      * 
@@ -619,6 +685,8 @@ public int getResourceDescriptorsCount() { } } /** + * + * *
      * A list of resource descriptors.
      * 
@@ -633,6 +701,8 @@ public com.google.api.MonitoredResourceDescriptor getResourceDescriptors(int ind } } /** + * + * *
      * A list of resource descriptors.
      * 
@@ -654,6 +724,8 @@ public Builder setResourceDescriptors( return this; } /** + * + * *
      * A list of resource descriptors.
      * 
@@ -672,6 +744,8 @@ public Builder setResourceDescriptors( return this; } /** + * + * *
      * A list of resource descriptors.
      * 
@@ -692,6 +766,8 @@ public Builder addResourceDescriptors(com.google.api.MonitoredResourceDescriptor return this; } /** + * + * *
      * A list of resource descriptors.
      * 
@@ -713,6 +789,8 @@ public Builder addResourceDescriptors( return this; } /** + * + * *
      * A list of resource descriptors.
      * 
@@ -731,6 +809,8 @@ public Builder addResourceDescriptors( return this; } /** + * + * *
      * A list of resource descriptors.
      * 
@@ -749,6 +829,8 @@ public Builder addResourceDescriptors( return this; } /** + * + * *
      * A list of resource descriptors.
      * 
@@ -759,8 +841,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); @@ -768,6 +849,8 @@ public Builder addAllResourceDescriptors( return this; } /** + * + * *
      * A list of resource descriptors.
      * 
@@ -785,6 +868,8 @@ public Builder clearResourceDescriptors() { return this; } /** + * + * *
      * A list of resource descriptors.
      * 
@@ -802,6 +887,8 @@ public Builder removeResourceDescriptors(int index) { return this; } /** + * + * *
      * A list of resource descriptors.
      * 
@@ -813,6 +900,8 @@ public com.google.api.MonitoredResourceDescriptor.Builder getResourceDescriptors return getResourceDescriptorsFieldBuilder().getBuilder(index); } /** + * + * *
      * A list of resource descriptors.
      * 
@@ -822,19 +911,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 { @@ -842,6 +934,8 @@ public com.google.api.MonitoredResourceDescriptorOrBuilder getResourceDescriptor } } /** + * + * *
      * A list of resource descriptors.
      * 
@@ -849,10 +943,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.
      * 
@@ -861,26 +957,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(), @@ -892,6 +996,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
@@ -899,13 +1005,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; @@ -914,6 +1020,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
@@ -921,15 +1029,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 { @@ -937,6 +1044,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
@@ -944,20 +1053,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) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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
@@ -965,15 +1076,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); 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
@@ -981,23 +1095,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) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1007,30 +1121,32 @@ 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 { - return new ListMonitoredResourceDescriptorsResponse(input, extensionRegistry); - } - }; + 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 { + return new ListMonitoredResourceDescriptorsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1042,9 +1158,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..f28ba92c4 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 72% 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 a1123673d..3c4387ce3 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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,16 +44,15 @@ private ListSinksRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSinksRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListSinksRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,58 +71,64 @@ private ListSinksRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 24: { + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource whose sinks are to be listed:
    *     "projects/[PROJECT_ID]"
@@ -114,7 +137,10 @@ private ListSinksRequest(
    *     "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 @@ -123,14 +149,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:
    *     "projects/[PROJECT_ID]"
@@ -139,17 +166,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 { @@ -160,6 +188,8 @@ public java.lang.String getParent() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; 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
@@ -168,6 +198,7 @@ public java.lang.String getParent() {
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -176,14 +207,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
@@ -192,16 +224,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 { @@ -212,6 +243,8 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; 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
@@ -219,6 +252,7 @@ public java.lang.String getPageToken() {
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -227,6 +261,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -238,8 +273,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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,8 +299,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -276,19 +309,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -311,118 +341,127 @@ 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() @@ -430,16 +469,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -453,9 +491,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 @@ -474,7 +512,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); + com.google.logging.v2.ListSinksRequest result = + new com.google.logging.v2.ListSinksRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -486,38 +525,39 @@ public com.google.logging.v2.ListSinksRequest 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.ListSinksRequest) { - return mergeFrom((com.google.logging.v2.ListSinksRequest)other); + return mergeFrom((com.google.logging.v2.ListSinksRequest) other); } else { super.mergeFrom(other); return this; @@ -568,6 +608,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource whose sinks are to be listed:
      *     "projects/[PROJECT_ID]"
@@ -576,14 +618,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; @@ -592,6 +636,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource whose sinks are to be listed:
      *     "projects/[PROJECT_ID]"
@@ -600,16 +646,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 { @@ -617,6 +664,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource whose sinks are to be listed:
      *     "projects/[PROJECT_ID]"
@@ -625,21 +674,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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource whose sinks are to be listed:
      *     "projects/[PROJECT_ID]"
@@ -648,16 +701,21 @@ 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() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource whose sinks are to be listed:
      *     "projects/[PROJECT_ID]"
@@ -666,17 +724,19 @@ 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) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -684,6 +744,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
@@ -692,13 +754,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; @@ -707,6 +769,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,15 +779,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 { @@ -731,6 +794,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
@@ -739,20 +804,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) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; 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
@@ -761,15 +828,18 @@ public Builder setPageToken(
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); 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
@@ -778,23 +848,25 @@ 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) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); 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
@@ -802,6 +874,7 @@ public Builder setPageTokenBytes(
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -809,6 +882,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
@@ -816,16 +891,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -833,17 +911,18 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 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); } @@ -853,12 +932,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(); } @@ -867,16 +946,16 @@ 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 { - return new ListSinksRequest(input, extensionRegistry); - } - }; + 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 { + return new ListSinksRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -891,6 +970,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 ccc0df21e..d59e4ff79 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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:
    *     "projects/[PROJECT_ID]"
@@ -16,11 +34,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:
    *     "projects/[PROJECT_ID]"
@@ -29,13 +52,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
@@ -44,10 +71,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
@@ -56,12 +86,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
@@ -69,6 +101,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 73% 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 00e575219..2bf45760a 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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,16 +44,15 @@ private ListSinksResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListSinksResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListSinksResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,35 +72,36 @@ private ListSinksResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - sinks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + sinks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + sinks_.add( + input.readMessage(com.google.logging.v2.LogSink.parser(), extensionRegistry)); + break; } - sinks_.add( - input.readMessage(com.google.logging.v2.LogSink.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { sinks_ = java.util.Collections.unmodifiableList(sinks_); @@ -92,22 +110,27 @@ private ListSinksResponse( makeExtensionsImmutable(); } } - 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; private java.util.List sinks_; /** + * + * *
    * A list of sinks.
    * 
@@ -119,6 +142,8 @@ public java.util.List getSinksList() { return sinks_; } /** + * + * *
    * A list of sinks.
    * 
@@ -126,11 +151,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.
    * 
@@ -142,6 +168,8 @@ public int getSinksCount() { return sinks_.size(); } /** + * + * *
    * A list of sinks.
    * 
@@ -153,6 +181,8 @@ public com.google.logging.v2.LogSink getSinks(int index) { return sinks_.get(index); } /** + * + * *
    * A list of sinks.
    * 
@@ -160,14 +190,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; 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
@@ -175,6 +206,7 @@ public com.google.logging.v2.LogSinkOrBuilder getSinksOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -183,14 +215,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
@@ -198,16 +231,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 { @@ -216,6 +248,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +260,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -245,8 +277,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_); @@ -259,17 +290,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -292,118 +321,127 @@ 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() @@ -411,17 +449,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getSinksFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,9 +475,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 @@ -458,7 +496,8 @@ 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); int from_bitField0_ = bitField0_; if (sinksBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,38 +517,39 @@ public com.google.logging.v2.ListSinksResponse 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.ListSinksResponse) { - return mergeFrom((com.google.logging.v2.ListSinksResponse)other); + return mergeFrom((com.google.logging.v2.ListSinksResponse) other); } else { super.mergeFrom(other); return this; @@ -536,9 +576,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_); } @@ -576,21 +617,28 @@ public Builder mergeFrom( } 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.
      * 
@@ -605,6 +653,8 @@ public java.util.List getSinksList() { } } /** + * + * *
      * A list of sinks.
      * 
@@ -619,6 +669,8 @@ public int getSinksCount() { } } /** + * + * *
      * A list of sinks.
      * 
@@ -633,14 +685,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(); @@ -654,14 +707,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()); @@ -672,6 +726,8 @@ public Builder setSinks( return this; } /** + * + * *
      * A list of sinks.
      * 
@@ -692,14 +748,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(); @@ -713,14 +770,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()); @@ -731,14 +789,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()); @@ -749,18 +808,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); @@ -768,6 +827,8 @@ public Builder addAllSinks( return this; } /** + * + * *
      * A list of sinks.
      * 
@@ -785,6 +846,8 @@ public Builder clearSinks() { return this; } /** + * + * *
      * A list of sinks.
      * 
@@ -802,39 +865,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 { @@ -842,6 +910,8 @@ public com.google.logging.v2.LogSinkOrBuilder getSinksOrBuilder( } } /** + * + * *
      * A list of sinks.
      * 
@@ -849,42 +919,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_; @@ -892,6 +966,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
@@ -899,13 +975,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; @@ -914,6 +990,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
@@ -921,15 +999,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 { @@ -937,6 +1014,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
@@ -944,20 +1023,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) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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
@@ -965,15 +1046,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); 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
@@ -981,23 +1065,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) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1007,12 +1091,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(); } @@ -1021,16 +1105,16 @@ 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 { - return new ListSinksResponse(input, extensionRegistry); - } - }; + 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 { + return new ListSinksResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1045,6 +1129,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..1625fce0e 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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 74% 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 7c6d0345b..ab15015cb 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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,16 +44,15 @@ private ListViewsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListViewsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListViewsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,64 +71,71 @@ private ListViewsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 24: { + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The bucket whose views are to be listed:
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ @java.lang.Override @@ -120,30 +144,30 @@ 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:
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
    * 
* * 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 { @@ -154,6 +178,8 @@ public java.lang.String getParent() { public static final int PAGE_TOKEN_FIELD_NUMBER = 2; 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 `nextPageToken` from the
@@ -162,6 +188,7 @@ public java.lang.String getParent() {
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -170,14 +197,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 `nextPageToken` from the
@@ -186,16 +214,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 { @@ -206,6 +233,8 @@ public java.lang.String getPageToken() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; 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
@@ -213,6 +242,7 @@ public java.lang.String getPageToken() {
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -221,6 +251,7 @@ public int getPageSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -232,8 +263,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -259,8 +289,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -270,19 +299,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -305,118 +331,127 @@ 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() @@ -424,16 +459,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -447,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_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 @@ -468,7 +502,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); + com.google.logging.v2.ListViewsRequest result = + new com.google.logging.v2.ListViewsRequest(this); result.parent_ = parent_; result.pageToken_ = pageToken_; result.pageSize_ = pageSize_; @@ -480,38 +515,39 @@ public com.google.logging.v2.ListViewsRequest 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.ListViewsRequest) { - return mergeFrom((com.google.logging.v2.ListViewsRequest)other); + return mergeFrom((com.google.logging.v2.ListViewsRequest) other); } else { super.mergeFrom(other); return this; @@ -562,19 +598,21 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The bucket whose views are to be listed:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
      * 
* * 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; @@ -583,21 +621,22 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The bucket whose views are to be listed:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
      * 
* * 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 { @@ -605,57 +644,64 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The bucket whose views are to be listed:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
      * 
* * 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) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The bucket whose views are to be listed:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
      * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The bucket whose views are to be listed:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
      * 
* * 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) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -663,6 +709,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 `nextPageToken` from the
@@ -671,13 +719,13 @@ public Builder setParentBytes(
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -686,6 +734,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 `nextPageToken` from the
@@ -694,15 +744,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 { @@ -710,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 `nextPageToken` from the
@@ -718,20 +769,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) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; 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 `nextPageToken` from the
@@ -740,15 +793,18 @@ public Builder setPageToken(
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); 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 `nextPageToken` from the
@@ -757,23 +813,25 @@ 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) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); 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 +839,7 @@ public Builder setPageTokenBytes(
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -788,6 +847,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,16 +856,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -812,17 +876,18 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 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); } @@ -832,12 +897,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(); } @@ -846,16 +911,16 @@ 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 { - return new ListViewsRequest(input, extensionRegistry); - } - }; + 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 { + return new ListViewsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -870,6 +935,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 743c04ef4..4e185bd6b 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,35 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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:
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
    * 
* * string parent = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The bucket whose views are to be listed:
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
    * 
* * 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 `nextPageToken` from the
@@ -38,10 +61,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 `nextPageToken` from the
@@ -50,12 +76,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.
    * Non-positive values are ignored. The presence of `nextPageToken` in the
@@ -63,6 +91,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 73% 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 75a68be2b..db2f56dc8 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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,16 +44,15 @@ private ListViewsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListViewsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListViewsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,35 +72,36 @@ private ListViewsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - views_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + views_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + views_.add( + input.readMessage(com.google.logging.v2.LogView.parser(), extensionRegistry)); + break; } - views_.add( - input.readMessage(com.google.logging.v2.LogView.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { views_ = java.util.Collections.unmodifiableList(views_); @@ -92,22 +110,27 @@ private ListViewsResponse( makeExtensionsImmutable(); } } - 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; private java.util.List views_; /** + * + * *
    * A list of views.
    * 
@@ -119,6 +142,8 @@ public java.util.List getViewsList() { return views_; } /** + * + * *
    * A list of views.
    * 
@@ -126,11 +151,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.
    * 
@@ -142,6 +168,8 @@ public int getViewsCount() { return views_.size(); } /** + * + * *
    * A list of views.
    * 
@@ -153,6 +181,8 @@ public com.google.logging.v2.LogView getViews(int index) { return views_.get(index); } /** + * + * *
    * A list of views.
    * 
@@ -160,14 +190,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; 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
@@ -175,6 +206,7 @@ public com.google.logging.v2.LogViewOrBuilder getViewsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -183,14 +215,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
@@ -198,16 +231,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 { @@ -216,6 +248,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +260,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -245,8 +277,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_); @@ -259,17 +290,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -292,118 +321,127 @@ 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() @@ -411,17 +449,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getViewsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,9 +475,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 @@ -458,7 +496,8 @@ 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); int from_bitField0_ = bitField0_; if (viewsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,38 +517,39 @@ public com.google.logging.v2.ListViewsResponse 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.ListViewsResponse) { - return mergeFrom((com.google.logging.v2.ListViewsResponse)other); + return mergeFrom((com.google.logging.v2.ListViewsResponse) other); } else { super.mergeFrom(other); return this; @@ -536,9 +576,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_); } @@ -576,21 +617,28 @@ public Builder mergeFrom( } 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.
      * 
@@ -605,6 +653,8 @@ public java.util.List getViewsList() { } } /** + * + * *
      * A list of views.
      * 
@@ -619,6 +669,8 @@ public int getViewsCount() { } } /** + * + * *
      * A list of views.
      * 
@@ -633,14 +685,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(); @@ -654,14 +707,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()); @@ -672,6 +726,8 @@ public Builder setViews( return this; } /** + * + * *
      * A list of views.
      * 
@@ -692,14 +748,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(); @@ -713,14 +770,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()); @@ -731,14 +789,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()); @@ -749,18 +808,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); @@ -768,6 +827,8 @@ public Builder addAllViews( return this; } /** + * + * *
      * A list of views.
      * 
@@ -785,6 +846,8 @@ public Builder clearViews() { return this; } /** + * + * *
      * A list of views.
      * 
@@ -802,39 +865,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 { @@ -842,6 +910,8 @@ public com.google.logging.v2.LogViewOrBuilder getViewsOrBuilder( } } /** + * + * *
      * A list of views.
      * 
@@ -849,42 +919,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_; @@ -892,6 +966,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
@@ -899,13 +975,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; @@ -914,6 +990,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
@@ -921,15 +999,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 { @@ -937,6 +1014,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
@@ -944,20 +1023,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) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; 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
@@ -965,15 +1046,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); 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
@@ -981,23 +1065,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) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1007,12 +1091,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(); } @@ -1021,16 +1105,16 @@ 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 { - return new ListViewsResponse(input, extensionRegistry); - } - }; + 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 { + return new ListViewsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1045,6 +1129,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..87d2f7198 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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/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 73% 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 37508ee7a..c84aa0d01 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,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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_ = ""; @@ -28,16 +46,15 @@ private LogBucket() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LogBucket(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private LogBucket( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -57,96 +74,105 @@ private LogBucket( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); + description_ = s; + break; } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + case 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 42: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); + case 42: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; } - updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); + case 72: + { + locked_ = input.readBool(); + break; } + case 88: + { + retentionDays_ = input.readInt32(); + break; + } + case 96: + { + int rawValue = input.readEnum(); - break; - } - case 72: { - - locked_ = input.readBool(); - break; - } - case 88: { - - retentionDays_ = input.readInt32(); - break; - } - case 96: { - int rawValue = input.readEnum(); - - lifecycleState_ = rawValue; - break; - } - case 122: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - restrictedFields_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + lifecycleState_ = rawValue; + break; } - restrictedFields_.add(s); - break; - } - case 154: { - com.google.logging.v2.CmekSettings.Builder subBuilder = null; - if (cmekSettings_ != null) { - subBuilder = cmekSettings_.toBuilder(); + case 122: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + restrictedFields_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + restrictedFields_.add(s); + break; } - cmekSettings_ = input.readMessage(com.google.logging.v2.CmekSettings.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cmekSettings_); - cmekSettings_ = subBuilder.buildPartial(); + case 154: + { + com.google.logging.v2.CmekSettings.Builder subBuilder = null; + if (cmekSettings_ != null) { + subBuilder = cmekSettings_.toBuilder(); + } + cmekSettings_ = + input.readMessage(com.google.logging.v2.CmekSettings.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cmekSettings_); + cmekSettings_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { restrictedFields_ = restrictedFields_.getUnmodifiableView(); @@ -155,15 +181,17 @@ private LogBucket( makeExtensionsImmutable(); } } - 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); } @@ -171,6 +199,8 @@ private LogBucket( public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. The resource name of the bucket.
    * For example:
@@ -183,6 +213,7 @@ private LogBucket(
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -191,14 +222,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.
    * For example:
@@ -211,16 +243,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 { @@ -231,11 +262,14 @@ public java.lang.String getName() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** + * + * *
    * Describes this bucket.
    * 
* * string description = 3; + * * @return The description. */ @java.lang.Override @@ -244,29 +278,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 { @@ -277,12 +311,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 @@ -290,12 +328,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 @@ -303,12 +345,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() { @@ -318,11 +363,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 @@ -330,11 +379,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 @@ -342,11 +395,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() { @@ -356,6 +412,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int RETENTION_DAYS_FIELD_NUMBER = 11; 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
@@ -364,6 +422,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    * 
* * int32 retention_days = 11; + * * @return The retentionDays. */ @java.lang.Override @@ -374,6 +433,8 @@ public int getRetentionDays() { public static final int LOCKED_FIELD_NUMBER = 9; private boolean locked_; /** + * + * *
    * Whether the bucket is locked.
    * The retention period on a locked bucket cannot be changed. Locked buckets
@@ -381,6 +442,7 @@ public int getRetentionDays() {
    * 
* * bool locked = 9; + * * @return The locked. */ @java.lang.Override @@ -391,33 +453,48 @@ public boolean getLocked() { public static final int LIFECYCLE_STATE_FIELD_NUMBER = 12; private int 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 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() { + @java.lang.Override + public com.google.logging.v2.LifecycleState getLifecycleState() { @SuppressWarnings("deprecation") - com.google.logging.v2.LifecycleState result = com.google.logging.v2.LifecycleState.valueOf(lifecycleState_); + com.google.logging.v2.LifecycleState result = + com.google.logging.v2.LifecycleState.valueOf(lifecycleState_); return result == null ? com.google.logging.v2.LifecycleState.UNRECOGNIZED : result; } public static final int RESTRICTED_FIELDS_FIELD_NUMBER = 15; private com.google.protobuf.LazyStringList restrictedFields_; /** + * + * *
    * Log entry field paths that are denied access in this bucket.
    * The following fields and their children are eligible: `textPayload`,
@@ -427,13 +504,15 @@ public boolean getLocked() {
    * 
* * 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.
    * The following fields and their children are eligible: `textPayload`,
@@ -443,12 +522,15 @@ public boolean getLocked() {
    * 
* * 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.
    * The following fields and their children are eligible: `textPayload`,
@@ -458,6 +540,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. */ @@ -465,6 +548,8 @@ public java.lang.String getRestrictedFields(int index) { return restrictedFields_.get(index); } /** + * + * *
    * Log entry field paths that are denied access in this bucket.
    * The following fields and their children are eligible: `textPayload`,
@@ -474,17 +559,19 @@ 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 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
@@ -494,6 +581,7 @@ public java.lang.String getRestrictedFields(int index) {
    * 
* * .google.logging.v2.CmekSettings cmek_settings = 19; + * * @return Whether the cmekSettings field is set. */ @java.lang.Override @@ -501,6 +589,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
@@ -510,13 +600,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
@@ -533,6 +628,7 @@ public com.google.logging.v2.CmekSettingsOrBuilder getCmekSettingsOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -544,8 +640,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.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_);
     }
@@ -564,7 +659,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_);
     }
     for (int i = 0; i < restrictedFields_.size(); i++) {
@@ -589,24 +685,20 @@ 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_);
     }
     {
       int dataSize = 0;
@@ -617,8 +709,7 @@ public int getSerializedSize() {
       size += 1 * getRestrictedFieldsList().size();
     }
     if (cmekSettings_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(19, getCmekSettings());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getCmekSettings());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -628,38 +719,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.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 (!getRestrictedFieldsList()
-        .equals(other.getRestrictedFieldsList())) return false;
+    if (!getRestrictedFieldsList().equals(other.getRestrictedFieldsList())) 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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -687,8 +770,7 @@ 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_;
     if (getRestrictedFieldsCount() > 0) {
@@ -704,116 +786,123 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.logging.v2.LogBucket parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.logging.v2.LogBucket parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.logging.v2.LogBucket parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.logging.v2.LogBucket parseFrom(
-      com.google.protobuf.ByteString data)
+
+  public static com.google.logging.v2.LogBucket parseFrom(com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.logging.v2.LogBucket parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.logging.v2.LogBucket parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.logging.v2.LogBucket parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.logging.v2.LogBucket parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.logging.v2.LogBucket parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.logging.v2.LogBucket parseDelimitedFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.logging.v2.LogBucket parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.logging.v2.LogBucket parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.logging.v2.LogBucket parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.logging.v2.LogBucket prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Describes a repository in which log entries are stored.
    * 
* * Protobuf type {@code google.logging.v2.LogBucket} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.LogBucket) com.google.logging.v2.LogBucketOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogBucket_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_LogBucket_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogBucket_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_LogBucket_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.logging.v2.LogBucket.class, com.google.logging.v2.LogBucket.Builder.class); } @@ -823,16 +912,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -870,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 @@ -926,38 +1014,39 @@ public com.google.logging.v2.LogBucket 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.LogBucket) { - return mergeFrom((com.google.logging.v2.LogBucket)other); + return mergeFrom((com.google.logging.v2.LogBucket) other); } else { super.mergeFrom(other); return this; @@ -1030,10 +1119,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Output only. The resource name of the bucket.
      * For example:
@@ -1046,13 +1138,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; @@ -1061,6 +1153,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the bucket.
      * For example:
@@ -1073,15 +1167,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 { @@ -1089,6 +1182,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The resource name of the bucket.
      * For example:
@@ -1101,20 +1196,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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the bucket.
      * For example:
@@ -1127,15 +1224,18 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The resource name of the bucket.
      * For example:
@@ -1148,16 +1248,16 @@ 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1165,18 +1265,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; @@ -1185,20 +1287,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 { @@ -1206,54 +1309,61 @@ 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) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * Describes this bucket.
      * 
* * string description = 3; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); 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) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1261,42 +1371,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 createTimeBuilder_ != null || 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. */ 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) { @@ -1312,15 +1441,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(); onChanged(); @@ -1331,18 +1463,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 (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1354,12 +1490,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() { if (createTimeBuilder_ == null) { @@ -1373,51 +1513,67 @@ 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() { - + onChanged(); 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_; @@ -1425,39 +1581,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 updateTimeBuilder_ != null || 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. */ 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) { @@ -1473,14 +1648,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(); onChanged(); @@ -1491,17 +1669,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 (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1513,11 +1695,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() { if (updateTimeBuilder_ == null) { @@ -1531,55 +1717,73 @@ 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() { - + onChanged(); 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
@@ -1588,6 +1792,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
      * 
* * int32 retention_days = 11; + * * @return The retentionDays. */ @java.lang.Override @@ -1595,6 +1800,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
@@ -1603,16 +1810,19 @@ public int getRetentionDays() {
      * 
* * int32 retention_days = 11; + * * @param value The retentionDays to set. * @return This builder for chaining. */ public Builder setRetentionDays(int value) { - + retentionDays_ = value; onChanged(); 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
@@ -1621,17 +1831,20 @@ public Builder setRetentionDays(int value) {
      * 
* * int32 retention_days = 11; + * * @return This builder for chaining. */ public Builder clearRetentionDays() { - + retentionDays_ = 0; onChanged(); return this; } - private boolean locked_ ; + private boolean locked_; /** + * + * *
      * Whether the bucket is locked.
      * The retention period on a locked bucket cannot be changed. Locked buckets
@@ -1639,6 +1852,7 @@ public Builder clearRetentionDays() {
      * 
* * bool locked = 9; + * * @return The locked. */ @java.lang.Override @@ -1646,6 +1860,8 @@ public boolean getLocked() { return locked_; } /** + * + * *
      * Whether the bucket is locked.
      * The retention period on a locked bucket cannot be changed. Locked buckets
@@ -1653,16 +1869,19 @@ public boolean getLocked() {
      * 
* * bool locked = 9; + * * @param value The locked to set. * @return This builder for chaining. */ public Builder setLocked(boolean value) { - + locked_ = value; onChanged(); return this; } /** + * + * *
      * Whether the bucket is locked.
      * The retention period on a locked bucket cannot be changed. Locked buckets
@@ -1670,10 +1889,11 @@ public Builder setLocked(boolean value) {
      * 
* * bool locked = 9; + * * @return This builder for chaining. */ public Builder clearLocked() { - + locked_ = false; onChanged(); return this; @@ -1681,51 +1901,73 @@ 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. */ public Builder setLifecycleStateValue(int value) { - + lifecycleState_ = value; onChanged(); 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() { @SuppressWarnings("deprecation") - com.google.logging.v2.LifecycleState result = com.google.logging.v2.LifecycleState.valueOf(lifecycleState_); + com.google.logging.v2.LifecycleState result = + com.google.logging.v2.LifecycleState.valueOf(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. */ @@ -1733,34 +1975,43 @@ public Builder setLifecycleState(com.google.logging.v2.LifecycleState value) { if (value == null) { throw new NullPointerException(); } - + lifecycleState_ = value.getNumber(); onChanged(); 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() { - + lifecycleState_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList restrictedFields_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList restrictedFields_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureRestrictedFieldsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { restrictedFields_ = new com.google.protobuf.LazyStringArrayList(restrictedFields_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Log entry field paths that are denied access in this bucket.
      * The following fields and their children are eligible: `textPayload`,
@@ -1770,13 +2021,15 @@ 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() { return restrictedFields_.getUnmodifiableView(); } /** + * + * *
      * Log entry field paths that are denied access in this bucket.
      * The following fields and their children are eligible: `textPayload`,
@@ -1786,12 +2039,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.
      * The following fields and their children are eligible: `textPayload`,
@@ -1801,6 +2057,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. */ @@ -1808,6 +2065,8 @@ public java.lang.String getRestrictedFields(int index) { return restrictedFields_.get(index); } /** + * + * *
      * Log entry field paths that are denied access in this bucket.
      * The following fields and their children are eligible: `textPayload`,
@@ -1817,14 +2076,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.
      * The following fields and their children are eligible: `textPayload`,
@@ -1834,21 +2095,23 @@ 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) { + public Builder setRestrictedFields(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureRestrictedFieldsIsMutable(); + throw new NullPointerException(); + } + ensureRestrictedFieldsIsMutable(); restrictedFields_.set(index, value); onChanged(); return this; } /** + * + * *
      * Log entry field paths that are denied access in this bucket.
      * The following fields and their children are eligible: `textPayload`,
@@ -1858,20 +2121,22 @@ 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) { + public Builder addRestrictedFields(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureRestrictedFieldsIsMutable(); + throw new NullPointerException(); + } + ensureRestrictedFieldsIsMutable(); restrictedFields_.add(value); onChanged(); return this; } /** + * + * *
      * Log entry field paths that are denied access in this bucket.
      * The following fields and their children are eligible: `textPayload`,
@@ -1881,18 +2146,19 @@ 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_); onChanged(); return this; } /** + * + * *
      * Log entry field paths that are denied access in this bucket.
      * The following fields and their children are eligible: `textPayload`,
@@ -1902,6 +2168,7 @@ public Builder addAllRestrictedFields(
      * 
* * repeated string restricted_fields = 15; + * * @return This builder for chaining. */ public Builder clearRestrictedFields() { @@ -1911,6 +2178,8 @@ public Builder clearRestrictedFields() { return this; } /** + * + * *
      * Log entry field paths that are denied access in this bucket.
      * The following fields and their children are eligible: `textPayload`,
@@ -1920,15 +2189,15 @@ 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) { + public Builder addRestrictedFieldsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureRestrictedFieldsIsMutable(); restrictedFields_.add(value); onChanged(); @@ -1937,8 +2206,13 @@ public Builder addRestrictedFieldsBytes( 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
@@ -1948,12 +2222,15 @@ public Builder addRestrictedFieldsBytes(
      * 
* * .google.logging.v2.CmekSettings cmek_settings = 19; + * * @return Whether the cmekSettings field is set. */ public boolean hasCmekSettings() { return cmekSettingsBuilder_ != null || 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
@@ -1963,16 +2240,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
@@ -1997,6 +2279,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
@@ -2007,8 +2291,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();
         onChanged();
@@ -2019,6 +2302,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
@@ -2033,7 +2318,9 @@ public Builder mergeCmekSettings(com.google.logging.v2.CmekSettings value) {
       if (cmekSettingsBuilder_ == null) {
         if (cmekSettings_ != null) {
           cmekSettings_ =
-            com.google.logging.v2.CmekSettings.newBuilder(cmekSettings_).mergeFrom(value).buildPartial();
+              com.google.logging.v2.CmekSettings.newBuilder(cmekSettings_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           cmekSettings_ = value;
         }
@@ -2045,6 +2332,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
@@ -2067,6 +2356,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
@@ -2078,11 +2369,13 @@ public Builder clearCmekSettings() {
      * .google.logging.v2.CmekSettings cmek_settings = 19;
      */
     public com.google.logging.v2.CmekSettings.Builder getCmekSettingsBuilder() {
-      
+
       onChanged();
       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
@@ -2097,11 +2390,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
@@ -2113,21 +2409,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);
     }
 
@@ -2137,12 +2436,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();
   }
@@ -2151,16 +2450,16 @@ 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 {
-      return new LogBucket(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new LogBucket(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2175,6 +2474,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 82%
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 cf75f5267..a6406eaf8 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 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific 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.
    * For example:
@@ -20,10 +38,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.
    * For example:
@@ -36,89 +57,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
@@ -127,11 +177,14 @@ public interface LogBucketOrBuilder extends
    * 
* * int32 retention_days = 11; + * * @return The retentionDays. */ int getRetentionDays(); /** + * + * *
    * Whether the bucket is locked.
    * The retention period on a locked bucket cannot be changed. Locked buckets
@@ -139,30 +192,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(); /** + * + * *
    * Log entry field paths that are denied access in this bucket.
    * The following fields and their children are eligible: `textPayload`,
@@ -172,11 +238,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.
    * The following fields and their children are eligible: `textPayload`,
@@ -186,10 +254,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.
    * The following fields and their children are eligible: `textPayload`,
@@ -199,11 +270,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.
    * The following fields and their children are eligible: `textPayload`,
@@ -213,13 +287,15 @@ 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); /** + * + * *
    * 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
@@ -229,10 +305,13 @@ public interface LogBucketOrBuilder extends
    * 
* * .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
@@ -242,10 +321,13 @@ public interface LogBucketOrBuilder extends
    * 
* * .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 74%
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 9e35327a2..e7ae8b75e 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 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License 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,16 +47,15 @@ private LogEntry() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LogEntry(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private LogEntry( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -58,233 +75,259 @@ private LogEntry( case 0: done = true; break; - case 18: { - com.google.protobuf.Any.Builder subBuilder = null; - if (payloadCase_ == 2) { - subBuilder = ((com.google.protobuf.Any) payload_).toBuilder(); + case 18: + { + com.google.protobuf.Any.Builder subBuilder = null; + if (payloadCase_ == 2) { + subBuilder = ((com.google.protobuf.Any) payload_).toBuilder(); + } + payload_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.protobuf.Any) payload_); + payload_ = subBuilder.buildPartial(); + } + payloadCase_ = 2; + break; } - payload_ = - input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.protobuf.Any) payload_); - payload_ = subBuilder.buildPartial(); + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + payloadCase_ = 3; + payload_ = s; + break; } - payloadCase_ = 2; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - payloadCase_ = 3; - payload_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - insertId_ = s; - break; - } - case 50: { - com.google.protobuf.Struct.Builder subBuilder = null; - if (payloadCase_ == 6) { - subBuilder = ((com.google.protobuf.Struct) payload_).toBuilder(); - } - payload_ = - input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.protobuf.Struct) payload_); - payload_ = subBuilder.buildPartial(); + insertId_ = s; + break; } - payloadCase_ = 6; - break; - } - case 58: { - com.google.logging.type.HttpRequest.Builder subBuilder = null; - if (httpRequest_ != null) { - subBuilder = httpRequest_.toBuilder(); + case 50: + { + com.google.protobuf.Struct.Builder subBuilder = null; + if (payloadCase_ == 6) { + subBuilder = ((com.google.protobuf.Struct) payload_).toBuilder(); + } + payload_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.protobuf.Struct) payload_); + payload_ = subBuilder.buildPartial(); + } + payloadCase_ = 6; + break; } - httpRequest_ = input.readMessage(com.google.logging.type.HttpRequest.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(httpRequest_); - httpRequest_ = subBuilder.buildPartial(); + case 58: + { + com.google.logging.type.HttpRequest.Builder subBuilder = null; + if (httpRequest_ != null) { + subBuilder = httpRequest_.toBuilder(); + } + httpRequest_ = + input.readMessage( + com.google.logging.type.HttpRequest.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(httpRequest_); + httpRequest_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 66: { - com.google.api.MonitoredResource.Builder subBuilder = null; - if (resource_ != null) { - subBuilder = resource_.toBuilder(); + case 66: + { + com.google.api.MonitoredResource.Builder subBuilder = null; + if (resource_ != null) { + subBuilder = resource_.toBuilder(); + } + resource_ = + input.readMessage(com.google.api.MonitoredResource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = subBuilder.buildPartial(); + } + + break; } - resource_ = input.readMessage(com.google.api.MonitoredResource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resource_); - resource_ = subBuilder.buildPartial(); + case 74: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (timestamp_ != null) { + subBuilder = timestamp_.toBuilder(); + } + timestamp_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timestamp_); + timestamp_ = subBuilder.buildPartial(); + } + + break; } + case 80: + { + int rawValue = input.readEnum(); - break; - } - case 74: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (timestamp_ != null) { - subBuilder = timestamp_.toBuilder(); - } - timestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(timestamp_); - timestamp_ = subBuilder.buildPartial(); + severity_ = rawValue; + break; } - - break; - } - case 80: { - int rawValue = input.readEnum(); - - severity_ = rawValue; - break; - } - case 90: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + case 90: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - case 98: { - java.lang.String s = input.readStringRequireUtf8(); + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); - logName_ = s; - break; - } - case 122: { - com.google.logging.v2.LogEntryOperation.Builder subBuilder = null; - if (operation_ != null) { - subBuilder = operation_.toBuilder(); + logName_ = s; + break; } - operation_ = input.readMessage(com.google.logging.v2.LogEntryOperation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(operation_); - operation_ = subBuilder.buildPartial(); + case 122: + { + com.google.logging.v2.LogEntryOperation.Builder subBuilder = null; + if (operation_ != null) { + subBuilder = operation_.toBuilder(); + } + operation_ = + input.readMessage( + com.google.logging.v2.LogEntryOperation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(operation_); + operation_ = subBuilder.buildPartial(); + } + + break; } + case 178: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 178: { - java.lang.String s = input.readStringRequireUtf8(); - - trace_ = s; - break; - } - case 186: { - com.google.logging.v2.LogEntrySourceLocation.Builder subBuilder = null; - if (sourceLocation_ != null) { - subBuilder = sourceLocation_.toBuilder(); - } - sourceLocation_ = input.readMessage(com.google.logging.v2.LogEntrySourceLocation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sourceLocation_); - sourceLocation_ = subBuilder.buildPartial(); + trace_ = s; + break; } - - break; - } - case 194: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (receiveTimestamp_ != null) { - subBuilder = receiveTimestamp_.toBuilder(); + case 186: + { + com.google.logging.v2.LogEntrySourceLocation.Builder subBuilder = null; + if (sourceLocation_ != null) { + subBuilder = sourceLocation_.toBuilder(); + } + sourceLocation_ = + input.readMessage( + com.google.logging.v2.LogEntrySourceLocation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sourceLocation_); + sourceLocation_ = subBuilder.buildPartial(); + } + + break; } - receiveTimestamp_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(receiveTimestamp_); - receiveTimestamp_ = subBuilder.buildPartial(); + case 194: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (receiveTimestamp_ != null) { + subBuilder = receiveTimestamp_.toBuilder(); + } + receiveTimestamp_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(receiveTimestamp_); + receiveTimestamp_ = subBuilder.buildPartial(); + } + + break; } + case 218: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 218: { - java.lang.String s = input.readStringRequireUtf8(); - - spanId_ = s; - break; - } - case 240: { - - traceSampled_ = input.readBool(); - break; - } - case 282: { - com.google.logging.v2.LogSplit.Builder subBuilder = null; - if (split_ != null) { - subBuilder = split_.toBuilder(); + spanId_ = s; + break; } - split_ = input.readMessage(com.google.logging.v2.LogSplit.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(split_); - split_ = subBuilder.buildPartial(); + case 240: + { + traceSampled_ = input.readBool(); + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 282: + { + com.google.logging.v2.LogSplit.Builder subBuilder = null; + if (split_ != null) { + subBuilder = split_.toBuilder(); + } + split_ = + input.readMessage(com.google.logging.v2.LogSplit.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(split_); + split_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; 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; } @@ -300,27 +343,33 @@ 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; private volatile java.lang.Object logName_; /** + * + * *
    * Required. The resource name of the log to which this log entry belongs:
    *     "projects/[PROJECT_ID]/logs/[LOG_ID]"
@@ -343,6 +392,7 @@ public int getNumber() {
    * 
* * string log_name = 12 [(.google.api.field_behavior) = REQUIRED]; + * * @return The logName. */ @java.lang.Override @@ -351,14 +401,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:
    *     "projects/[PROJECT_ID]/logs/[LOG_ID]"
@@ -381,16 +432,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 { @@ -401,6 +451,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.
    * Example: a log entry that reports a database error would be associated with
@@ -408,7 +460,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 @@ -416,6 +470,8 @@ public boolean hasResource() { return resource_ != null; } /** + * + * *
    * Required. The monitored resource that produced this log entry.
    * Example: a log entry that reports a database error would be associated with
@@ -423,7 +479,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 @@ -431,6 +489,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.
    * Example: a log entry that reports a database error would be associated with
@@ -438,7 +498,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() { @@ -447,6 +508,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.
@@ -457,6 +520,7 @@ public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() {
    * 
* * .google.protobuf.Any proto_payload = 2; + * * @return Whether the protoPayload field is set. */ @java.lang.Override @@ -464,6 +528,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.
@@ -474,16 +540,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.
@@ -498,29 +567,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() { @@ -531,8 +606,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; @@ -541,23 +615,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; } @@ -569,12 +644,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 @@ -582,22 +660,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.
@@ -608,7 +691,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();
   }
@@ -616,6 +699,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 period.
@@ -629,7 +714,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 @@ -637,6 +724,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 period.
@@ -650,7 +739,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 @@ -658,6 +749,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 period.
@@ -671,7 +764,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() { @@ -681,11 +775,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 @@ -693,23 +792,34 @@ 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() { @@ -719,33 +829,46 @@ public com.google.protobuf.TimestampOrBuilder getReceiveTimestampOrBuilder() { public static final int SEVERITY_FIELD_NUMBER = 10; private int 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 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() { + @java.lang.Override + public com.google.logging.type.LogSeverity getSeverity() { @SuppressWarnings("deprecation") - com.google.logging.type.LogSeverity result = com.google.logging.type.LogSeverity.valueOf(severity_); + com.google.logging.type.LogSeverity result = + com.google.logging.type.LogSeverity.valueOf(severity_); return result == null ? com.google.logging.type.LogSeverity.UNRECOGNIZED : result; } public static final int INSERT_ID_FIELD_NUMBER = 4; 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
@@ -759,6 +882,7 @@ public com.google.protobuf.TimestampOrBuilder getReceiveTimestampOrBuilder() {
    * 
* * string insert_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The insertId. */ @java.lang.Override @@ -767,14 +891,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
@@ -788,16 +913,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 { @@ -808,12 +932,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 @@ -821,25 +950,36 @@ 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() { @@ -847,24 +987,23 @@ public com.google.logging.type.HttpRequestOrBuilder getHttpRequestOrBuilder() { } 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, + ""); } - 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_; } @@ -873,6 +1012,8 @@ 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.
@@ -889,22 +1030,22 @@ 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 java.lang.NullPointerException(); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     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.
@@ -922,11 +1063,12 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
   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.
@@ -944,16 +1086,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    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.
@@ -971,12 +1113,11 @@ public 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 java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -986,12 +1127,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 @@ -999,25 +1145,36 @@ 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() { @@ -1027,6 +1184,8 @@ public com.google.logging.v2.LogEntryOperationOrBuilder getOperationOrBuilder() public static final int TRACE_FIELD_NUMBER = 22; private volatile java.lang.Object trace_; /** + * + * *
    * Optional. Resource name of the trace associated with the log entry, if any. If it
    * contains a relative resource name, the name is assumed to be relative to
@@ -1035,6 +1194,7 @@ public com.google.logging.v2.LogEntryOperationOrBuilder getOperationOrBuilder()
    * 
* * string trace = 22 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The trace. */ @java.lang.Override @@ -1043,14 +1203,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. Resource name of the trace associated with the log entry, if any. If it
    * contains a relative resource name, the name is assumed to be relative to
@@ -1059,16 +1220,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 { @@ -1079,6 +1239,8 @@ public java.lang.String getTrace() { public static final int SPAN_ID_FIELD_NUMBER = 27; private volatile java.lang.Object spanId_; /** + * + * *
    * Optional. The span ID within the trace associated with the log entry.
    * For Trace spans, this is the same format that the Trace API v2 uses: a
@@ -1087,6 +1249,7 @@ public java.lang.String getTrace() {
    * 
* * string span_id = 27 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The spanId. */ @java.lang.Override @@ -1095,14 +1258,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 span ID within the trace associated with the log entry.
    * For Trace spans, this is the same format that the Trace API v2 uses: a
@@ -1111,16 +1275,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 { @@ -1131,6 +1294,8 @@ public java.lang.String getSpanId() { public static final int TRACE_SAMPLED_FIELD_NUMBER = 30; private boolean traceSampled_; /** + * + * *
    * Optional. The sampling decision of the trace associated with the log entry.
    * True means that the trace resource name in the `trace` field was sampled
@@ -1141,6 +1306,7 @@ public java.lang.String getSpanId() {
    * 
* * bool trace_sampled = 30 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The traceSampled. */ @java.lang.Override @@ -1151,11 +1317,16 @@ 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 @@ -1163,23 +1334,34 @@ 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() { @@ -1189,12 +1371,15 @@ public com.google.logging.v2.LogEntrySourceLocationOrBuilder getSourceLocationOr 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 @@ -1202,12 +1387,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 @@ -1215,6 +1403,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.
@@ -1228,6 +1418,7 @@ public com.google.logging.v2.LogSplitOrBuilder getSplitOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1239,8 +1430,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public 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_);
     }
@@ -1265,12 +1455,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_);
     }
@@ -1305,8 +1491,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_);
@@ -1315,63 +1502,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -1381,74 +1560,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:
@@ -1499,8 +1662,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();
@@ -1530,138 +1692,143 @@ 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); } @@ -1671,16 +1838,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1745,9 +1911,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 @@ -1837,38 +2003,39 @@ public com.google.logging.v2.LogEntry 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.LogEntry) { - return mergeFrom((com.google.logging.v2.LogEntry)other); + return mergeFrom((com.google.logging.v2.LogEntry) other); } else { super.mergeFrom(other); return this; @@ -1900,8 +2067,7 @@ public Builder mergeFrom(com.google.logging.v2.LogEntry other) { if (other.hasHttpRequest()) { mergeHttpRequest(other.getHttpRequest()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (other.hasOperation()) { mergeOperation(other.getOperation()); } @@ -1923,23 +2089,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.unknownFields); onChanged(); @@ -1969,12 +2139,12 @@ public Builder mergeFrom( } 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() { @@ -1988,6 +2158,8 @@ public Builder clearPayload() { private java.lang.Object logName_ = ""; /** + * + * *
      * Required. The resource name of the log to which this log entry belongs:
      *     "projects/[PROJECT_ID]/logs/[LOG_ID]"
@@ -2010,13 +2182,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; @@ -2025,6 +2197,8 @@ public java.lang.String getLogName() { } } /** + * + * *
      * Required. The resource name of the log to which this log entry belongs:
      *     "projects/[PROJECT_ID]/logs/[LOG_ID]"
@@ -2047,15 +2221,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 { @@ -2063,6 +2236,8 @@ public java.lang.String getLogName() { } } /** + * + * *
      * Required. The resource name of the log to which this log entry belongs:
      *     "projects/[PROJECT_ID]/logs/[LOG_ID]"
@@ -2085,20 +2260,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) { + public Builder setLogName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + logName_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the log to which this log entry belongs:
      *     "projects/[PROJECT_ID]/logs/[LOG_ID]"
@@ -2121,15 +2298,18 @@ public Builder setLogName(
      * 
* * string log_name = 12 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearLogName() { - + logName_ = getDefaultInstance().getLogName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the log to which this log entry belongs:
      *     "projects/[PROJECT_ID]/logs/[LOG_ID]"
@@ -2152,16 +2332,16 @@ 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) { + public Builder setLogNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + logName_ = value; onChanged(); return this; @@ -2169,8 +2349,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.
      * Example: a log entry that reports a database error would be associated with
@@ -2178,13 +2363,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 resourceBuilder_ != null || resource_ != null; } /** + * + * *
      * Required. The monitored resource that produced this log entry.
      * Example: a log entry that reports a database error would be associated with
@@ -2192,17 +2381,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.
      * Example: a log entry that reports a database error would be associated with
@@ -2210,7 +2405,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) { @@ -2226,6 +2422,8 @@ public Builder setResource(com.google.api.MonitoredResource value) { return this; } /** + * + * *
      * Required. The monitored resource that produced this log entry.
      * Example: a log entry that reports a database error would be associated with
@@ -2233,10 +2431,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(); onChanged(); @@ -2247,6 +2445,8 @@ public Builder setResource( return this; } /** + * + * *
      * Required. The monitored resource that produced this log entry.
      * Example: a log entry that reports a database error would be associated with
@@ -2254,13 +2454,16 @@ 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 (resource_ != null) { resource_ = - com.google.api.MonitoredResource.newBuilder(resource_).mergeFrom(value).buildPartial(); + com.google.api.MonitoredResource.newBuilder(resource_) + .mergeFrom(value) + .buildPartial(); } else { resource_ = value; } @@ -2272,6 +2475,8 @@ public Builder mergeResource(com.google.api.MonitoredResource value) { return this; } /** + * + * *
      * Required. The monitored resource that produced this log entry.
      * Example: a log entry that reports a database error would be associated with
@@ -2279,7 +2484,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() { if (resourceBuilder_ == null) { @@ -2293,6 +2499,8 @@ public Builder clearResource() { return this; } /** + * + * *
      * Required. The monitored resource that produced this log entry.
      * Example: a log entry that reports a database error would be associated with
@@ -2300,14 +2508,17 @@ 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() { - + onChanged(); return getResourceFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The monitored resource that produced this log entry.
      * Example: a log entry that reports a database error would be associated with
@@ -2315,17 +2526,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.
      * Example: a log entry that reports a database error would be associated with
@@ -2333,25 +2548,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.
@@ -2362,6 +2586,7 @@ public com.google.api.MonitoredResourceOrBuilder getResourceOrBuilder() {
      * 
* * .google.protobuf.Any proto_payload = 2; + * * @return Whether the protoPayload field is set. */ @java.lang.Override @@ -2369,6 +2594,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.
@@ -2379,6 +2606,7 @@ public boolean hasProtoPayload() {
      * 
* * .google.protobuf.Any proto_payload = 2; + * * @return The protoPayload. */ @java.lang.Override @@ -2396,6 +2624,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.
@@ -2421,6 +2651,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.
@@ -2432,8 +2664,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();
@@ -2444,6 +2675,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.
@@ -2457,10 +2690,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;
         }
@@ -2475,6 +2709,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.
@@ -2503,6 +2739,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.
@@ -2518,6 +2756,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.
@@ -2541,6 +2781,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.
@@ -2553,30 +2795,37 @@ 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;
-      onChanged();;
+      onChanged();
+      ;
       return protoPayloadBuilder_;
     }
 
     /**
+     *
+     *
      * 
      * 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 @@ -2584,11 +2833,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 @@ -2598,8 +2850,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; @@ -2610,24 +2861,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; } @@ -2637,30 +2889,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) { + public Builder setTextPayload(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - payloadCase_ = 3; + 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() { @@ -2672,20 +2929,22 @@ 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) { + public Builder setTextPayloadBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); payloadCase_ = 3; payload_ = value; onChanged(); @@ -2693,14 +2952,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 @@ -2708,12 +2973,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 @@ -2731,6 +2999,8 @@ public com.google.protobuf.Struct getJsonPayload() { } } /** + * + * *
      * The log entry payload, represented as a structure that is
      * expressed as a JSON object.
@@ -2752,6 +3022,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.
@@ -2759,8 +3031,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();
@@ -2771,6 +3042,8 @@ public Builder setJsonPayload(
       return this;
     }
     /**
+     *
+     *
      * 
      * The log entry payload, represented as a structure that is
      * expressed as a JSON object.
@@ -2780,10 +3053,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;
         }
@@ -2798,6 +3072,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.
@@ -2822,6 +3098,8 @@ public Builder clearJsonPayload() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The log entry payload, represented as a structure that is
      * expressed as a JSON object.
@@ -2833,6 +3111,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.
@@ -2852,6 +3132,8 @@ public com.google.protobuf.StructOrBuilder getJsonPayloadOrBuilder() {
       }
     }
     /**
+     *
+     *
      * 
      * The log entry payload, represented as a structure that is
      * expressed as a JSON object.
@@ -2860,28 +3142,37 @@ 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;
-      onChanged();;
+      onChanged();
+      ;
       return jsonPayloadBuilder_;
     }
 
     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 period.
@@ -2895,13 +3186,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 timestampBuilder_ != null || 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 period.
@@ -2915,7 +3210,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() { @@ -2926,6 +3223,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 period.
@@ -2939,7 +3238,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) { @@ -2955,6 +3255,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 period.
@@ -2968,10 +3270,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(); onChanged(); @@ -2982,6 +3284,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 period.
@@ -2995,13 +3299,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 (timestamp_ != null) { timestamp_ = - com.google.protobuf.Timestamp.newBuilder(timestamp_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(timestamp_).mergeFrom(value).buildPartial(); } else { timestamp_ = value; } @@ -3013,6 +3318,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 period.
@@ -3026,7 +3333,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() { if (timestampBuilder_ == null) { @@ -3040,6 +3348,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 period.
@@ -3053,14 +3363,17 @@ 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() { - + onChanged(); 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 period.
@@ -3074,17 +3387,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 period.
@@ -3098,17 +3413,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_; @@ -3116,39 +3435,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 receiveTimestampBuilder_ != null || 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. */ 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) { @@ -3164,14 +3502,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(); onChanged(); @@ -3182,17 +3523,23 @@ 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 (receiveTimestamp_ != null) { receiveTimestamp_ = - com.google.protobuf.Timestamp.newBuilder(receiveTimestamp_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(receiveTimestamp_) + .mergeFrom(value) + .buildPartial(); } else { receiveTimestamp_ = value; } @@ -3204,11 +3551,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() { if (receiveTimestampBuilder_ == null) { @@ -3222,48 +3573,64 @@ 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() { - + onChanged(); 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_; @@ -3271,51 +3638,73 @@ 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. */ public Builder setSeverityValue(int value) { - + severity_ = value; onChanged(); 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() { @SuppressWarnings("deprecation") - com.google.logging.type.LogSeverity result = com.google.logging.type.LogSeverity.valueOf(severity_); + com.google.logging.type.LogSeverity result = + com.google.logging.type.LogSeverity.valueOf(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. */ @@ -3323,21 +3712,26 @@ public Builder setSeverity(com.google.logging.type.LogSeverity value) { if (value == null) { throw new NullPointerException(); } - + severity_ = value.getNumber(); onChanged(); 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() { - + severity_ = 0; onChanged(); return this; @@ -3345,6 +3739,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
@@ -3358,13 +3754,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; @@ -3373,6 +3769,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
@@ -3386,15 +3784,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 { @@ -3402,6 +3799,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
@@ -3415,20 +3814,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) { + public Builder setInsertId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + insertId_ = value; 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
@@ -3442,15 +3843,18 @@ public Builder setInsertId(
      * 
* * string insert_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearInsertId() { - + insertId_ = getDefaultInstance().getInsertId(); 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
@@ -3464,16 +3868,16 @@ 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) { + public Builder setInsertIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + insertId_ = value; onChanged(); return this; @@ -3481,42 +3885,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 httpRequestBuilder_ != null || 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. */ 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) { @@ -3532,15 +3955,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(); onChanged(); @@ -3551,18 +3977,24 @@ 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 (httpRequest_ != null) { httpRequest_ = - com.google.logging.type.HttpRequest.newBuilder(httpRequest_).mergeFrom(value).buildPartial(); + com.google.logging.type.HttpRequest.newBuilder(httpRequest_) + .mergeFrom(value) + .buildPartial(); } else { httpRequest_ = value; } @@ -3574,12 +4006,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() { if (httpRequestBuilder_ == null) { @@ -3593,72 +4029,87 @@ 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() { - + onChanged(); 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() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; 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(); @@ -3670,6 +4121,8 @@ 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.
@@ -3686,22 +4139,22 @@ 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 java.lang.NullPointerException(); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       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.
@@ -3719,11 +4172,12 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
     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.
@@ -3741,16 +4195,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      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.
@@ -3768,12 +4223,11 @@ public 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 java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -3781,11 +4235,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      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.
@@ -3802,23 +4257,21 @@ 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 java.lang.NullPointerException(); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      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() {
       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.
@@ -3835,16 +4288,19 @@ 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 java.lang.NullPointerException(); }
-      if (value == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      if (value == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       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.
@@ -3861,52 +4317,68 @@ 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);
       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 operationBuilder_ != null || 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. */ 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) { @@ -3922,15 +4394,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(); onChanged(); @@ -3941,18 +4416,24 @@ 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 (operation_ != null) { operation_ = - com.google.logging.v2.LogEntryOperation.newBuilder(operation_).mergeFrom(value).buildPartial(); + com.google.logging.v2.LogEntryOperation.newBuilder(operation_) + .mergeFrom(value) + .buildPartial(); } else { operation_ = value; } @@ -3964,12 +4445,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() { if (operationBuilder_ == null) { @@ -3983,51 +4468,67 @@ 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() { - + onChanged(); 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_; @@ -4035,6 +4536,8 @@ public com.google.logging.v2.LogEntryOperationOrBuilder getOperationOrBuilder() private java.lang.Object trace_ = ""; /** + * + * *
      * Optional. Resource name of the trace associated with the log entry, if any. If it
      * contains a relative resource name, the name is assumed to be relative to
@@ -4043,13 +4546,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; @@ -4058,6 +4561,8 @@ public java.lang.String getTrace() { } } /** + * + * *
      * Optional. Resource name of the trace associated with the log entry, if any. If it
      * contains a relative resource name, the name is assumed to be relative to
@@ -4066,15 +4571,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 { @@ -4082,6 +4586,8 @@ public java.lang.String getTrace() { } } /** + * + * *
      * Optional. Resource name of the trace associated with the log entry, if any. If it
      * contains a relative resource name, the name is assumed to be relative to
@@ -4090,20 +4596,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) { + public Builder setTrace(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + trace_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Resource name of the trace associated with the log entry, if any. If it
      * contains a relative resource name, the name is assumed to be relative to
@@ -4112,15 +4620,18 @@ public Builder setTrace(
      * 
* * string trace = 22 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearTrace() { - + trace_ = getDefaultInstance().getTrace(); onChanged(); return this; } /** + * + * *
      * Optional. Resource name of the trace associated with the log entry, if any. If it
      * contains a relative resource name, the name is assumed to be relative to
@@ -4129,16 +4640,16 @@ 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) { + public Builder setTraceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + trace_ = value; onChanged(); return this; @@ -4146,6 +4657,8 @@ public Builder setTraceBytes( private java.lang.Object spanId_ = ""; /** + * + * *
      * Optional. The span ID within the trace associated with the log entry.
      * For Trace spans, this is the same format that the Trace API v2 uses: a
@@ -4154,13 +4667,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; @@ -4169,6 +4682,8 @@ public java.lang.String getSpanId() { } } /** + * + * *
      * Optional. The span ID within the trace associated with the log entry.
      * For Trace spans, this is the same format that the Trace API v2 uses: a
@@ -4177,15 +4692,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 { @@ -4193,6 +4707,8 @@ public java.lang.String getSpanId() { } } /** + * + * *
      * Optional. The span ID within the trace associated with the log entry.
      * For Trace spans, this is the same format that the Trace API v2 uses: a
@@ -4201,20 +4717,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) { + public Builder setSpanId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + spanId_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The span ID within the trace associated with the log entry.
      * For Trace spans, this is the same format that the Trace API v2 uses: a
@@ -4223,15 +4741,18 @@ public Builder setSpanId(
      * 
* * string span_id = 27 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearSpanId() { - + spanId_ = getDefaultInstance().getSpanId(); onChanged(); return this; } /** + * + * *
      * Optional. The span ID within the trace associated with the log entry.
      * For Trace spans, this is the same format that the Trace API v2 uses: a
@@ -4240,23 +4761,25 @@ 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) { + public Builder setSpanIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + spanId_ = value; onChanged(); return this; } - private boolean traceSampled_ ; + private boolean traceSampled_; /** + * + * *
      * Optional. The sampling decision of the trace associated with the log entry.
      * True means that the trace resource name in the `trace` field was sampled
@@ -4267,6 +4790,7 @@ public Builder setSpanIdBytes(
      * 
* * bool trace_sampled = 30 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The traceSampled. */ @java.lang.Override @@ -4274,6 +4798,8 @@ public boolean getTraceSampled() { return traceSampled_; } /** + * + * *
      * Optional. The sampling decision of the trace associated with the log entry.
      * True means that the trace resource name in the `trace` field was sampled
@@ -4284,16 +4810,19 @@ public boolean getTraceSampled() {
      * 
* * bool trace_sampled = 30 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The traceSampled to set. * @return This builder for chaining. */ public Builder setTraceSampled(boolean value) { - + traceSampled_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The sampling decision of the trace associated with the log entry.
      * True means that the trace resource name in the `trace` field was sampled
@@ -4304,10 +4833,11 @@ public Builder setTraceSampled(boolean value) {
      * 
* * bool trace_sampled = 30 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearTraceSampled() { - + traceSampled_ = false; onChanged(); return this; @@ -4315,39 +4845,58 @@ 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 sourceLocationBuilder_ != null || 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. */ 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) { @@ -4363,11 +4912,15 @@ 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) { @@ -4381,17 +4934,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 (sourceLocation_ != null) { sourceLocation_ = - com.google.logging.v2.LogEntrySourceLocation.newBuilder(sourceLocation_).mergeFrom(value).buildPartial(); + com.google.logging.v2.LogEntrySourceLocation.newBuilder(sourceLocation_) + .mergeFrom(value) + .buildPartial(); } else { sourceLocation_ = value; } @@ -4403,11 +4962,15 @@ 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() { if (sourceLocationBuilder_ == null) { @@ -4421,48 +4984,64 @@ 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() { - + onChanged(); 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_; @@ -4470,26 +5049,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 splitBuilder_ != null || 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]; + * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The split. */ public com.google.logging.v2.LogSplit getSplit() { @@ -4500,12 +5090,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) { @@ -4521,15 +5114,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(); onChanged(); @@ -4540,18 +5135,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 (split_ != null) { split_ = - com.google.logging.v2.LogSplit.newBuilder(split_).mergeFrom(value).buildPartial(); + com.google.logging.v2.LogSplit.newBuilder(split_).mergeFrom(value).buildPartial(); } else { split_ = value; } @@ -4563,12 +5161,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() { if (splitBuilder_ == null) { @@ -4582,58 +5183,69 @@ 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() { - + onChanged(); 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); } @@ -4643,12 +5255,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(); } @@ -4657,16 +5269,16 @@ 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 { - return new LogEntry(input, extensionRegistry); - } - }; + 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 { + return new LogEntry(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4681,6 +5293,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 74% 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 6c72fe3e8..54252bcd4 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,16 +45,15 @@ private LogEntryOperation() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LogEntryOperation();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private LogEntryOperation(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,69 +72,76 @@ private LogEntryOperation(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            id_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            producer_ = s;
-            break;
-          }
-          case 24: {
-
-            first_ = input.readBool();
-            break;
-          }
-          case 32: {
+              id_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            last_ = input.readBool();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              producer_ = s;
+              break;
+            }
+          case 24:
+            {
+              first_ = input.readBool();
+              break;
+            }
+          case 32:
+            {
+              last_ = input.readBool();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  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;
   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 @@ -126,30 +150,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 { @@ -160,6 +184,8 @@ public java.lang.String getId() { public static final int PRODUCER_FIELD_NUMBER = 2; private volatile java.lang.Object producer_; /** + * + * *
    * Optional. An arbitrary producer identifier. The combination of `id` and
    * `producer` must be globally unique. Examples for `producer`:
@@ -167,6 +193,7 @@ public java.lang.String getId() {
    * 
* * string producer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The producer. */ @java.lang.Override @@ -175,14 +202,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`:
@@ -190,16 +218,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 { @@ -210,11 +237,14 @@ public java.lang.String getProducer() { public static final int FIRST_FIELD_NUMBER = 3; 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 @@ -225,11 +255,14 @@ public boolean getFirst() { public static final int LAST_FIELD_NUMBER = 4; 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 @@ -238,6 +271,7 @@ public boolean getLast() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -249,8 +283,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -279,12 +312,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -294,21 +325,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -325,107 +352,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) + unknownFields.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.
@@ -433,21 +465,23 @@ 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()
@@ -455,16 +489,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -480,9 +513,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
@@ -501,7 +534,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);
+      com.google.logging.v2.LogEntryOperation result =
+          new com.google.logging.v2.LogEntryOperation(this);
       result.id_ = id_;
       result.producer_ = producer_;
       result.first_ = first_;
@@ -514,38 +548,39 @@ public com.google.logging.v2.LogEntryOperation 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.LogEntryOperation) {
-        return mergeFrom((com.google.logging.v2.LogEntryOperation)other);
+        return mergeFrom((com.google.logging.v2.LogEntryOperation) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -599,19 +634,21 @@ public Builder mergeFrom(
 
     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; @@ -620,21 +657,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 { @@ -642,57 +680,64 @@ 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) { + public Builder setId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + id_ = value; 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() { - + id_ = getDefaultInstance().getId(); 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]; + * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { + public Builder setIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; onChanged(); return this; @@ -700,6 +745,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`:
@@ -707,13 +754,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; @@ -722,6 +769,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,15 +778,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 { @@ -745,6 +793,8 @@ public java.lang.String getProducer() { } } /** + * + * *
      * Optional. An arbitrary producer identifier. The combination of `id` and
      * `producer` must be globally unique. Examples for `producer`:
@@ -752,20 +802,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) { + public Builder setProducer(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + producer_ = value; onChanged(); return this; } /** + * + * *
      * Optional. An arbitrary producer identifier. The combination of `id` and
      * `producer` must be globally unique. Examples for `producer`:
@@ -773,15 +825,18 @@ public Builder setProducer(
      * 
* * string producer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearProducer() { - + producer_ = getDefaultInstance().getProducer(); onChanged(); return this; } /** + * + * *
      * Optional. An arbitrary producer identifier. The combination of `id` and
      * `producer` must be globally unique. Examples for `producer`:
@@ -789,28 +844,31 @@ 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) { + public Builder setProducerBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + producer_ = value; onChanged(); 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 @@ -818,42 +876,51 @@ 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. */ public Builder setFirst(boolean value) { - + first_ = value; onChanged(); 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() { - + first_ = false; onChanged(); 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 @@ -861,37 +928,43 @@ 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. */ public Builder setLast(boolean value) { - + last_ = value; onChanged(); 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() { - + last_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -901,12 +974,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(); } @@ -915,16 +988,16 @@ 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 { - return new LogEntryOperation(input, extensionRegistry); - } - }; + 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 { + return new LogEntryOperation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -939,6 +1012,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..2ed903f6e 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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 85% 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 2404f490d..5c34a6733 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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:
    *     "projects/[PROJECT_ID]/logs/[LOG_ID]"
@@ -30,10 +48,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:
    *     "projects/[PROJECT_ID]/logs/[LOG_ID]"
@@ -56,12 +77,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.
    * Example: a log entry that reports a database error would be associated with
@@ -69,11 +92,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.
    * Example: a log entry that reports a database error would be associated with
@@ -81,11 +108,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.
    * Example: a log entry that reports a database error would be associated with
@@ -93,11 +124,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.
@@ -108,10 +142,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.
@@ -122,10 +159,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.
@@ -140,55 +180,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.
@@ -199,6 +255,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 period.
@@ -212,11 +270,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 period.
@@ -230,11 +292,15 @@ public interface LogEntryOrBuilder extends
    * those time boundaries aren't ingested by Logging.
    * 
* - * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp timestamp = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return 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 period.
@@ -248,57 +314,82 @@ 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
@@ -312,10 +403,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
@@ -329,42 +423,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.
@@ -383,6 +493,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.
@@ -399,15 +511,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.
@@ -424,9 +534,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.
@@ -443,11 +554,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
    */
-
-  java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue);
+  java.lang.String getLabelsOrDefault(java.lang.String key, 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.
@@ -464,41 +574,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. Resource name of the trace associated with the log entry, if any. If it
    * contains a relative resource name, the name is assumed to be relative to
@@ -507,10 +631,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string trace = 22 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The trace. */ java.lang.String getTrace(); /** + * + * *
    * Optional. Resource name of the trace associated with the log entry, if any. If it
    * contains a relative resource name, the name is assumed to be relative to
@@ -519,12 +646,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 span ID within the trace associated with the log entry.
    * For Trace spans, this is the same format that the Trace API v2 uses: a
@@ -533,10 +662,13 @@ java.lang.String getLabelsOrThrow(
    * 
* * string span_id = 27 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The spanId. */ java.lang.String getSpanId(); /** + * + * *
    * Optional. The span ID within the trace associated with the log entry.
    * For Trace spans, this is the same format that the Trace API v2 uses: a
@@ -545,12 +677,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.
    * True means that the trace resource name in the `trace` field was sampled
@@ -561,58 +695,81 @@ 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..ad8a1c3ac
--- /dev/null
+++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryProto.java
@@ -0,0 +1,192 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License 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\"\203\010\n\010LogEntry\022\025\n\010log_name\030\014 \001(\tB\003\340A\002\0224\n"
+          + "\010resource\030\010 \001(\0132\035.google.api.MonitoredRe"
+          + "sourceB\003\340A\002\022-\n\rproto_payload\030\002 \001(\0132\024.goo"
+          + "gle.protobuf.AnyH\000\022\026\n\014text_payload\030\003 \001(\t"
+          + "H\000\022/\n\014json_payload\030\006 \001(\0132\027.google.protob"
+          + "uf.StructH\000\0222\n\ttimestamp\030\t \001(\0132\032.google."
+          + "protobuf.TimestampB\003\340A\001\022:\n\021receive_times"
+          + "tamp\030\030 \001(\0132\032.google.protobuf.TimestampB\003"
+          + "\340A\003\0227\n\010severity\030\n \001(\0162 .google.logging.t"
+          + "ype.LogSeverityB\003\340A\001\022\026\n\tinsert_id\030\004 \001(\tB"
+          + "\003\340A\001\022;\n\014http_request\030\007 \001(\0132 .google.logg"
+          + "ing.type.HttpRequestB\003\340A\001\022<\n\006labels\030\013 \003("
+          + "\0132\'.google.logging.v2.LogEntry.LabelsEnt"
+          + "ryB\003\340A\001\022<\n\toperation\030\017 \001(\0132$.google.logg"
+          + "ing.v2.LogEntryOperationB\003\340A\001\022\022\n\005trace\030\026"
+          + " \001(\tB\003\340A\001\022\024\n\007span_id\030\033 \001(\tB\003\340A\001\022\032\n\rtrace"
+          + "_sampled\030\036 \001(\010B\003\340A\001\022G\n\017source_location\030\027"
+          + " \001(\0132).google.logging.v2.LogEntrySourceL"
+          + "ocationB\003\340A\001\022/\n\005split\030# \001(\0132\033.google.log"
+          + "ging.v2.LogSplitB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003"
+          + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\275\001\352A\271\001\n\032log"
+          + "ging.googleapis.com/Log\022\035projects/{proje"
+          + "ct}/logs/{log}\022\'organizations/{organizat"
+          + "ion}/logs/{log}\022\033folders/{folder}/logs/{"
+          + "log}\022,billingAccounts/{billing_account}/"
+          + "logs/{log}\032\010log_nameB\t\n\007payload\"b\n\021LogEn"
+          + "tryOperation\022\017\n\002id\030\001 \001(\tB\003\340A\001\022\025\n\010produce"
+          + "r\030\002 \001(\tB\003\340A\001\022\022\n\005first\030\003 \001(\010B\003\340A\001\022\021\n\004last"
+          + "\030\004 \001(\010B\003\340A\001\"U\n\026LogEntrySourceLocation\022\021\n"
+          + "\004file\030\001 \001(\tB\003\340A\001\022\021\n\004line\030\002 \001(\003B\003\340A\001\022\025\n\010f"
+          + "unction\030\003 \001(\tB\003\340A\001\"<\n\010LogSplit\022\013\n\003uid\030\001 "
+          + "\001(\t\022\r\n\005index\030\002 \001(\005\022\024\n\014total_splits\030\003 \001(\005"
+          + "B\266\001\n\025com.google.logging.v2B\rLogEntryProt"
+          + "oP\001Z8google.golang.org/genproto/googleap"
+          + "is/logging/v2;logging\370\001\001\252\002\027Google.Cloud."
+          + "Logging.V2\312\002\027Google\\Cloud\\Logging\\V2\352\002\032G"
+          + "oogle::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 74%
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 c7fdf6361..cd1a4368f 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 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License 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,16 +45,15 @@ private LogEntrySourceLocation() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LogEntrySourceLocation();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private LogEntrySourceLocation(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,64 +72,71 @@ private LogEntrySourceLocation(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            file_ = s;
-            break;
-          }
-          case 16: {
-
-            line_ = input.readInt64();
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              file_ = s;
+              break;
+            }
+          case 16:
+            {
+              line_ = input.readInt64();
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            function_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              function_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  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;
   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 @@ -121,30 +145,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 { @@ -155,12 +179,15 @@ public java.lang.String getFile() { public static final int LINE_FIELD_NUMBER = 2; 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 @@ -171,6 +198,8 @@ public long getLine() { public static final int FUNCTION_FIELD_NUMBER = 3; 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
@@ -181,6 +210,7 @@ public long getLine() {
    * 
* * string function = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The function. */ @java.lang.Override @@ -189,14 +219,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
@@ -207,16 +238,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 { @@ -225,6 +255,7 @@ public java.lang.String getFunction() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -236,8 +267,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -260,8 +290,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_); @@ -274,19 +303,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -301,8 +328,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) + unknownFields.hashCode(); @@ -310,97 +336,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.
@@ -408,21 +441,23 @@ 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()
@@ -430,16 +465,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -453,9 +487,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
@@ -474,7 +508,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);
+      com.google.logging.v2.LogEntrySourceLocation result =
+          new com.google.logging.v2.LogEntrySourceLocation(this);
       result.file_ = file_;
       result.line_ = line_;
       result.function_ = function_;
@@ -486,38 +521,39 @@ public com.google.logging.v2.LogEntrySourceLocation 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.LogEntrySourceLocation) {
-        return mergeFrom((com.google.logging.v2.LogEntrySourceLocation)other);
+        return mergeFrom((com.google.logging.v2.LogEntrySourceLocation) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -568,19 +604,21 @@ public Builder mergeFrom(
 
     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; @@ -589,21 +627,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 { @@ -611,70 +650,80 @@ 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) { + public Builder setFile(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + file_ = value; 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() { - + file_ = getDefaultInstance().getFile(); 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]; + * * @param value The bytes for file to set. * @return This builder for chaining. */ - public Builder setFileBytes( - com.google.protobuf.ByteString value) { + public Builder setFileBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + file_ = value; onChanged(); 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 @@ -682,32 +731,38 @@ 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. */ public Builder setLine(long value) { - + line_ = value; onChanged(); 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() { - + line_ = 0L; onChanged(); return this; @@ -715,6 +770,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
@@ -725,13 +782,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; @@ -740,6 +797,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
@@ -750,15 +809,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 { @@ -766,6 +824,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
@@ -776,20 +836,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) { + public Builder setFunction(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + function_ = value; 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
@@ -800,15 +862,18 @@ public Builder setFunction(
      * 
* * string function = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFunction() { - + function_ = getDefaultInstance().getFunction(); 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
@@ -819,23 +884,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) { + public Builder setFunctionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + function_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -845,12 +910,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(); } @@ -859,16 +924,16 @@ 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 { - return new LogEntrySourceLocation(input, extensionRegistry); - } - }; + 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 { + return new LogEntrySourceLocation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -883,6 +948,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..e341dc47b 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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 1332b970d..e49344710 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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,16 +49,15 @@ private LogExclusion() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LogExclusion();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private LogExclusion(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -59,90 +76,101 @@ private LogExclusion(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            description_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            filter_ = s;
-            break;
-          }
-          case 32: {
+              description_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            disabled_ = input.readBool();
-            break;
-          }
-          case 42: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (createTime_ != null) {
-              subBuilder = createTime_.toBuilder();
+              filter_ = s;
+              break;
             }
-            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(createTime_);
-              createTime_ = subBuilder.buildPartial();
+          case 32:
+            {
+              disabled_ = input.readBool();
+              break;
             }
-
-            break;
-          }
-          case 50: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (updateTime_ != null) {
-              subBuilder = updateTime_.toBuilder();
+          case 42:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (createTime_ != null) {
+                subBuilder = createTime_.toBuilder();
+              }
+              createTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(createTime_);
+                createTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(updateTime_);
-              updateTime_ = subBuilder.buildPartial();
+          case 50:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (updateTime_ != null) {
+                subBuilder = updateTime_.toBuilder();
+              }
+              updateTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(updateTime_);
+                updateTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  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;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Required. A client-assigned identifier, such as `"load-balancer-exclusion"`.
    * Identifiers are limited to 100 characters and can include only letters,
@@ -151,6 +179,7 @@ private LogExclusion(
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -159,14 +188,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 can include only letters,
@@ -175,16 +205,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 { @@ -195,11 +224,14 @@ public java.lang.String getName() { public static final int DESCRIPTION_FIELD_NUMBER = 2; 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 @@ -208,29 +240,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 { @@ -241,6 +273,8 @@ public java.lang.String getDescription() { public static final int FILTER_FIELD_NUMBER = 3; private volatile java.lang.Object filter_; /** + * + * *
    * Required. An [advanced logs
    * filter](https://cloud.google.com/logging/docs/view/advanced-queries) that
@@ -253,6 +287,7 @@ public java.lang.String getDescription() {
    * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The filter. */ @java.lang.Override @@ -261,14 +296,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
@@ -281,16 +317,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 { @@ -301,6 +336,8 @@ public java.lang.String getFilter() { public static final int DISABLED_FIELD_NUMBER = 4; 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
@@ -309,6 +346,7 @@ public java.lang.String getFilter() {
    * 
* * bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The disabled. */ @java.lang.Override @@ -319,12 +357,16 @@ 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 @@ -332,12 +374,16 @@ 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 @@ -345,12 +391,15 @@ 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() { @@ -360,12 +409,16 @@ 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 @@ -373,12 +426,16 @@ 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 @@ -386,12 +443,15 @@ 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() { @@ -399,6 +459,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -410,8 +471,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -449,16 +509,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -468,30 +525,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -511,8 +562,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(); @@ -526,97 +576,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
@@ -627,21 +683,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.logging.v2.LogExclusion}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.logging.v2.LogExclusion)
       com.google.logging.v2.LogExclusionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogExclusion_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.logging.v2.LoggingConfigProto
+          .internal_static_google_logging_v2_LogExclusion_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogExclusion_fieldAccessorTable
+      return com.google.logging.v2.LoggingConfigProto
+          .internal_static_google_logging_v2_LogExclusion_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.logging.v2.LogExclusion.class, com.google.logging.v2.LogExclusion.Builder.class);
+              com.google.logging.v2.LogExclusion.class,
+              com.google.logging.v2.LogExclusion.Builder.class);
     }
 
     // Construct using com.google.logging.v2.LogExclusion.newBuilder()
@@ -649,16 +707,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -686,9 +743,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
@@ -730,38 +787,39 @@ public com.google.logging.v2.LogExclusion 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.LogExclusion) {
-        return mergeFrom((com.google.logging.v2.LogExclusion)other);
+        return mergeFrom((com.google.logging.v2.LogExclusion) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -822,6 +880,8 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. A client-assigned identifier, such as `"load-balancer-exclusion"`.
      * Identifiers are limited to 100 characters and can include only letters,
@@ -830,13 +890,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; @@ -845,6 +905,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. A client-assigned identifier, such as `"load-balancer-exclusion"`.
      * Identifiers are limited to 100 characters and can include only letters,
@@ -853,15 +915,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 { @@ -869,6 +930,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. A client-assigned identifier, such as `"load-balancer-exclusion"`.
      * Identifiers are limited to 100 characters and can include only letters,
@@ -877,20 +940,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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. A client-assigned identifier, such as `"load-balancer-exclusion"`.
      * Identifiers are limited to 100 characters and can include only letters,
@@ -899,15 +964,18 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. A client-assigned identifier, such as `"load-balancer-exclusion"`.
      * Identifiers are limited to 100 characters and can include only letters,
@@ -916,16 +984,16 @@ 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -933,18 +1001,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; @@ -953,20 +1023,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 { @@ -974,54 +1045,61 @@ 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) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; 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() { - + description_ = getDefaultInstance().getDescription(); onChanged(); 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) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1029,6 +1107,8 @@ public Builder setDescriptionBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries) that
@@ -1041,13 +1121,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; @@ -1056,6 +1136,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries) that
@@ -1068,15 +1150,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 { @@ -1084,6 +1165,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries) that
@@ -1096,20 +1179,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) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries) that
@@ -1122,15 +1207,18 @@ public Builder setFilter(
      * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries) that
@@ -1143,23 +1231,25 @@ 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) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); 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
@@ -1168,6 +1258,7 @@ public Builder setFilterBytes(
      * 
* * bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The disabled. */ @java.lang.Override @@ -1175,6 +1266,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
@@ -1183,16 +1276,19 @@ public boolean getDisabled() {
      * 
* * bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The disabled to set. * @return This builder for chaining. */ public Builder setDisabled(boolean value) { - + disabled_ = value; onChanged(); return this; } /** + * + * *
      * Optional. If set to True, then this exclusion is disabled and it does not
      * exclude any log entries. You can [update an
@@ -1201,10 +1297,11 @@ public Builder setDisabled(boolean value) {
      * 
* * bool disabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDisabled() { - + disabled_ = false; onChanged(); return this; @@ -1212,42 +1309,61 @@ 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 createTimeBuilder_ != null || 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. */ 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) { @@ -1263,15 +1379,18 @@ 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(); onChanged(); @@ -1282,18 +1401,22 @@ 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 (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1305,12 +1428,16 @@ 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() { if (createTimeBuilder_ == null) { @@ -1324,51 +1451,67 @@ 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() { - + onChanged(); 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_; @@ -1376,42 +1519,61 @@ 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 updateTimeBuilder_ != null || 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. */ 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) { @@ -1427,15 +1589,18 @@ 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(); onChanged(); @@ -1446,18 +1611,22 @@ 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 (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1469,12 +1638,16 @@ 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() { if (updateTimeBuilder_ == null) { @@ -1488,58 +1661,74 @@ 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() { - + onChanged(); 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); } @@ -1549,12 +1738,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(); } @@ -1563,16 +1752,16 @@ 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 { - return new LogExclusion(input, extensionRegistry); - } - }; + 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 { + return new LogExclusion(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1587,6 +1776,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 79% 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 634566b8b..d220a9820 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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 can include only letters,
@@ -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 can include only letters,
@@ -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
@@ -66,10 +94,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
@@ -82,12 +113,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
@@ -96,67 +129,90 @@ 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 0bac8ea01..d39bcd395 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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.
@@ -15,15 +32,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_ = "";
@@ -34,16 +52,15 @@ private LogMetric() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LogMetric();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private LogMetric(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -63,160 +80,181 @@ private LogMetric(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            description_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              description_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            filter_ = s;
-            break;
-          }
-          case 32: {
-            int rawValue = input.readEnum();
+              filter_ = s;
+              break;
+            }
+          case 32:
+            {
+              int rawValue = input.readEnum();
 
-            version_ = rawValue;
-            break;
-          }
-          case 42: {
-            com.google.api.MetricDescriptor.Builder subBuilder = null;
-            if (metricDescriptor_ != null) {
-              subBuilder = metricDescriptor_.toBuilder();
+              version_ = rawValue;
+              break;
             }
-            metricDescriptor_ = input.readMessage(com.google.api.MetricDescriptor.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(metricDescriptor_);
-              metricDescriptor_ = subBuilder.buildPartial();
+          case 42:
+            {
+              com.google.api.MetricDescriptor.Builder subBuilder = null;
+              if (metricDescriptor_ != null) {
+                subBuilder = metricDescriptor_.toBuilder();
+              }
+              metricDescriptor_ =
+                  input.readMessage(com.google.api.MetricDescriptor.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(metricDescriptor_);
+                metricDescriptor_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 50:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 50: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            valueExtractor_ = s;
-            break;
-          }
-          case 58: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              labelExtractors_ = com.google.protobuf.MapField.newMapField(
-                  LabelExtractorsDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
+              valueExtractor_ = s;
+              break;
             }
-            com.google.protobuf.MapEntry
-            labelExtractors__ = input.readMessage(
-                LabelExtractorsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            labelExtractors_.getMutableMap().put(
-                labelExtractors__.getKey(), labelExtractors__.getValue());
-            break;
-          }
-          case 66: {
-            com.google.api.Distribution.BucketOptions.Builder subBuilder = null;
-            if (bucketOptions_ != null) {
-              subBuilder = bucketOptions_.toBuilder();
+          case 58:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                labelExtractors_ =
+                    com.google.protobuf.MapField.newMapField(
+                        LabelExtractorsDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000001;
+              }
+              com.google.protobuf.MapEntry labelExtractors__ =
+                  input.readMessage(
+                      LabelExtractorsDefaultEntryHolder.defaultEntry.getParserForType(),
+                      extensionRegistry);
+              labelExtractors_
+                  .getMutableMap()
+                  .put(labelExtractors__.getKey(), labelExtractors__.getValue());
+              break;
             }
-            bucketOptions_ = input.readMessage(com.google.api.Distribution.BucketOptions.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(bucketOptions_);
-              bucketOptions_ = subBuilder.buildPartial();
+          case 66:
+            {
+              com.google.api.Distribution.BucketOptions.Builder subBuilder = null;
+              if (bucketOptions_ != null) {
+                subBuilder = bucketOptions_.toBuilder();
+              }
+              bucketOptions_ =
+                  input.readMessage(
+                      com.google.api.Distribution.BucketOptions.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(bucketOptions_);
+                bucketOptions_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 74: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (createTime_ != null) {
-              subBuilder = createTime_.toBuilder();
+          case 74:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (createTime_ != null) {
+                subBuilder = createTime_.toBuilder();
+              }
+              createTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(createTime_);
+                createTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(createTime_);
-              createTime_ = subBuilder.buildPartial();
+          case 82:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (updateTime_ != null) {
+                subBuilder = updateTime_.toBuilder();
+              }
+              updateTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(updateTime_);
+                updateTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 82: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (updateTime_ != null) {
-              subBuilder = updateTime_.toBuilder();
-            }
-            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(updateTime_);
-              updateTime_ = subBuilder.buildPartial();
+          case 96:
+            {
+              disabled_ = input.readBool();
+              break;
             }
-
-            break;
-          }
-          case 96: {
-
-            disabled_ = input.readBool();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  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.
      * 
@@ -225,6 +263,8 @@ public enum ApiVersion */ V2(0), /** + * + * *
      * Logging API v1.
      * 
@@ -236,6 +276,8 @@ public enum ApiVersion ; /** + * + * *
      * Logging API v2.
      * 
@@ -244,6 +286,8 @@ public enum ApiVersion */ public static final int V2_VALUE = 0; /** + * + * *
      * Logging API v1.
      * 
@@ -252,7 +296,6 @@ public enum ApiVersion */ public static final int V1_VALUE = 1; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -277,48 +320,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; @@ -338,6 +380,8 @@ private ApiVersion(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The client-assigned metric identifier.
    * Examples: `"error_count"`, `"nginx/requests"`.
@@ -353,6 +397,7 @@ private ApiVersion(int value) {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -361,14 +406,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"`.
@@ -384,16 +430,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 { @@ -404,12 +449,15 @@ public java.lang.String getName() { public static final int DESCRIPTION_FIELD_NUMBER = 2; 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 @@ -418,30 +466,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 { @@ -452,6 +500,8 @@ public java.lang.String getDescription() { public static final int FILTER_FIELD_NUMBER = 3; private volatile java.lang.Object filter_; /** + * + * *
    * Required. An [advanced logs
    * filter](https://cloud.google.com/logging/docs/view/advanced_filters) which
@@ -461,6 +511,7 @@ public java.lang.String getDescription() {
    * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The filter. */ @java.lang.Override @@ -469,14 +520,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
@@ -486,16 +538,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 { @@ -506,12 +557,15 @@ public java.lang.String getFilter() { public static final int DISABLED_FIELD_NUMBER = 12; 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 @@ -522,6 +576,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
@@ -542,7 +598,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 @@ -550,6 +609,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
@@ -570,14 +631,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
@@ -598,7 +666,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]; + * */ @java.lang.Override public com.google.api.MetricDescriptorOrBuilder getMetricDescriptorOrBuilder() { @@ -608,6 +678,8 @@ public com.google.api.MetricDescriptorOrBuilder getMetricDescriptorOrBuilder() { public static final int VALUE_EXTRACTOR_FIELD_NUMBER = 6; 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.
@@ -629,6 +701,7 @@ public com.google.api.MetricDescriptorOrBuilder getMetricDescriptorOrBuilder() {
    * 
* * string value_extractor = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The valueExtractor. */ @java.lang.Override @@ -637,14 +710,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.
@@ -666,16 +740,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 { @@ -684,21 +757,22 @@ 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, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labelExtractors_; + 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, + ""); + } + + private com.google.protobuf.MapField labelExtractors_; + private com.google.protobuf.MapField - internalGetLabelExtractors() { + internalGetLabelExtractors() { if (labelExtractors_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelExtractorsDefaultEntryHolder.defaultEntry); @@ -710,6 +784,8 @@ 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.
@@ -725,24 +801,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 java.lang.NullPointerException(); } + public boolean containsLabelExtractors(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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.
@@ -758,14 +835,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.
@@ -781,19 +860,21 @@ 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 getLabelExtractorsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabelExtractors().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + 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.
@@ -809,15 +890,15 @@ public 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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabelExtractors().getMap(); + public java.lang.String getLabelExtractorsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabelExtractors().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -827,13 +908,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 @@ -841,27 +927,38 @@ 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() { @@ -871,12 +968,16 @@ public com.google.api.Distribution.BucketOptionsOrBuilder getBucketOptionsOrBuil 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 @@ -884,12 +985,16 @@ 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 @@ -897,12 +1002,15 @@ 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() { @@ -912,12 +1020,16 @@ 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 @@ -925,12 +1037,16 @@ 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 @@ -938,12 +1054,15 @@ 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() { @@ -953,33 +1072,45 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int VERSION_FIELD_NUMBER = 4; private int 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]; + * * @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]; + * * @return The version. */ - @java.lang.Override @java.lang.Deprecated public com.google.logging.v2.LogMetric.ApiVersion getVersion() { + @java.lang.Override + @java.lang.Deprecated + public com.google.logging.v2.LogMetric.ApiVersion getVersion() { @SuppressWarnings("deprecation") - com.google.logging.v2.LogMetric.ApiVersion result = com.google.logging.v2.LogMetric.ApiVersion.valueOf(version_); + com.google.logging.v2.LogMetric.ApiVersion result = + com.google.logging.v2.LogMetric.ApiVersion.valueOf(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; @@ -991,8 +1122,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -1011,12 +1141,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()); } @@ -1048,41 +1174,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_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1092,44 +1212,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.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 (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 (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 (!unknownFields.equals(other.unknownFields)) return false; @@ -1150,8 +1260,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 (hasMetricDescriptor()) { hash = (37 * hash) + METRIC_DESCRIPTOR_FIELD_NUMBER; hash = (53 * hash) + getMetricDescriptor().hashCode(); @@ -1181,97 +1290,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.
@@ -1283,41 +1398,40 @@ 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);
     }
@@ -1327,16 +1441,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1381,9 +1494,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
@@ -1440,38 +1553,39 @@ public com.google.logging.v2.LogMetric 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.LogMetric) {
-        return mergeFrom((com.google.logging.v2.LogMetric)other);
+        return mergeFrom((com.google.logging.v2.LogMetric) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1502,8 +1616,7 @@ public Builder mergeFrom(com.google.logging.v2.LogMetric other) {
         valueExtractor_ = other.valueExtractor_;
         onChanged();
       }
-      internalGetMutableLabelExtractors().mergeFrom(
-          other.internalGetLabelExtractors());
+      internalGetMutableLabelExtractors().mergeFrom(other.internalGetLabelExtractors());
       if (other.hasBucketOptions()) {
         mergeBucketOptions(other.getBucketOptions());
       }
@@ -1544,10 +1657,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The client-assigned metric identifier.
      * Examples: `"error_count"`, `"nginx/requests"`.
@@ -1563,13 +1679,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; @@ -1578,6 +1694,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The client-assigned metric identifier.
      * Examples: `"error_count"`, `"nginx/requests"`.
@@ -1593,15 +1711,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 { @@ -1609,6 +1726,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The client-assigned metric identifier.
      * Examples: `"error_count"`, `"nginx/requests"`.
@@ -1624,20 +1743,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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The client-assigned metric identifier.
      * Examples: `"error_count"`, `"nginx/requests"`.
@@ -1653,15 +1774,18 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The client-assigned metric identifier.
      * Examples: `"error_count"`, `"nginx/requests"`.
@@ -1677,16 +1801,16 @@ 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1694,19 +1818,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; @@ -1715,21 +1841,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 { @@ -1737,57 +1864,64 @@ 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) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; 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() { - + description_ = getDefaultInstance().getDescription(); 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]; + * * @param value The bytes for description to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -1795,6 +1929,8 @@ public Builder setDescriptionBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced_filters) which
@@ -1804,13 +1940,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; @@ -1819,6 +1955,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced_filters) which
@@ -1828,15 +1966,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 { @@ -1844,6 +1981,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced_filters) which
@@ -1853,20 +1992,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) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced_filters) which
@@ -1876,15 +2017,18 @@ public Builder setFilter(
      * 
* * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Required. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced_filters) which
@@ -1894,29 +2038,32 @@ 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) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); 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 @@ -1924,32 +2071,38 @@ 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. */ public Builder setDisabled(boolean value) { - + disabled_ = value; onChanged(); 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() { - + disabled_ = false; onChanged(); return this; @@ -1957,8 +2110,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
@@ -1979,13 +2137,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 metricDescriptorBuilder_ != null || metricDescriptor_ != null; } /** + * + * *
      * Optional. The metric descriptor associated with the logs-based metric.
      * If unspecified, it uses a default metric descriptor with a DELTA metric
@@ -2006,17 +2169,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
@@ -2037,7 +2207,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) { @@ -2053,6 +2225,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
@@ -2073,10 +2247,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(); onChanged(); @@ -2087,6 +2262,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
@@ -2107,13 +2284,17 @@ 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 (metricDescriptor_ != null) { metricDescriptor_ = - com.google.api.MetricDescriptor.newBuilder(metricDescriptor_).mergeFrom(value).buildPartial(); + com.google.api.MetricDescriptor.newBuilder(metricDescriptor_) + .mergeFrom(value) + .buildPartial(); } else { metricDescriptor_ = value; } @@ -2125,6 +2306,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
@@ -2145,7 +2328,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() { if (metricDescriptorBuilder_ == null) { @@ -2159,6 +2344,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
@@ -2179,14 +2366,18 @@ 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() { - + onChanged(); 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
@@ -2207,17 +2398,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
@@ -2238,17 +2434,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_; @@ -2256,6 +2457,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.
@@ -2277,13 +2480,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; @@ -2292,6 +2495,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.
@@ -2313,15 +2518,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 { @@ -2329,6 +2533,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.
@@ -2350,20 +2556,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) { + public Builder setValueExtractor(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + valueExtractor_ = value; 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.
@@ -2385,15 +2593,18 @@ public Builder setValueExtractor(
      * 
* * string value_extractor = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearValueExtractor() { - + valueExtractor_ = getDefaultInstance().getValueExtractor(); 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.
@@ -2415,37 +2626,40 @@ 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) { + public Builder setValueExtractorBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + valueExtractor_ = value; onChanged(); 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() { + internalGetLabelExtractors() { if (labelExtractors_ == null) { return com.google.protobuf.MapField.emptyMapField( LabelExtractorsDefaultEntryHolder.defaultEntry); } return labelExtractors_; } + private com.google.protobuf.MapField - internalGetMutableLabelExtractors() { - onChanged();; + internalGetMutableLabelExtractors() { + onChanged(); + ; 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(); @@ -2457,6 +2671,8 @@ 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.
@@ -2472,24 +2688,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 java.lang.NullPointerException(); } + public boolean containsLabelExtractors(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } 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.
@@ -2505,14 +2723,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.
@@ -2528,19 +2749,22 @@ 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 getLabelExtractorsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabelExtractors().getMap(); + java.lang.String key, java.lang.String defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + 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.
@@ -2556,15 +2780,16 @@ public 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 java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabelExtractors().getMap(); + public java.lang.String getLabelExtractorsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = internalGetLabelExtractors().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } @@ -2572,11 +2797,12 @@ public java.lang.String getLabelExtractorsOrThrow( } public Builder clearLabelExtractors() { - 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.
@@ -2592,25 +2818,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 java.lang.NullPointerException(); } - internalGetMutableLabelExtractors().getMutableMap() - .remove(key); + public Builder removeLabelExtractors(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + 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() { 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.
@@ -2626,18 +2852,23 @@ 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 java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableLabelExtractors().getMutableMap() - .put(key, value); + public Builder putLabelExtractors(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableLabelExtractors().getMutableMap().put(key, value); 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.
@@ -2653,57 +2884,75 @@ 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); 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 bucketOptionsBuilder_ != null || 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. */ 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) { @@ -2719,13 +2968,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) { @@ -2739,19 +2992,25 @@ 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 (bucketOptions_ != null) { bucketOptions_ = - com.google.api.Distribution.BucketOptions.newBuilder(bucketOptions_).mergeFrom(value).buildPartial(); + com.google.api.Distribution.BucketOptions.newBuilder(bucketOptions_) + .mergeFrom(value) + .buildPartial(); } else { bucketOptions_ = value; } @@ -2763,13 +3022,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() { if (bucketOptionsBuilder_ == null) { @@ -2783,54 +3046,70 @@ 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() { - + onChanged(); 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_; @@ -2838,42 +3117,61 @@ 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 createTimeBuilder_ != null || 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. */ 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) { @@ -2889,15 +3187,18 @@ 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(); onChanged(); @@ -2908,18 +3209,22 @@ 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 (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -2931,12 +3236,16 @@ 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() { if (createTimeBuilder_ == null) { @@ -2950,51 +3259,67 @@ 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() { - + onChanged(); 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_; @@ -3002,42 +3327,61 @@ 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 updateTimeBuilder_ != null || 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. */ 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) { @@ -3053,15 +3397,18 @@ 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(); onChanged(); @@ -3072,18 +3419,22 @@ 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 (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -3095,12 +3446,16 @@ 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() { if (updateTimeBuilder_ == null) { @@ -3114,51 +3469,67 @@ 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() { - + onChanged(); 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_; @@ -3166,85 +3537,107 @@ 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]; + * * @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]; + * * @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; 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]; + * * @return The version. */ @java.lang.Override - @java.lang.Deprecated public com.google.logging.v2.LogMetric.ApiVersion getVersion() { + @java.lang.Deprecated + public com.google.logging.v2.LogMetric.ApiVersion getVersion() { @SuppressWarnings("deprecation") - com.google.logging.v2.LogMetric.ApiVersion result = com.google.logging.v2.LogMetric.ApiVersion.valueOf(version_); + com.google.logging.v2.LogMetric.ApiVersion result = + com.google.logging.v2.LogMetric.ApiVersion.valueOf(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]; + * * @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(); } - + version_ = value.getNumber(); 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]; + * * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearVersion() { - + @java.lang.Deprecated + public Builder clearVersion() { + 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); } @@ -3254,12 +3647,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(); } @@ -3268,16 +3661,16 @@ 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 { - return new LogMetric(input, extensionRegistry); - } - }; + 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 { + return new LogMetric(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3292,6 +3685,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 cf6b91564..6d856942c 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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"`.
@@ -23,10 +41,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"`.
@@ -42,34 +63,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
@@ -79,10 +107,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
@@ -92,23 +123,28 @@ 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. 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
@@ -129,11 +165,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
@@ -154,11 +195,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
@@ -179,11 +225,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.
@@ -205,10 +255,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.
@@ -230,12 +283,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.
@@ -251,10 +306,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.
@@ -270,17 +328,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.
@@ -296,11 +353,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.
@@ -316,13 +375,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.lang.String getLabelExtractorsOrDefault( - java.lang.String key, - java.lang.String defaultValue); + java.lang.String getLabelExtractorsOrDefault(java.lang.String key, 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.
@@ -338,123 +397,166 @@ 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]; + * * @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]; + * * @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 d7d7c028f..018b527d0 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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,16 +53,15 @@ private LogSink() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LogSink();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private LogSink(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -64,115 +81,128 @@ private LogSink(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            destination_ = s;
-            break;
-          }
-          case 42: {
-            java.lang.String s = input.readStringRequireUtf8();
+              name_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            filter_ = s;
-            break;
-          }
-          case 48: {
-            int rawValue = input.readEnum();
+              destination_ = s;
+              break;
+            }
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            outputVersionFormat_ = rawValue;
-            break;
-          }
-          case 66: {
-            java.lang.String s = input.readStringRequireUtf8();
+              filter_ = s;
+              break;
+            }
+          case 48:
+            {
+              int rawValue = input.readEnum();
 
-            writerIdentity_ = s;
-            break;
-          }
-          case 72: {
+              outputVersionFormat_ = rawValue;
+              break;
+            }
+          case 66:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            includeChildren_ = input.readBool();
-            break;
-          }
-          case 98: {
-            com.google.logging.v2.BigQueryOptions.Builder subBuilder = null;
-            if (optionsCase_ == 12) {
-              subBuilder = ((com.google.logging.v2.BigQueryOptions) options_).toBuilder();
+              writerIdentity_ = s;
+              break;
             }
-            options_ =
-                input.readMessage(com.google.logging.v2.BigQueryOptions.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.logging.v2.BigQueryOptions) options_);
-              options_ = subBuilder.buildPartial();
+          case 72:
+            {
+              includeChildren_ = input.readBool();
+              break;
             }
-            optionsCase_ = 12;
-            break;
-          }
-          case 106: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (createTime_ != null) {
-              subBuilder = createTime_.toBuilder();
+          case 98:
+            {
+              com.google.logging.v2.BigQueryOptions.Builder subBuilder = null;
+              if (optionsCase_ == 12) {
+                subBuilder = ((com.google.logging.v2.BigQueryOptions) options_).toBuilder();
+              }
+              options_ =
+                  input.readMessage(
+                      com.google.logging.v2.BigQueryOptions.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.logging.v2.BigQueryOptions) options_);
+                options_ = subBuilder.buildPartial();
+              }
+              optionsCase_ = 12;
+              break;
             }
-            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(createTime_);
-              createTime_ = subBuilder.buildPartial();
+          case 106:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (createTime_ != null) {
+                subBuilder = createTime_.toBuilder();
+              }
+              createTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(createTime_);
+                createTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 114: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (updateTime_ != null) {
-              subBuilder = updateTime_.toBuilder();
+          case 114:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (updateTime_ != null) {
+                subBuilder = updateTime_.toBuilder();
+              }
+              updateTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(updateTime_);
+                updateTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(updateTime_);
-              updateTime_ = subBuilder.buildPartial();
+          case 130:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                exclusions_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              exclusions_.add(
+                  input.readMessage(
+                      com.google.logging.v2.LogExclusion.parser(), extensionRegistry));
+              break;
             }
+          case 146:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 130: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              exclusions_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              description_ = s;
+              break;
             }
-            exclusions_.add(
-                input.readMessage(com.google.logging.v2.LogExclusion.parser(), extensionRegistry));
-            break;
-          }
-          case 146: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            description_ = s;
-            break;
-          }
-          case 152: {
-
-            disabled_ = input.readBool();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 152:
+            {
+              disabled_ = input.readBool();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         exclusions_ = java.util.Collections.unmodifiableList(exclusions_);
@@ -181,29 +211,34 @@ private LogSink(
       makeExtensionsImmutable();
     }
   }
-  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.
      * 
@@ -212,6 +247,8 @@ public enum VersionFormat */ VERSION_FORMAT_UNSPECIFIED(0), /** + * + * *
      * `LogEntry` version 2 format.
      * 
@@ -220,6 +257,8 @@ public enum VersionFormat */ V2(1), /** + * + * *
      * `LogEntry` version 1 format.
      * 
@@ -231,6 +270,8 @@ public enum VersionFormat ; /** + * + * *
      * An unspecified format version that will default to V2.
      * 
@@ -239,6 +280,8 @@ public enum VersionFormat */ public static final int VERSION_FORMAT_UNSPECIFIED_VALUE = 0; /** + * + * *
      * `LogEntry` version 2 format.
      * 
@@ -247,6 +290,8 @@ public enum VersionFormat */ public static final int V2_VALUE = 1; /** + * + * *
      * `LogEntry` version 1 format.
      * 
@@ -255,7 +300,6 @@ public enum VersionFormat */ public static final int V1_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -280,49 +324,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; @@ -341,12 +385,15 @@ private VersionFormat(int value) { private int optionsCase_ = 0; 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; } @@ -362,25 +409,29 @@ 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; private volatile java.lang.Object name_; /** + * + * *
    * Required. The client-assigned sink identifier, unique within the project.
    * For example: `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited
@@ -390,6 +441,7 @@ public int getNumber() {
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -398,14 +450,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.
    * For example: `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited
@@ -415,16 +468,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 { @@ -435,6 +487,8 @@ public java.lang.String getName() { public static final int DESTINATION_FIELD_NUMBER = 3; private volatile java.lang.Object destination_; /** + * + * *
    * Required. The export destination:
    *     "storage.googleapis.com/[GCS_BUCKET]"
@@ -447,7 +501,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 @@ -456,14 +513,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:
    *     "storage.googleapis.com/[GCS_BUCKET]"
@@ -476,17 +534,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 { @@ -497,6 +556,8 @@ public java.lang.String getDestination() { public static final int FILTER_FIELD_NUMBER = 5; private volatile java.lang.Object filter_; /** + * + * *
    * Optional. An [advanced logs
    * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The
@@ -507,6 +568,7 @@ public java.lang.String getDestination() {
    * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -515,14 +577,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
@@ -533,16 +596,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 { @@ -553,12 +615,15 @@ public java.lang.String getFilter() { public static final int DESCRIPTION_FIELD_NUMBER = 18; private volatile java.lang.Object description_; /** + * + * *
    * Optional. A description of this sink.
    * The maximum length of the description is 8000 characters.
    * 
* * string description = 18 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ @java.lang.Override @@ -567,30 +632,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 sink.
    * The maximum length of the description is 8000 characters.
    * 
* * 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 { @@ -601,12 +666,15 @@ public java.lang.String getDescription() { public static final int DISABLED_FIELD_NUMBER = 19; 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 @@ -617,103 +685,137 @@ public boolean getDisabled() { public static final int EXCLUSIONS_FIELD_NUMBER = 16; private java.util.List exclusions_; /** + * + * *
    * Optional. Log entries that match any of these exclusion filters will not be exported.
    * If a log entry is matched by both `filter` and one of `exclusion_filters`
    * 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.
    * If a log entry is matched by both `filter` and one of `exclusion_filters`
    * 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.
    * If a log entry is matched by both `filter` and one of `exclusion_filters`
    * 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.
    * If a log entry is matched by both `filter` and one of `exclusion_filters`
    * 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.
    * If a log entry is matched by both `filter` and one of `exclusion_filters`
    * 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_; /** + * + * *
    * Deprecated. This field is unused.
    * 
* - * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; + * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; + * + * * @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]; + * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; + * + * * @return The outputVersionFormat. */ - @java.lang.Override @java.lang.Deprecated public com.google.logging.v2.LogSink.VersionFormat getOutputVersionFormat() { + @java.lang.Override + @java.lang.Deprecated + public com.google.logging.v2.LogSink.VersionFormat getOutputVersionFormat() { @SuppressWarnings("deprecation") - com.google.logging.v2.LogSink.VersionFormat result = com.google.logging.v2.LogSink.VersionFormat.valueOf(outputVersionFormat_); + com.google.logging.v2.LogSink.VersionFormat result = + com.google.logging.v2.LogSink.VersionFormat.valueOf(outputVersionFormat_); return result == null ? com.google.logging.v2.LogSink.VersionFormat.UNRECOGNIZED : result; } public static final int WRITER_IDENTITY_FIELD_NUMBER = 8; 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 destination. This
@@ -733,6 +835,7 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder(
    * 
* * string writer_identity = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The writerIdentity. */ @java.lang.Override @@ -741,14 +844,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 destination. This
@@ -768,16 +872,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 { @@ -788,6 +891,8 @@ public java.lang.String getWriterIdentity() { public static final int INCLUDE_CHILDREN_FIELD_NUMBER = 9; 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 sink's parent
@@ -806,6 +911,7 @@ public java.lang.String getWriterIdentity() {
    * 
* * bool include_children = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The includeChildren. */ @java.lang.Override @@ -815,11 +921,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 @@ -827,31 +938,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(); } @@ -859,12 +979,16 @@ 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 @@ -872,12 +996,16 @@ 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 @@ -885,12 +1013,15 @@ 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() { @@ -900,12 +1031,16 @@ 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 @@ -913,12 +1048,16 @@ 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 @@ -926,12 +1065,15 @@ 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() { @@ -939,6 +1081,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -950,8 +1093,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -961,7 +1103,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_)) { @@ -1006,39 +1149,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1048,45 +1187,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: @@ -1111,8 +1239,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(); @@ -1122,8 +1249,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(); @@ -1145,97 +1271,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
@@ -1246,19 +1378,20 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.logging.v2.LogSink}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.logging.v2.LogSink)
       com.google.logging.v2.LogSinkOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogSink_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.logging.v2.LoggingConfigProto
+          .internal_static_google_logging_v2_LogSink_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogSink_fieldAccessorTable
+      return com.google.logging.v2.LoggingConfigProto
+          .internal_static_google_logging_v2_LogSink_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
               com.google.logging.v2.LogSink.class, com.google.logging.v2.LogSink.Builder.class);
     }
@@ -1268,17 +1401,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getExclusionsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1322,9 +1455,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
@@ -1388,38 +1521,39 @@ public com.google.logging.v2.LogSink 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.LogSink) {
-        return mergeFrom((com.google.logging.v2.LogSink)other);
+        return mergeFrom((com.google.logging.v2.LogSink) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1465,9 +1599,10 @@ public Builder mergeFrom(com.google.logging.v2.LogSink 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_);
           }
@@ -1490,13 +1625,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.unknownFields);
       onChanged();
@@ -1526,12 +1663,12 @@ public Builder mergeFrom(
       }
       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() {
@@ -1545,6 +1682,8 @@ public Builder clearOptions() {
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The client-assigned sink identifier, unique within the project.
      * For example: `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited
@@ -1554,13 +1693,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; @@ -1569,6 +1708,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The client-assigned sink identifier, unique within the project.
      * For example: `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited
@@ -1578,15 +1719,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 { @@ -1594,6 +1734,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The client-assigned sink identifier, unique within the project.
      * For example: `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited
@@ -1603,20 +1745,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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The client-assigned sink identifier, unique within the project.
      * For example: `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited
@@ -1626,15 +1770,18 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The client-assigned sink identifier, unique within the project.
      * For example: `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited
@@ -1644,16 +1791,16 @@ 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1661,6 +1808,8 @@ public Builder setNameBytes( private java.lang.Object destination_ = ""; /** + * + * *
      * Required. The export destination:
      *     "storage.googleapis.com/[GCS_BUCKET]"
@@ -1673,14 +1822,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; @@ -1689,6 +1840,8 @@ public java.lang.String getDestination() { } } /** + * + * *
      * Required. The export destination:
      *     "storage.googleapis.com/[GCS_BUCKET]"
@@ -1701,16 +1854,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 { @@ -1718,6 +1872,8 @@ public java.lang.String getDestination() { } } /** + * + * *
      * Required. The export destination:
      *     "storage.googleapis.com/[GCS_BUCKET]"
@@ -1730,21 +1886,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) { + public Builder setDestination(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + destination_ = value; onChanged(); return this; } /** + * + * *
      * Required. The export destination:
      *     "storage.googleapis.com/[GCS_BUCKET]"
@@ -1757,16 +1917,21 @@ 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() { - + destination_ = getDefaultInstance().getDestination(); onChanged(); return this; } /** + * + * *
      * Required. The export destination:
      *     "storage.googleapis.com/[GCS_BUCKET]"
@@ -1779,17 +1944,19 @@ 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) { + public Builder setDestinationBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destination_ = value; onChanged(); return this; @@ -1797,6 +1964,8 @@ public Builder setDestinationBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The
@@ -1807,13 +1976,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; @@ -1822,6 +1991,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The
@@ -1832,15 +2003,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 { @@ -1848,6 +2018,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The
@@ -1858,20 +2030,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) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Optional. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The
@@ -1882,15 +2056,18 @@ public Builder setFilter(
      * 
* * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Optional. An [advanced logs
      * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The
@@ -1901,16 +2078,16 @@ 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) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1918,19 +2095,21 @@ public Builder setFilterBytes( private java.lang.Object description_ = ""; /** + * + * *
      * Optional. A description of this sink.
      * The maximum length of the description is 8000 characters.
      * 
* * 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; @@ -1939,21 +2118,22 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. A description of this sink.
      * The maximum length of the description is 8000 characters.
      * 
* * 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 { @@ -1961,70 +2141,80 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. A description of this sink.
      * The maximum length of the description is 8000 characters.
      * 
* * 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) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * Optional. A description of this sink.
      * The maximum length of the description is 8000 characters.
      * 
* * string description = 18 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * Optional. A description of this sink.
      * The maximum length of the description is 8000 characters.
      * 
* * 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) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); 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 @@ -2032,57 +2222,71 @@ 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. */ public Builder setDisabled(boolean value) { - + disabled_ = value; onChanged(); 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() { - + disabled_ = false; onChanged(); return this; } 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_; /** + * + * *
      * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * 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) { @@ -2092,13 +2296,17 @@ public java.util.List getExclusionsList() { } } /** + * + * *
      * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * 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) { @@ -2108,13 +2316,17 @@ public int getExclusionsCount() { } } /** + * + * *
      * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * 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) { @@ -2124,16 +2336,19 @@ public com.google.logging.v2.LogExclusion getExclusions(int index) { } } /** + * + * *
      * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * 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(); @@ -2147,13 +2362,17 @@ public Builder setExclusions( return this; } /** + * + * *
      * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * 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) { @@ -2167,13 +2386,17 @@ public Builder setExclusions( return this; } /** + * + * *
      * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * 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) { @@ -2189,16 +2412,19 @@ 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.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * 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(); @@ -2212,16 +2438,19 @@ public Builder addExclusions( return this; } /** + * + * *
      * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * 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()); @@ -2232,13 +2461,17 @@ public Builder addExclusions( return this; } /** + * + * *
      * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * 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) { @@ -2252,20 +2485,23 @@ public Builder addExclusions( return this; } /** + * + * *
      * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * 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); @@ -2273,13 +2509,17 @@ public Builder addAllExclusions( return this; } /** + * + * *
      * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * 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) { @@ -2292,13 +2532,17 @@ public Builder clearExclusions() { return this; } /** + * + * *
      * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * 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) { @@ -2311,45 +2555,56 @@ public Builder removeExclusions(int index) { return this; } /** + * + * *
      * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * 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.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * 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.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * 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 { @@ -2357,55 +2612,68 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder( } } /** + * + * *
      * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * 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.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * 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.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * 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_ & 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_; @@ -2413,73 +2681,100 @@ 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]; + * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; + * + * * @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]; + * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; + * + * * @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; onChanged(); return this; } /** + * + * *
      * Deprecated. This field is unused.
      * 
* - * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; + * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; + * + * * @return The outputVersionFormat. */ @java.lang.Override - @java.lang.Deprecated public com.google.logging.v2.LogSink.VersionFormat getOutputVersionFormat() { + @java.lang.Deprecated + public com.google.logging.v2.LogSink.VersionFormat getOutputVersionFormat() { @SuppressWarnings("deprecation") - com.google.logging.v2.LogSink.VersionFormat result = com.google.logging.v2.LogSink.VersionFormat.valueOf(outputVersionFormat_); + com.google.logging.v2.LogSink.VersionFormat result = + com.google.logging.v2.LogSink.VersionFormat.valueOf(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]; + * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; + * + * * @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(); } - + outputVersionFormat_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Deprecated. This field is unused.
      * 
* - * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; + * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; + * + * * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearOutputVersionFormat() { - + @java.lang.Deprecated + public Builder clearOutputVersionFormat() { + outputVersionFormat_ = 0; onChanged(); return this; @@ -2487,6 +2782,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 destination. This
@@ -2506,13 +2803,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; @@ -2521,6 +2818,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 destination. This
@@ -2540,15 +2839,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 { @@ -2556,6 +2854,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 destination. This
@@ -2575,20 +2875,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) { + public Builder setWriterIdentity(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + writerIdentity_ = value; 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 destination. This
@@ -2608,15 +2910,18 @@ public Builder setWriterIdentity(
      * 
* * string writer_identity = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearWriterIdentity() { - + writerIdentity_ = getDefaultInstance().getWriterIdentity(); 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 destination. This
@@ -2636,23 +2941,25 @@ 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) { + public Builder setWriterIdentityBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + writerIdentity_ = value; onChanged(); 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 sink's parent
@@ -2671,6 +2978,7 @@ public Builder setWriterIdentityBytes(
      * 
* * bool include_children = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The includeChildren. */ @java.lang.Override @@ -2678,6 +2986,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 sink's parent
@@ -2696,16 +3006,19 @@ public boolean getIncludeChildren() {
      * 
* * bool include_children = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The includeChildren to set. * @return This builder for chaining. */ public Builder setIncludeChildren(boolean value) { - + includeChildren_ = value; onChanged(); 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 sink's parent
@@ -2724,23 +3037,32 @@ public Builder setIncludeChildren(boolean value) {
      * 
* * bool include_children = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearIncludeChildren() { - + includeChildren_ = false; onChanged(); return this; } 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 @@ -2748,11 +3070,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 @@ -2770,11 +3097,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) { @@ -2790,11 +3121,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) { @@ -2808,18 +3143,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; } @@ -2834,11 +3176,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) { @@ -2857,21 +3203,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() { @@ -2885,69 +3239,98 @@ 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()); options_ = null; } optionsCase_ = 12; - onChanged();; + onChanged(); + ; return bigqueryOptionsBuilder_; } 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 createTimeBuilder_ != null || 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. */ 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) { @@ -2963,15 +3346,18 @@ 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(); onChanged(); @@ -2982,18 +3368,22 @@ 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 (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -3005,12 +3395,16 @@ 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() { if (createTimeBuilder_ == null) { @@ -3024,51 +3418,67 @@ 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() { - + onChanged(); 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_; @@ -3076,42 +3486,61 @@ 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 updateTimeBuilder_ != null || 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. */ 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) { @@ -3127,15 +3556,18 @@ 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(); onChanged(); @@ -3146,18 +3578,22 @@ 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 (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -3169,12 +3605,16 @@ 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() { if (updateTimeBuilder_ == null) { @@ -3188,58 +3628,74 @@ 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() { - + onChanged(); 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); } @@ -3249,12 +3705,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(); } @@ -3263,16 +3719,16 @@ 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 { - return new LogSink(input, extensionRegistry); - } - }; + 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 { + return new LogSink(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3287,6 +3743,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 840164fbe..3982231a6 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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.
    * For example: `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited
@@ -17,10 +35,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.
    * For example: `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited
@@ -30,12 +51,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:
    *     "storage.googleapis.com/[GCS_BUCKET]"
@@ -48,11 +71,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:
    *     "storage.googleapis.com/[GCS_BUCKET]"
@@ -65,13 +93,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
@@ -82,10 +114,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
@@ -96,118 +131,156 @@ 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.
    * The maximum length of the description is 8000 characters.
    * 
* * string description = 18 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Optional. A description of this sink.
    * The maximum length of the description is 8000 characters.
    * 
* * 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.
    * If a log entry is matched by both `filter` and one of `exclusion_filters`
    * 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.
    * If a log entry is matched by both `filter` and one of `exclusion_filters`
    * 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.
    * If a log entry is matched by both `filter` and one of `exclusion_filters`
    * 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.
    * If a log entry is matched by both `filter` and one of `exclusion_filters`
    * 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.
    * If a log entry is matched by both `filter` and one of `exclusion_filters`
    * 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]; + * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; + * + * * @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]; + * .google.logging.v2.LogSink.VersionFormat output_version_format = 6 [deprecated = true]; + * + * * @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 destination. This
@@ -227,10 +300,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 destination. This
@@ -250,12 +326,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 sink's parent
@@ -274,94 +352,131 @@ 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 73% 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 9dc947456..8892965de 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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,31 +29,31 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private LogSplit(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,50 +72,52 @@ private LogSplit(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            uid_ = s;
-            break;
-          }
-          case 16: {
-
-            index_ = input.readInt32();
-            break;
-          }
-          case 24: {
-
-            totalSplits_ = input.readInt32();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              uid_ = s;
+              break;
+            }
+          case 16:
+            {
+              index_ = input.readInt32();
+              break;
+            }
+          case 24:
+            {
+              totalSplits_ = input.readInt32();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  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);
   }
@@ -106,6 +125,8 @@ private LogSplit(
   public static final int UID_FIELD_NUMBER = 1;
   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
@@ -113,6 +134,7 @@ private LogSplit(
    * 
* * string uid = 1; + * * @return The uid. */ @java.lang.Override @@ -121,14 +143,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
@@ -136,16 +159,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 { @@ -156,6 +178,8 @@ public java.lang.String getUid() { public static final int INDEX_FIELD_NUMBER = 2; 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
@@ -163,6 +187,7 @@ public java.lang.String getUid() {
    * 
* * int32 index = 2; + * * @return The index. */ @java.lang.Override @@ -173,11 +198,14 @@ public int getIndex() { public static final int TOTAL_SPLITS_FIELD_NUMBER = 3; 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 @@ -186,6 +214,7 @@ public int getTotalSplits() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -197,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(uid_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uid_); } @@ -221,12 +249,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -236,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.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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -271,97 +294,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
@@ -370,19 +399,20 @@ 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);
     }
@@ -392,16 +422,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -415,9 +444,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
@@ -448,38 +477,39 @@ public com.google.logging.v2.LogSplit 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.LogSplit) {
-        return mergeFrom((com.google.logging.v2.LogSplit)other);
+        return mergeFrom((com.google.logging.v2.LogSplit) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -529,6 +559,8 @@ public Builder mergeFrom(
 
     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
@@ -536,13 +568,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; @@ -551,6 +583,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
@@ -558,15 +592,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 { @@ -574,6 +607,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
@@ -581,20 +616,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) { + public Builder setUid(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uid_ = value; 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
@@ -602,15 +639,18 @@ public Builder setUid(
      * 
* * string uid = 1; + * * @return This builder for chaining. */ public Builder clearUid() { - + uid_ = getDefaultInstance().getUid(); 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
@@ -618,23 +658,25 @@ 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) { + public Builder setUidBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; onChanged(); 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
@@ -642,6 +684,7 @@ public Builder setUidBytes(
      * 
* * int32 index = 2; + * * @return The index. */ @java.lang.Override @@ -649,6 +692,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
@@ -656,16 +701,19 @@ public int getIndex() {
      * 
* * int32 index = 2; + * * @param value The index to set. * @return This builder for chaining. */ public Builder setIndex(int value) { - + index_ = value; onChanged(); 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
@@ -673,22 +721,26 @@ public Builder setIndex(int value) {
      * 
* * int32 index = 2; + * * @return This builder for chaining. */ public Builder clearIndex() { - + index_ = 0; onChanged(); 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 @@ -696,37 +748,43 @@ 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. */ public Builder setTotalSplits(int value) { - + totalSplits_ = value; onChanged(); 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() { - + totalSplits_ = 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); } @@ -736,12 +794,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(); } @@ -750,16 +808,16 @@ 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 { - return new LogSplit(input, extensionRegistry); - } - }; + 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 { + return new LogSplit(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -774,6 +832,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..593337a0b 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License 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 69% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogView.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogView.java index 350fd72fb..5071f0eb1 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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,16 +45,15 @@ private LogView() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LogView(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private LogView( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,78 +72,86 @@ private LogView( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - description_ = s; - break; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createTime_ != null) { - subBuilder = createTime_.toBuilder(); - } - createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createTime_); - createTime_ = subBuilder.buildPartial(); + name_ = s; + break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 42: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updateTime_ != null) { - subBuilder = updateTime_.toBuilder(); + description_ = s; + break; } - updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateTime_); - updateTime_ = subBuilder.buildPartial(); + case 34: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; } + case 42: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (updateTime_ != null) { + subBuilder = updateTime_.toBuilder(); + } + updateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateTime_); + updateTime_ = subBuilder.buildPartial(); + } + + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + filter_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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); } @@ -134,6 +159,8 @@ private LogView( public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The resource name of the view.
    * For example:
@@ -141,6 +168,7 @@ private LogView(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -149,14 +177,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.
    * For example:
@@ -164,16 +193,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 { @@ -184,11 +212,14 @@ public java.lang.String getName() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** + * + * *
    * Describes this view.
    * 
* * string description = 3; + * * @return The description. */ @java.lang.Override @@ -197,29 +228,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 { @@ -230,11 +261,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 @@ -242,11 +277,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 @@ -254,11 +293,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() { @@ -268,11 +310,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 @@ -280,11 +326,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 @@ -292,11 +342,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() { @@ -306,6 +359,8 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int FILTER_FIELD_NUMBER = 7; private volatile java.lang.Object filter_; /** + * + * *
    * Filter that restricts which log entries in a bucket are visible in this
    * view.
@@ -320,6 +375,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    * 
* * string filter = 7; + * * @return The filter. */ @java.lang.Override @@ -328,14 +384,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.
@@ -350,16 +407,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 { @@ -368,6 +424,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -379,8 +436,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -412,12 +468,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_); @@ -430,29 +484,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -483,116 +532,123 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.LogView parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.LogView parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.LogView parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.logging.v2.LogView parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.logging.v2.LogView parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.LogView parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.LogView parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.LogView parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.LogView parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.LogView parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.LogView parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.logging.v2.LogView parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.LogView parseFrom( - com.google.protobuf.CodedInputStream input) + + public static com.google.logging.v2.LogView parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.LogView parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.LogView prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Describes a view over log entries in a bucket.
    * 
* * Protobuf type {@code google.logging.v2.LogView} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.LogView) com.google.logging.v2.LogViewOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogView_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_LogView_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_LogView_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_LogView_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.logging.v2.LogView.class, com.google.logging.v2.LogView.Builder.class); } @@ -602,16 +658,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -637,9 +692,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 @@ -680,38 +735,39 @@ public com.google.logging.v2.LogView 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.LogView) { - return mergeFrom((com.google.logging.v2.LogView)other); + return mergeFrom((com.google.logging.v2.LogView) other); } else { super.mergeFrom(other); return this; @@ -769,6 +825,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * The resource name of the view.
      * For example:
@@ -776,13 +834,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; @@ -791,6 +849,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the view.
      * For example:
@@ -798,15 +858,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 { @@ -814,6 +873,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the view.
      * For example:
@@ -821,20 +882,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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the view.
      * For example:
@@ -842,15 +905,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name of the view.
      * For example:
@@ -858,16 +924,16 @@ 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -875,18 +941,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; @@ -895,20 +963,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 { @@ -916,54 +985,61 @@ 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) { + public Builder setDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + description_ = value; onChanged(); return this; } /** + * + * *
      * Describes this view.
      * 
* * string description = 3; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); 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) { + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; onChanged(); return this; @@ -971,39 +1047,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 createTimeBuilder_ != null || 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. */ 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) { @@ -1019,14 +1114,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(); onChanged(); @@ -1037,17 +1135,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 (createTime_ != null) { createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); } else { createTime_ = value; } @@ -1059,11 +1161,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() { if (createTimeBuilder_ == null) { @@ -1077,48 +1183,64 @@ 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() { - + onChanged(); 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_; @@ -1126,39 +1248,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; /** + * + * *
      * Output only. The last update timestamp of the view.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || 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. */ 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) { @@ -1174,14 +1315,17 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. The last update timestamp of the view.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); @@ -1192,17 +1336,21 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. The last update timestamp of the view.
      * 
* - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (updateTime_ != null) { updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } @@ -1214,11 +1362,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() { if (updateTimeBuilder_ == null) { @@ -1232,48 +1384,64 @@ 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() { - + onChanged(); 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_; @@ -1281,6 +1449,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.
@@ -1295,13 +1465,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; @@ -1310,6 +1480,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Filter that restricts which log entries in a bucket are visible in this
      * view.
@@ -1324,15 +1496,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 { @@ -1340,6 +1511,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Filter that restricts which log entries in a bucket are visible in this
      * view.
@@ -1354,20 +1527,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) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Filter that restricts which log entries in a bucket are visible in this
      * view.
@@ -1382,15 +1557,18 @@ public Builder setFilter(
      * 
* * string filter = 7; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Filter that restricts which log entries in a bucket are visible in this
      * view.
@@ -1405,23 +1583,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) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1431,12 +1609,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(); } @@ -1445,16 +1623,16 @@ 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 { - return new LogView(input, extensionRegistry); - } - }; + 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 { + return new LogView(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1469,6 +1647,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 0f0ae12d7..e0e8e821b 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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.
    * For example:
@@ -15,10 +33,13 @@ public interface LogViewOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the view.
    * For example:
@@ -26,86 +47,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.
@@ -120,10 +170,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.
@@ -138,8 +191,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..e2cb05a99 --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingConfigProto.java @@ -0,0 +1,992 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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_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_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_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; + + 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\"\203\005\n\tLogBucke" + + "t\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\023\n\013description\030\003 \001(" + + "\t\0224\n\013create_time\030\004 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\0224\n\013update_time\030\005 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\022\026\n\016retenti" + + "on_days\030\013 \001(\005\022\016\n\006locked\030\t \001(\010\022?\n\017lifecyc" + + "le_state\030\014 \001(\0162!.google.logging.v2.Lifec" + + "ycleStateB\003\340A\003\022\031\n\021restricted_fields\030\017 \003(" + + "\t\0226\n\rcmek_settings\030\023 \001(\0132\037.google.loggin" + + "g.v2.CmekSettings:\245\002\352A\241\002\n logging.google" + + "apis.com/LogBucket\0228projects/{project}/l" + + "ocations/{location}/buckets/{bucket}\022Bor" + + "ganizations/{organization}/locations/{lo" + + "cation}/buckets/{bucket}\0226folders/{folde" + + "r}/locations/{location}/buckets/{bucket}" + + "\022GbillingAccounts/{billing_account}/loca" + + "tions/{location}/buckets/{bucket}\"\202\004\n\007Lo" + + "gView\022\014\n\004name\030\001 \001(\t\022\023\n\013description\030\003 \001(\t" + + "\0224\n\013create_time\030\004 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\0224\n\013update_time\030\005 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\022\016\n\006filter\030\007" + + " \001(\t:\327\002\352A\323\002\n\036logging.googleapis.com/LogV" + + "iew\022Eprojects/{project}/locations/{locat" + + "ion}/buckets/{bucket}/views/{view}\022Oorga" + + "nizations/{organization}/locations/{loca" + + "tion}/buckets/{bucket}/views/{view}\022Cfol" + + "ders/{folder}/locations/{location}/bucke" + + "ts/{bucket}/views/{view}\022TbillingAccount" + + "s/{billing_account}/locations/{location}" + + "/buckets/{bucket}/views/{view}\"\205\006\n\007LogSi" + + "nk\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\036\n\013destination\030\003 \001" + + "(\tB\t\340A\002\372A\003\n\001*\022\023\n\006filter\030\005 \001(\tB\003\340A\001\022\030\n\013de" + + "scription\030\022 \001(\tB\003\340A\001\022\025\n\010disabled\030\023 \001(\010B\003" + + "\340A\001\0228\n\nexclusions\030\020 \003(\0132\037.google.logging" + + ".v2.LogExclusionB\003\340A\001\022K\n\025output_version_" + + "format\030\006 \001(\0162(.google.logging.v2.LogSink" + + ".VersionFormatB\002\030\001\022\034\n\017writer_identity\030\010 " + + "\001(\tB\003\340A\003\022\035\n\020include_children\030\t \001(\010B\003\340A\001\022" + + "C\n\020bigquery_options\030\014 \001(\0132\".google.loggi" + + "ng.v2.BigQueryOptionsB\003\340A\001H\000\0224\n\013create_t" + + "ime\030\r \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\003\0224\n\013update_time\030\016 \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\003\"?\n\rVersionFormat\022\036\n\032VER" + + "SION_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/LogSink" + + "\022\037projects/{project}/sinks/{sink}\022)organ" + + "izations/{organization}/sinks/{sink}\022\035fo" + + "lders/{folder}/sinks/{sink}\022.billingAcco" + + "unts/{billing_account}/sinks/{sink}B\t\n\007o" + + "ptions\"g\n\017BigQueryOptions\022#\n\026use_partiti" + + "oned_tables\030\001 \001(\010B\003\340A\001\022/\n\"uses_timestamp" + + "_column_partitioning\030\003 \001(\010B\003\340A\003\"\177\n\022ListB" + + "ucketsRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 l" + + "ogging.googleapis.com/LogBucket\022\027\n\npage_" + + "token\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001" + + "\"]\n\023ListBucketsResponse\022-\n\007buckets\030\001 \003(\013" + + "2\034.google.logging.v2.LogBucket\022\027\n\017next_p" + + "age_token\030\002 \001(\t\"\232\001\n\023CreateBucketRequest\022" + + "8\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 logging.googlea" + + "pis.com/LogBucket\022\026\n\tbucket_id\030\002 \001(\tB\003\340A" + + "\002\0221\n\006bucket\030\003 \001(\0132\034.google.logging.v2.Lo" + + "gBucketB\003\340A\002\"\266\001\n\023UpdateBucketRequest\0226\n\004" + + "name\030\001 \001(\tB(\340A\002\372A\"\n logging.googleapis.c" + + "om/LogBucket\0221\n\006bucket\030\002 \001(\0132\034.google.lo" + + "gging.v2.LogBucketB\003\340A\002\0224\n\013update_mask\030\004" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"J\n" + + "\020GetBucketRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n" + + " logging.googleapis.com/LogBucket\"M\n\023Del" + + "eteBucketRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n " + + "logging.googleapis.com/LogBucket\"O\n\025Unde" + + "leteBucketRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n" + + " logging.googleapis.com/LogBucket\"X\n\020Lis" + + "tViewsRequest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022\027\n\npa" + + "ge_token\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003" + + "\340A\001\"W\n\021ListViewsResponse\022)\n\005views\030\001 \003(\0132" + + "\032.google.logging.v2.LogView\022\027\n\017next_page" + + "_token\030\002 \001(\t\"m\n\021CreateViewRequest\022\023\n\006par" + + "ent\030\001 \001(\tB\003\340A\002\022\024\n\007view_id\030\002 \001(\tB\003\340A\002\022-\n\004" + + "view\030\003 \001(\0132\032.google.logging.v2.LogViewB\003" + + "\340A\002\"\213\001\n\021UpdateViewRequest\022\021\n\004name\030\001 \001(\tB" + + "\003\340A\002\022-\n\004view\030\002 \001(\0132\032.google.logging.v2.L" + + "ogViewB\003\340A\002\0224\n\013update_mask\030\004 \001(\0132\032.googl" + + "e.protobuf.FieldMaskB\003\340A\001\"F\n\016GetViewRequ" + + "est\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036logging.googl" + + "eapis.com/LogView\"I\n\021DeleteViewRequest\0224" + + "\n\004name\030\001 \001(\tB&\340A\002\372A \n\036logging.googleapis" + + ".com/LogView\"{\n\020ListSinksRequest\0226\n\006pare" + + "nt\030\001 \001(\tB&\340A\002\372A \022\036logging.googleapis.com" + + "/LogSink\022\027\n\npage_token\030\002 \001(\tB\003\340A\001\022\026\n\tpag" + + "e_size\030\003 \001(\005B\003\340A\001\"W\n\021ListSinksResponse\022)" + + "\n\005sinks\030\001 \003(\0132\032.google.logging.v2.LogSin" + + "k\022\027\n\017next_page_token\030\002 \001(\t\"K\n\016GetSinkReq" + + "uest\0229\n\tsink_name\030\001 \001(\tB&\340A\002\372A \n\036logging" + + ".googleapis.com/LogSink\"\237\001\n\021CreateSinkRe" + + "quest\0226\n\006parent\030\001 \001(\tB&\340A\002\372A \022\036logging.g" + + "oogleapis.com/LogSink\022-\n\004sink\030\002 \001(\0132\032.go" + + "ogle.logging.v2.LogSinkB\003\340A\002\022#\n\026unique_w" + + "riter_identity\030\003 \001(\010B\003\340A\001\"\330\001\n\021UpdateSink" + + "Request\0229\n\tsink_name\030\001 \001(\tB&\340A\002\372A \n\036logg" + + "ing.googleapis.com/LogSink\022-\n\004sink\030\002 \001(\013" + + "2\032.google.logging.v2.LogSinkB\003\340A\002\022#\n\026uni" + + "que_writer_identity\030\003 \001(\010B\003\340A\001\0224\n\013update" + + "_mask\030\004 \001(\0132\032.google.protobuf.FieldMaskB" + + "\003\340A\001\"N\n\021DeleteSinkRequest\0229\n\tsink_name\030\001" + + " \001(\tB&\340A\002\372A \n\036logging.googleapis.com/Log" + + "Sink\"\302\003\n\014LogExclusion\022\021\n\004name\030\001 \001(\tB\003\340A\002" + + "\022\030\n\013description\030\002 \001(\tB\003\340A\001\022\023\n\006filter\030\003 \001" + + "(\tB\003\340A\002\022\025\n\010disabled\030\004 \001(\010B\003\340A\001\0224\n\013create" + + "_time\030\005 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\0224\n\013update_time\030\006 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003:\354\001\352A\350\001\n#logging.googl" + + "eapis.com/LogExclusion\022)projects/{projec" + + "t}/exclusions/{exclusion}\0223organizations" + + "/{organization}/exclusions/{exclusion}\022\'" + + "folders/{folder}/exclusions/{exclusion}\022" + + "8billingAccounts/{billing_account}/exclu" + + "sions/{exclusion}\"\205\001\n\025ListExclusionsRequ" + + "est\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\022#logging.goo" + + "gleapis.com/LogExclusion\022\027\n\npage_token\030\002" + + " \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\"f\n\026Lis" + + "tExclusionsResponse\0223\n\nexclusions\030\001 \003(\0132" + + "\037.google.logging.v2.LogExclusion\022\027\n\017next" + + "_page_token\030\002 \001(\t\"P\n\023GetExclusionRequest" + + "\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#logging.googleap" + + "is.com/LogExclusion\"\216\001\n\026CreateExclusionR" + + "equest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\022#logging." + + "googleapis.com/LogExclusion\0227\n\texclusion" + + "\030\002 \001(\0132\037.google.logging.v2.LogExclusionB" + + "\003\340A\002\"\302\001\n\026UpdateExclusionRequest\0229\n\004name\030" + + "\001 \001(\tB+\340A\002\372A%\n#logging.googleapis.com/Lo" + + "gExclusion\0227\n\texclusion\030\002 \001(\0132\037.google.l" + + "ogging.v2.LogExclusionB\003\340A\002\0224\n\013update_ma" + + "sk\030\003 \001(\0132\032.google.protobuf.FieldMaskB\003\340A" + + "\002\"S\n\026DeleteExclusionRequest\0229\n\004name\030\001 \001(" + + "\tB+\340A\002\372A%\n#logging.googleapis.com/LogExc" + + "lusion\"S\n\026GetCmekSettingsRequest\0229\n\004name" + + "\030\001 \001(\tB+\340A\002\372A%\n#logging.googleapis.com/C" + + "mekSettings\"\241\001\n\031UpdateCmekSettingsReques" + + "t\022\021\n\004name\030\001 \001(\tB\003\340A\002\022;\n\rcmek_settings\030\002 " + + "\001(\0132\037.google.logging.v2.CmekSettingsB\003\340A" + + "\002\0224\n\013update_mask\030\003 \001(\0132\032.google.protobuf" + + ".FieldMaskB\003\340A\001\"\237\002\n\014CmekSettings\022\021\n\004name" + + "\030\001 \001(\tB\003\340A\003\022\024\n\014kms_key_name\030\002 \001(\t\022\037\n\022ser" + + "vice_account_id\030\003 \001(\tB\003\340A\003:\304\001\352A\300\001\n#loggi" + + "ng.googleapis.com/CmekSettings\022\037projects" + + "/{project}/cmekSettings\022)organizations/{" + + "organization}/cmekSettings\022\035folders/{fol" + + "der}/cmekSettings\022.billingAccounts/{bill" + + "ing_account}/cmekSettings\"K\n\022GetSettings" + + "Request\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037logging.g" + + "oogleapis.com/Settings\"\224\001\n\025UpdateSetting" + + "sRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\0222\n\010settings\030" + + "\002 \001(\0132\033.google.logging.v2.SettingsB\003\340A\002\022" + + "4\n\013update_mask\030\003 \001(\0132\032.google.protobuf.F" + + "ieldMaskB\003\340A\001\"\322\002\n\010Settings\022\021\n\004name\030\001 \001(\t" + + "B\003\340A\003\022\031\n\014kms_key_name\030\002 \001(\tB\003\340A\001\022#\n\026kms_" + + "service_account_id\030\003 \001(\tB\003\340A\003\022\035\n\020storage" + + "_location\030\004 \001(\tB\003\340A\001\022!\n\024disable_default_" + + "sink\030\005 \001(\010B\003\340A\001:\260\001\352A\254\001\n\037logging.googleap" + + "is.com/Settings\022\033projects/{project}/sett" + + "ings\022%organizations/{organization}/setti" + + "ngs\022\031folders/{folder}/settings\022*billingA" + + "ccounts/{billing_account}/settings\"Y\n\025Co" + + "pyLogEntriesRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\023" + + "\n\006filter\030\003 \001(\tB\003\340A\001\022\030\n\013destination\030\004 \001(\t" + + "B\003\340A\002\"\256\002\n\026CopyLogEntriesMetadata\022.\n\nstar" + + "t_time\030\001 \001(\0132\032.google.protobuf.Timestamp" + + "\022,\n\010end_time\030\002 \001(\0132\032.google.protobuf.Tim" + + "estamp\0220\n\005state\030\003 \001(\0162!.google.logging.v" + + "2.OperationState\022\036\n\026cancellation_request" + + "ed\030\004 \001(\010\0229\n\007request\030\005 \001(\0132(.google.loggi" + + "ng.v2.CopyLogEntriesRequest\022\020\n\010progress\030" + + "\006 \001(\005\022\027\n\017writer_identity\030\007 \001(\t\":\n\026CopyLo" + + "gEntriesResponse\022 \n\030log_entries_copied_c" + + "ount\030\001 \001(\003*S\n\016LifecycleState\022\037\n\033LIFECYCL" + + "E_STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\024\n\020DEL" + + "ETE_REQUESTED\020\002*\364\001\n\016OperationState\022\037\n\033OP" + + "ERATION_STATE_UNSPECIFIED\020\000\022\035\n\031OPERATION" + + "_STATE_SCHEDULED\020\001\022+\n\'OPERATION_STATE_WA" + + "ITING_FOR_PERMISSIONS\020\002\022\033\n\027OPERATION_STA" + + "TE_RUNNING\020\003\022\035\n\031OPERATION_STATE_SUCCEEDE" + + "D\020\004\022\032\n\026OPERATION_STATE_FAILED\020\005\022\035\n\031OPERA" + + "TION_STATE_CANCELLED\020\0062\214E\n\017ConfigService" + + "V2\022\334\002\n\013ListBuckets\022%.google.logging.v2.L" + + "istBucketsRequest\032&.google.logging.v2.Li" + + "stBucketsResponse\"\375\001\202\323\344\223\002\355\001\022$/v2/{parent" + + "=*/*/locations/*}/bucketsZ-\022+/v2/{parent" + + "=projects/*/locations/*}/bucketsZ2\0220/v2/" + + "{parent=organizations/*/locations/*}/buc" + + "ketsZ,\022*/v2/{parent=folders/*/locations/" + + "*}/bucketsZ4\0222/v2/{parent=billingAccount" + + "s/*/locations/*}/buckets\332A\006parent\022\271\002\n\tGe" + + "tBucket\022#.google.logging.v2.GetBucketReq" + + "uest\032\034.google.logging.v2.LogBucket\"\350\001\202\323\344" + + "\223\002\341\001\022$/v2/{name=*/*/locations/*/buckets/" + + "*}Z-\022+/v2/{name=projects/*/locations/*/b" + + "uckets/*}Z2\0220/v2/{name=organizations/*/l" + + "ocations/*/buckets/*}Z,\022*/v2/{name=folde" + + "rs/*/locations/*/buckets/*}Z(\022&/v2/{name" + + "=billingAccounts/*/buckets/*}\022\363\002\n\014Create" + + "Bucket\022&.google.logging.v2.CreateBucketR" + + "equest\032\034.google.logging.v2.LogBucket\"\234\002\202" + + "\323\344\223\002\225\002\"$/v2/{parent=*/*/locations/*}/buc" + + "kets:\006bucketZ5\"+/v2/{parent=projects/*/l" + + "ocations/*}/buckets:\006bucketZ:\"0/v2/{pare" + + "nt=organizations/*/locations/*}/buckets:" + + "\006bucketZ4\"*/v2/{parent=folders/*/locatio" + + "ns/*}/buckets:\006bucketZ<\"2/v2/{parent=bil" + + "lingAccounts/*/locations/*}/buckets:\006buc" + + "ket\022\363\002\n\014UpdateBucket\022&.google.logging.v2" + + ".UpdateBucketRequest\032\034.google.logging.v2" + + ".LogBucket\"\234\002\202\323\344\223\002\225\0022$/v2/{name=*/*/loca" + + "tions/*/buckets/*}:\006bucketZ52+/v2/{name=" + + "projects/*/locations/*/buckets/*}:\006bucke" + + "tZ:20/v2/{name=organizations/*/locations" + + "/*/buckets/*}:\006bucketZ42*/v2/{name=folde" + + "rs/*/locations/*/buckets/*}:\006bucketZ<22/" + + "v2/{name=billingAccounts/*/locations/*/b" + + "uckets/*}:\006bucket\022\305\002\n\014DeleteBucket\022&.goo" + + "gle.logging.v2.DeleteBucketRequest\032\026.goo" + + "gle.protobuf.Empty\"\364\001\202\323\344\223\002\355\001*$/v2/{name=" + + "*/*/locations/*/buckets/*}Z-*+/v2/{name=" + + "projects/*/locations/*/buckets/*}Z2*0/v2" + + "/{name=organizations/*/locations/*/bucke" + + "ts/*}Z,**/v2/{name=folders/*/locations/*" + + "/buckets/*}Z4*2/v2/{name=billingAccounts" + + "/*/locations/*/buckets/*}\022\205\003\n\016UndeleteBu" + + "cket\022(.google.logging.v2.UndeleteBucketR" + + "equest\032\026.google.protobuf.Empty\"\260\002\202\323\344\223\002\251\002" + + "\"-/v2/{name=*/*/locations/*/buckets/*}:u" + + "ndelete:\001*Z9\"4/v2/{name=projects/*/locat" + + "ions/*/buckets/*}:undelete:\001*Z>\"9/v2/{na" + + "me=organizations/*/locations/*/buckets/*" + + "}:undelete:\001*Z8\"3/v2/{name=folders/*/loc" + + "ations/*/buckets/*}:undelete:\001*Z@\";/v2/{" + + "name=billingAccounts/*/locations/*/bucke" + + "ts/*}:undelete:\001*\022\376\002\n\tListViews\022#.google" + + ".logging.v2.ListViewsRequest\032$.google.lo" + + "gging.v2.ListViewsResponse\"\245\002\202\323\344\223\002\225\002\022,/v" + + "2/{parent=*/*/locations/*/buckets/*}/vie" + + "wsZ5\0223/v2/{parent=projects/*/locations/*" + + "/buckets/*}/viewsZ:\0228/v2/{parent=organiz" + + "ations/*/locations/*/buckets/*}/viewsZ4\022" + + "2/v2/{parent=folders/*/locations/*/bucke" + + "ts/*}/viewsZ<\022:/v2/{parent=billingAccoun" + + "ts/*/locations/*/buckets/*}/views\332A\006pare" + + "nt\022\333\002\n\007GetView\022!.google.logging.v2.GetVi" + + "ewRequest\032\032.google.logging.v2.LogView\"\220\002" + + "\202\323\344\223\002\211\002\022,/v2/{name=*/*/locations/*/bucke" + + "ts/*/views/*}Z5\0223/v2/{name=projects/*/lo" + + "cations/*/buckets/*/views/*}Z:\0228/v2/{nam" + + "e=organizations/*/locations/*/buckets/*/" + + "views/*}Z4\0222/v2/{name=folders/*/location" + + "s/*/buckets/*/views/*}Z0\022./v2/{name=bill" + + "ingAccounts/*/buckets/*/views/*}\022\213\003\n\nCre" + + "ateView\022$.google.logging.v2.CreateViewRe" + + "quest\032\032.google.logging.v2.LogView\"\272\002\202\323\344\223" + + "\002\263\002\",/v2/{parent=*/*/locations/*/buckets" + + "/*}/views:\004viewZ;\"3/v2/{parent=projects/" + + "*/locations/*/buckets/*}/views:\004viewZ@\"8" + + "/v2/{parent=organizations/*/locations/*/" + + "buckets/*}/views:\004viewZ:\"2/v2/{parent=fo" + + "lders/*/locations/*/buckets/*}/views:\004vi" + + "ewZB\":/v2/{parent=billingAccounts/*/loca" + + "tions/*/buckets/*}/views:\004view\022\213\003\n\nUpdat" + + "eView\022$.google.logging.v2.UpdateViewRequ" + + "est\032\032.google.logging.v2.LogView\"\272\002\202\323\344\223\002\263" + + "\0022,/v2/{name=*/*/locations/*/buckets/*/v" + + "iews/*}:\004viewZ;23/v2/{name=projects/*/lo" + + "cations/*/buckets/*/views/*}:\004viewZ@28/v" + + "2/{name=organizations/*/locations/*/buck" + + "ets/*/views/*}:\004viewZ:22/v2/{name=folder" + + "s/*/locations/*/buckets/*/views/*}:\004view" + + "ZB2:/v2/{name=billingAccounts/*/location" + + "s/*/buckets/*/views/*}:\004view\022\351\002\n\nDeleteV" + + "iew\022$.google.logging.v2.DeleteViewReques" + + "t\032\026.google.protobuf.Empty\"\234\002\202\323\344\223\002\225\002*,/v2" + + "/{name=*/*/locations/*/buckets/*/views/*" + + "}Z5*3/v2/{name=projects/*/locations/*/bu" + + "ckets/*/views/*}Z:*8/v2/{name=organizati" + + "ons/*/locations/*/buckets/*/views/*}Z4*2" + + "/v2/{name=folders/*/locations/*/buckets/" + + "*/views/*}Z<*:/v2/{name=billingAccounts/" + + "*/locations/*/buckets/*/views/*}\022\220\002\n\tLis" + + "tSinks\022#.google.logging.v2.ListSinksRequ" + + "est\032$.google.logging.v2.ListSinksRespons" + + "e\"\267\001\202\323\344\223\002\247\001\022\026/v2/{parent=*/*}/sinksZ\037\022\035/" + + "v2/{parent=projects/*}/sinksZ$\022\"/v2/{par" + + "ent=organizations/*}/sinksZ\036\022\034/v2/{paren" + + "t=folders/*}/sinksZ&\022$/v2/{parent=billin" + + "gAccounts/*}/sinks\332A\006parent\022\236\002\n\007GetSink\022" + + "!.google.logging.v2.GetSinkRequest\032\032.goo" + + "gle.logging.v2.LogSink\"\323\001\202\323\344\223\002\300\001\022\033/v2/{s" + + "ink_name=*/*/sinks/*}Z$\022\"/v2/{sink_name=" + + "projects/*/sinks/*}Z)\022\'/v2/{sink_name=or" + + "ganizations/*/sinks/*}Z#\022!/v2/{sink_name" + + "=folders/*/sinks/*}Z+\022)/v2/{sink_name=bi" + + "llingAccounts/*/sinks/*}\332A\tsink_name\022\253\002\n" + + "\nCreateSink\022$.google.logging.v2.CreateSi" + + "nkRequest\032\032.google.logging.v2.LogSink\"\332\001" + + "\202\323\344\223\002\305\001\"\026/v2/{parent=*/*}/sinks:\004sinkZ%\"" + + "\035/v2/{parent=projects/*}/sinks:\004sinkZ*\"\"" + + "/v2/{parent=organizations/*}/sinks:\004sink" + + "Z$\"\034/v2/{parent=folders/*}/sinks:\004sinkZ," + + "\"$/v2/{parent=billingAccounts/*}/sinks:\004" + + "sink\332A\013parent,sink\022\237\004\n\nUpdateSink\022$.goog" + + "le.logging.v2.UpdateSinkRequest\032\032.google" + + ".logging.v2.LogSink\"\316\003\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\332A" + + "\032sink_name,sink,update_mask\332A\016sink_name," + + "sink\022\240\002\n\nDeleteSink\022$.google.logging.v2." + + "DeleteSinkRequest\032\026.google.protobuf.Empt" + + "y\"\323\001\202\323\344\223\002\300\001*\033/v2/{sink_name=*/*/sinks/*}" + + "Z$*\"/v2/{sink_name=projects/*/sinks/*}Z)" + + "*\'/v2/{sink_name=organizations/*/sinks/*" + + "}Z#*!/v2/{sink_name=folders/*/sinks/*}Z+" + + "*)/v2/{sink_name=billingAccounts/*/sinks" + + "/*}\332A\tsink_name\022\270\002\n\016ListExclusions\022(.goo" + + "gle.logging.v2.ListExclusionsRequest\032).g" + + "oogle.logging.v2.ListExclusionsResponse\"" + + "\320\001\202\323\344\223\002\300\001\022\033/v2/{parent=*/*}/exclusionsZ$" + + "\022\"/v2/{parent=projects/*}/exclusionsZ)\022\'" + + "/v2/{parent=organizations/*}/exclusionsZ" + + "#\022!/v2/{parent=folders/*}/exclusionsZ+\022)" + + "/v2/{parent=billingAccounts/*}/exclusion" + + "s\332A\006parent\022\250\002\n\014GetExclusion\022&.google.log" + + "ging.v2.GetExclusionRequest\032\037.google.log" + + "ging.v2.LogExclusion\"\316\001\202\323\344\223\002\300\001\022\033/v2/{nam" + + "e=*/*/exclusions/*}Z$\022\"/v2/{name=project" + + "s/*/exclusions/*}Z)\022\'/v2/{name=organizat" + + "ions/*/exclusions/*}Z#\022!/v2/{name=folder" + + "s/*/exclusions/*}Z+\022)/v2/{name=billingAc" + + "counts/*/exclusions/*}\332A\004name\022\361\002\n\017Create" + + "Exclusion\022).google.logging.v2.CreateExcl" + + "usionRequest\032\037.google.logging.v2.LogExcl" + + "usion\"\221\002\202\323\344\223\002\367\001\"\033/v2/{parent=*/*}/exclus" + + "ions:\texclusionZ/\"\"/v2/{parent=projects/" + + "*}/exclusions:\texclusionZ4\"\'/v2/{parent=" + + "organizations/*}/exclusions:\texclusionZ." + + "\"!/v2/{parent=folders/*}/exclusions:\texc" + + "lusionZ6\")/v2/{parent=billingAccounts/*}" + + "/exclusions:\texclusion\332A\020parent,exclusio" + + "n\022\373\002\n\017UpdateExclusion\022).google.logging.v" + + "2.UpdateExclusionRequest\032\037.google.loggin" + + "g.v2.LogExclusion\"\233\002\202\323\344\223\002\367\0012\033/v2/{name=*" + + "/*/exclusions/*}:\texclusionZ/2\"/v2/{name" + + "=projects/*/exclusions/*}:\texclusionZ42\'" + + "/v2/{name=organizations/*/exclusions/*}:" + + "\texclusionZ.2!/v2/{name=folders/*/exclus" + + "ions/*}:\texclusionZ62)/v2/{name=billingA" + + "ccounts/*/exclusions/*}:\texclusion\332A\032nam" + + "e,exclusion,update_mask\022\245\002\n\017DeleteExclus" + + "ion\022).google.logging.v2.DeleteExclusionR" + + "equest\032\026.google.protobuf.Empty\"\316\001\202\323\344\223\002\300\001" + + "*\033/v2/{name=*/*/exclusions/*}Z$*\"/v2/{na" + + "me=projects/*/exclusions/*}Z)*\'/v2/{name" + + "=organizations/*/exclusions/*}Z#*!/v2/{n" + + "ame=folders/*/exclusions/*}Z+*)/v2/{name" + + "=billingAccounts/*/exclusions/*}\332A\004name\022" + + "\247\002\n\017GetCmekSettings\022).google.logging.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=projects/*}/" + + "cmekSettingsZ)\022\'/v2/{name=organizations/" + + "*}/cmekSettingsZ#\022!/v2/{name=folders/*}/" + + "cmekSettingsZ+\022)/v2/{name=billingAccount" + + "s/*}/cmekSettings\022\321\001\n\022UpdateCmekSettings" + + "\022,.google.logging.v2.UpdateCmekSettingsR" + + "equest\032\037.google.logging.v2.CmekSettings\"" + + "l\202\323\344\223\002f2\033/v2/{name=*/*}/cmekSettings:\rcm" + + "ek_settingsZ82\'/v2/{name=organizations/*" + + "}/cmekSettings:\rcmek_settings\022\216\002\n\013GetSet" + + "tings\022%.google.logging.v2.GetSettingsReq" + + "uest\032\033.google.logging.v2.Settings\"\272\001\202\323\344\223" + + "\002\254\001\022\027/v2/{name=*/*}/settingsZ \022\036/v2/{nam" + + "e=projects/*}/settingsZ%\022#/v2/{name=orga" + + "nizations/*}/settingsZ\037\022\035/v2/{name=folde" + + "rs/*}/settingsZ\'\022%/v2/{name=billingAccou" + + "nts/*}/settings\332A\004name\022\366\001\n\016UpdateSetting" + + "s\022(.google.logging.v2.UpdateSettingsRequ" + + "est\032\033.google.logging.v2.Settings\"\234\001\202\323\344\223\002" + + "\1772\027/v2/{name=*/*}/settings:\010settingsZ/2#" + + "/v2/{name=organizations/*}/settings:\010set" + + "tingsZ)2\035/v2/{name=folders/*}/settings:\010", + "settings\332A\024settings,update_mask\022\251\001\n\016Copy" + + "LogEntries\022(.google.logging.v2.CopyLogEn" + + "triesRequest\032\035.google.longrunning.Operat" + + "ion\"N\202\323\344\223\002\025\"\020/v2/entries:copy:\001*\312A0\n\026Cop" + + "yLogEntriesResponse\022\026CopyLogEntriesMetad" + + "ata\032\337\001\312A\026logging.googleapis.com\322A\302\001https" + + "://www.googleapis.com/auth/cloud-platfor" + + "m,https://www.googleapis.com/auth/cloud-" + + "platform.read-only,https://www.googleapi" + + "s.com/auth/logging.admin,https://www.goo" + + "gleapis.com/auth/logging.readB\331\003\n\025com.go" + + "ogle.logging.v2B\022LoggingConfigProtoP\001Z8g" + + "oogle.golang.org/genproto/googleapis/log" + + "ging/v2;logging\370\001\001\252\002\027Google.Cloud.Loggin" + + "g.V2\312\002\027Google\\Cloud\\Logging\\V2\352\002\032Google:" + + ":Cloud::Logging::V2\352A`\n+logging.googleap" + + "is.com/OrganizationLocation\0221organizatio" + + "ns/{organization}/locations/{location}\352A" + + "N\n%logging.googleapis.com/FolderLocation" + + "\022%folders/{folder}/locations/{location}\352" + + "Ag\n-logging.googleapis.com/BillingAccoun" + + "tLocation\0226billingAccounts/{billing_acco" + + "unt}/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_LogBucket_descriptor = + getDescriptor().getMessageTypes().get(0); + 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", + "RestrictedFields", + "CmekSettings", + }); + internal_static_google_logging_v2_LogView_descriptor = getDescriptor().getMessageTypes().get(1); + 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(2); + 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_BigQueryOptions_descriptor = + getDescriptor().getMessageTypes().get(3); + 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(4); + 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(5); + 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(6); + 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(7); + 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(8); + 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(9); + 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(10); + 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(11); + 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(12); + 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(13); + 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(14); + 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(15); + 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(16); + 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(17); + 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(18); + 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(19); + 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(20); + 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(21); + 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(22); + 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_LogExclusion_descriptor = + getDescriptor().getMessageTypes().get(23); + 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(24); + 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(25); + 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(26); + 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(27); + 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(28); + 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(29); + 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(30); + 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(31); + 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(32); + 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", "ServiceAccountId", + }); + internal_static_google_logging_v2_GetSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(33); + 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(34); + 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(35); + 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(36); + 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(37); + 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(38); + 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", + }); + 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..f4ec87951 --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingMetricsProto.java @@ -0,0 +1,255 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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\"\243\005\n\tLogMetric\022\021\n\004name\030\001 \001(" + + "\tB\003\340A\002\022\030\n\013description\030\002 \001(\tB\003\340A\001\022\023\n\006filt" + + "er\030\003 \001(\tB\003\340A\002\022\025\n\010disabled\030\014 \001(\010B\003\340A\001\022<\n\021" + + "metric_descriptor\030\005 \001(\0132\034.google.api.Met" + + "ricDescriptorB\003\340A\001\022\034\n\017value_extractor\030\006 " + + "\001(\tB\003\340A\001\022P\n\020label_extractors\030\007 \003(\01321.goo" + + "gle.logging.v2.LogMetric.LabelExtractors" + + "EntryB\003\340A\001\022C\n\016bucket_options\030\010 \001(\0132&.goo" + + "gle.api.Distribution.BucketOptionsB\003\340A\001\022" + + "4\n\013create_time\030\t \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\0224\n\013update_time\030\n \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\003\022<\n\007version\030\004" + + " \001(\0162\'.google.logging.v2.LogMetric.ApiVe" + + "rsionB\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\002V2\020\000\022\006\n\002V1\020\001:J\352AG\n logging.googleapis" + + ".com/LogMetric\022#projects/{project}/metri" + + "cs/{metric}\"\215\001\n\025ListLogMetricsRequest\022C\n" + + "\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemana" + + "ger.googleapis.com/Project\022\027\n\npage_token" + + "\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\"`\n\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\"T\n\023GetLogMetricRequest\022=\n\013" + + "metric_name\030\001 \001(\tB(\340A\002\372A\"\n logging.googl" + + "eapis.com/LogMetric\"\205\001\n\026CreateLogMetricR" + + "equest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 logging." + + "googleapis.com/LogMetric\0221\n\006metric\030\002 \001(\013" + + "2\034.google.logging.v2.LogMetricB\003\340A\002\"\212\001\n\026" + + "UpdateLogMetricRequest\022=\n\013metric_name\030\001 " + + "\001(\tB(\340A\002\372A\"\n logging.googleapis.com/LogM" + + "etric\0221\n\006metric\030\002 \001(\0132\034.google.logging.v" + + "2.LogMetricB\003\340A\002\"W\n\026DeleteLogMetricReque" + + "st\022=\n\013metric_name\030\001 \001(\tB(\340A\002\372A\"\n logging" + + ".googleapis.com/LogMetric2\256\010\n\020MetricsSer" + + "viceV2\022\227\001\n\016ListLogMetrics\022(.google.loggi" + + "ng.v2.ListLogMetricsRequest\032).google.log" + + "ging.v2.ListLogMetricsResponse\"0\202\323\344\223\002!\022\037" + + "/v2/{parent=projects/*}/metrics\332A\006parent" + + "\022\222\001\n\014GetLogMetric\022&.google.logging.v2.Ge" + + "tLogMetricRequest\032\034.google.logging.v2.Lo" + + "gMetric\"<\202\323\344\223\002(\022&/v2/{metric_name=projec" + + "ts/*/metrics/*}\332A\013metric_name\022\233\001\n\017Create" + + "LogMetric\022).google.logging.v2.CreateLogM" + + "etricRequest\032\034.google.logging.v2.LogMetr" + + "ic\"?\202\323\344\223\002)\"\037/v2/{parent=projects/*}/metr" + + "ics:\006metric\332A\rparent,metric\022\247\001\n\017UpdateLo" + + "gMetric\022).google.logging.v2.UpdateLogMet" + + "ricRequest\032\034.google.logging.v2.LogMetric" + + "\"K\202\323\344\223\0020\032&/v2/{metric_name=projects/*/me" + + "trics/*}:\006metric\332A\022metric_name,metric\022\222\001" + + "\n\017DeleteLogMetric\022).google.logging.v2.De" + + "leteLogMetricRequest\032\026.google.protobuf.E" + + "mpty\"<\202\323\344\223\002(*&/v2/{metric_name=projects/" + + "*/metrics/*}\332A\013metric_name\032\215\002\312A\026logging." + + "googleapis.com\322A\360\001https://www.googleapis" + + ".com/auth/cloud-platform,https://www.goo" + + "gleapis.com/auth/cloud-platform.read-onl" + + "y,https://www.googleapis.com/auth/loggin" + + "g.admin,https://www.googleapis.com/auth/" + + "logging.read,https://www.googleapis.com/" + + "auth/logging.writeB\274\001\n\025com.google.loggin" + + "g.v2B\023LoggingMetricsProtoP\001Z8google.gola" + + "ng.org/genproto/googleapis/logging/v2;lo" + + "gging\370\001\001\252\002\027Google.Cloud.Logging.V2\312\002\027Goo" + + "gle\\Cloud\\Logging\\V2\352\002\032Google::Cloud::Lo" + + "gging::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", + "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..f933ad4ec --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingProto.java @@ -0,0 +1,355 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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\"H\n\020DeleteLogRequest\0224\n\010log_name\030\001 " + + "\001(\tB\"\340A\002\372A\034\n\032logging.googleapis.com/Log\"" + + "\346\002\n\026WriteLogEntriesRequest\0224\n\010log_name\030\001" + + " \001(\tB\"\340A\001\372A\034\n\032logging.googleapis.com/Log" + + "\0224\n\010resource\030\002 \001(\0132\035.google.api.Monitore" + + "dResourceB\003\340A\001\022J\n\006labels\030\003 \003(\01325.google." + + "logging.v2.WriteLogEntriesRequest.Labels" + + "EntryB\003\340A\001\0221\n\007entries\030\004 \003(\0132\033.google.log" + + "ging.v2.LogEntryB\003\340A\002\022\034\n\017partial_success" + + "\030\005 \001(\010B\003\340A\001\022\024\n\007dry_run\030\006 \001(\010B\003\340A\001\032-\n\013Lab" + + "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + + "\"\031\n\027WriteLogEntriesResponse\"\310\001\n\034WriteLog" + + "EntriesPartialErrors\022]\n\020log_entry_errors" + + "\030\001 \003(\0132C.google.logging.v2.WriteLogEntri" + + "esPartialErrors.LogEntryErrorsEntry\032I\n\023L" + + "ogEntryErrorsEntry\022\013\n\003key\030\001 \001(\005\022!\n\005value" + + "\030\002 \001(\0132\022.google.rpc.Status:\0028\001\"\260\001\n\025ListL" + + "ogEntriesRequest\022:\n\016resource_names\030\010 \003(\t" + + "B\"\340A\002\372A\034\022\032logging.googleapis.com/Log\022\023\n\006" + + "filter\030\002 \001(\tB\003\340A\001\022\025\n\010order_by\030\003 \001(\tB\003\340A\001" + + "\022\026\n\tpage_size\030\004 \001(\005B\003\340A\001\022\027\n\npage_token\030\005" + + " \001(\tB\003\340A\001\"_\n\026ListLogEntriesResponse\022,\n\007e" + + "ntries\030\001 \003(\0132\033.google.logging.v2.LogEntr" + + "y\022\027\n\017next_page_token\030\002 \001(\t\"Z\n\'ListMonito" + + "redResourceDescriptorsRequest\022\026\n\tpage_si" + + "ze\030\001 \001(\005B\003\340A\001\022\027\n\npage_token\030\002 \001(\tB\003\340A\001\"\212" + + "\001\n(ListMonitoredResourceDescriptorsRespo" + + "nse\022E\n\024resource_descriptors\030\001 \003(\0132\'.goog" + + "le.api.MonitoredResourceDescriptor\022\027\n\017ne" + + "xt_page_token\030\002 \001(\t\"\262\001\n\017ListLogsRequest\022" + + "2\n\006parent\030\001 \001(\tB\"\340A\002\372A\034\022\032logging.googlea" + + "pis.com/Log\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\np" + + "age_token\030\003 \001(\tB\003\340A\001\022:\n\016resource_names\030\010" + + " \003(\tB\"\340A\001\372A\034\022\032logging.googleapis.com/Log" + + "\">\n\020ListLogsResponse\022\021\n\tlog_names\030\003 \003(\t\022" + + "\027\n\017next_page_token\030\002 \001(\t\"\200\001\n\025TailLogEntr" + + "iesRequest\022\033\n\016resource_names\030\001 \003(\tB\003\340A\002\022" + + "\023\n\006filter\030\002 \001(\tB\003\340A\001\0225\n\rbuffer_window\030\003 " + + "\001(\0132\031.google.protobuf.DurationB\003\340A\001\"\337\002\n\026" + + "TailLogEntriesResponse\022,\n\007entries\030\001 \003(\0132" + + "\033.google.logging.v2.LogEntry\022S\n\020suppress" + + "ion_info\030\002 \003(\01329.google.logging.v2.TailL" + + "ogEntriesResponse.SuppressionInfo\032\301\001\n\017Su" + + "ppressionInfo\022P\n\006reason\030\001 \001(\0162@.google.l" + + "ogging.v2.TailLogEntriesResponse.Suppres" + + "sionInfo.Reason\022\030\n\020suppressed_count\030\002 \001(" + + "\005\"B\n\006Reason\022\026\n\022REASON_UNSPECIFIED\020\000\022\016\n\nR" + + "ATE_LIMIT\020\001\022\020\n\014NOT_CONSUMED\020\0022\346\013\n\020Loggin" + + "gServiceV2\022\223\002\n\tDeleteLog\022#.google.loggin" + + "g.v2.DeleteLogRequest\032\026.google.protobuf." + + "Empty\"\310\001\202\323\344\223\002\266\001* /v2/{log_name=projects/" + + "*/logs/*}Z\033*\031/v2/{log_name=*/*/logs/*}Z\'" + + "*%/v2/{log_name=organizations/*/logs/*}Z" + + "!*\037/v2/{log_name=folders/*/logs/*}Z)*\'/v" + + "2/{log_name=billingAccounts/*/logs/*}\332A\010" + + "log_name\022\251\001\n\017WriteLogEntries\022).google.lo" + + "gging.v2.WriteLogEntriesRequest\032*.google" + + ".logging.v2.WriteLogEntriesResponse\"?\202\323\344" + + "\223\002\026\"\021/v2/entries:write:\001*\332A log_name,res" + + "ource,labels,entries\022\243\001\n\016ListLogEntries\022" + + "(.google.logging.v2.ListLogEntriesReques" + + "t\032).google.logging.v2.ListLogEntriesResp" + + "onse\"<\202\323\344\223\002\025\"\020/v2/entries:list:\001*\332A\036reso" + + "urce_names,filter,order_by\022\305\001\n ListMonit" + + "oredResourceDescriptors\022:.google.logging" + + ".v2.ListMonitoredResourceDescriptorsRequ" + + "est\032;.google.logging.v2.ListMonitoredRes" + + "ourceDescriptorsResponse\"(\202\323\344\223\002\"\022 /v2/mo" + + "nitoredResourceDescriptors\022\210\002\n\010ListLogs\022" + + "\".google.logging.v2.ListLogsRequest\032#.go" + + "ogle.logging.v2.ListLogsResponse\"\262\001\202\323\344\223\002" + + "\242\001\022\025/v2/{parent=*/*}/logsZ\036\022\034/v2/{parent" + + "=projects/*}/logsZ#\022!/v2/{parent=organiz" + + "ations/*}/logsZ\035\022\033/v2/{parent=folders/*}" + + "/logsZ%\022#/v2/{parent=billingAccounts/*}/" + + "logs\332A\006parent\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\265\001\n\025com.google.lo" + + "gging.v2B\014LoggingProtoP\001Z8google.golang." + + "org/genproto/googleapis/logging/v2;loggi" + + "ng\370\001\001\252\002\027Google.Cloud.Logging.V2\312\002\027Google" + + "\\Cloud\\Logging\\V2\352\002\032Google::Cloud::Loggi" + + "ng::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", "PageSize", "PageToken", "ResourceNames", + }); + 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 c1fc6ad8e..593fce648 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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(1); } 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 80% 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 98c221865..b421f30bd 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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,16 +47,15 @@ private Settings() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Settings();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Settings(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,63 +74,68 @@ private Settings(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            kmsKeyName_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            kmsServiceAccountId_ = s;
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
+              kmsKeyName_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            storageLocation_ = s;
-            break;
-          }
-          case 40: {
+              kmsServiceAccountId_ = s;
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            disableDefaultSink_ = input.readBool();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              storageLocation_ = s;
+              break;
+            }
+          case 40:
+            {
+              disableDefaultSink_ = input.readBool();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  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);
   }
@@ -121,11 +143,14 @@ private Settings(
   public static final int NAME_FIELD_NUMBER = 1;
   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 @@ -134,29 +159,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 { @@ -167,6 +192,8 @@ public java.lang.String getName() { public static final int KMS_KEY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object kmsKeyName_; /** + * + * *
    * Optional. The resource name for the configured Cloud KMS key.
    * KMS key name format:
@@ -188,6 +215,7 @@ public java.lang.String getName() {
    * 
* * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The kmsKeyName. */ @java.lang.Override @@ -196,14 +224,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.
    * KMS key name format:
@@ -225,16 +254,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 { @@ -245,6 +273,8 @@ public java.lang.String getKmsKeyName() { public static final int KMS_SERVICE_ACCOUNT_ID_FIELD_NUMBER = 3; 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.
@@ -259,6 +289,7 @@ public java.lang.String getKmsKeyName() {
    * 
* * string kms_service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The kmsServiceAccountId. */ @java.lang.Override @@ -267,14 +298,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.
@@ -289,16 +321,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 { @@ -309,6 +340,8 @@ public java.lang.String getKmsServiceAccountId() { public static final int STORAGE_LOCATION_FIELD_NUMBER = 4; 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`.
@@ -316,6 +349,7 @@ public java.lang.String getKmsServiceAccountId() {
    * 
* * string storage_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The storageLocation. */ @java.lang.Override @@ -324,14 +358,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`.
@@ -339,16 +374,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 { @@ -359,6 +393,8 @@ public java.lang.String getStorageLocation() { public static final int DISABLE_DEFAULT_SINK_FIELD_NUMBER = 5; 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 disable
@@ -367,6 +403,7 @@ public java.lang.String getStorageLocation() {
    * 
* * bool disable_default_sink = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The disableDefaultSink. */ @java.lang.Override @@ -375,6 +412,7 @@ public boolean getDisableDefaultSink() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -386,8 +424,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -425,8 +462,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -436,23 +472,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -473,104 +504,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) + unknownFields.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.
@@ -578,19 +614,20 @@ 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);
     }
@@ -600,16 +637,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -627,9 +663,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
@@ -662,38 +698,39 @@ public com.google.logging.v2.Settings 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.Settings) {
-        return mergeFrom((com.google.logging.v2.Settings)other);
+        return mergeFrom((com.google.logging.v2.Settings) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -752,18 +789,20 @@ public Builder mergeFrom(
 
     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; @@ -772,20 +811,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 { @@ -793,54 +833,61 @@ 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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; 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() { - + name_ = getDefaultInstance().getName(); onChanged(); 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -848,6 +895,8 @@ public Builder setNameBytes( private java.lang.Object kmsKeyName_ = ""; /** + * + * *
      * Optional. The resource name for the configured Cloud KMS key.
      * KMS key name format:
@@ -869,13 +918,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; @@ -884,6 +933,8 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
      * Optional. The resource name for the configured Cloud KMS key.
      * KMS key name format:
@@ -905,15 +956,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 { @@ -921,6 +971,8 @@ public java.lang.String getKmsKeyName() { } } /** + * + * *
      * Optional. The resource name for the configured Cloud KMS key.
      * KMS key name format:
@@ -942,20 +994,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) { + public Builder setKmsKeyName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kmsKeyName_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The resource name for the configured Cloud KMS key.
      * KMS key name format:
@@ -977,15 +1031,18 @@ public Builder setKmsKeyName(
      * 
* * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearKmsKeyName() { - + kmsKeyName_ = getDefaultInstance().getKmsKeyName(); onChanged(); return this; } /** + * + * *
      * Optional. The resource name for the configured Cloud KMS key.
      * KMS key name format:
@@ -1007,16 +1064,16 @@ 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) { + public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKeyName_ = value; onChanged(); return this; @@ -1024,6 +1081,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.
@@ -1038,13 +1097,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; @@ -1053,6 +1112,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.
@@ -1067,15 +1128,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 { @@ -1083,6 +1143,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.
@@ -1097,20 +1159,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) { + public Builder setKmsServiceAccountId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + kmsServiceAccountId_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The service account that will be used by the Log Router to access your
      * Cloud KMS key.
@@ -1125,15 +1189,18 @@ public Builder setKmsServiceAccountId(
      * 
* * string kms_service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearKmsServiceAccountId() { - + kmsServiceAccountId_ = getDefaultInstance().getKmsServiceAccountId(); onChanged(); return this; } /** + * + * *
      * Output only. The service account that will be used by the Log Router to access your
      * Cloud KMS key.
@@ -1148,16 +1215,16 @@ 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) { + public Builder setKmsServiceAccountIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsServiceAccountId_ = value; onChanged(); return this; @@ -1165,6 +1232,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`.
@@ -1172,13 +1241,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; @@ -1187,6 +1256,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`.
@@ -1194,15 +1265,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 { @@ -1210,6 +1280,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`.
@@ -1217,20 +1289,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) { + public Builder setStorageLocation(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + storageLocation_ = value; 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`.
@@ -1238,15 +1312,18 @@ public Builder setStorageLocation(
      * 
* * string storage_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearStorageLocation() { - + storageLocation_ = getDefaultInstance().getStorageLocation(); 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`.
@@ -1254,23 +1331,25 @@ 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) { + public Builder setStorageLocationBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + storageLocation_ = value; onChanged(); 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 disable
@@ -1279,6 +1358,7 @@ public Builder setStorageLocationBytes(
      * 
* * bool disable_default_sink = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The disableDefaultSink. */ @java.lang.Override @@ -1286,6 +1366,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 disable
@@ -1294,16 +1376,19 @@ public boolean getDisableDefaultSink() {
      * 
* * bool disable_default_sink = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The disableDefaultSink to set. * @return This builder for chaining. */ public Builder setDisableDefaultSink(boolean value) { - + disableDefaultSink_ = value; onChanged(); 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 disable
@@ -1312,17 +1397,18 @@ public Builder setDisableDefaultSink(boolean value) {
      * 
* * bool disable_default_sink = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDisableDefaultSink() { - + disableDefaultSink_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1332,12 +1418,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(); } @@ -1346,16 +1432,16 @@ 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 { - return new Settings(input, extensionRegistry); - } - }; + 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 { + return new Settings(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1370,6 +1456,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 85% 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 1a07a8186..a87422b43 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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.
    * KMS key name format:
@@ -49,10 +72,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.
    * KMS key name format:
@@ -74,12 +100,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.
@@ -94,10 +122,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.
@@ -112,12 +143,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`.
@@ -125,10 +158,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`.
@@ -136,12 +172,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 disable
@@ -150,6 +188,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 78% 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 49133d446..14d61b8a1 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,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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.EMPTY; filter_ = ""; @@ -26,16 +44,15 @@ private TailLogEntriesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TailLogEntriesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TailLogEntriesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,48 +72,51 @@ private TailLogEntriesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - resourceNames_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + resourceNames_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + resourceNames_.add(s); + break; } - resourceNames_.add(s); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 26: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (bufferWindow_ != null) { - subBuilder = bufferWindow_.toBuilder(); - } - bufferWindow_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(bufferWindow_); - bufferWindow_ = subBuilder.buildPartial(); + filter_ = s; + break; } + case 26: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (bufferWindow_ != null) { + subBuilder = bufferWindow_.toBuilder(); + } + bufferWindow_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(bufferWindow_); + bufferWindow_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { resourceNames_ = resourceNames_.getUnmodifiableView(); @@ -105,22 +125,27 @@ private TailLogEntriesRequest( makeExtensionsImmutable(); } } - 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; private com.google.protobuf.LazyStringList resourceNames_; /** + * + * *
    * Required. Name of a parent resource from which to retrieve log entries:
    * *  `projects/[PROJECT_ID]`
@@ -135,13 +160,15 @@ private TailLogEntriesRequest(
    * 
* * 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:
    * *  `projects/[PROJECT_ID]`
@@ -156,12 +183,15 @@ private TailLogEntriesRequest(
    * 
* * 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:
    * *  `projects/[PROJECT_ID]`
@@ -176,6 +206,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. */ @@ -183,6 +214,8 @@ public java.lang.String getResourceNames(int index) { return resourceNames_.get(index); } /** + * + * *
    * Required. Name of a parent resource from which to retrieve log entries:
    * *  `projects/[PROJECT_ID]`
@@ -197,17 +230,19 @@ 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; private volatile java.lang.Object filter_; /** + * + * *
    * Optional. A filter that chooses which log entries to return.  See [Advanced
    * Logs Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
@@ -219,6 +254,7 @@ public java.lang.String getResourceNames(int index) {
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -227,14 +263,15 @@ public java.lang.String getFilter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); filter_ = s; return s; } } /** + * + * *
    * Optional. A filter that chooses which log entries to return.  See [Advanced
    * Logs Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
@@ -246,16 +283,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 { @@ -266,6 +302,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
@@ -273,7 +311,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 @@ -281,6 +321,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
@@ -288,14 +330,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
@@ -303,7 +351,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]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getBufferWindowOrBuilder() { @@ -311,6 +360,7 @@ public com.google.protobuf.DurationOrBuilder getBufferWindowOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -322,8 +372,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -354,8 +403,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -365,21 +413,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -407,118 +453,127 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.TailLogEntriesRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.TailLogEntriesRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.TailLogEntriesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.TailLogEntriesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.TailLogEntriesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.TailLogEntriesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.TailLogEntriesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.TailLogEntriesRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.TailLogEntriesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.TailLogEntriesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.logging.v2.TailLogEntriesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.logging.v2.TailLogEntriesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.TailLogEntriesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.TailLogEntriesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.TailLogEntriesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to `TailLogEntries`.
    * 
* * Protobuf type {@code google.logging.v2.TailLogEntriesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.TailLogEntriesRequest) com.google.logging.v2.TailLogEntriesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_TailLogEntriesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_TailLogEntriesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingProto.internal_static_google_logging_v2_TailLogEntriesRequest_fieldAccessorTable + return com.google.logging.v2.LoggingProto + .internal_static_google_logging_v2_TailLogEntriesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.TailLogEntriesRequest.class, com.google.logging.v2.TailLogEntriesRequest.Builder.class); + com.google.logging.v2.TailLogEntriesRequest.class, + com.google.logging.v2.TailLogEntriesRequest.Builder.class); } // Construct using com.google.logging.v2.TailLogEntriesRequest.newBuilder() @@ -526,16 +581,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -553,9 +607,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 @@ -574,7 +628,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); + com.google.logging.v2.TailLogEntriesRequest result = + new com.google.logging.v2.TailLogEntriesRequest(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { resourceNames_ = resourceNames_.getUnmodifiableView(); @@ -595,38 +650,39 @@ public com.google.logging.v2.TailLogEntriesRequest 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.TailLogEntriesRequest) { - return mergeFrom((com.google.logging.v2.TailLogEntriesRequest)other); + return mergeFrom((com.google.logging.v2.TailLogEntriesRequest) other); } else { super.mergeFrom(other); return this; @@ -680,16 +736,21 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList resourceNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList resourceNames_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureResourceNamesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { resourceNames_ = new com.google.protobuf.LazyStringArrayList(resourceNames_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Required. Name of a parent resource from which to retrieve log entries:
      * *  `projects/[PROJECT_ID]`
@@ -704,13 +765,15 @@ 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() { return resourceNames_.getUnmodifiableView(); } /** + * + * *
      * Required. Name of a parent resource from which to retrieve log entries:
      * *  `projects/[PROJECT_ID]`
@@ -725,12 +788,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:
      * *  `projects/[PROJECT_ID]`
@@ -745,6 +811,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. */ @@ -752,6 +819,8 @@ public java.lang.String getResourceNames(int index) { return resourceNames_.get(index); } /** + * + * *
      * Required. Name of a parent resource from which to retrieve log entries:
      * *  `projects/[PROJECT_ID]`
@@ -766,14 +835,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:
      * *  `projects/[PROJECT_ID]`
@@ -788,21 +859,23 @@ 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) { + public Builder setResourceNames(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureResourceNamesIsMutable(); + throw new NullPointerException(); + } + ensureResourceNamesIsMutable(); resourceNames_.set(index, value); onChanged(); return this; } /** + * + * *
      * Required. Name of a parent resource from which to retrieve log entries:
      * *  `projects/[PROJECT_ID]`
@@ -817,20 +890,22 @@ 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) { + public Builder addResourceNames(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureResourceNamesIsMutable(); + throw new NullPointerException(); + } + ensureResourceNamesIsMutable(); resourceNames_.add(value); onChanged(); return this; } /** + * + * *
      * Required. Name of a parent resource from which to retrieve log entries:
      * *  `projects/[PROJECT_ID]`
@@ -845,18 +920,19 @@ 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_); onChanged(); return this; } /** + * + * *
      * Required. Name of a parent resource from which to retrieve log entries:
      * *  `projects/[PROJECT_ID]`
@@ -871,6 +947,7 @@ public Builder addAllResourceNames(
      * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearResourceNames() { @@ -880,6 +957,8 @@ public Builder clearResourceNames() { return this; } /** + * + * *
      * Required. Name of a parent resource from which to retrieve log entries:
      * *  `projects/[PROJECT_ID]`
@@ -894,15 +973,15 @@ 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) { + public Builder addResourceNamesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureResourceNamesIsMutable(); resourceNames_.add(value); onChanged(); @@ -911,6 +990,8 @@ public Builder addResourceNamesBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. A filter that chooses which log entries to return.  See [Advanced
      * Logs Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
@@ -922,13 +1003,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; @@ -937,6 +1018,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. A filter that chooses which log entries to return.  See [Advanced
      * Logs Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
@@ -948,15 +1031,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 { @@ -964,6 +1046,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. A filter that chooses which log entries to return.  See [Advanced
      * Logs Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
@@ -975,20 +1059,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) { + public Builder setFilter(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + filter_ = value; onChanged(); return this; } /** + * + * *
      * Optional. A filter that chooses which log entries to return.  See [Advanced
      * Logs Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
@@ -1000,15 +1086,18 @@ public Builder setFilter(
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Optional. A filter that chooses which log entries to return.  See [Advanced
      * Logs Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
@@ -1020,16 +1109,16 @@ 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) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; onChanged(); return this; @@ -1037,8 +1126,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
@@ -1046,13 +1140,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 bufferWindowBuilder_ != null || 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
@@ -1060,17 +1158,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
@@ -1078,7 +1182,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) { @@ -1094,6 +1199,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
@@ -1101,10 +1208,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(); onChanged(); @@ -1115,6 +1222,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
@@ -1122,13 +1231,16 @@ 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 (bufferWindow_ != null) { bufferWindow_ = - com.google.protobuf.Duration.newBuilder(bufferWindow_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(bufferWindow_) + .mergeFrom(value) + .buildPartial(); } else { bufferWindow_ = value; } @@ -1140,6 +1252,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
@@ -1147,7 +1261,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() { if (bufferWindowBuilder_ == null) { @@ -1161,6 +1276,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
@@ -1168,14 +1285,17 @@ 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() { - + onChanged(); 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
@@ -1183,17 +1303,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
@@ -1201,24 +1325,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); } @@ -1228,12 +1356,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(); } @@ -1242,16 +1370,16 @@ 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 { - return new TailLogEntriesRequest(input, extensionRegistry); - } - }; + 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 { + return new TailLogEntriesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1266,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 85% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesRequestOrBuilder.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesRequestOrBuilder.java index d93c8065f..ba08b14fb 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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:
    * *  `projects/[PROJECT_ID]`
@@ -22,11 +40,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:
    * *  `projects/[PROJECT_ID]`
@@ -41,10 +61,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:
    * *  `projects/[PROJECT_ID]`
@@ -59,11 +82,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:
    * *  `projects/[PROJECT_ID]`
@@ -78,13 +104,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. A filter that chooses which log entries to return.  See [Advanced
    * Logs Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
@@ -96,10 +124,13 @@ public interface TailLogEntriesRequestOrBuilder extends
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Optional. A filter that chooses which log entries to return.  See [Advanced
    * Logs Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
@@ -111,12 +142,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
@@ -124,11 +157,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
@@ -136,11 +173,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
@@ -148,7 +189,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 74% 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 09f0b6a5b..404febb61 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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,16 +44,15 @@ private TailLogEntriesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TailLogEntriesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TailLogEntriesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,38 +72,43 @@ private TailLogEntriesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - entries_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + entries_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + entries_.add( + input.readMessage(com.google.logging.v2.LogEntry.parser(), extensionRegistry)); + break; } - entries_.add( - input.readMessage(com.google.logging.v2.LogEntry.parser(), extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - suppressionInfo_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + suppressionInfo_ = + new java.util.ArrayList< + com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo>(); + mutable_bitField0_ |= 0x00000002; + } + suppressionInfo_.add( + input.readMessage( + com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.parser(), + extensionRegistry)); + break; } - suppressionInfo_.add( - input.readMessage(com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { entries_ = java.util.Collections.unmodifiableList(entries_); @@ -98,84 +120,99 @@ private TailLogEntriesResponse( makeExtensionsImmutable(); } } - 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SuppressionInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -194,59 +231,65 @@ private SuppressionInfo( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - reason_ = rawValue; - break; - } - case 16: { - - suppressedCount_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + reason_ = rawValue; + break; + } + case 16: + { + suppressedCount_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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.
        * 
@@ -255,6 +298,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
@@ -266,6 +311,8 @@ public enum Reason
        */
       RATE_LIMIT(1),
       /**
+       *
+       *
        * 
        * Indicates suppression occurred due to the client not consuming
        * responses quickly enough.
@@ -278,6 +325,8 @@ public enum Reason
       ;
 
       /**
+       *
+       *
        * 
        * Unexpected default.
        * 
@@ -286,6 +335,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
@@ -297,6 +348,8 @@ public enum Reason
        */
       public static final int RATE_LIMIT_VALUE = 1;
       /**
+       *
+       *
        * 
        * Indicates suppression occurred due to the client not consuming
        * responses quickly enough.
@@ -306,7 +359,6 @@ public enum Reason
        */
       public static final int NOT_CONSUMED_VALUE = 2;
 
-
       public final int getNumber() {
         if (this == UNRECOGNIZED) {
           throw new java.lang.IllegalArgumentException(
@@ -331,49 +383,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;
@@ -393,38 +447,52 @@ private Reason(int value) {
     public static final int REASON_FIELD_NUMBER = 1;
     private int reason_;
     /**
+     *
+     *
      * 
      * 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() { + @java.lang.Override + public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason getReason() { @SuppressWarnings("deprecation") - com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason result = com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason.valueOf(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.valueOf(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_; /** + * + * *
      * A lower bound on the count of entries omitted due to `reason`.
      * 
* * int32 suppressed_count = 2; + * * @return The suppressedCount. */ @java.lang.Override @@ -433,6 +501,7 @@ public int getSuppressedCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -444,9 +513,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) { @@ -461,13 +531,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -477,16 +547,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -508,87 +578,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 @@ -598,27 +675,32 @@ 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() @@ -626,16 +708,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -647,13 +728,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(); } @@ -668,7 +750,8 @@ 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); + com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo result = + new com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo(this); result.reason_ = reason_; result.suppressedCount_ = suppressedCount_; onBuilt(); @@ -679,38 +762,41 @@ public com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.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; @@ -718,7 +804,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()); } @@ -744,7 +832,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo) e.getUnfinishedMessage(); + parsedMessage = + (com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -756,85 +846,108 @@ public Builder mergeFrom( 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. */ public Builder setReasonValue(int value) { - + reason_ = value; onChanged(); 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() { @SuppressWarnings("deprecation") - com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason result = com.google.logging.v2.TailLogEntriesResponse.SuppressionInfo.Reason.valueOf(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.valueOf(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(); } - + reason_ = value.getNumber(); onChanged(); 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() { - + reason_ = 0; onChanged(); 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 @@ -842,34 +955,41 @@ 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. */ public Builder setSuppressedCount(int value) { - + suppressedCount_ = value; onChanged(); 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() { - + suppressedCount_ = 0; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -882,30 +1002,32 @@ 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 { - return new SuppressionInfo(input, extensionRegistry); - } - }; + 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 { + return new SuppressionInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -917,15 +1039,17 @@ 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; 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
@@ -939,6 +1063,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
@@ -948,11 +1074,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
@@ -966,6 +1094,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
@@ -979,6 +1109,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
@@ -988,14 +1120,16 @@ 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;
-  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
@@ -1004,13 +1138,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
@@ -1019,14 +1157,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
@@ -1035,13 +1177,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
@@ -1050,13 +1195,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
@@ -1065,15 +1214,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; @@ -1085,8 +1236,7 @@ public final boolean isInitialized() { } @java.lang.Override - 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)); } @@ -1103,12 +1253,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1118,17 +1266,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1153,118 +1300,127 @@ 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() @@ -1272,18 +1428,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getEntriesFieldBuilder(); getSuppressionInfoFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1303,9 +1459,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 @@ -1324,7 +1480,8 @@ 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); int from_bitField0_ = bitField0_; if (entriesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -1352,38 +1509,39 @@ public com.google.logging.v2.TailLogEntriesResponse 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.TailLogEntriesResponse) { - return mergeFrom((com.google.logging.v2.TailLogEntriesResponse)other); + return mergeFrom((com.google.logging.v2.TailLogEntriesResponse) other); } else { super.mergeFrom(other); return this; @@ -1410,9 +1568,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_); } @@ -1436,9 +1595,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_); } @@ -1472,21 +1632,28 @@ public Builder mergeFrom( } 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
@@ -1503,6 +1670,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
@@ -1519,6 +1688,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
@@ -1535,6 +1706,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
@@ -1543,8 +1716,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();
@@ -1558,6 +1730,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,8 +1740,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());
@@ -1578,6 +1751,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
@@ -1600,6 +1775,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
@@ -1608,8 +1785,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();
@@ -1623,6 +1799,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
@@ -1631,8 +1809,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());
@@ -1643,6 +1820,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
@@ -1651,8 +1830,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());
@@ -1663,6 +1841,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
@@ -1675,8 +1855,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);
@@ -1684,6 +1863,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
@@ -1703,6 +1884,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
@@ -1722,6 +1905,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
@@ -1730,11 +1915,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
@@ -1743,14 +1929,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
@@ -1759,8 +1947,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 {
@@ -1768,6 +1956,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
@@ -1777,10 +1967,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
@@ -1789,12 +1981,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
@@ -1803,38 +1996,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
@@ -1843,9 +2046,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 { @@ -1853,6 +2059,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 @@ -1861,7 +2069,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) { @@ -1871,6 +2081,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
@@ -1879,9 +2091,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 { @@ -1889,6 +2104,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
@@ -1897,7 +2114,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) { @@ -1914,6 +2133,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
@@ -1922,10 +2143,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()); @@ -1936,6 +2160,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
@@ -1944,9 +2170,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(); @@ -1960,6 +2189,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
@@ -1968,7 +2199,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) { @@ -1985,6 +2218,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
@@ -1993,7 +2228,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) { @@ -2007,6 +2244,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
@@ -2015,10 +2254,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()); @@ -2029,6 +2271,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
@@ -2037,14 +2281,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); @@ -2052,6 +2298,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
@@ -2060,7 +2308,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) { @@ -2073,6 +2323,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
@@ -2081,7 +2333,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) { @@ -2094,6 +2348,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
@@ -2102,13 +2358,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
@@ -2117,16 +2377,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
@@ -2135,10 +2400,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 { @@ -2146,6 +2414,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
@@ -2154,13 +2424,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
@@ -2169,14 +2445,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
@@ -2185,18 +2467,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(), @@ -2205,9 +2495,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); } @@ -2217,12 +2507,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(); } @@ -2231,16 +2521,16 @@ 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 { - return new TailLogEntriesResponse(input, extensionRegistry); - } - }; + 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 { + return new TailLogEntriesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2255,6 +2545,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..490e6dc14 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 69% 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 22f063528..cd5b80138 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,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UndeleteBucketRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,47 +70,52 @@ private UndeleteBucketRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object name_; /** + * + * *
    * Required. The full resource name of the bucket to undelete.
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
@@ -104,7 +126,10 @@ private UndeleteBucketRequest(
    *   `"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 @@ -113,14 +138,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.
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
@@ -131,17 +157,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 { @@ -150,6 +177,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -161,8 +189,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -186,15 +213,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -213,118 +240,127 @@ 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() @@ -332,16 +368,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -351,9 +386,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 @@ -372,7 +407,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); + com.google.logging.v2.UndeleteBucketRequest result = + new com.google.logging.v2.UndeleteBucketRequest(this); result.name_ = name_; onBuilt(); return result; @@ -382,38 +418,39 @@ public com.google.logging.v2.UndeleteBucketRequest 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.UndeleteBucketRequest) { - return mergeFrom((com.google.logging.v2.UndeleteBucketRequest)other); + return mergeFrom((com.google.logging.v2.UndeleteBucketRequest) other); } else { super.mergeFrom(other); return this; @@ -457,6 +494,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The full resource name of the bucket to undelete.
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
@@ -467,14 +506,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; @@ -483,6 +524,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full resource name of the bucket to undelete.
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
@@ -493,16 +536,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 { @@ -510,6 +554,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full resource name of the bucket to undelete.
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
@@ -520,21 +566,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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The full resource name of the bucket to undelete.
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
@@ -545,16 +595,21 @@ 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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The full resource name of the bucket to undelete.
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
@@ -565,24 +620,26 @@ public Builder clearName() {
      *   `"projects/my-project/locations/global/buckets/my-bucket"`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -592,12 +649,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.logging.v2.UndeleteBucketRequest) } // @@protoc_insertion_point(class_scope:google.logging.v2.UndeleteBucketRequest) private static final com.google.logging.v2.UndeleteBucketRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.logging.v2.UndeleteBucketRequest(); } @@ -606,16 +663,16 @@ 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 { - return new UndeleteBucketRequest(input, extensionRegistry); - } - }; + 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 { + return new UndeleteBucketRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -630,6 +687,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 58% 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 074524cfb..1966ee37e 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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.
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
@@ -18,11 +36,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.
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
@@ -33,9 +56,11 @@ public interface UndeleteBucketRequestOrBuilder extends
    *   `"projects/my-project/locations/global/buckets/my-bucket"`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequest.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequest.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequest.java index 0502b0964..4b44ecdaa 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,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateBucketRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,73 +70,82 @@ private UpdateBucketRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - com.google.logging.v2.LogBucket.Builder subBuilder = null; - if (bucket_ != null) { - subBuilder = bucket_.toBuilder(); - } - bucket_ = input.readMessage(com.google.logging.v2.LogBucket.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(bucket_); - bucket_ = subBuilder.buildPartial(); + name_ = s; + break; } + case 18: + { + com.google.logging.v2.LogBucket.Builder subBuilder = null; + if (bucket_ != null) { + subBuilder = bucket_.toBuilder(); + } + bucket_ = + input.readMessage(com.google.logging.v2.LogBucket.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(bucket_); + bucket_ = subBuilder.buildPartial(); + } - break; - } - case 34: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 34: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object name_; /** + * + * *
    * Required. The full resource name of the bucket to update.
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
@@ -130,7 +156,10 @@ private UpdateBucketRequest(
    *   `"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 @@ -139,14 +168,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.
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
@@ -157,17 +187,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 { @@ -178,11 +209,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 @@ -190,11 +224,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 @@ -202,6 +239,8 @@ public com.google.logging.v2.LogBucket getBucket() { return bucket_ == null ? com.google.logging.v2.LogBucket.getDefaultInstance() : bucket_; } /** + * + * *
    * Required. The updated bucket.
    * 
@@ -216,6 +255,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 update mask.
@@ -225,7 +266,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 @@ -233,6 +276,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 update mask.
@@ -242,7 +287,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 @@ -250,6 +297,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 update mask.
@@ -259,7 +308,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() { @@ -267,6 +317,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -278,8 +329,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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,12 +352,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -317,24 +365,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.logging.v2.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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -362,118 +408,127 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.UpdateBucketRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.UpdateBucketRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.UpdateBucketRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.UpdateBucketRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.UpdateBucketRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.UpdateBucketRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.UpdateBucketRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.UpdateBucketRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.UpdateBucketRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.UpdateBucketRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.logging.v2.UpdateBucketRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.logging.v2.UpdateBucketRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.UpdateBucketRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.UpdateBucketRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.UpdateBucketRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to `UpdateBucket`.
    * 
* * Protobuf type {@code google.logging.v2.UpdateBucketRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.UpdateBucketRequest) com.google.logging.v2.UpdateBucketRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateBucketRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_UpdateBucketRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateBucketRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_UpdateBucketRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.UpdateBucketRequest.class, com.google.logging.v2.UpdateBucketRequest.Builder.class); + com.google.logging.v2.UpdateBucketRequest.class, + com.google.logging.v2.UpdateBucketRequest.Builder.class); } // Construct using com.google.logging.v2.UpdateBucketRequest.newBuilder() @@ -481,16 +536,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -512,9 +566,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 @@ -533,7 +587,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); + com.google.logging.v2.UpdateBucketRequest result = + new com.google.logging.v2.UpdateBucketRequest(this); result.name_ = name_; if (bucketBuilder_ == null) { result.bucket_ = bucket_; @@ -553,38 +608,39 @@ public com.google.logging.v2.UpdateBucketRequest 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.UpdateBucketRequest) { - return mergeFrom((com.google.logging.v2.UpdateBucketRequest)other); + return mergeFrom((com.google.logging.v2.UpdateBucketRequest) other); } else { super.mergeFrom(other); return this; @@ -634,6 +690,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The full resource name of the bucket to update.
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
@@ -644,14 +702,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; @@ -660,6 +720,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full resource name of the bucket to update.
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
@@ -670,16 +732,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 { @@ -687,6 +750,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full resource name of the bucket to update.
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
@@ -697,21 +762,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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The full resource name of the bucket to update.
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
@@ -722,16 +791,21 @@ 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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The full resource name of the bucket to update.
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
@@ -742,17 +816,19 @@ 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -760,24 +836,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 bucketBuilder_ != null || bucket_ != null; } /** + * + * *
      * 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() { @@ -788,11 +875,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) { @@ -808,14 +898,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(); onChanged(); @@ -826,17 +918,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 (bucket_ != null) { bucket_ = - com.google.logging.v2.LogBucket.newBuilder(bucket_).mergeFrom(value).buildPartial(); + com.google.logging.v2.LogBucket.newBuilder(bucket_).mergeFrom(value).buildPartial(); } else { bucket_ = value; } @@ -848,11 +943,14 @@ public Builder mergeBucket(com.google.logging.v2.LogBucket value) { return this; } /** + * + * *
      * Required. The updated bucket.
      * 
* - * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.logging.v2.LogBucket bucket = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearBucket() { if (bucketBuilder_ == null) { @@ -866,48 +964,59 @@ 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() { - + onChanged(); 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_; @@ -915,8 +1024,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 update mask.
@@ -926,13 +1040,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 updateMaskBuilder_ != null || 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 update mask.
@@ -942,17 +1060,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 update mask.
@@ -962,7 +1086,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) { @@ -978,6 +1103,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 update mask.
@@ -987,10 +1114,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(); onChanged(); @@ -1001,6 +1128,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 update mask.
@@ -1010,13 +1139,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 (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -1028,6 +1158,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 update mask.
@@ -1037,7 +1169,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() { if (updateMaskBuilder_ == null) { @@ -1051,6 +1184,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 update mask.
@@ -1060,14 +1195,17 @@ 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() { - + onChanged(); 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 update mask.
@@ -1077,17 +1215,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 update mask.
@@ -1097,24 +1239,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); } @@ -1124,12 +1270,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(); } @@ -1138,16 +1284,16 @@ 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 { - return new UpdateBucketRequest(input, extensionRegistry); - } - }; + 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 { + return new UpdateBucketRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1162,6 +1308,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 99e702ca0..37c7f9704 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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.
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
@@ -18,11 +36,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.
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
@@ -33,31 +56,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.
    * 
@@ -67,6 +100,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 update mask.
@@ -76,11 +111,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 update mask.
@@ -90,11 +129,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 update mask.
@@ -104,7 +147,8 @@ public interface UpdateBucketRequestOrBuilder extends
    * For example: `updateMask=retention_days`
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequest.java similarity index 72% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequest.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequest.java index b7aabc12b..a71ac1a27 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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].
@@ -14,31 +31,31 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private UpdateCmekSettingsRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,73 +74,82 @@ private UpdateCmekSettingsRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            com.google.logging.v2.CmekSettings.Builder subBuilder = null;
-            if (cmekSettings_ != null) {
-              subBuilder = cmekSettings_.toBuilder();
-            }
-            cmekSettings_ = input.readMessage(com.google.logging.v2.CmekSettings.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(cmekSettings_);
-              cmekSettings_ = subBuilder.buildPartial();
+              name_ = s;
+              break;
             }
+          case 18:
+            {
+              com.google.logging.v2.CmekSettings.Builder subBuilder = null;
+              if (cmekSettings_ != null) {
+                subBuilder = cmekSettings_.toBuilder();
+              }
+              cmekSettings_ =
+                  input.readMessage(com.google.logging.v2.CmekSettings.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(cmekSettings_);
+                cmekSettings_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 26: {
-            com.google.protobuf.FieldMask.Builder subBuilder = null;
-            if (updateMask_ != null) {
-              subBuilder = updateMask_.toBuilder();
-            }
-            updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(updateMask_);
-              updateMask_ = subBuilder.buildPartial();
+              break;
             }
+          case 26:
+            {
+              com.google.protobuf.FieldMask.Builder subBuilder = null;
+              if (updateMask_ != null) {
+                subBuilder = updateMask_.toBuilder();
+              }
+              updateMask_ =
+                  input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(updateMask_);
+                updateMask_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  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;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Required. The resource name for the CMEK settings to update.
    *     "projects/[PROJECT_ID]/cmekSettings"
@@ -138,6 +164,7 @@ private UpdateCmekSettingsRequest(
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -146,14 +173,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.
    *     "projects/[PROJECT_ID]/cmekSettings"
@@ -168,16 +196,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 { @@ -188,6 +215,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.
    * See [Enabling CMEK for Log
@@ -195,7 +224,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 @@ -203,6 +235,8 @@ public boolean hasCmekSettings() { return cmekSettings_ != null; } /** + * + * *
    * Required. The CMEK settings to update.
    * See [Enabling CMEK for Log
@@ -210,14 +244,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.
    * See [Enabling CMEK for Log
@@ -225,7 +266,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]; + * */ @java.lang.Override public com.google.logging.v2.CmekSettingsOrBuilder getCmekSettingsOrBuilder() { @@ -235,6 +278,8 @@ public com.google.logging.v2.CmekSettingsOrBuilder getCmekSettingsOrBuilder() { 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
@@ -243,7 +288,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 @@ -251,6 +298,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
@@ -259,7 +308,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 @@ -267,6 +318,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
@@ -275,7 +328,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() { @@ -283,6 +337,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -294,8 +349,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -318,12 +372,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -333,24 +385,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -378,97 +428,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].
@@ -479,21 +536,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.logging.v2.UpdateCmekSettingsRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.logging.v2.UpdateCmekSettingsRequest)
       com.google.logging.v2.UpdateCmekSettingsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateCmekSettingsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.logging.v2.LoggingConfigProto
+          .internal_static_google_logging_v2_UpdateCmekSettingsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateCmekSettingsRequest_fieldAccessorTable
+      return com.google.logging.v2.LoggingConfigProto
+          .internal_static_google_logging_v2_UpdateCmekSettingsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.logging.v2.UpdateCmekSettingsRequest.class, com.google.logging.v2.UpdateCmekSettingsRequest.Builder.class);
+              com.google.logging.v2.UpdateCmekSettingsRequest.class,
+              com.google.logging.v2.UpdateCmekSettingsRequest.Builder.class);
     }
 
     // Construct using com.google.logging.v2.UpdateCmekSettingsRequest.newBuilder()
@@ -501,16 +560,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -532,9 +590,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
@@ -553,7 +611,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);
+      com.google.logging.v2.UpdateCmekSettingsRequest result =
+          new com.google.logging.v2.UpdateCmekSettingsRequest(this);
       result.name_ = name_;
       if (cmekSettingsBuilder_ == null) {
         result.cmekSettings_ = cmekSettings_;
@@ -573,38 +632,39 @@ public com.google.logging.v2.UpdateCmekSettingsRequest 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.UpdateCmekSettingsRequest) {
-        return mergeFrom((com.google.logging.v2.UpdateCmekSettingsRequest)other);
+        return mergeFrom((com.google.logging.v2.UpdateCmekSettingsRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -612,7 +672,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_;
         onChanged();
@@ -654,6 +715,8 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The resource name for the CMEK settings to update.
      *     "projects/[PROJECT_ID]/cmekSettings"
@@ -668,13 +731,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; @@ -683,6 +746,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for the CMEK settings to update.
      *     "projects/[PROJECT_ID]/cmekSettings"
@@ -697,15 +762,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -713,6 +777,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for the CMEK settings to update.
      *     "projects/[PROJECT_ID]/cmekSettings"
@@ -727,20 +793,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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name for the CMEK settings to update.
      *     "projects/[PROJECT_ID]/cmekSettings"
@@ -755,15 +823,18 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name for the CMEK settings to update.
      *     "projects/[PROJECT_ID]/cmekSettings"
@@ -778,16 +849,16 @@ 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -795,8 +866,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.
      * See [Enabling CMEK for Log
@@ -804,13 +880,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 cmekSettingsBuilder_ != null || cmekSettings_ != null; } /** + * + * *
      * Required. The CMEK settings to update.
      * See [Enabling CMEK for Log
@@ -818,17 +899,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.
      * See [Enabling CMEK for Log
@@ -836,7 +924,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) { @@ -852,6 +942,8 @@ public Builder setCmekSettings(com.google.logging.v2.CmekSettings value) { return this; } /** + * + * *
      * Required. The CMEK settings to update.
      * See [Enabling CMEK for Log
@@ -859,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(); onChanged(); @@ -873,6 +966,8 @@ public Builder setCmekSettings( return this; } /** + * + * *
      * Required. The CMEK settings to update.
      * See [Enabling CMEK for Log
@@ -880,13 +975,17 @@ 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 (cmekSettings_ != null) { cmekSettings_ = - com.google.logging.v2.CmekSettings.newBuilder(cmekSettings_).mergeFrom(value).buildPartial(); + com.google.logging.v2.CmekSettings.newBuilder(cmekSettings_) + .mergeFrom(value) + .buildPartial(); } else { cmekSettings_ = value; } @@ -898,6 +997,8 @@ public Builder mergeCmekSettings(com.google.logging.v2.CmekSettings value) { return this; } /** + * + * *
      * Required. The CMEK settings to update.
      * See [Enabling CMEK for Log
@@ -905,7 +1006,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() { if (cmekSettingsBuilder_ == null) { @@ -919,6 +1022,8 @@ public Builder clearCmekSettings() { return this; } /** + * + * *
      * Required. The CMEK settings to update.
      * See [Enabling CMEK for Log
@@ -926,14 +1031,18 @@ 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() { - + onChanged(); return getCmekSettingsFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The CMEK settings to update.
      * See [Enabling CMEK for Log
@@ -941,17 +1050,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.
      * See [Enabling CMEK for Log
@@ -959,17 +1073,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_; @@ -977,8 +1096,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
@@ -987,13 +1111,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 updateMaskBuilder_ != null || 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
@@ -1002,17 +1130,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
@@ -1021,7 +1155,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) { @@ -1037,6 +1172,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
@@ -1045,10 +1182,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(); onChanged(); @@ -1059,6 +1196,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
@@ -1067,13 +1206,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 (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -1085,6 +1225,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
@@ -1093,7 +1235,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() { if (updateMaskBuilder_ == null) { @@ -1107,6 +1250,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
@@ -1115,14 +1260,17 @@ 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() { - + onChanged(); 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
@@ -1131,17 +1279,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
@@ -1150,24 +1302,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); } @@ -1177,12 +1333,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(); } @@ -1191,16 +1347,16 @@ 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 { - return new UpdateCmekSettingsRequest(input, extensionRegistry); - } - }; + 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 { + return new UpdateCmekSettingsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1215,6 +1371,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 341fd0e11..799b139a4 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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.
    *     "projects/[PROJECT_ID]/cmekSettings"
@@ -22,10 +40,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.
    *     "projects/[PROJECT_ID]/cmekSettings"
@@ -40,12 +61,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.
    * See [Enabling CMEK for Log
@@ -53,11 +76,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.
    * See [Enabling CMEK for Log
@@ -65,11 +93,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.
    * See [Enabling CMEK for Log
@@ -77,11 +110,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
@@ -90,11 +127,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
@@ -103,11 +144,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
@@ -116,7 +161,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 6af1170c1..a3350f5ce 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,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateExclusionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,73 +70,82 @@ private UpdateExclusionRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - com.google.logging.v2.LogExclusion.Builder subBuilder = null; - if (exclusion_ != null) { - subBuilder = exclusion_.toBuilder(); - } - exclusion_ = input.readMessage(com.google.logging.v2.LogExclusion.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(exclusion_); - exclusion_ = subBuilder.buildPartial(); + name_ = s; + break; } + case 18: + { + com.google.logging.v2.LogExclusion.Builder subBuilder = null; + if (exclusion_ != null) { + subBuilder = exclusion_.toBuilder(); + } + exclusion_ = + input.readMessage(com.google.logging.v2.LogExclusion.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(exclusion_); + exclusion_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 26: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object name_; /** + * + * *
    * Required. The resource name of the exclusion to update:
    *     "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
@@ -130,7 +156,10 @@ private UpdateExclusionRequest(
    *   `"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 @@ -139,14 +168,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:
    *     "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
@@ -157,17 +187,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 { @@ -178,12 +209,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 @@ -191,25 +226,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() { @@ -219,6 +263,8 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionOrBuilder() { 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
@@ -228,7 +274,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 @@ -236,6 +284,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
@@ -245,7 +295,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 @@ -253,6 +305,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
@@ -262,7 +316,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() { @@ -270,6 +325,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -281,8 +337,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -305,12 +360,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -320,24 +373,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -365,118 +416,127 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.UpdateExclusionRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.UpdateExclusionRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.UpdateExclusionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.UpdateExclusionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.UpdateExclusionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.UpdateExclusionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.UpdateExclusionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.UpdateExclusionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.UpdateExclusionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.UpdateExclusionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.logging.v2.UpdateExclusionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.logging.v2.UpdateExclusionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.UpdateExclusionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.UpdateExclusionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.UpdateExclusionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to `UpdateExclusion`.
    * 
* * Protobuf type {@code google.logging.v2.UpdateExclusionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.UpdateExclusionRequest) com.google.logging.v2.UpdateExclusionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateExclusionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_UpdateExclusionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateExclusionRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_UpdateExclusionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.UpdateExclusionRequest.class, com.google.logging.v2.UpdateExclusionRequest.Builder.class); + com.google.logging.v2.UpdateExclusionRequest.class, + com.google.logging.v2.UpdateExclusionRequest.Builder.class); } // Construct using com.google.logging.v2.UpdateExclusionRequest.newBuilder() @@ -484,16 +544,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -515,9 +574,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 @@ -536,7 +595,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); + com.google.logging.v2.UpdateExclusionRequest result = + new com.google.logging.v2.UpdateExclusionRequest(this); result.name_ = name_; if (exclusionBuilder_ == null) { result.exclusion_ = exclusion_; @@ -556,38 +616,39 @@ public com.google.logging.v2.UpdateExclusionRequest 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.UpdateExclusionRequest) { - return mergeFrom((com.google.logging.v2.UpdateExclusionRequest)other); + return mergeFrom((com.google.logging.v2.UpdateExclusionRequest) other); } else { super.mergeFrom(other); return this; @@ -637,6 +698,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The resource name of the exclusion to update:
      *     "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
@@ -647,14 +710,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; @@ -663,6 +728,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the exclusion to update:
      *     "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
@@ -673,16 +740,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 { @@ -690,6 +758,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name of the exclusion to update:
      *     "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
@@ -700,21 +770,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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the exclusion to update:
      *     "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
@@ -725,16 +799,21 @@ 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() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the exclusion to update:
      *     "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
@@ -745,17 +824,19 @@ 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -763,42 +844,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 exclusionBuilder_ != null || 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. */ 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) { @@ -814,15 +914,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(); onChanged(); @@ -833,18 +936,24 @@ 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 (exclusion_ != null) { exclusion_ = - com.google.logging.v2.LogExclusion.newBuilder(exclusion_).mergeFrom(value).buildPartial(); + com.google.logging.v2.LogExclusion.newBuilder(exclusion_) + .mergeFrom(value) + .buildPartial(); } else { exclusion_ = value; } @@ -856,12 +965,16 @@ public Builder mergeExclusion(com.google.logging.v2.LogExclusion value) { return this; } /** + * + * *
      * Required. New values for the existing exclusion. Only the fields specified in
      * `update_mask` are relevant.
      * 
* - * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearExclusion() { if (exclusionBuilder_ == null) { @@ -875,51 +988,67 @@ 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() { - + onChanged(); 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_; @@ -927,8 +1056,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
@@ -938,13 +1072,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 updateMaskBuilder_ != null || 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
@@ -954,17 +1092,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
@@ -974,7 +1118,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) { @@ -990,6 +1135,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
@@ -999,10 +1146,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(); onChanged(); @@ -1013,6 +1160,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
@@ -1022,13 +1171,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 (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -1040,6 +1190,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
@@ -1049,7 +1201,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() { if (updateMaskBuilder_ == null) { @@ -1063,6 +1216,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,14 +1227,17 @@ 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() { - + onChanged(); 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
@@ -1089,17 +1247,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
@@ -1109,24 +1271,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); } @@ -1136,12 +1302,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(); } @@ -1150,16 +1316,16 @@ 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 { - return new UpdateExclusionRequest(input, extensionRegistry); - } - }; + 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 { + return new UpdateExclusionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1174,6 +1340,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 ad7148377..63a4ca06d 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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:
    *     "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
@@ -18,11 +36,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:
    *     "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
@@ -33,43 +56,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
@@ -79,11 +117,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
@@ -93,11 +135,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
@@ -107,7 +153,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 68% 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 54e303d8c..1508bff8f 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,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateLogMetricRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,60 +70,67 @@ private UpdateLogMetricRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - metricName_ = s; - break; - } - case 18: { - com.google.logging.v2.LogMetric.Builder subBuilder = null; - if (metric_ != null) { - subBuilder = metric_.toBuilder(); + metricName_ = s; + break; } - metric_ = input.readMessage(com.google.logging.v2.LogMetric.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metric_); - metric_ = subBuilder.buildPartial(); + case 18: + { + com.google.logging.v2.LogMetric.Builder subBuilder = null; + if (metric_ != null) { + subBuilder = metric_.toBuilder(); + } + metric_ = + input.readMessage(com.google.logging.v2.LogMetric.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metric_); + metric_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object metricName_; /** + * + * *
    * Required. The resource name of the metric to update:
    *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
@@ -115,7 +139,10 @@ private UpdateLogMetricRequest(
    * 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 @@ -124,14 +151,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:
    *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
@@ -140,17 +168,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 { @@ -161,11 +190,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 @@ -173,11 +205,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 @@ -185,6 +220,8 @@ public com.google.logging.v2.LogMetric getMetric() { return metric_ == null ? com.google.logging.v2.LogMetric.getDefaultInstance() : metric_; } /** + * + * *
    * Required. The updated metric.
    * 
@@ -197,6 +234,7 @@ public com.google.logging.v2.LogMetricOrBuilder getMetricOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -208,8 +246,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -229,8 +266,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -240,19 +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.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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -276,118 +311,127 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.UpdateLogMetricRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.UpdateLogMetricRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.UpdateLogMetricRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.UpdateLogMetricRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.UpdateLogMetricRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.UpdateLogMetricRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.UpdateLogMetricRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.UpdateLogMetricRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.UpdateLogMetricRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.UpdateLogMetricRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.logging.v2.UpdateLogMetricRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.logging.v2.UpdateLogMetricRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.UpdateLogMetricRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.UpdateLogMetricRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.UpdateLogMetricRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to UpdateLogMetric.
    * 
* * Protobuf type {@code google.logging.v2.UpdateLogMetricRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.UpdateLogMetricRequest) com.google.logging.v2.UpdateLogMetricRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_UpdateLogMetricRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingMetricsProto + .internal_static_google_logging_v2_UpdateLogMetricRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingMetricsProto.internal_static_google_logging_v2_UpdateLogMetricRequest_fieldAccessorTable + return com.google.logging.v2.LoggingMetricsProto + .internal_static_google_logging_v2_UpdateLogMetricRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.UpdateLogMetricRequest.class, com.google.logging.v2.UpdateLogMetricRequest.Builder.class); + com.google.logging.v2.UpdateLogMetricRequest.class, + com.google.logging.v2.UpdateLogMetricRequest.Builder.class); } // Construct using com.google.logging.v2.UpdateLogMetricRequest.newBuilder() @@ -395,16 +439,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -420,9 +463,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 @@ -441,7 +484,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); + com.google.logging.v2.UpdateLogMetricRequest result = + new com.google.logging.v2.UpdateLogMetricRequest(this); result.metricName_ = metricName_; if (metricBuilder_ == null) { result.metric_ = metric_; @@ -456,38 +500,39 @@ public com.google.logging.v2.UpdateLogMetricRequest 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.UpdateLogMetricRequest) { - return mergeFrom((com.google.logging.v2.UpdateLogMetricRequest)other); + return mergeFrom((com.google.logging.v2.UpdateLogMetricRequest) other); } else { super.mergeFrom(other); return this; @@ -534,6 +579,8 @@ public Builder mergeFrom( private java.lang.Object metricName_ = ""; /** + * + * *
      * Required. The resource name of the metric to update:
      *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
@@ -542,14 +589,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; @@ -558,6 +607,8 @@ public java.lang.String getMetricName() { } } /** + * + * *
      * Required. The resource name of the metric to update:
      *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
@@ -566,16 +617,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 { @@ -583,6 +635,8 @@ public java.lang.String getMetricName() { } } /** + * + * *
      * Required. The resource name of the metric to update:
      *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
@@ -591,21 +645,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) { + public Builder setMetricName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + metricName_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name of the metric to update:
      *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
@@ -614,16 +672,21 @@ 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() { - + metricName_ = getDefaultInstance().getMetricName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name of the metric to update:
      *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
@@ -632,17 +695,19 @@ 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) { + public Builder setMetricNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + metricName_ = value; onChanged(); return this; @@ -650,24 +715,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 metricBuilder_ != null || metric_ != null; } /** + * + * *
      * 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() { @@ -678,11 +754,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) { @@ -698,14 +777,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(); onChanged(); @@ -716,17 +797,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 (metric_ != null) { metric_ = - com.google.logging.v2.LogMetric.newBuilder(metric_).mergeFrom(value).buildPartial(); + com.google.logging.v2.LogMetric.newBuilder(metric_).mergeFrom(value).buildPartial(); } else { metric_ = value; } @@ -738,11 +822,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() { if (metricBuilder_ == null) { @@ -756,55 +843,66 @@ 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() { - + onChanged(); 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); } @@ -814,12 +912,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(); } @@ -828,16 +926,16 @@ 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 { - return new UpdateLogMetricRequest(input, extensionRegistry); - } - }; + 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 { + return new UpdateLogMetricRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -852,6 +950,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 31d1dffbd..6df9263af 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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:
    *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
@@ -16,11 +34,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:
    *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
@@ -29,31 +52,41 @@ public interface UpdateLogMetricRequestOrBuilder extends
    * does not exist in `[PROJECT_ID]`, then a new metric is created.
    * 
* - * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for metricName. */ - com.google.protobuf.ByteString - getMetricNameBytes(); + com.google.protobuf.ByteString getMetricNameBytes(); /** + * + * *
    * Required. The updated metric.
    * 
* * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return Whether the metric field is set. */ boolean hasMetric(); /** + * + * *
    * Required. The updated metric.
    * 
* * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The metric. */ com.google.logging.v2.LogMetric getMetric(); /** + * + * *
    * Required. The updated metric.
    * 
diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequest.java similarity index 74% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequest.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequest.java index 60ceab72e..08ac1dab9 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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].
@@ -14,31 +31,31 @@
  *
  * 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();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private UpdateSettingsRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,73 +74,82 @@ private UpdateSettingsRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            com.google.logging.v2.Settings.Builder subBuilder = null;
-            if (settings_ != null) {
-              subBuilder = settings_.toBuilder();
-            }
-            settings_ = input.readMessage(com.google.logging.v2.Settings.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(settings_);
-              settings_ = subBuilder.buildPartial();
+              name_ = s;
+              break;
             }
+          case 18:
+            {
+              com.google.logging.v2.Settings.Builder subBuilder = null;
+              if (settings_ != null) {
+                subBuilder = settings_.toBuilder();
+              }
+              settings_ =
+                  input.readMessage(com.google.logging.v2.Settings.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(settings_);
+                settings_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 26: {
-            com.google.protobuf.FieldMask.Builder subBuilder = null;
-            if (updateMask_ != null) {
-              subBuilder = updateMask_.toBuilder();
-            }
-            updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(updateMask_);
-              updateMask_ = subBuilder.buildPartial();
+              break;
             }
+          case 26:
+            {
+              com.google.protobuf.FieldMask.Builder subBuilder = null;
+              if (updateMask_ != null) {
+                subBuilder = updateMask_.toBuilder();
+              }
+              updateMask_ =
+                  input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(updateMask_);
+                updateMask_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  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;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Required. The resource name for the settings to update.
    *     "organizations/[ORGANIZATION_ID]/settings"
@@ -135,6 +161,7 @@ private UpdateSettingsRequest(
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -143,14 +170,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.
    *     "organizations/[ORGANIZATION_ID]/settings"
@@ -162,16 +190,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 { @@ -182,6 +209,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.
    * See [Enabling CMEK for Log
@@ -189,7 +218,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 @@ -197,6 +228,8 @@ public boolean hasSettings() { return settings_ != null; } /** + * + * *
    * Required. The settings to update.
    * See [Enabling CMEK for Log
@@ -204,7 +237,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 @@ -212,6 +247,8 @@ public com.google.logging.v2.Settings getSettings() { return settings_ == null ? com.google.logging.v2.Settings.getDefaultInstance() : settings_; } /** + * + * *
    * Required. The settings to update.
    * See [Enabling CMEK for Log
@@ -219,7 +256,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() { @@ -229,6 +267,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
@@ -237,7 +277,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 @@ -245,6 +287,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
@@ -253,7 +297,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 @@ -261,6 +307,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
@@ -269,7 +317,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() { @@ -277,6 +326,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -288,8 +338,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -312,12 +361,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -327,24 +374,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -372,97 +417,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].
@@ -473,21 +525,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.logging.v2.UpdateSettingsRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.logging.v2.UpdateSettingsRequest)
       com.google.logging.v2.UpdateSettingsRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateSettingsRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.logging.v2.LoggingConfigProto
+          .internal_static_google_logging_v2_UpdateSettingsRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateSettingsRequest_fieldAccessorTable
+      return com.google.logging.v2.LoggingConfigProto
+          .internal_static_google_logging_v2_UpdateSettingsRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.logging.v2.UpdateSettingsRequest.class, com.google.logging.v2.UpdateSettingsRequest.Builder.class);
+              com.google.logging.v2.UpdateSettingsRequest.class,
+              com.google.logging.v2.UpdateSettingsRequest.Builder.class);
     }
 
     // Construct using com.google.logging.v2.UpdateSettingsRequest.newBuilder()
@@ -495,16 +549,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -526,9 +579,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.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
@@ -547,7 +600,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);
+      com.google.logging.v2.UpdateSettingsRequest result =
+          new com.google.logging.v2.UpdateSettingsRequest(this);
       result.name_ = name_;
       if (settingsBuilder_ == null) {
         result.settings_ = settings_;
@@ -567,38 +621,39 @@ public com.google.logging.v2.UpdateSettingsRequest 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.UpdateSettingsRequest) {
-        return mergeFrom((com.google.logging.v2.UpdateSettingsRequest)other);
+        return mergeFrom((com.google.logging.v2.UpdateSettingsRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -648,6 +703,8 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Required. The resource name for the settings to update.
      *     "organizations/[ORGANIZATION_ID]/settings"
@@ -659,13 +716,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; @@ -674,6 +731,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for the settings to update.
      *     "organizations/[ORGANIZATION_ID]/settings"
@@ -685,15 +744,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 { @@ -701,6 +759,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The resource name for the settings to update.
      *     "organizations/[ORGANIZATION_ID]/settings"
@@ -712,20 +772,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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource name for the settings to update.
      *     "organizations/[ORGANIZATION_ID]/settings"
@@ -737,15 +799,18 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The resource name for the settings to update.
      *     "organizations/[ORGANIZATION_ID]/settings"
@@ -757,16 +822,16 @@ 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -774,8 +839,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.
      * See [Enabling CMEK for Log
@@ -783,13 +853,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 settingsBuilder_ != null || settings_ != null; } /** + * + * *
      * Required. The settings to update.
      * See [Enabling CMEK for Log
@@ -797,7 +871,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 +884,8 @@ public com.google.logging.v2.Settings getSettings() { } } /** + * + * *
      * Required. The settings to update.
      * See [Enabling CMEK for Log
@@ -815,7 +893,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) { @@ -831,6 +910,8 @@ public Builder setSettings(com.google.logging.v2.Settings value) { return this; } /** + * + * *
      * Required. The settings to update.
      * See [Enabling CMEK for Log
@@ -838,10 +919,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(); onChanged(); @@ -852,6 +933,8 @@ public Builder setSettings( return this; } /** + * + * *
      * Required. The settings to update.
      * See [Enabling CMEK for Log
@@ -859,13 +942,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 (settings_ != null) { settings_ = - com.google.logging.v2.Settings.newBuilder(settings_).mergeFrom(value).buildPartial(); + com.google.logging.v2.Settings.newBuilder(settings_).mergeFrom(value).buildPartial(); } else { settings_ = value; } @@ -877,6 +961,8 @@ public Builder mergeSettings(com.google.logging.v2.Settings value) { return this; } /** + * + * *
      * Required. The settings to update.
      * See [Enabling CMEK for Log
@@ -884,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() { if (settingsBuilder_ == null) { @@ -898,6 +985,8 @@ public Builder clearSettings() { return this; } /** + * + * *
      * Required. The settings to update.
      * See [Enabling CMEK for Log
@@ -905,14 +994,17 @@ 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() { - + onChanged(); return getSettingsFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The settings to update.
      * See [Enabling CMEK for Log
@@ -920,17 +1012,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.
      * See [Enabling CMEK for Log
@@ -938,17 +1032,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_; @@ -956,8 +1054,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
@@ -966,13 +1069,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 updateMaskBuilder_ != null || 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
@@ -981,17 +1088,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
@@ -1000,7 +1113,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) { @@ -1016,6 +1130,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
@@ -1024,10 +1140,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(); onChanged(); @@ -1038,6 +1154,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
@@ -1046,13 +1164,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 (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -1064,6 +1183,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
@@ -1072,7 +1193,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() { if (updateMaskBuilder_ == null) { @@ -1086,6 +1208,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
@@ -1094,14 +1218,17 @@ 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() { - + onChanged(); 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
@@ -1110,17 +1237,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
@@ -1129,24 +1260,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); } @@ -1156,12 +1291,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(); } @@ -1170,16 +1305,16 @@ 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 { - return new UpdateSettingsRequest(input, extensionRegistry); - } - }; + 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 { + return new UpdateSettingsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1194,6 +1329,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 87ecd1fa1..ca3fd8de2 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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.
    *     "organizations/[ORGANIZATION_ID]/settings"
@@ -19,10 +37,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.
    *     "organizations/[ORGANIZATION_ID]/settings"
@@ -34,12 +55,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.
    * See [Enabling CMEK for Log
@@ -47,11 +70,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.
    * See [Enabling CMEK for Log
@@ -59,11 +86,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.
    * See [Enabling CMEK for Log
@@ -71,11 +102,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
@@ -84,11 +118,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
@@ -97,11 +135,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
@@ -110,7 +152,8 @@ public interface UpdateSettingsRequestOrBuilder extends
    * For example: `"updateMask=kmsKeyName"`
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequest.java similarity index 77% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequest.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequest.java index 3449a4113..38bbaccff 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,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateSinkRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,78 +70,86 @@ private UpdateSinkRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - sinkName_ = s; - break; - } - case 18: { - com.google.logging.v2.LogSink.Builder subBuilder = null; - if (sink_ != null) { - subBuilder = sink_.toBuilder(); - } - sink_ = input.readMessage(com.google.logging.v2.LogSink.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sink_); - sink_ = subBuilder.buildPartial(); + sinkName_ = s; + break; } + case 18: + { + com.google.logging.v2.LogSink.Builder subBuilder = null; + if (sink_ != null) { + subBuilder = sink_.toBuilder(); + } + sink_ = input.readMessage(com.google.logging.v2.LogSink.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sink_); + sink_ = subBuilder.buildPartial(); + } - break; - } - case 24: { - - uniqueWriterIdentity_ = input.readBool(); - break; - } - case 34: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); + break; } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + case 24: + { + uniqueWriterIdentity_ = input.readBool(); + break; } + case 34: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object sinkName_; /** + * + * *
    * Required. The full resource name of the sink to update, including the parent
    * resource and the sink identifier:
@@ -136,7 +161,10 @@ private UpdateSinkRequest(
    *   `"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 @@ -145,14 +173,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:
@@ -164,17 +193,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 { @@ -185,12 +215,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 @@ -198,12 +231,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 @@ -211,6 +247,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`.
@@ -226,6 +264,8 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() {
   public static final int UNIQUE_WRITER_IDENTITY_FIELD_NUMBER = 3;
   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
@@ -240,6 +280,7 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() {
    * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The uniqueWriterIdentity. */ @java.lang.Override @@ -250,6 +291,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
@@ -264,7 +307,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 @@ -272,6 +317,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
@@ -286,7 +333,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 @@ -294,6 +343,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
@@ -308,7 +359,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() { @@ -316,6 +368,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -327,8 +380,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -354,16 +406,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -373,26 +422,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -412,8 +457,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(); @@ -423,118 +467,127 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.UpdateSinkRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.UpdateSinkRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.UpdateSinkRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.UpdateSinkRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.UpdateSinkRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.UpdateSinkRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.UpdateSinkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.UpdateSinkRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.UpdateSinkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.UpdateSinkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.logging.v2.UpdateSinkRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.logging.v2.UpdateSinkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.UpdateSinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.UpdateSinkRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.UpdateSinkRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to `UpdateSink`.
    * 
* * Protobuf type {@code google.logging.v2.UpdateSinkRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.UpdateSinkRequest) com.google.logging.v2.UpdateSinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateSinkRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_UpdateSinkRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateSinkRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_UpdateSinkRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.UpdateSinkRequest.class, com.google.logging.v2.UpdateSinkRequest.Builder.class); + com.google.logging.v2.UpdateSinkRequest.class, + com.google.logging.v2.UpdateSinkRequest.Builder.class); } // Construct using com.google.logging.v2.UpdateSinkRequest.newBuilder() @@ -542,16 +595,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -575,9 +627,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_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 @@ -596,7 +648,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); + com.google.logging.v2.UpdateSinkRequest result = + new com.google.logging.v2.UpdateSinkRequest(this); result.sinkName_ = sinkName_; if (sinkBuilder_ == null) { result.sink_ = sink_; @@ -617,38 +670,39 @@ public com.google.logging.v2.UpdateSinkRequest 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.UpdateSinkRequest) { - return mergeFrom((com.google.logging.v2.UpdateSinkRequest)other); + return mergeFrom((com.google.logging.v2.UpdateSinkRequest) other); } else { super.mergeFrom(other); return this; @@ -701,6 +755,8 @@ public Builder mergeFrom( private java.lang.Object sinkName_ = ""; /** + * + * *
      * Required. The full resource name of the sink to update, including the parent
      * resource and the sink identifier:
@@ -712,14 +768,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; @@ -728,6 +786,8 @@ public java.lang.String getSinkName() { } } /** + * + * *
      * Required. The full resource name of the sink to update, including the parent
      * resource and the sink identifier:
@@ -739,16 +799,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 { @@ -756,6 +817,8 @@ public java.lang.String getSinkName() { } } /** + * + * *
      * Required. The full resource name of the sink to update, including the parent
      * resource and the sink identifier:
@@ -767,21 +830,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) { + public Builder setSinkName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + sinkName_ = value; onChanged(); return this; } /** + * + * *
      * Required. The full resource name of the sink to update, including the parent
      * resource and the sink identifier:
@@ -793,16 +860,21 @@ 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() { - + sinkName_ = getDefaultInstance().getSinkName(); onChanged(); return this; } /** + * + * *
      * Required. The full resource name of the sink to update, including the parent
      * resource and the sink identifier:
@@ -814,17 +886,19 @@ 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) { + public Builder setSinkNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sinkName_ = value; onChanged(); return this; @@ -832,26 +906,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 sinkBuilder_ != null || 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. */ public com.google.logging.v2.LogSink getSink() { @@ -862,6 +945,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`.
@@ -883,6 +968,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`.
@@ -890,8 +977,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();
         onChanged();
@@ -902,6 +988,8 @@ public Builder setSink(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The updated sink, whose name is the same identifier that appears as part
      * of `sink_name`.
@@ -912,8 +1000,7 @@ public Builder setSink(
     public Builder mergeSink(com.google.logging.v2.LogSink value) {
       if (sinkBuilder_ == null) {
         if (sink_ != null) {
-          sink_ =
-            com.google.logging.v2.LogSink.newBuilder(sink_).mergeFrom(value).buildPartial();
+          sink_ = com.google.logging.v2.LogSink.newBuilder(sink_).mergeFrom(value).buildPartial();
         } else {
           sink_ = value;
         }
@@ -925,6 +1012,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`.
@@ -944,6 +1033,8 @@ public Builder clearSink() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The updated sink, whose name is the same identifier that appears as part
      * of `sink_name`.
@@ -952,11 +1043,13 @@ public Builder clearSink() {
      * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED];
      */
     public com.google.logging.v2.LogSink.Builder getSinkBuilder() {
-      
+
       onChanged();
       return getSinkFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Required. The updated sink, whose name is the same identifier that appears as part
      * of `sink_name`.
@@ -968,11 +1061,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`.
@@ -981,21 +1075,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
@@ -1010,6 +1109,7 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() {
      * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The uniqueWriterIdentity. */ @java.lang.Override @@ -1017,6 +1117,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
@@ -1031,16 +1133,19 @@ public boolean getUniqueWriterIdentity() {
      * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The uniqueWriterIdentity to set. * @return This builder for chaining. */ public Builder setUniqueWriterIdentity(boolean value) { - + uniqueWriterIdentity_ = value; onChanged(); 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
@@ -1055,10 +1160,11 @@ public Builder setUniqueWriterIdentity(boolean value) {
      * 
* * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearUniqueWriterIdentity() { - + uniqueWriterIdentity_ = false; onChanged(); return this; @@ -1066,8 +1172,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
@@ -1082,13 +1193,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 updateMaskBuilder_ != null || 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
@@ -1103,17 +1218,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
@@ -1128,7 +1249,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) { @@ -1144,6 +1266,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
@@ -1158,10 +1282,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(); onChanged(); @@ -1172,6 +1296,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
@@ -1186,13 +1312,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 (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -1204,6 +1331,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
@@ -1218,7 +1347,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() { if (updateMaskBuilder_ == null) { @@ -1232,6 +1362,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
@@ -1246,14 +1378,17 @@ 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() { - + onChanged(); 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
@@ -1268,17 +1403,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
@@ -1293,24 +1432,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); } @@ -1320,12 +1463,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(); } @@ -1334,16 +1477,16 @@ 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 { - return new UpdateSinkRequest(input, extensionRegistry); - } - }; + 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 { + return new UpdateSinkRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1358,6 +1501,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 01f5518a2..159c2c3bf 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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:
@@ -19,11 +37,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:
@@ -35,33 +58,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`.
@@ -72,6 +105,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
@@ -86,11 +121,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
@@ -105,11 +143,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
@@ -124,11 +166,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
@@ -143,7 +189,8 @@ public interface UpdateSinkRequestOrBuilder extends
    * For example: `updateMask=filter`
    * 
* - * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequest.java similarity index 74% rename from owl-bot-staging/v2/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequest.java rename to proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequest.java index 824c1ce9d..eb9a02c18 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,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateViewRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,73 +70,81 @@ private UpdateViewRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - com.google.logging.v2.LogView.Builder subBuilder = null; - if (view_ != null) { - subBuilder = view_.toBuilder(); - } - view_ = input.readMessage(com.google.logging.v2.LogView.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(view_); - view_ = subBuilder.buildPartial(); + name_ = s; + break; } + case 18: + { + com.google.logging.v2.LogView.Builder subBuilder = null; + if (view_ != null) { + subBuilder = view_.toBuilder(); + } + view_ = input.readMessage(com.google.logging.v2.LogView.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(view_); + view_ = subBuilder.buildPartial(); + } - break; - } - case 34: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 34: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; private volatile java.lang.Object name_; /** + * + * *
    * Required. The full resource name of the view to update
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
@@ -128,6 +153,7 @@ private UpdateViewRequest(
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The name. */ @java.lang.Override @@ -136,14 +162,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
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
@@ -152,16 +179,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 { @@ -172,11 +198,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 @@ -184,11 +213,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 @@ -196,6 +228,8 @@ public com.google.logging.v2.LogView getView() { return view_ == null ? com.google.logging.v2.LogView.getDefaultInstance() : view_; } /** + * + * *
    * Required. The updated view.
    * 
@@ -210,6 +244,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
@@ -219,7 +255,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 @@ -227,6 +265,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
@@ -236,7 +276,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 @@ -244,6 +286,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
@@ -253,7 +297,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() { @@ -261,6 +306,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -272,8 +318,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.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_); } @@ -296,12 +341,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -311,24 +354,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -356,118 +396,127 @@ public int hashCode() { return hash; } - public static com.google.logging.v2.UpdateViewRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.logging.v2.UpdateViewRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.UpdateViewRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.UpdateViewRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.UpdateViewRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.UpdateViewRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.logging.v2.UpdateViewRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.logging.v2.UpdateViewRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.UpdateViewRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.logging.v2.UpdateViewRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.logging.v2.UpdateViewRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.logging.v2.UpdateViewRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.logging.v2.UpdateViewRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.logging.v2.UpdateViewRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.logging.v2.UpdateViewRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The parameters to `UpdateView`.
    * 
* * Protobuf type {@code google.logging.v2.UpdateViewRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.logging.v2.UpdateViewRequest) com.google.logging.v2.UpdateViewRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateViewRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_UpdateViewRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.logging.v2.LoggingConfigProto.internal_static_google_logging_v2_UpdateViewRequest_fieldAccessorTable + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_UpdateViewRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.logging.v2.UpdateViewRequest.class, com.google.logging.v2.UpdateViewRequest.Builder.class); + com.google.logging.v2.UpdateViewRequest.class, + com.google.logging.v2.UpdateViewRequest.Builder.class); } // Construct using com.google.logging.v2.UpdateViewRequest.newBuilder() @@ -475,16 +524,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -506,9 +554,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 @@ -527,7 +575,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); + com.google.logging.v2.UpdateViewRequest result = + new com.google.logging.v2.UpdateViewRequest(this); result.name_ = name_; if (viewBuilder_ == null) { result.view_ = view_; @@ -547,38 +596,39 @@ public com.google.logging.v2.UpdateViewRequest 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.UpdateViewRequest) { - return mergeFrom((com.google.logging.v2.UpdateViewRequest)other); + return mergeFrom((com.google.logging.v2.UpdateViewRequest) other); } else { super.mergeFrom(other); return this; @@ -628,6 +678,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The full resource name of the view to update
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
@@ -636,13 +688,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; @@ -651,6 +703,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full resource name of the view to update
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
@@ -659,15 +713,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 { @@ -675,6 +728,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The full resource name of the view to update
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
@@ -683,20 +738,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) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The full resource name of the view to update
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
@@ -705,15 +762,18 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The full resource name of the view to update
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
@@ -722,16 +782,16 @@ 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) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -739,24 +799,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 viewBuilder_ != null || view_ != null; } /** + * + * *
      * 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() { @@ -767,6 +836,8 @@ public com.google.logging.v2.LogView getView() { } } /** + * + * *
      * Required. The updated view.
      * 
@@ -787,14 +858,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(); onChanged(); @@ -805,6 +877,8 @@ public Builder setView( return this; } /** + * + * *
      * Required. The updated view.
      * 
@@ -814,8 +888,7 @@ public Builder setView( public Builder mergeView(com.google.logging.v2.LogView value) { if (viewBuilder_ == null) { if (view_ != null) { - view_ = - com.google.logging.v2.LogView.newBuilder(view_).mergeFrom(value).buildPartial(); + view_ = com.google.logging.v2.LogView.newBuilder(view_).mergeFrom(value).buildPartial(); } else { view_ = value; } @@ -827,6 +900,8 @@ public Builder mergeView(com.google.logging.v2.LogView value) { return this; } /** + * + * *
      * Required. The updated view.
      * 
@@ -845,6 +920,8 @@ public Builder clearView() { return this; } /** + * + * *
      * Required. The updated view.
      * 
@@ -852,11 +929,13 @@ public Builder clearView() { * .google.logging.v2.LogView view = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.logging.v2.LogView.Builder getViewBuilder() { - + onChanged(); return getViewFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The updated view.
      * 
@@ -867,11 +946,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.
      * 
@@ -879,14 +959,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_; @@ -894,8 +977,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
@@ -905,13 +993,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 updateMaskBuilder_ != null || 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
@@ -921,17 +1013,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
@@ -941,7 +1039,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) { @@ -957,6 +1056,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
@@ -966,10 +1067,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(); onChanged(); @@ -980,6 +1081,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
@@ -989,13 +1092,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 (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -1007,6 +1111,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
@@ -1016,7 +1122,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() { if (updateMaskBuilder_ == null) { @@ -1030,6 +1137,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,14 +1148,17 @@ 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() { - + onChanged(); 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
@@ -1056,17 +1168,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
@@ -1076,24 +1192,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); } @@ -1103,12 +1223,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(); } @@ -1117,16 +1237,16 @@ 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 { - return new UpdateViewRequest(input, extensionRegistry); - } - }; + 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 { + return new UpdateViewRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1141,6 +1261,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 78% 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 daadb3fca..92d2ba148 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific 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
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
@@ -16,10 +34,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
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
@@ -28,30 +49,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.
    * 
@@ -61,6 +90,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
@@ -70,11 +101,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
@@ -84,11 +119,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
@@ -98,7 +137,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 67% 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 d2abc097b..862dc9917 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,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private WriteLogEntriesPartialErrors( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,79 +69,88 @@ private WriteLogEntriesPartialErrors( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - logEntryErrors_ = com.google.protobuf.MapField.newMapField( - LogEntryErrorsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + logEntryErrors_ = + com.google.protobuf.MapField.newMapField( + LogEntryErrorsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + logEntryErrors__ = + input.readMessage( + LogEntryErrorsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + logEntryErrors_ + .getMutableMap() + .put(logEntryErrors__.getKey(), logEntryErrors__.getValue()); + break; } - com.google.protobuf.MapEntry - logEntryErrors__ = input.readMessage( - LogEntryErrorsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - logEntryErrors_.getMutableMap().put( - logEntryErrors__.getKey(), logEntryErrors__.getValue()); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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()); - } - private com.google.protobuf.MapField< - java.lang.Integer, com.google.rpc.Status> logEntryErrors_; + .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()); + } + + private com.google.protobuf.MapField logEntryErrors_; + private com.google.protobuf.MapField - internalGetLogEntryErrors() { + internalGetLogEntryErrors() { if (logEntryErrors_ == null) { return com.google.protobuf.MapField.emptyMapField( LogEntryErrorsDefaultEntryHolder.defaultEntry); @@ -137,6 +162,8 @@ 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
@@ -147,22 +174,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
@@ -174,11 +199,12 @@ public java.util.Map getLogEntryErrors
    * map<int32, .google.rpc.Status> log_entry_errors = 1;
    */
   @java.lang.Override
-
   public java.util.Map getLogEntryErrorsMap() {
     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
@@ -190,16 +216,16 @@ public java.util.Map getLogEntryErrors
    * map<int32, .google.rpc.Status> log_entry_errors = 1;
    */
   @java.lang.Override
-
   public com.google.rpc.Status getLogEntryErrorsOrDefault(
-      int key,
-      com.google.rpc.Status defaultValue) {
-    
+      int key, 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
@@ -211,10 +237,8 @@ public 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();
     if (!map.containsKey(key)) {
@@ -224,6 +248,7 @@ public com.google.rpc.Status getLogEntryErrorsOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -235,14 +260,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);
     unknownFields.writeTo(output);
   }
 
@@ -252,15 +272,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 += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -270,15 +290,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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -300,139 +320,146 @@ 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() @@ -440,16 +467,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -458,9 +484,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 @@ -479,7 +505,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); + com.google.logging.v2.WriteLogEntriesPartialErrors result = + new com.google.logging.v2.WriteLogEntriesPartialErrors(this); int from_bitField0_ = bitField0_; result.logEntryErrors_ = internalGetLogEntryErrors(); result.logEntryErrors_.makeImmutable(); @@ -491,38 +518,39 @@ public com.google.logging.v2.WriteLogEntriesPartialErrors 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.WriteLogEntriesPartialErrors) { - return mergeFrom((com.google.logging.v2.WriteLogEntriesPartialErrors)other); + return mergeFrom((com.google.logging.v2.WriteLogEntriesPartialErrors) other); } else { super.mergeFrom(other); return this; @@ -530,9 +558,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()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -552,7 +580,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.logging.v2.WriteLogEntriesPartialErrors) e.getUnfinishedMessage(); + parsedMessage = + (com.google.logging.v2.WriteLogEntriesPartialErrors) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -561,24 +590,27 @@ public Builder mergeFrom( } 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() { + internalGetLogEntryErrors() { if (logEntryErrors_ == null) { return com.google.protobuf.MapField.emptyMapField( LogEntryErrorsDefaultEntryHolder.defaultEntry); } return logEntryErrors_; } + private com.google.protobuf.MapField - internalGetMutableLogEntryErrors() { - onChanged();; + internalGetMutableLogEntryErrors() { + onChanged(); + ; 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(); @@ -590,6 +622,8 @@ 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
@@ -600,22 +634,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
@@ -627,11 +659,12 @@ public java.util.Map getLogEntryErrors
      * map<int32, .google.rpc.Status> log_entry_errors = 1;
      */
     @java.lang.Override
-
     public java.util.Map getLogEntryErrorsMap() {
       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
@@ -643,16 +676,16 @@ public java.util.Map getLogEntryErrors
      * map<int32, .google.rpc.Status> log_entry_errors = 1;
      */
     @java.lang.Override
-
     public com.google.rpc.Status getLogEntryErrorsOrDefault(
-        int key,
-        com.google.rpc.Status defaultValue) {
-      
+        int key, 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
@@ -664,10 +697,8 @@ public 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();
       if (!map.containsKey(key)) {
@@ -677,11 +708,12 @@ public com.google.rpc.Status getLogEntryErrorsOrThrow(
     }
 
     public Builder clearLogEntryErrors() {
-      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
@@ -692,23 +724,19 @@ 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() {
       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
@@ -719,16 +747,17 @@ public Builder removeLogEntryErrors(
      *
      * map<int32, .google.rpc.Status> log_entry_errors = 1;
      */
-    public Builder putLogEntryErrors(
-        int key,
-        com.google.rpc.Status value) {
-      
-      if (value == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableLogEntryErrors().getMutableMap()
-          .put(key, value);
+    public Builder putLogEntryErrors(int key, com.google.rpc.Status value) {
+
+      if (value == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableLogEntryErrors().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * When `WriteLogEntriesRequest.partial_success` is true, records the error
      * status for entries that were not written due to a permanent error, keyed
@@ -739,16 +768,14 @@ public Builder putLogEntryErrors(
      *
      * map<int32, .google.rpc.Status> log_entry_errors = 1;
      */
-
     public Builder putAllLogEntryErrors(
         java.util.Map values) {
-      internalGetMutableLogEntryErrors().getMutableMap()
-          .putAll(values);
+      internalGetMutableLogEntryErrors().getMutableMap().putAll(values);
       return this;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -758,12 +785,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();
   }
@@ -772,16 +799,16 @@ 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 {
-      return new WriteLogEntriesPartialErrors(input, extensionRegistry);
-    }
-  };
+  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 {
+          return new WriteLogEntriesPartialErrors(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -796,6 +823,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 3c82c127e..5249a436e 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 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for 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
@@ -20,6 +38,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
@@ -30,15 +50,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
@@ -49,9 +67,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
@@ -62,11 +81,10 @@ boolean containsLogEntryErrors(
    *
    * map<int32, .google.rpc.Status> log_entry_errors = 1;
    */
-
-  com.google.rpc.Status getLogEntryErrorsOrDefault(
-      int key,
-      com.google.rpc.Status defaultValue);
+  com.google.rpc.Status getLogEntryErrorsOrDefault(int key, 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
@@ -77,7 +95,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 d6cd30894..1f564735a 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 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for 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,16 +44,15 @@ private WriteLogEntriesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WriteLogEntriesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private WriteLogEntriesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,71 +72,74 @@ private WriteLogEntriesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - logName_ = s; - break; - } - case 18: { - com.google.api.MonitoredResource.Builder subBuilder = null; - if (resource_ != null) { - subBuilder = resource_.toBuilder(); + logName_ = s; + break; } - resource_ = input.readMessage(com.google.api.MonitoredResource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resource_); - resource_ = subBuilder.buildPartial(); + case 18: + { + com.google.api.MonitoredResource.Builder subBuilder = null; + if (resource_ != null) { + subBuilder = resource_.toBuilder(); + } + resource_ = + input.readMessage(com.google.api.MonitoredResource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + labels_ = + com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + labels_.getMutableMap().put(labels__.getKey(), labels__.getValue()); + break; } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - entries_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + case 34: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + entries_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + entries_.add( + input.readMessage(com.google.logging.v2.LogEntry.parser(), extensionRegistry)); + break; } - entries_.add( - input.readMessage(com.google.logging.v2.LogEntry.parser(), extensionRegistry)); - break; - } - case 40: { - - partialSuccess_ = input.readBool(); - break; - } - case 48: { - - dryRun_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 40: + { + partialSuccess_ = input.readBool(); + break; + } + case 48: + { + dryRun_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) != 0)) { entries_ = java.util.Collections.unmodifiableList(entries_); @@ -128,34 +148,38 @@ private WriteLogEntriesRequest( makeExtensionsImmutable(); } } - 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; 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`:
@@ -172,7 +196,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 @@ -181,14 +208,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`:
@@ -205,17 +233,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 { @@ -226,6 +255,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:
@@ -235,7 +266,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 @@ -243,6 +276,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:
@@ -252,7 +287,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 @@ -260,6 +297,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:
@@ -269,7 +308,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() { @@ -277,24 +317,23 @@ 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, + ""); } - 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_; } @@ -303,6 +342,8 @@ 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
@@ -312,22 +353,22 @@ 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 java.lang.NullPointerException(); }
+  public boolean containsLabels(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
     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
@@ -338,11 +379,12 @@ public java.util.Map getLabels() {
    * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
   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
@@ -353,16 +395,16 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
    */
   @java.lang.Override
-
-  public java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    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
@@ -373,12 +415,11 @@ public 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 java.lang.NullPointerException(); }
-    java.util.Map map =
-        internalGetLabels().getMap();
+  public java.lang.String getLabelsOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new java.lang.NullPointerException();
+    }
+    java.util.Map map = internalGetLabels().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -388,6 +429,8 @@ public java.lang.String getLabelsOrThrow(
   public static final int ENTRIES_FIELD_NUMBER = 4;
   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
@@ -412,13 +455,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
@@ -443,14 +490,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
@@ -475,13 +526,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
@@ -506,13 +561,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
@@ -537,17 +596,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_; /** + * + * *
    * Optional. Whether valid entries should be written even if some other
    * entries fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any
@@ -557,6 +619,7 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(
    * 
* * bool partial_success = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The partialSuccess. */ @java.lang.Override @@ -567,6 +630,8 @@ public boolean getPartialSuccess() { public static final int DRY_RUN_FIELD_NUMBER = 6; 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
@@ -574,6 +639,7 @@ public boolean getPartialSuccess() {
    * 
* * bool dry_run = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The dryRun. */ @java.lang.Override @@ -582,6 +648,7 @@ public boolean getDryRun() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -593,20 +660,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)); } @@ -629,30 +691,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 += unknownFields.getSerializedSize(); memoizedSize = size; @@ -662,28 +720,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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -710,150 +763,155 @@ 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) + unknownFields.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() @@ -861,17 +919,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getEntriesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -898,9 +956,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 @@ -919,7 +977,8 @@ 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); int from_bitField0_ = bitField0_; result.logName_ = logName_; if (resourceBuilder_ == null) { @@ -948,38 +1007,39 @@ public com.google.logging.v2.WriteLogEntriesRequest 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.WriteLogEntriesRequest) { - return mergeFrom((com.google.logging.v2.WriteLogEntriesRequest)other); + return mergeFrom((com.google.logging.v2.WriteLogEntriesRequest) other); } else { super.mergeFrom(other); return this; @@ -995,8 +1055,7 @@ public Builder mergeFrom(com.google.logging.v2.WriteLogEntriesRequest other) { if (other.hasResource()) { mergeResource(other.getResource()); } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); if (entriesBuilder_ == null) { if (!other.entries_.isEmpty()) { if (entries_.isEmpty()) { @@ -1015,9 +1074,10 @@ public Builder mergeFrom(com.google.logging.v2.WriteLogEntriesRequest other) { entriesBuilder_ = null; entries_ = other.entries_; bitField0_ = (bitField0_ & ~0x00000002); - entriesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEntriesFieldBuilder() : null; + entriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEntriesFieldBuilder() + : null; } else { entriesBuilder_.addAllMessages(other.entries_); } @@ -1057,10 +1117,13 @@ public Builder mergeFrom( } 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`:
@@ -1077,14 +1140,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; @@ -1093,6 +1158,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`:
@@ -1109,16 +1176,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 { @@ -1126,6 +1194,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`:
@@ -1142,21 +1212,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) { + public Builder setLogName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + logName_ = value; 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`:
@@ -1173,16 +1247,21 @@ 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() { - + logName_ = getDefaultInstance().getLogName(); 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`:
@@ -1199,17 +1278,19 @@ 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) { + public Builder setLogNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + logName_ = value; onChanged(); return this; @@ -1217,8 +1298,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:
@@ -1228,13 +1314,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 resourceBuilder_ != null || 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:
@@ -1244,17 +1334,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:
@@ -1264,7 +1360,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) { @@ -1280,6 +1377,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:
@@ -1289,10 +1388,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(); onChanged(); @@ -1303,6 +1402,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:
@@ -1312,13 +1413,16 @@ 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 (resource_ != null) { resource_ = - com.google.api.MonitoredResource.newBuilder(resource_).mergeFrom(value).buildPartial(); + com.google.api.MonitoredResource.newBuilder(resource_) + .mergeFrom(value) + .buildPartial(); } else { resource_ = value; } @@ -1330,6 +1434,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:
@@ -1339,7 +1445,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() { if (resourceBuilder_ == null) { @@ -1353,6 +1460,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:
@@ -1362,14 +1471,17 @@ 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() { - + onChanged(); 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:
@@ -1379,17 +1491,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:
@@ -1399,38 +1515,41 @@ 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() { - onChanged();; + internalGetMutableLabels() { + onChanged(); + ; 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(); @@ -1442,6 +1561,8 @@ 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
@@ -1451,22 +1572,22 @@ 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 java.lang.NullPointerException(); }
+    public boolean containsLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
       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
@@ -1477,11 +1598,12 @@ public java.util.Map getLabels() {
      * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
     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
@@ -1492,16 +1614,17 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
      */
     @java.lang.Override
-
     public java.lang.String getLabelsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      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
@@ -1512,12 +1635,11 @@ public 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 java.lang.NullPointerException(); }
-      java.util.Map map =
-          internalGetLabels().getMap();
+    public java.lang.String getLabelsOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      java.util.Map map = internalGetLabels().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -1525,11 +1647,12 @@ public java.lang.String getLabelsOrThrow(
     }
 
     public Builder clearLabels() {
-      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
@@ -1539,23 +1662,21 @@ 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 java.lang.NullPointerException(); }
-      internalGetMutableLabels().getMutableMap()
-          .remove(key);
+    public Builder removeLabels(java.lang.String key) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      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() {
       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
@@ -1565,16 +1686,19 @@ 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 java.lang.NullPointerException(); }
-      if (value == null) { throw new java.lang.NullPointerException(); }
-      internalGetMutableLabels().getMutableMap()
-          .put(key, value);
+    public Builder putLabels(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new java.lang.NullPointerException();
+      }
+      if (value == null) {
+        throw new java.lang.NullPointerException();
+      }
+      internalGetMutableLabels().getMutableMap().put(key, value);
       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
@@ -1584,27 +1708,30 @@ 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);
       return this;
     }
 
     private java.util.List entries_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureEntriesIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
         entries_ = new java.util.ArrayList(entries_);
         bitField0_ |= 0x00000002;
-       }
+      }
     }
 
     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
@@ -1629,7 +1756,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) { @@ -1639,6 +1768,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
@@ -1663,7 +1794,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) { @@ -1673,6 +1806,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
@@ -1697,7 +1832,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) { @@ -1707,6 +1844,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
@@ -1731,10 +1870,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(); @@ -1748,6 +1888,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
@@ -1772,10 +1914,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()); @@ -1786,6 +1929,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
@@ -1810,7 +1955,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) { @@ -1826,6 +1973,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
@@ -1850,10 +1999,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(); @@ -1867,6 +2017,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
@@ -1891,10 +2043,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()); @@ -1905,6 +2058,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
@@ -1929,10 +2084,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()); @@ -1943,6 +2099,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
@@ -1967,14 +2125,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); @@ -1982,6 +2141,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
@@ -2006,7 +2167,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) { @@ -2019,6 +2182,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
@@ -2043,7 +2208,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) { @@ -2056,6 +2223,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
@@ -2080,13 +2249,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
@@ -2111,16 +2283,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
@@ -2145,10 +2321,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 { @@ -2156,6 +2334,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
@@ -2180,13 +2360,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
@@ -2211,14 +2395,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
@@ -2243,29 +2430,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_ & 0x00000002) != 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_ & 0x00000002) != 0), getParentForChildren(), isClean()); entries_ = null; } return entriesBuilder_; } - private boolean partialSuccess_ ; + private boolean partialSuccess_; /** + * + * *
      * Optional. Whether valid entries should be written even if some other
      * entries fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any
@@ -2275,6 +2468,7 @@ public com.google.logging.v2.LogEntry.Builder addEntriesBuilder(
      * 
* * bool partial_success = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The partialSuccess. */ @java.lang.Override @@ -2282,6 +2476,8 @@ public boolean getPartialSuccess() { return partialSuccess_; } /** + * + * *
      * Optional. Whether valid entries should be written even if some other
      * entries fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any
@@ -2291,16 +2487,19 @@ public boolean getPartialSuccess() {
      * 
* * bool partial_success = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The partialSuccess to set. * @return This builder for chaining. */ public Builder setPartialSuccess(boolean value) { - + partialSuccess_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Whether valid entries should be written even if some other
      * entries fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any
@@ -2310,17 +2509,20 @@ public Builder setPartialSuccess(boolean value) {
      * 
* * bool partial_success = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPartialSuccess() { - + partialSuccess_ = false; onChanged(); 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
@@ -2328,6 +2530,7 @@ public Builder clearPartialSuccess() {
      * 
* * bool dry_run = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The dryRun. */ @java.lang.Override @@ -2335,6 +2538,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
@@ -2342,16 +2547,19 @@ public boolean getDryRun() {
      * 
* * bool dry_run = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The dryRun to set. * @return This builder for chaining. */ public Builder setDryRun(boolean value) { - + dryRun_ = value; onChanged(); 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
@@ -2359,17 +2567,18 @@ public Builder setDryRun(boolean value) {
      * 
* * bool dry_run = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearDryRun() { - + dryRun_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2379,12 +2588,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(); } @@ -2393,16 +2602,16 @@ 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 { - return new WriteLogEntriesRequest(input, extensionRegistry); - } - }; + 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 { + return new WriteLogEntriesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2417,6 +2626,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 3ade2e622..5a6121c70 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 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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`:
@@ -24,11 +42,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`:
@@ -45,13 +68,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:
@@ -61,11 +88,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:
@@ -75,11 +106,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:
@@ -89,11 +124,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
@@ -105,6 +143,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
@@ -114,15 +154,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
@@ -132,9 +170,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
@@ -144,11 +183,10 @@ boolean containsLabels(
    *
    * map<string, string> labels = 3 [(.google.api.field_behavior) = OPTIONAL];
    */
-
-  java.lang.String getLabelsOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue);
+  java.lang.String getLabelsOrDefault(java.lang.String key, 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
@@ -158,11 +196,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
@@ -187,11 +225,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
@@ -216,10 +257,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
@@ -244,10 +289,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
@@ -272,11 +321,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
@@ -301,12 +353,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 valid entries should be written even if some other
    * entries fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any
@@ -316,11 +371,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
@@ -328,6 +386,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 67% 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 6d695e355..fa53a3b88 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,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private WriteLogEntriesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,42 @@ private WriteLogEntriesResponse( case 0: done = true; break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - 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; @@ -96,8 +115,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { unknownFields.writeTo(output); } @@ -115,12 +133,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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -138,118 +157,127 @@ 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() @@ -257,16 +285,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -274,9 +301,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 @@ -295,7 +322,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; } @@ -304,38 +332,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; @@ -372,9 +401,9 @@ public Builder mergeFrom( } return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -384,12 +413,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(); } @@ -398,16 +427,16 @@ 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 { - return new WriteLogEntriesResponse(input, extensionRegistry); - } - }; + 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 { + return new WriteLogEntriesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -422,6 +451,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..133cac2a4 --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for 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 From 8cc38ce2405c5e905cc826b25846479b99cf8f83 Mon Sep 17 00:00:00 2001 From: Neenu1995 Date: Mon, 28 Feb 2022 12:52:11 -0500 Subject: [PATCH 3/3] chore: fix dependency --- grpc-google-cloud-logging-v2/pom.xml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/grpc-google-cloud-logging-v2/pom.xml b/grpc-google-cloud-logging-v2/pom.xml index f30aa48d2..823d66ec9 100644 --- a/grpc-google-cloud-logging-v2/pom.xml +++ b/grpc-google-cloud-logging-v2/pom.xml @@ -33,6 +33,10 @@ io.grpc grpc-protobuf + + com.google.api.grpc + proto-google-common-protos + com.google.api.grpc proto-google-cloud-logging-v2