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 ee9fc8439..13aa79ec8 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 @@ -124,19 +124,663 @@ *
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: + *
Method | + *Description | + *Method Variants | + *
---|---|---|
ListBuckets | + *Lists log buckets. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
GetBucket | + *Gets a log bucket. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
CreateBucketAsync | + *Creates a log bucket asynchronously that can be used to store log entries. * - *
|
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
UpdateBucketAsync | + *Updates a log bucket asynchronously. + * + * If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then + * `FAILED_PRECONDITION` will be returned. + * + * After a bucket has been created, the bucket's location cannot be changed. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
CreateBucket | + *Creates a log bucket that can be used to store log entries. After a bucket + * has been created, the bucket's location cannot be changed. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
UpdateBucket | + *Updates a log bucket. + * + * If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then + * `FAILED_PRECONDITION` will be returned. + * + * After a bucket has been created, the bucket's location cannot be changed. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
DeleteBucket | + *Deletes a log bucket. + * + * Changes the bucket's `lifecycle_state` to the `DELETE_REQUESTED` state. + * After 7 days, the bucket will be purged and all log entries in the bucket + * will be permanently deleted. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
UndeleteBucket | + *Undeletes a log bucket. A bucket that has been deleted can be undeleted + * within the grace period of 7 days. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
ListViews | + *Lists views on a log bucket. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
GetView | + *Gets a view on a log bucket.. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
CreateView | + *Creates a view over log entries in a log bucket. A bucket may contain a + * maximum of 30 views. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
UpdateView | + *Updates a view on a log bucket. This method replaces the following fields + * in the existing view with values from the new view: `filter`. + * If an `UNAVAILABLE` error is returned, this indicates that system is not in + * a state where it can update the view. If this occurs, please try again in a + * few minutes. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
DeleteView | + *Deletes a view on a log bucket. + * If an `UNAVAILABLE` error is returned, this indicates that system is not in + * a state where it can delete the view. If this occurs, please try again in a + * few minutes. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
ListSinks | + *Lists sinks. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
GetSink | + *Gets a sink. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
CreateSink | + *Creates a sink that exports specified log entries to a destination. The + * export of newly-ingested log entries begins immediately, unless the sink's + * `writer_identity` is not permitted to write to the destination. A sink can + * export log entries only from the resource owning the sink. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
UpdateSink | + *Updates a sink. This method replaces the following fields in the existing + * sink with values from the new sink: `destination`, and `filter`. + * + * The updated sink might also have a new `writer_identity`; see the + * `unique_writer_identity` field. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
DeleteSink | + *Deletes a sink. If the sink has a unique `writer_identity`, then that + * service account is also deleted. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
CreateLink | + *Asynchronously creates a linked dataset in BigQuery which makes it possible + * to use BigQuery to read the logs stored in the log bucket. A log bucket may + * currently only contain one link. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
DeleteLink | + *Deletes a link. This will also delete the corresponding BigQuery linked + * dataset. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
ListLinks | + *Lists links. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
GetLink | + *Gets a link. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
ListExclusions | + *Lists all the exclusions on the _Default sink in a parent resource. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
GetExclusion | + *Gets the description of an exclusion in the _Default sink. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
CreateExclusion | + *Creates a new exclusion in the _Default sink in a specified parent + * resource. Only log entries belonging to that resource can be excluded. You + * can have up to 10 exclusions in a resource. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
UpdateExclusion | + *Changes one or more properties of an existing exclusion in the _Default + * sink. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
DeleteExclusion | + *Deletes an exclusion in the _Default sink. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
GetCmekSettings | + *Gets the Logging CMEK settings for the given resource. + * + * Note: CMEK for the Log Router can be configured for Google Cloud projects, + * folders, organizations and billing accounts. Once configured for an + * organization, it applies to all projects and folders in the Google Cloud + * organization. + * + * See [Enabling CMEK for Log + * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) + * for more information. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
UpdateCmekSettings | + *Updates the Log Router CMEK settings for the given resource. + * + * Note: CMEK for the Log Router can currently only be configured for Google + * Cloud organizations. Once configured, it applies to all projects and + * folders in the Google Cloud organization. + * + * [UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings] + * will fail if 1) `kms_key_name` is invalid, or 2) the associated service + * account does not have the required + * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or + * 3) access to the key is disabled. + * + * See [Enabling CMEK for Log + * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) + * for more information. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
GetSettings | + *Gets the Log Router settings for the given resource. + * + * Note: Settings for the Log Router can be get for Google Cloud projects, + * folders, organizations and billing accounts. Currently it can only be + * configured for organizations. Once configured for an organization, it + * applies to all projects and folders in the Google Cloud organization. + * + * See [Enabling CMEK for Log + * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) + * for more information. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
UpdateSettings | + *Updates the Log Router settings for the given resource. + * + * Note: Settings for the Log Router can currently only be configured for + * Google Cloud organizations. Once configured, it applies to all projects and + * folders in the Google Cloud organization. + * + * [UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings] + * will fail if 1) `kms_key_name` is invalid, or 2) the associated service + * account does not have the required + * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or + * 3) access to the key is disabled. 4) `location_id` is not supported by + * Logging. 5) `location_id` violate OrgPolicy. + * + * See [Enabling CMEK for Log + * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) + * for more information. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
CopyLogEntries | + *Copies a set of log entries from a log bucket to a Cloud Storage bucket. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
See the individual methods for example code. * 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 fad5b9664..5bac9f449 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 @@ -76,19 +76,132 @@ *
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: - * - *
Method | + *Description | + *Method Variants | + *
---|---|---|
DeleteLog | + *Deletes all the log entries in a log for the _Default Log Bucket. The log + * reappears if it receives new entries. Log entries written shortly before + * the delete operation might not be deleted. Entries received after the + * delete operation with a timestamp before the operation will be deleted. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
WriteLogEntries | + *Writes log entries to Logging. This API method is the + * only way to send log entries to Logging. This method + * is used, directly or indirectly, by the Logging agent + * (fluentd) and all logging libraries configured to use Logging. + * A single request may contain log entries for a maximum of 1000 + * different resources (projects, organizations, billing accounts or + * folders) |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
ListLogEntries | + *Lists log entries. Use this method to retrieve log entries that originated + * from a project/folder/organization/billing account. For ways to export log + * entries, see [Exporting + * Logs](https://cloud.google.com/logging/docs/export). |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
ListMonitoredResourceDescriptors | + *Lists the descriptors for monitored resource types used by Logging. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
ListLogs | + *Lists the logs in projects, organizations, folders, or billing accounts. + * Only logs that have entries are listed. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
TailLogEntries | + *Streaming read of log entries as they are ingested. Until the stream is + * terminated, it will continue reading logs. |
+ *
+ * Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
See the individual methods for example code. * diff --git a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsClient.java b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsClient.java index a0306451a..ac38b4446 100644 --- a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsClient.java +++ b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsClient.java @@ -64,19 +64,109 @@ *
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: - * - *
Method | + *Description | + *Method Variants | + *
---|---|---|
ListLogMetrics | + *Lists logs-based metrics. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
GetLogMetric | + *Gets a logs-based metric. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
CreateLogMetric | + *Creates a logs-based metric. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
UpdateLogMetric | + *Creates or updates a logs-based metric. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
DeleteLogMetric | + *Deletes a logs-based metric. |
+ *
+ * Request object method variants only take one parameter, a request object, which must be constructed before the call. + *
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method. + *
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service. + *
|
+ *
See the individual methods for example code. * diff --git a/owl-bot-staging/v2/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ConfigServiceV2Grpc.java b/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ConfigServiceV2Grpc.java similarity index 52% rename from owl-bot-staging/v2/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ConfigServiceV2Grpc.java rename to grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ConfigServiceV2Grpc.java index 2f08027e5..2363bf43f 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 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.logging.v2; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *
* Service for configuring sinks used to route log entries. *@@ -18,1043 +35,1357 @@ private ConfigServiceV2Grpc() {} public static final java.lang.String SERVICE_NAME = "google.logging.v2.ConfigServiceV2"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor
* Service for configuring sinks used to route log entries. *@@ -1062,37 +1393,50 @@ public ConfigServiceV2FutureStub newStub(io.grpc.Channel channel, io.grpc.CallOp public interface AsyncService { /** + * + * *
* Lists log buckets. **/ - default void listBuckets(com.google.logging.v2.ListBucketsRequest request, + default void listBuckets( + com.google.logging.v2.ListBucketsRequest request, io.grpc.stub.StreamObserver
* Gets a log bucket. **/ - default void getBucket(com.google.logging.v2.GetBucketRequest request, + default void getBucket( + com.google.logging.v2.GetBucketRequest request, io.grpc.stub.StreamObserver
* Creates a log bucket asynchronously that can be used to store log entries. * After a bucket has been created, the bucket's location cannot be changed. **/ - default void createBucketAsync(com.google.logging.v2.CreateBucketRequest request, + default void createBucketAsync( + com.google.logging.v2.CreateBucketRequest request, io.grpc.stub.StreamObserver
* Updates a log bucket asynchronously. * If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then @@ -1100,23 +1444,31 @@ default void createBucketAsync(com.google.logging.v2.CreateBucketRequest request * After a bucket has been created, the bucket's location cannot be changed. **/ - default void updateBucketAsync(com.google.logging.v2.UpdateBucketRequest request, + default void updateBucketAsync( + com.google.logging.v2.UpdateBucketRequest request, io.grpc.stub.StreamObserver
* Creates a log bucket that can be used to store log entries. After a bucket * has been created, the bucket's location cannot be changed. **/ - default void createBucket(com.google.logging.v2.CreateBucketRequest request, + default void createBucket( + com.google.logging.v2.CreateBucketRequest request, io.grpc.stub.StreamObserver
* Updates a log bucket. * If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then @@ -1124,12 +1476,16 @@ default void createBucket(com.google.logging.v2.CreateBucketRequest request, * After a bucket has been created, the bucket's location cannot be changed. **/ - default void updateBucket(com.google.logging.v2.UpdateBucketRequest request, + default void updateBucket( + com.google.logging.v2.UpdateBucketRequest request, io.grpc.stub.StreamObserver
* Deletes a log bucket. * Changes the bucket's `lifecycle_state` to the `DELETE_REQUESTED` state. @@ -1137,54 +1493,71 @@ default void updateBucket(com.google.logging.v2.UpdateBucketRequest request, * will be permanently deleted. **/ - default void deleteBucket(com.google.logging.v2.DeleteBucketRequest request, + default void deleteBucket( + com.google.logging.v2.DeleteBucketRequest request, io.grpc.stub.StreamObserver
* Undeletes a log bucket. A bucket that has been deleted can be undeleted * within the grace period of 7 days. **/ - default void undeleteBucket(com.google.logging.v2.UndeleteBucketRequest request, + default void undeleteBucket( + com.google.logging.v2.UndeleteBucketRequest request, io.grpc.stub.StreamObserver
* Lists views on a log bucket. **/ - default void listViews(com.google.logging.v2.ListViewsRequest request, + default void listViews( + com.google.logging.v2.ListViewsRequest request, io.grpc.stub.StreamObserver
* Gets a view on a log bucket.. **/ - default void getView(com.google.logging.v2.GetViewRequest request, + default void getView( + com.google.logging.v2.GetViewRequest request, io.grpc.stub.StreamObserver
* Creates a view over log entries in a log bucket. A bucket may contain a * maximum of 30 views. **/ - default void createView(com.google.logging.v2.CreateViewRequest request, + default void createView( + com.google.logging.v2.CreateViewRequest request, io.grpc.stub.StreamObserver
* Updates a view on a log bucket. This method replaces the following fields * in the existing view with values from the new view: `filter`. @@ -1193,12 +1566,15 @@ default void createView(com.google.logging.v2.CreateViewRequest request, * few minutes. **/ - default void updateView(com.google.logging.v2.UpdateViewRequest request, + default void updateView( + com.google.logging.v2.UpdateViewRequest request, io.grpc.stub.StreamObserver
* Deletes a view on a log bucket. * If an `UNAVAILABLE` error is returned, this indicates that system is not in @@ -1206,32 +1582,41 @@ default void updateView(com.google.logging.v2.UpdateViewRequest request, * few minutes. **/ - default void deleteView(com.google.logging.v2.DeleteViewRequest request, + default void deleteView( + com.google.logging.v2.DeleteViewRequest request, io.grpc.stub.StreamObserver
* Lists sinks. **/ - default void listSinks(com.google.logging.v2.ListSinksRequest request, + default void listSinks( + com.google.logging.v2.ListSinksRequest request, io.grpc.stub.StreamObserver
* Gets a sink. **/ - default void getSink(com.google.logging.v2.GetSinkRequest request, + default void getSink( + com.google.logging.v2.GetSinkRequest request, io.grpc.stub.StreamObserver
* Creates a sink that exports specified log entries to a destination. The * export of newly-ingested log entries begins immediately, unless the sink's @@ -1239,12 +1624,15 @@ default void getSink(com.google.logging.v2.GetSinkRequest request, * export log entries only from the resource owning the sink. **/ - default void createSink(com.google.logging.v2.CreateSinkRequest request, + default void createSink( + com.google.logging.v2.CreateSinkRequest request, io.grpc.stub.StreamObserver
* Updates a sink. This method replaces the following fields in the existing * sink with values from the new sink: `destination`, and `filter`. @@ -1252,119 +1640,158 @@ default void createSink(com.google.logging.v2.CreateSinkRequest request, * `unique_writer_identity` field. **/ - default void updateSink(com.google.logging.v2.UpdateSinkRequest request, + default void updateSink( + com.google.logging.v2.UpdateSinkRequest request, io.grpc.stub.StreamObserver
* Deletes a sink. If the sink has a unique `writer_identity`, then that * service account is also deleted. **/ - default void deleteSink(com.google.logging.v2.DeleteSinkRequest request, + default void deleteSink( + com.google.logging.v2.DeleteSinkRequest request, io.grpc.stub.StreamObserver
* Asynchronously creates a linked dataset in BigQuery which makes it possible * to use BigQuery to read the logs stored in the log bucket. A log bucket may * currently only contain one link. **/ - default void createLink(com.google.logging.v2.CreateLinkRequest request, + default void createLink( + com.google.logging.v2.CreateLinkRequest request, io.grpc.stub.StreamObserver
* Deletes a link. This will also delete the corresponding BigQuery linked * dataset. **/ - default void deleteLink(com.google.logging.v2.DeleteLinkRequest request, + default void deleteLink( + com.google.logging.v2.DeleteLinkRequest request, io.grpc.stub.StreamObserver
* Lists links. **/ - default void listLinks(com.google.logging.v2.ListLinksRequest request, + default void listLinks( + com.google.logging.v2.ListLinksRequest request, io.grpc.stub.StreamObserver
* Gets a link. **/ - default void getLink(com.google.logging.v2.GetLinkRequest request, + default void getLink( + com.google.logging.v2.GetLinkRequest request, io.grpc.stub.StreamObserver
* Lists all the exclusions on the _Default sink in a parent resource. **/ - default void listExclusions(com.google.logging.v2.ListExclusionsRequest request, - io.grpc.stub.StreamObserver
* Gets the description of an exclusion in the _Default sink. **/ - default void getExclusion(com.google.logging.v2.GetExclusionRequest request, + default void getExclusion( + com.google.logging.v2.GetExclusionRequest request, io.grpc.stub.StreamObserver
* Creates a new exclusion in the _Default sink in a specified parent * resource. Only log entries belonging to that resource can be excluded. You * can have up to 10 exclusions in a resource. **/ - default void createExclusion(com.google.logging.v2.CreateExclusionRequest request, + default void createExclusion( + com.google.logging.v2.CreateExclusionRequest request, io.grpc.stub.StreamObserver
* Changes one or more properties of an existing exclusion in the _Default * sink. **/ - default void updateExclusion(com.google.logging.v2.UpdateExclusionRequest request, + default void updateExclusion( + com.google.logging.v2.UpdateExclusionRequest request, io.grpc.stub.StreamObserver
* Deletes an exclusion in the _Default sink. **/ - default void deleteExclusion(com.google.logging.v2.DeleteExclusionRequest request, + default void deleteExclusion( + com.google.logging.v2.DeleteExclusionRequest request, io.grpc.stub.StreamObserver
* Gets the Logging CMEK settings for the given resource. * Note: CMEK for the Log Router can be configured for Google Cloud projects, @@ -1376,12 +1803,16 @@ default void deleteExclusion(com.google.logging.v2.DeleteExclusionRequest reques * for more information. **/ - default void getCmekSettings(com.google.logging.v2.GetCmekSettingsRequest request, + default void getCmekSettings( + com.google.logging.v2.GetCmekSettingsRequest request, io.grpc.stub.StreamObserver
* Updates the Log Router CMEK settings for the given resource. * Note: CMEK for the Log Router can currently only be configured for Google @@ -1397,12 +1828,16 @@ default void getCmekSettings(com.google.logging.v2.GetCmekSettingsRequest reques * for more information. **/ - default void updateCmekSettings(com.google.logging.v2.UpdateCmekSettingsRequest request, + default void updateCmekSettings( + com.google.logging.v2.UpdateCmekSettingsRequest request, io.grpc.stub.StreamObserver
* Gets the Log Router settings for the given resource. * Note: Settings for the Log Router can be get for Google Cloud projects, @@ -1414,12 +1849,16 @@ default void updateCmekSettings(com.google.logging.v2.UpdateCmekSettingsRequest * for more information. **/ - default void getSettings(com.google.logging.v2.GetSettingsRequest request, + default void getSettings( + com.google.logging.v2.GetSettingsRequest request, io.grpc.stub.StreamObserver
* Updates the Log Router settings for the given resource. * Note: Settings for the Log Router can currently only be configured for @@ -1436,90 +1875,112 @@ default void getSettings(com.google.logging.v2.GetSettingsRequest request, * for more information. **/ - default void updateSettings(com.google.logging.v2.UpdateSettingsRequest request, + default void updateSettings( + com.google.logging.v2.UpdateSettingsRequest request, io.grpc.stub.StreamObserver
* Copies a set of log entries from a log bucket to a Cloud Storage bucket. **/ - default void copyLogEntries(com.google.logging.v2.CopyLogEntriesRequest request, + default void copyLogEntries( + com.google.logging.v2.CopyLogEntriesRequest request, io.grpc.stub.StreamObserver
* Service for configuring sinks used to route log entries. **/ - public static abstract class ConfigServiceV2ImplBase + public abstract static class ConfigServiceV2ImplBase implements io.grpc.BindableService, AsyncService { - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return ConfigServiceV2Grpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service ConfigServiceV2. + * *
* Service for configuring sinks used to route log entries. **/ public static final class ConfigServiceV2Stub extends io.grpc.stub.AbstractAsyncStub
* 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
* 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
* Creates a log bucket asynchronously that can be used to store log entries. * After a bucket has been created, the bucket's location cannot be changed. **/ - public void createBucketAsync(com.google.logging.v2.CreateBucketRequest request, + public void createBucketAsync( + com.google.logging.v2.CreateBucketRequest request, io.grpc.stub.StreamObserver
* Updates a log bucket asynchronously. * If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then @@ -1527,25 +1988,35 @@ public void createBucketAsync(com.google.logging.v2.CreateBucketRequest request, * After a bucket has been created, the bucket's location cannot be changed. **/ - public void updateBucketAsync(com.google.logging.v2.UpdateBucketRequest request, + public void updateBucketAsync( + com.google.logging.v2.UpdateBucketRequest request, io.grpc.stub.StreamObserver
* 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
* Updates a log bucket. * If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then @@ -1553,13 +2024,18 @@ public void createBucket(com.google.logging.v2.CreateBucketRequest request, * After a bucket has been created, the bucket's location cannot be changed. **/ - public void updateBucket(com.google.logging.v2.UpdateBucketRequest request, + public void updateBucket( + com.google.logging.v2.UpdateBucketRequest request, io.grpc.stub.StreamObserver
* Deletes a log bucket. * Changes the bucket's `lifecycle_state` to the `DELETE_REQUESTED` state. @@ -1567,59 +2043,78 @@ public void updateBucket(com.google.logging.v2.UpdateBucketRequest request, * will be permanently deleted. **/ - public void deleteBucket(com.google.logging.v2.DeleteBucketRequest request, + public void deleteBucket( + com.google.logging.v2.DeleteBucketRequest request, io.grpc.stub.StreamObserver
* 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
* 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
* 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
* 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
* Updates a view on a log bucket. This method replaces the following fields * in the existing view with values from the new view: `filter`. @@ -1628,13 +2123,16 @@ public void createView(com.google.logging.v2.CreateViewRequest request, * few minutes. **/ - public void updateView(com.google.logging.v2.UpdateViewRequest request, + public void updateView( + com.google.logging.v2.UpdateViewRequest request, io.grpc.stub.StreamObserver
* Deletes a view on a log bucket. * If an `UNAVAILABLE` error is returned, this indicates that system is not in @@ -1642,35 +2140,44 @@ public void updateView(com.google.logging.v2.UpdateViewRequest request, * few minutes. **/ - public void deleteView(com.google.logging.v2.DeleteViewRequest request, + public void deleteView( + com.google.logging.v2.DeleteViewRequest request, io.grpc.stub.StreamObserver
* Lists sinks. **/ - public void listSinks(com.google.logging.v2.ListSinksRequest request, + public void listSinks( + com.google.logging.v2.ListSinksRequest request, io.grpc.stub.StreamObserver
* 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
* Creates a sink that exports specified log entries to a destination. The * export of newly-ingested log entries begins immediately, unless the sink's @@ -1678,13 +2185,16 @@ public void getSink(com.google.logging.v2.GetSinkRequest request, * export log entries only from the resource owning the sink. **/ - public void createSink(com.google.logging.v2.CreateSinkRequest request, + public void createSink( + com.google.logging.v2.CreateSinkRequest request, io.grpc.stub.StreamObserver
* Updates a sink. This method replaces the following fields in the existing * sink with values from the new sink: `destination`, and `filter`. @@ -1692,130 +2202,174 @@ public void createSink(com.google.logging.v2.CreateSinkRequest request, * `unique_writer_identity` field. **/ - public void updateSink(com.google.logging.v2.UpdateSinkRequest request, + public void updateSink( + com.google.logging.v2.UpdateSinkRequest request, io.grpc.stub.StreamObserver
* 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
* Asynchronously creates a linked dataset in BigQuery which makes it possible * to use BigQuery to read the logs stored in the log bucket. A log bucket may * currently only contain one link. **/ - public void createLink(com.google.logging.v2.CreateLinkRequest request, + public void createLink( + com.google.logging.v2.CreateLinkRequest request, io.grpc.stub.StreamObserver
* Deletes a link. This will also delete the corresponding BigQuery linked * dataset. **/ - public void deleteLink(com.google.logging.v2.DeleteLinkRequest request, + public void deleteLink( + com.google.logging.v2.DeleteLinkRequest request, io.grpc.stub.StreamObserver
* Lists links. **/ - public void listLinks(com.google.logging.v2.ListLinksRequest request, + public void listLinks( + com.google.logging.v2.ListLinksRequest request, io.grpc.stub.StreamObserver
* Gets a link. **/ - public void getLink(com.google.logging.v2.GetLinkRequest request, + public void getLink( + com.google.logging.v2.GetLinkRequest request, io.grpc.stub.StreamObserver
* 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
* 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
* 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
* 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
* 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
* Gets the Logging CMEK settings for the given resource. * Note: CMEK for the Log Router can be configured for Google Cloud projects, @@ -1827,13 +2381,18 @@ public void deleteExclusion(com.google.logging.v2.DeleteExclusionRequest request * for more information. **/ - public void getCmekSettings(com.google.logging.v2.GetCmekSettingsRequest request, + public void getCmekSettings( + com.google.logging.v2.GetCmekSettingsRequest request, io.grpc.stub.StreamObserver
* Updates the Log Router CMEK settings for the given resource. * Note: CMEK for the Log Router can currently only be configured for Google @@ -1849,13 +2408,18 @@ public void getCmekSettings(com.google.logging.v2.GetCmekSettingsRequest request * for more information. **/ - public void updateCmekSettings(com.google.logging.v2.UpdateCmekSettingsRequest request, + public void updateCmekSettings( + com.google.logging.v2.UpdateCmekSettingsRequest request, io.grpc.stub.StreamObserver
* Gets the Log Router settings for the given resource. * Note: Settings for the Log Router can be get for Google Cloud projects, @@ -1867,13 +2431,18 @@ public void updateCmekSettings(com.google.logging.v2.UpdateCmekSettingsRequest r * for more information. **/ - public void getSettings(com.google.logging.v2.GetSettingsRequest request, + public void getSettings( + com.google.logging.v2.GetSettingsRequest request, io.grpc.stub.StreamObserver
* Updates the Log Router settings for the given resource. * Note: Settings for the Log Router can currently only be configured for @@ -1890,34 +2459,42 @@ public void getSettings(com.google.logging.v2.GetSettingsRequest request, * for more information. **/ - public void updateSettings(com.google.logging.v2.UpdateSettingsRequest request, + public void updateSettings( + com.google.logging.v2.UpdateSettingsRequest request, io.grpc.stub.StreamObserver
* 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
* Service for configuring sinks used to route log entries. **/ public static final class ConfigServiceV2BlockingStub extends io.grpc.stub.AbstractBlockingStub
* Lists log buckets. **/ - public com.google.logging.v2.ListBucketsResponse listBuckets(com.google.logging.v2.ListBucketsRequest request) { + public com.google.logging.v2.ListBucketsResponse listBuckets( + com.google.logging.v2.ListBucketsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListBucketsMethod(), getCallOptions(), request); } /** + * + * *
* Gets a log bucket. **/ - public com.google.logging.v2.LogBucket getBucket(com.google.logging.v2.GetBucketRequest request) { + public com.google.logging.v2.LogBucket getBucket( + com.google.logging.v2.GetBucketRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetBucketMethod(), getCallOptions(), request); } /** + * + * *
* Creates a log bucket asynchronously that can be used to store log entries. * After a bucket has been created, the bucket's location cannot be changed. **/ - public com.google.longrunning.Operation createBucketAsync(com.google.logging.v2.CreateBucketRequest request) { + public com.google.longrunning.Operation createBucketAsync( + com.google.logging.v2.CreateBucketRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateBucketAsyncMethod(), getCallOptions(), request); } /** + * + * *
* Updates a log bucket asynchronously. * If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then @@ -1966,23 +2554,29 @@ public com.google.longrunning.Operation createBucketAsync(com.google.logging.v2. * After a bucket has been created, the bucket's location cannot be changed. **/ - public com.google.longrunning.Operation updateBucketAsync(com.google.logging.v2.UpdateBucketRequest request) { + public com.google.longrunning.Operation updateBucketAsync( + com.google.logging.v2.UpdateBucketRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateBucketAsyncMethod(), getCallOptions(), request); } /** + * + * *
* Creates a log bucket that can be used to store log entries. After a bucket * has been created, the bucket's location cannot be changed. **/ - public com.google.logging.v2.LogBucket createBucket(com.google.logging.v2.CreateBucketRequest request) { + public com.google.logging.v2.LogBucket createBucket( + com.google.logging.v2.CreateBucketRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateBucketMethod(), getCallOptions(), request); } /** + * + * *
* Updates a log bucket. * If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then @@ -1990,12 +2584,15 @@ public com.google.logging.v2.LogBucket createBucket(com.google.logging.v2.Create * After a bucket has been created, the bucket's location cannot be changed. **/ - public com.google.logging.v2.LogBucket updateBucket(com.google.logging.v2.UpdateBucketRequest request) { + public com.google.logging.v2.LogBucket updateBucket( + com.google.logging.v2.UpdateBucketRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateBucketMethod(), getCallOptions(), request); } /** + * + * *
* Deletes a log bucket. * Changes the bucket's `lifecycle_state` to the `DELETE_REQUESTED` state. @@ -2003,33 +2600,42 @@ public com.google.logging.v2.LogBucket updateBucket(com.google.logging.v2.Update * will be permanently deleted. **/ - public com.google.protobuf.Empty deleteBucket(com.google.logging.v2.DeleteBucketRequest request) { + public com.google.protobuf.Empty deleteBucket( + com.google.logging.v2.DeleteBucketRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteBucketMethod(), getCallOptions(), request); } /** + * + * *
* Undeletes a log bucket. A bucket that has been deleted can be undeleted * within the grace period of 7 days. **/ - public com.google.protobuf.Empty undeleteBucket(com.google.logging.v2.UndeleteBucketRequest request) { + public com.google.protobuf.Empty undeleteBucket( + com.google.logging.v2.UndeleteBucketRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUndeleteBucketMethod(), getCallOptions(), request); } /** + * + * *
* Lists views on a log bucket. **/ - public com.google.logging.v2.ListViewsResponse listViews(com.google.logging.v2.ListViewsRequest request) { + public com.google.logging.v2.ListViewsResponse listViews( + com.google.logging.v2.ListViewsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListViewsMethod(), getCallOptions(), request); } /** + * + * *
* Gets a view on a log bucket.. *@@ -2040,17 +2646,22 @@ public com.google.logging.v2.LogView getView(com.google.logging.v2.GetViewReques } /** + * + * *
* Creates a view over log entries in a log bucket. A bucket may contain a * maximum of 30 views. **/ - public com.google.logging.v2.LogView createView(com.google.logging.v2.CreateViewRequest request) { + public com.google.logging.v2.LogView createView( + com.google.logging.v2.CreateViewRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateViewMethod(), getCallOptions(), request); } /** + * + * *
* Updates a view on a log bucket. This method replaces the following fields * in the existing view with values from the new view: `filter`. @@ -2059,12 +2670,15 @@ public com.google.logging.v2.LogView createView(com.google.logging.v2.CreateView * few minutes. **/ - public com.google.logging.v2.LogView updateView(com.google.logging.v2.UpdateViewRequest request) { + public com.google.logging.v2.LogView updateView( + com.google.logging.v2.UpdateViewRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateViewMethod(), getCallOptions(), request); } /** + * + * *
* Deletes a view on a log bucket. * If an `UNAVAILABLE` error is returned, this indicates that system is not in @@ -2078,16 +2692,21 @@ public com.google.protobuf.Empty deleteView(com.google.logging.v2.DeleteViewRequ } /** + * + * ** Lists sinks. **/ - public com.google.logging.v2.ListSinksResponse listSinks(com.google.logging.v2.ListSinksRequest request) { + public com.google.logging.v2.ListSinksResponse listSinks( + com.google.logging.v2.ListSinksRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListSinksMethod(), getCallOptions(), request); } /** + * + * ** Gets a sink. *@@ -2098,6 +2717,8 @@ public com.google.logging.v2.LogSink getSink(com.google.logging.v2.GetSinkReques } /** + * + * ** Creates a sink that exports specified log entries to a destination. The * export of newly-ingested log entries begins immediately, unless the sink's @@ -2105,12 +2726,15 @@ public com.google.logging.v2.LogSink getSink(com.google.logging.v2.GetSinkReques * export log entries only from the resource owning the sink. **/ - public com.google.logging.v2.LogSink createSink(com.google.logging.v2.CreateSinkRequest request) { + public com.google.logging.v2.LogSink createSink( + com.google.logging.v2.CreateSinkRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateSinkMethod(), getCallOptions(), request); } /** + * + * ** Updates a sink. This method replaces the following fields in the existing * sink with values from the new sink: `destination`, and `filter`. @@ -2118,12 +2742,15 @@ public com.google.logging.v2.LogSink createSink(com.google.logging.v2.CreateSink * `unique_writer_identity` field. **/ - public com.google.logging.v2.LogSink updateSink(com.google.logging.v2.UpdateSinkRequest request) { + public com.google.logging.v2.LogSink updateSink( + com.google.logging.v2.UpdateSinkRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateSinkMethod(), getCallOptions(), request); } /** + * + * ** Deletes a sink. If the sink has a unique `writer_identity`, then that * service account is also deleted. @@ -2135,39 +2762,50 @@ public com.google.protobuf.Empty deleteSink(com.google.logging.v2.DeleteSinkRequ } /** + * + * ** Asynchronously creates a linked dataset in BigQuery which makes it possible * to use BigQuery to read the logs stored in the log bucket. A log bucket may * currently only contain one link. **/ - public com.google.longrunning.Operation createLink(com.google.logging.v2.CreateLinkRequest request) { + public com.google.longrunning.Operation createLink( + com.google.logging.v2.CreateLinkRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateLinkMethod(), getCallOptions(), request); } /** + * + * ** Deletes a link. This will also delete the corresponding BigQuery linked * dataset. **/ - public com.google.longrunning.Operation deleteLink(com.google.logging.v2.DeleteLinkRequest request) { + public com.google.longrunning.Operation deleteLink( + com.google.logging.v2.DeleteLinkRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteLinkMethod(), getCallOptions(), request); } /** + * + * ** Lists links. **/ - public com.google.logging.v2.ListLinksResponse listLinks(com.google.logging.v2.ListLinksRequest request) { + public com.google.logging.v2.ListLinksResponse listLinks( + com.google.logging.v2.ListLinksRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListLinksMethod(), getCallOptions(), request); } /** + * + * ** Gets a link. *@@ -2178,59 +2816,76 @@ public com.google.logging.v2.Link getLink(com.google.logging.v2.GetLinkRequest r } /** + * + * ** Lists all the exclusions on the _Default sink in a parent resource. **/ - public com.google.logging.v2.ListExclusionsResponse listExclusions(com.google.logging.v2.ListExclusionsRequest request) { + public com.google.logging.v2.ListExclusionsResponse listExclusions( + com.google.logging.v2.ListExclusionsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListExclusionsMethod(), getCallOptions(), request); } /** + * + * ** Gets the description of an exclusion in the _Default sink. **/ - public com.google.logging.v2.LogExclusion getExclusion(com.google.logging.v2.GetExclusionRequest request) { + public com.google.logging.v2.LogExclusion getExclusion( + com.google.logging.v2.GetExclusionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetExclusionMethod(), getCallOptions(), request); } /** + * + * ** Creates a new exclusion in the _Default sink in a specified parent * resource. Only log entries belonging to that resource can be excluded. You * can have up to 10 exclusions in a resource. **/ - public com.google.logging.v2.LogExclusion createExclusion(com.google.logging.v2.CreateExclusionRequest request) { + public com.google.logging.v2.LogExclusion createExclusion( + com.google.logging.v2.CreateExclusionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateExclusionMethod(), getCallOptions(), request); } /** + * + * ** Changes one or more properties of an existing exclusion in the _Default * sink. **/ - public com.google.logging.v2.LogExclusion updateExclusion(com.google.logging.v2.UpdateExclusionRequest request) { + public com.google.logging.v2.LogExclusion updateExclusion( + com.google.logging.v2.UpdateExclusionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateExclusionMethod(), getCallOptions(), request); } /** + * + * ** Deletes an exclusion in the _Default sink. **/ - public com.google.protobuf.Empty deleteExclusion(com.google.logging.v2.DeleteExclusionRequest request) { + public com.google.protobuf.Empty deleteExclusion( + com.google.logging.v2.DeleteExclusionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteExclusionMethod(), getCallOptions(), request); } /** + * + * ** Gets the Logging CMEK settings for the given resource. * Note: CMEK for the Log Router can be configured for Google Cloud projects, @@ -2242,12 +2897,15 @@ public com.google.protobuf.Empty deleteExclusion(com.google.logging.v2.DeleteExc * for more information. **/ - public com.google.logging.v2.CmekSettings getCmekSettings(com.google.logging.v2.GetCmekSettingsRequest request) { + public com.google.logging.v2.CmekSettings getCmekSettings( + com.google.logging.v2.GetCmekSettingsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetCmekSettingsMethod(), getCallOptions(), request); } /** + * + * ** Updates the Log Router CMEK settings for the given resource. * Note: CMEK for the Log Router can currently only be configured for Google @@ -2263,12 +2921,15 @@ public com.google.logging.v2.CmekSettings getCmekSettings(com.google.logging.v2. * for more information. **/ - public com.google.logging.v2.CmekSettings updateCmekSettings(com.google.logging.v2.UpdateCmekSettingsRequest request) { + public com.google.logging.v2.CmekSettings updateCmekSettings( + com.google.logging.v2.UpdateCmekSettingsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateCmekSettingsMethod(), getCallOptions(), request); } /** + * + * ** Gets the Log Router settings for the given resource. * Note: Settings for the Log Router can be get for Google Cloud projects, @@ -2280,12 +2941,15 @@ public com.google.logging.v2.CmekSettings updateCmekSettings(com.google.logging. * for more information. **/ - public com.google.logging.v2.Settings getSettings(com.google.logging.v2.GetSettingsRequest request) { + public com.google.logging.v2.Settings getSettings( + com.google.logging.v2.GetSettingsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetSettingsMethod(), getCallOptions(), request); } /** + * + * ** Updates the Log Router settings for the given resource. * Note: Settings for the Log Router can currently only be configured for @@ -2302,17 +2966,21 @@ public com.google.logging.v2.Settings getSettings(com.google.logging.v2.GetSetti * for more information. **/ - public com.google.logging.v2.Settings updateSettings(com.google.logging.v2.UpdateSettingsRequest request) { + public com.google.logging.v2.Settings updateSettings( + com.google.logging.v2.UpdateSettingsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateSettingsMethod(), getCallOptions(), request); } /** + * + * ** Copies a set of log entries from a log bucket to a Cloud Storage bucket. **/ - public com.google.longrunning.Operation copyLogEntries(com.google.logging.v2.CopyLogEntriesRequest request) { + public com.google.longrunning.Operation copyLogEntries( + com.google.logging.v2.CopyLogEntriesRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCopyLogEntriesMethod(), getCallOptions(), request); } @@ -2320,14 +2988,14 @@ public com.google.longrunning.Operation copyLogEntries(com.google.logging.v2.Cop /** * A stub to allow clients to do ListenableFuture-style rpc calls to service ConfigServiceV2. + * ** Service for configuring sinks used to route log entries. **/ public static final class ConfigServiceV2FutureStub extends io.grpc.stub.AbstractFutureStub{ - private ConfigServiceV2FutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private ConfigServiceV2FutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -2338,40 +3006,49 @@ protected ConfigServiceV2FutureStub build( } /** + * + * * * Lists log buckets. **/ - public com.google.common.util.concurrent.ListenableFuturelistBuckets( - 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.ListenableFuturegetBucket( - com.google.logging.v2.GetBucketRequest request) { + public com.google.common.util.concurrent.ListenableFuture + getBucket(com.google.logging.v2.GetBucketRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetBucketMethod(), getCallOptions()), request); } /** + * + * * * Creates a log bucket asynchronously that can be used to store log entries. * After a bucket has been created, the bucket's location cannot be changed. **/ - public com.google.common.util.concurrent.ListenableFuturecreateBucketAsync( - com.google.logging.v2.CreateBucketRequest request) { + public com.google.common.util.concurrent.ListenableFuture