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 0bb8536ef..4e1108a36 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 @@ -31,16 +31,19 @@ import com.google.common.util.concurrent.MoreExecutors; import com.google.logging.v2.BillingAccountLocationName; import com.google.logging.v2.BillingAccountName; +import com.google.logging.v2.BucketMetadata; import com.google.logging.v2.CmekSettings; import com.google.logging.v2.CopyLogEntriesMetadata; import com.google.logging.v2.CopyLogEntriesRequest; import com.google.logging.v2.CopyLogEntriesResponse; import com.google.logging.v2.CreateBucketRequest; import com.google.logging.v2.CreateExclusionRequest; +import com.google.logging.v2.CreateLinkRequest; import com.google.logging.v2.CreateSinkRequest; import com.google.logging.v2.CreateViewRequest; import com.google.logging.v2.DeleteBucketRequest; import com.google.logging.v2.DeleteExclusionRequest; +import com.google.logging.v2.DeleteLinkRequest; import com.google.logging.v2.DeleteSinkRequest; import com.google.logging.v2.DeleteViewRequest; import com.google.logging.v2.FolderLocationName; @@ -48,19 +51,26 @@ import com.google.logging.v2.GetBucketRequest; import com.google.logging.v2.GetCmekSettingsRequest; import com.google.logging.v2.GetExclusionRequest; +import com.google.logging.v2.GetLinkRequest; import com.google.logging.v2.GetSettingsRequest; import com.google.logging.v2.GetSinkRequest; import com.google.logging.v2.GetViewRequest; +import com.google.logging.v2.Link; +import com.google.logging.v2.LinkMetadata; +import com.google.logging.v2.LinkName; import com.google.logging.v2.ListBucketsRequest; import com.google.logging.v2.ListBucketsResponse; import com.google.logging.v2.ListExclusionsRequest; import com.google.logging.v2.ListExclusionsResponse; +import com.google.logging.v2.ListLinksRequest; +import com.google.logging.v2.ListLinksResponse; import com.google.logging.v2.ListSinksRequest; import com.google.logging.v2.ListSinksResponse; import com.google.logging.v2.ListViewsRequest; import com.google.logging.v2.ListViewsResponse; import com.google.logging.v2.LocationName; import com.google.logging.v2.LogBucket; +import com.google.logging.v2.LogBucketName; import com.google.logging.v2.LogExclusion; import com.google.logging.v2.LogExclusionName; import com.google.logging.v2.LogSink; @@ -569,6 +579,215 @@ public final UnaryCallable getBucketCallable() { return stub.getBucketCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a log bucket asynchronously that can be used to store log entries. + * + *

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

Sample code: + * + *

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

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

Sample code: + * + *

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

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

Sample code: + * + *

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

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

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

Sample code: + * + *

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

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

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

Sample code: + * + *

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

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

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

Sample code: + * + *

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

If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then `FAILED_PRECONDITION` will * be returned. @@ -673,11 +888,7 @@ public final LogBucket updateBucket(UpdateBucketRequest 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. + * Updates a log bucket. * *

If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then `FAILED_PRECONDITION` will * be returned. @@ -1902,11 +2113,698 @@ public final LogSink updateSink(LogSinkName sinkName, LogSink sink) { // 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. + * Updates a sink. This method replaces the following fields in the existing sink with values from + * the new sink: `destination`, and `filter`. + * + *

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

Sample code: + * + *

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

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

For example: + *

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

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

Sample code: + * + *

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

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

For example: + *

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

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

`destination,filter,includeChildren` + *

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

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

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

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

Sample code: + * + *

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

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

For example: + *

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

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

`destination,filter,includeChildren` + *

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

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

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

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

Sample code: + * + *

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

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

Sample code: + * + *

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

Sample code: + * + *

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

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

For example: + *

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

Sample code: + * + *

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

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

For example: + *

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

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

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

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

Sample code: + * + *

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

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

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

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

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

Sample code: + * + *

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

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

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: * @@ -1917,37 +2815,30 @@ public final LogSink updateSink(LogSinkName sinkName, LogSink sink) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConfigClient configClient = ConfigClient.create()) { - * String sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString(); - * LogSink sink = LogSink.newBuilder().build(); - * LogSink response = configClient.updateSink(sinkName, sink); + * LogBucketName parent = + * LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]"); + * for (Link element : configClient.listLinks(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @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 parent Required. The parent resource whose links are to be listed: + *

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/" + * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/" + * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/" + * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/ * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final LogSink updateSink(String sinkName, LogSink sink) { - UpdateSinkRequest request = - UpdateSinkRequest.newBuilder().setSinkName(sinkName).setSink(sink).build(); - return updateSink(request); + public final ListLinksPagedResponse listLinks(LogBucketName parent) { + ListLinksRequest request = + ListLinksRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); + return listLinks(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * 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. + * Lists links. * *

Sample code: * @@ -1958,53 +2849,30 @@ public final LogSink updateSink(String sinkName, LogSink sink) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConfigClient configClient = ConfigClient.create()) { - * LogSinkName sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]"); - * LogSink sink = LogSink.newBuilder().build(); - * FieldMask updateMask = FieldMask.newBuilder().build(); - * LogSink response = configClient.updateSink(sinkName, sink, updateMask); + * String parent = + * LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]") + * .toString(); + * for (Link element : configClient.listLinks(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @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` + * @param parent Required. The parent resource whose links are to be listed: + *

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/" + * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/" + * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/" + * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/ * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final 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); + public final ListLinksPagedResponse listLinks(String parent) { + ListLinksRequest request = ListLinksRequest.newBuilder().setParent(parent).build(); + return listLinks(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. + * Lists links. * *

Sample code: * @@ -2015,53 +2883,30 @@ public final LogSink updateSink(LogSinkName sinkName, LogSink sink, FieldMask up * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConfigClient configClient = ConfigClient.create()) { - * String sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString(); - * LogSink sink = LogSink.newBuilder().build(); - * FieldMask updateMask = FieldMask.newBuilder().build(); - * LogSink response = configClient.updateSink(sinkName, sink, updateMask); + * ListLinksRequest request = + * ListLinksRequest.newBuilder() + * .setParent( + * LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]") + * .toString()) + * .setPageToken("pageToken873572522") + * .setPageSize(883849137) + * .build(); + * for (Link element : configClient.listLinks(request).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param 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` + * @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(String sinkName, LogSink sink, FieldMask updateMask) { - UpdateSinkRequest request = - UpdateSinkRequest.newBuilder() - .setSinkName(sinkName) - .setSink(sink) - .setUpdateMask(updateMask) - .build(); - return updateSink(request); + public final ListLinksPagedResponse listLinks(ListLinksRequest request) { + return listLinksPagedCallable().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. + * Lists links. * *

Sample code: * @@ -2072,31 +2917,29 @@ public final LogSink updateSink(String sinkName, LogSink sink, FieldMask updateM * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConfigClient configClient = ConfigClient.create()) { - * UpdateSinkRequest request = - * UpdateSinkRequest.newBuilder() - * .setSinkName(LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString()) - * .setSink(LogSink.newBuilder().build()) - * .setUniqueWriterIdentity(true) - * .setUpdateMask(FieldMask.newBuilder().build()) + * ListLinksRequest request = + * ListLinksRequest.newBuilder() + * .setParent( + * LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]") + * .toString()) + * .setPageToken("pageToken873572522") + * .setPageSize(883849137) * .build(); - * LogSink response = configClient.updateSink(request); + * ApiFuture future = configClient.listLinksPagedCallable().futureCall(request); + * // Do something. + * for (Link element : future.get().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 LogSink updateSink(UpdateSinkRequest request) { - return updateSinkCallable().call(request); + public final UnaryCallable listLinksPagedCallable() { + return stub.listLinksPagedCallable(); } // 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. + * Lists links. * *

Sample code: * @@ -2107,27 +2950,36 @@ public final LogSink updateSink(UpdateSinkRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConfigClient configClient = ConfigClient.create()) { - * UpdateSinkRequest request = - * UpdateSinkRequest.newBuilder() - * .setSinkName(LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString()) - * .setSink(LogSink.newBuilder().build()) - * .setUniqueWriterIdentity(true) - * .setUpdateMask(FieldMask.newBuilder().build()) + * ListLinksRequest request = + * ListLinksRequest.newBuilder() + * .setParent( + * LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]") + * .toString()) + * .setPageToken("pageToken873572522") + * .setPageSize(883849137) * .build(); - * ApiFuture future = configClient.updateSinkCallable().futureCall(request); - * // Do something. - * LogSink response = future.get(); + * while (true) { + * ListLinksResponse response = configClient.listLinksCallable().call(request); + * for (Link element : response.getLinksList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } */ - public final UnaryCallable updateSinkCallable() { - return stub.updateSinkCallable(); + public final UnaryCallable listLinksCallable() { + return stub.listLinksCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a sink. If the sink has a unique `writer_identity`, then that service account is also - * deleted. + * Gets a link. * *

Sample code: * @@ -2138,33 +2990,28 @@ public final UnaryCallable updateSinkCallable() { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConfigClient configClient = ConfigClient.create()) { - * LogSinkName sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]"); - * configClient.deleteSink(sinkName); + * LinkName name = + * LinkName.ofProjectLocationBucketLinkName("[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]"); + * Link response = configClient.getLink(name); * } * } * - * @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"` + * @param name Required. The resource name of the link: + *

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID] * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSink(LogSinkName sinkName) { - DeleteSinkRequest request = - DeleteSinkRequest.newBuilder() - .setSinkName(sinkName == null ? null : sinkName.toString()) - .build(); - deleteSink(request); + public final Link getLink(LinkName name) { + GetLinkRequest request = + GetLinkRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getLink(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a sink. If the sink has a unique `writer_identity`, then that service account is also - * deleted. + * Gets a link. * *

Sample code: * @@ -2175,30 +3022,28 @@ public final void deleteSink(LogSinkName sinkName) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConfigClient configClient = ConfigClient.create()) { - * String sinkName = LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString(); - * configClient.deleteSink(sinkName); + * String name = + * LinkName.ofProjectLocationBucketLinkName("[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]") + * .toString(); + * Link response = configClient.getLink(name); * } * } * - * @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"` + * @param name Required. The resource name of the link: + *

"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID] * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSink(String sinkName) { - DeleteSinkRequest request = DeleteSinkRequest.newBuilder().setSinkName(sinkName).build(); - deleteSink(request); + public final Link getLink(String name) { + GetLinkRequest request = GetLinkRequest.newBuilder().setName(name).build(); + return getLink(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a sink. If the sink has a unique `writer_identity`, then that service account is also - * deleted. + * Gets a link. * *

Sample code: * @@ -2209,25 +3054,27 @@ public final void deleteSink(String sinkName) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConfigClient configClient = ConfigClient.create()) { - * DeleteSinkRequest request = - * DeleteSinkRequest.newBuilder() - * .setSinkName(LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString()) + * GetLinkRequest request = + * GetLinkRequest.newBuilder() + * .setName( + * LinkName.ofProjectLocationBucketLinkName( + * "[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]") + * .toString()) * .build(); - * configClient.deleteSink(request); + * Link response = configClient.getLink(request); * } * } * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteSink(DeleteSinkRequest request) { - deleteSinkCallable().call(request); + public final Link getLink(GetLinkRequest request) { + return getLinkCallable().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. + * Gets a link. * *

Sample code: * @@ -2238,18 +3085,21 @@ public final void deleteSink(DeleteSinkRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConfigClient configClient = ConfigClient.create()) { - * DeleteSinkRequest request = - * DeleteSinkRequest.newBuilder() - * .setSinkName(LogSinkName.ofProjectSinkName("[PROJECT]", "[SINK]").toString()) + * GetLinkRequest request = + * GetLinkRequest.newBuilder() + * .setName( + * LinkName.ofProjectLocationBucketLinkName( + * "[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]") + * .toString()) * .build(); - * ApiFuture future = configClient.deleteSinkCallable().futureCall(request); + * ApiFuture future = configClient.getLinkCallable().futureCall(request); * // Do something. - * future.get(); + * Link response = future.get(); * } * } */ - public final UnaryCallable deleteSinkCallable() { - return stub.deleteSinkCallable(); + public final UnaryCallable getLinkCallable() { + return stub.getLinkCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. @@ -3946,6 +4796,71 @@ protected ListSinksFixedSizeCollection createCollection( } } + public static class ListLinksPagedResponse + extends AbstractPagedListResponse< + ListLinksRequest, ListLinksResponse, Link, ListLinksPage, ListLinksFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLinksPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListLinksPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListLinksPagedResponse(ListLinksPage page) { + super(page, ListLinksFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLinksPage + extends AbstractPage { + + private ListLinksPage( + PageContext context, + ListLinksResponse response) { + super(context, response); + } + + private static ListLinksPage createEmptyPage() { + return new ListLinksPage(null, null); + } + + @Override + protected ListLinksPage createPage( + PageContext context, + ListLinksResponse response) { + return new ListLinksPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLinksFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLinksRequest, ListLinksResponse, Link, ListLinksPage, ListLinksFixedSizeCollection> { + + private ListLinksFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLinksFixedSizeCollection createEmptyCollection() { + return new ListLinksFixedSizeCollection(null, 0); + } + + @Override + protected ListLinksFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLinksFixedSizeCollection(pages, collectionSize); + } + } + public static class ListExclusionsPagedResponse extends AbstractPagedListResponse< ListExclusionsRequest, 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 2f5d1dd55..022dbd20f 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 @@ -18,6 +18,7 @@ import static com.google.cloud.logging.v2.ConfigClient.ListBucketsPagedResponse; import static com.google.cloud.logging.v2.ConfigClient.ListExclusionsPagedResponse; +import static com.google.cloud.logging.v2.ConfigClient.ListLinksPagedResponse; import static com.google.cloud.logging.v2.ConfigClient.ListSinksPagedResponse; import static com.google.cloud.logging.v2.ConfigClient.ListViewsPagedResponse; @@ -34,28 +35,36 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.logging.v2.stub.ConfigServiceV2StubSettings; +import com.google.logging.v2.BucketMetadata; import com.google.logging.v2.CmekSettings; import com.google.logging.v2.CopyLogEntriesMetadata; import com.google.logging.v2.CopyLogEntriesRequest; import com.google.logging.v2.CopyLogEntriesResponse; import com.google.logging.v2.CreateBucketRequest; import com.google.logging.v2.CreateExclusionRequest; +import com.google.logging.v2.CreateLinkRequest; import com.google.logging.v2.CreateSinkRequest; import com.google.logging.v2.CreateViewRequest; import com.google.logging.v2.DeleteBucketRequest; import com.google.logging.v2.DeleteExclusionRequest; +import com.google.logging.v2.DeleteLinkRequest; import com.google.logging.v2.DeleteSinkRequest; import com.google.logging.v2.DeleteViewRequest; import com.google.logging.v2.GetBucketRequest; import com.google.logging.v2.GetCmekSettingsRequest; import com.google.logging.v2.GetExclusionRequest; +import com.google.logging.v2.GetLinkRequest; import com.google.logging.v2.GetSettingsRequest; import com.google.logging.v2.GetSinkRequest; import com.google.logging.v2.GetViewRequest; +import com.google.logging.v2.Link; +import com.google.logging.v2.LinkMetadata; import com.google.logging.v2.ListBucketsRequest; import com.google.logging.v2.ListBucketsResponse; import com.google.logging.v2.ListExclusionsRequest; import com.google.logging.v2.ListExclusionsResponse; +import com.google.logging.v2.ListLinksRequest; +import com.google.logging.v2.ListLinksResponse; import com.google.logging.v2.ListSinksRequest; import com.google.logging.v2.ListSinksResponse; import com.google.logging.v2.ListViewsRequest; @@ -128,6 +137,28 @@ public UnaryCallSettings getBucketSettings() { return ((ConfigServiceV2StubSettings) getStubSettings()).getBucketSettings(); } + /** Returns the object with the settings used for calls to createBucketAsync. */ + public UnaryCallSettings createBucketAsyncSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).createBucketAsyncSettings(); + } + + /** Returns the object with the settings used for calls to createBucketAsync. */ + public OperationCallSettings + createBucketAsyncOperationSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).createBucketAsyncOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateBucketAsync. */ + public UnaryCallSettings updateBucketAsyncSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).updateBucketAsyncSettings(); + } + + /** Returns the object with the settings used for calls to updateBucketAsync. */ + public OperationCallSettings + updateBucketAsyncOperationSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).updateBucketAsyncOperationSettings(); + } + /** Returns the object with the settings used for calls to createBucket. */ public UnaryCallSettings createBucketSettings() { return ((ConfigServiceV2StubSettings) getStubSettings()).createBucketSettings(); @@ -200,6 +231,39 @@ public UnaryCallSettings deleteSinkSettings() { return ((ConfigServiceV2StubSettings) getStubSettings()).deleteSinkSettings(); } + /** Returns the object with the settings used for calls to createLink. */ + public UnaryCallSettings createLinkSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).createLinkSettings(); + } + + /** Returns the object with the settings used for calls to createLink. */ + public OperationCallSettings + createLinkOperationSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).createLinkOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteLink. */ + public UnaryCallSettings deleteLinkSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).deleteLinkSettings(); + } + + /** Returns the object with the settings used for calls to deleteLink. */ + public OperationCallSettings + deleteLinkOperationSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).deleteLinkOperationSettings(); + } + + /** Returns the object with the settings used for calls to listLinks. */ + public PagedCallSettings + listLinksSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).listLinksSettings(); + } + + /** Returns the object with the settings used for calls to getLink. */ + public UnaryCallSettings getLinkSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).getLinkSettings(); + } + /** Returns the object with the settings used for calls to listExclusions. */ public PagedCallSettings< ListExclusionsRequest, ListExclusionsResponse, ListExclusionsPagedResponse> @@ -367,6 +431,28 @@ public UnaryCallSettings.Builder getBucketSettings( return getStubSettingsBuilder().getBucketSettings(); } + /** Returns the builder for the settings used for calls to createBucketAsync. */ + public UnaryCallSettings.Builder createBucketAsyncSettings() { + return getStubSettingsBuilder().createBucketAsyncSettings(); + } + + /** Returns the builder for the settings used for calls to createBucketAsync. */ + public OperationCallSettings.Builder + createBucketAsyncOperationSettings() { + return getStubSettingsBuilder().createBucketAsyncOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateBucketAsync. */ + public UnaryCallSettings.Builder updateBucketAsyncSettings() { + return getStubSettingsBuilder().updateBucketAsyncSettings(); + } + + /** Returns the builder for the settings used for calls to updateBucketAsync. */ + public OperationCallSettings.Builder + updateBucketAsyncOperationSettings() { + return getStubSettingsBuilder().updateBucketAsyncOperationSettings(); + } + /** Returns the builder for the settings used for calls to createBucket. */ public UnaryCallSettings.Builder createBucketSettings() { return getStubSettingsBuilder().createBucketSettings(); @@ -439,6 +525,39 @@ public UnaryCallSettings.Builder deleteSinkSettings() return getStubSettingsBuilder().deleteSinkSettings(); } + /** Returns the builder for the settings used for calls to createLink. */ + public UnaryCallSettings.Builder createLinkSettings() { + return getStubSettingsBuilder().createLinkSettings(); + } + + /** Returns the builder for the settings used for calls to createLink. */ + public OperationCallSettings.Builder + createLinkOperationSettings() { + return getStubSettingsBuilder().createLinkOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteLink. */ + public UnaryCallSettings.Builder deleteLinkSettings() { + return getStubSettingsBuilder().deleteLinkSettings(); + } + + /** Returns the builder for the settings used for calls to deleteLink. */ + public OperationCallSettings.Builder + deleteLinkOperationSettings() { + return getStubSettingsBuilder().deleteLinkOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listLinks. */ + public PagedCallSettings.Builder + listLinksSettings() { + return getStubSettingsBuilder().listLinksSettings(); + } + + /** Returns the builder for the settings used for calls to getLink. */ + public UnaryCallSettings.Builder getLinkSettings() { + return getStubSettingsBuilder().getLinkSettings(); + } + /** Returns the builder for the settings used for calls to listExclusions. */ public PagedCallSettings.Builder< ListExclusionsRequest, ListExclusionsResponse, ListExclusionsPagedResponse> 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 57627dc9f..b86d9097f 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 @@ -597,13 +597,12 @@ public final WriteLogEntriesResponse writeLogEntries(WriteLogEntriesRequest requ * * * `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. + *

Projects listed in the `project_ids` field are added to this list. A maximum of 100 + * resources may be specified in a single request. + * @param filter Optional. Only log entries that match the filter are returned. An empty filter + * matches all log entries in the resources listed in `resource_names`. Referencing a parent + * resource that is not listed in `resource_names` will cause the filter to return no results. + * The maximum length of a filter is 20,000 characters. * @param orderBy Optional. How the results should be sorted. Presently, the only permitted values * are `"timestamp asc"` (default) and `"timestamp desc"`. The first option returns entries in * order of increasing values of `LogEntry.timestamp` (oldest first), and the second option @@ -864,7 +863,7 @@ public final ListMonitoredResourceDescriptorsPagedResponse listMonitoredResource * } * } * - * @param parent Required. The resource name that owns the logs: + * @param parent Required. The resource name to list logs for: *

    *
  • `projects/[PROJECT_ID]` *
  • `organizations/[ORGANIZATION_ID]` @@ -901,7 +900,7 @@ public final ListLogsPagedResponse listLogs(BillingAccountName parent) { * } * } * - * @param parent Required. The resource name that owns the logs: + * @param parent Required. The resource name to list logs for: *
      *
    • `projects/[PROJECT_ID]` *
    • `organizations/[ORGANIZATION_ID]` @@ -938,7 +937,7 @@ public final ListLogsPagedResponse listLogs(FolderName parent) { * } * } * - * @param parent Required. The resource name that owns the logs: + * @param parent Required. The resource name to list logs for: *
        *
      • `projects/[PROJECT_ID]` *
      • `organizations/[ORGANIZATION_ID]` @@ -975,7 +974,7 @@ public final ListLogsPagedResponse listLogs(OrganizationName parent) { * } * } * - * @param parent Required. The resource name that owns the logs: + * @param parent Required. The resource name to list logs for: *
          *
        • `projects/[PROJECT_ID]` *
        • `organizations/[ORGANIZATION_ID]` @@ -1012,7 +1011,7 @@ public final ListLogsPagedResponse listLogs(ProjectName parent) { * } * } * - * @param parent Required. The resource name that owns the logs: + * @param parent Required. The resource name to list logs for: *
            *
          • `projects/[PROJECT_ID]` *
          • `organizations/[ORGANIZATION_ID]` @@ -1044,9 +1043,9 @@ public final ListLogsPagedResponse listLogs(String parent) { * ListLogsRequest request = * ListLogsRequest.newBuilder() * .setParent(ProjectName.of("[PROJECT]").toString()) + * .addAllResourceNames(new ArrayList()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") - * .addAllResourceNames(new ArrayList()) * .build(); * for (String element : loggingClient.listLogs(request).iterateAll()) { * // doThingsWith(element); @@ -1078,9 +1077,9 @@ public final ListLogsPagedResponse listLogs(ListLogsRequest request) { * ListLogsRequest request = * ListLogsRequest.newBuilder() * .setParent(ProjectName.of("[PROJECT]").toString()) + * .addAllResourceNames(new ArrayList()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") - * .addAllResourceNames(new ArrayList()) * .build(); * ApiFuture future = loggingClient.listLogsPagedCallable().futureCall(request); * // Do something. @@ -1111,9 +1110,9 @@ public final UnaryCallable listLogsPaged * ListLogsRequest request = * ListLogsRequest.newBuilder() * .setParent(ProjectName.of("[PROJECT]").toString()) + * .addAllResourceNames(new ArrayList()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") - * .addAllResourceNames(new ArrayList()) * .build(); * while (true) { * ListLogsResponse response = loggingClient.listLogsCallable().call(request); 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 3f7d36cb8..e29e092e0 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 @@ -43,9 +43,15 @@ "CreateBucket": { "methods": ["createBucket", "createBucketCallable"] }, + "CreateBucketAsync": { + "methods": ["createBucketAsyncAsync", "createBucketAsyncOperationCallable", "createBucketAsyncCallable"] + }, "CreateExclusion": { "methods": ["createExclusion", "createExclusion", "createExclusion", "createExclusion", "createExclusion", "createExclusion", "createExclusionCallable"] }, + "CreateLink": { + "methods": ["createLinkAsync", "createLinkAsync", "createLinkAsync", "createLinkOperationCallable", "createLinkCallable"] + }, "CreateSink": { "methods": ["createSink", "createSink", "createSink", "createSink", "createSink", "createSink", "createSinkCallable"] }, @@ -58,6 +64,9 @@ "DeleteExclusion": { "methods": ["deleteExclusion", "deleteExclusion", "deleteExclusion", "deleteExclusionCallable"] }, + "DeleteLink": { + "methods": ["deleteLinkAsync", "deleteLinkAsync", "deleteLinkAsync", "deleteLinkOperationCallable", "deleteLinkCallable"] + }, "DeleteSink": { "methods": ["deleteSink", "deleteSink", "deleteSink", "deleteSinkCallable"] }, @@ -73,6 +82,9 @@ "GetExclusion": { "methods": ["getExclusion", "getExclusion", "getExclusion", "getExclusionCallable"] }, + "GetLink": { + "methods": ["getLink", "getLink", "getLink", "getLinkCallable"] + }, "GetSettings": { "methods": ["getSettings", "getSettings", "getSettings", "getSettingsCallable"] }, @@ -88,6 +100,9 @@ "ListExclusions": { "methods": ["listExclusions", "listExclusions", "listExclusions", "listExclusions", "listExclusions", "listExclusions", "listExclusionsPagedCallable", "listExclusionsCallable"] }, + "ListLinks": { + "methods": ["listLinks", "listLinks", "listLinks", "listLinksPagedCallable", "listLinksCallable"] + }, "ListSinks": { "methods": ["listSinks", "listSinks", "listSinks", "listSinks", "listSinks", "listSinks", "listSinksPagedCallable", "listSinksCallable"] }, @@ -100,6 +115,9 @@ "UpdateBucket": { "methods": ["updateBucket", "updateBucketCallable"] }, + "UpdateBucketAsync": { + "methods": ["updateBucketAsyncAsync", "updateBucketAsyncOperationCallable", "updateBucketAsyncCallable"] + }, "UpdateCmekSettings": { "methods": ["updateCmekSettings", "updateCmekSettingsCallable"] }, 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 222c77883..dce2f017e 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 @@ -18,34 +18,43 @@ import static com.google.cloud.logging.v2.ConfigClient.ListBucketsPagedResponse; import static com.google.cloud.logging.v2.ConfigClient.ListExclusionsPagedResponse; +import static com.google.cloud.logging.v2.ConfigClient.ListLinksPagedResponse; import static com.google.cloud.logging.v2.ConfigClient.ListSinksPagedResponse; import static com.google.cloud.logging.v2.ConfigClient.ListViewsPagedResponse; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; +import com.google.logging.v2.BucketMetadata; import com.google.logging.v2.CmekSettings; import com.google.logging.v2.CopyLogEntriesMetadata; import com.google.logging.v2.CopyLogEntriesRequest; import com.google.logging.v2.CopyLogEntriesResponse; import com.google.logging.v2.CreateBucketRequest; import com.google.logging.v2.CreateExclusionRequest; +import com.google.logging.v2.CreateLinkRequest; import com.google.logging.v2.CreateSinkRequest; import com.google.logging.v2.CreateViewRequest; import com.google.logging.v2.DeleteBucketRequest; import com.google.logging.v2.DeleteExclusionRequest; +import com.google.logging.v2.DeleteLinkRequest; import com.google.logging.v2.DeleteSinkRequest; import com.google.logging.v2.DeleteViewRequest; import com.google.logging.v2.GetBucketRequest; import com.google.logging.v2.GetCmekSettingsRequest; import com.google.logging.v2.GetExclusionRequest; +import com.google.logging.v2.GetLinkRequest; import com.google.logging.v2.GetSettingsRequest; import com.google.logging.v2.GetSinkRequest; import com.google.logging.v2.GetViewRequest; +import com.google.logging.v2.Link; +import com.google.logging.v2.LinkMetadata; import com.google.logging.v2.ListBucketsRequest; import com.google.logging.v2.ListBucketsResponse; import com.google.logging.v2.ListExclusionsRequest; import com.google.logging.v2.ListExclusionsResponse; +import com.google.logging.v2.ListLinksRequest; +import com.google.logging.v2.ListLinksResponse; import com.google.logging.v2.ListSinksRequest; import com.google.logging.v2.ListSinksResponse; import com.google.logging.v2.ListViewsRequest; @@ -92,6 +101,26 @@ public UnaryCallable getBucketCallable() { throw new UnsupportedOperationException("Not implemented: getBucketCallable()"); } + public OperationCallable + createBucketAsyncOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createBucketAsyncOperationCallable()"); + } + + public UnaryCallable createBucketAsyncCallable() { + throw new UnsupportedOperationException("Not implemented: createBucketAsyncCallable()"); + } + + public OperationCallable + updateBucketAsyncOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateBucketAsyncOperationCallable()"); + } + + public UnaryCallable updateBucketAsyncCallable() { + throw new UnsupportedOperationException("Not implemented: updateBucketAsyncCallable()"); + } + public UnaryCallable createBucketCallable() { throw new UnsupportedOperationException("Not implemented: createBucketCallable()"); } @@ -156,6 +185,34 @@ public UnaryCallable deleteSinkCallable() { throw new UnsupportedOperationException("Not implemented: deleteSinkCallable()"); } + public OperationCallable createLinkOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createLinkOperationCallable()"); + } + + public UnaryCallable createLinkCallable() { + throw new UnsupportedOperationException("Not implemented: createLinkCallable()"); + } + + public OperationCallable deleteLinkOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteLinkOperationCallable()"); + } + + public UnaryCallable deleteLinkCallable() { + throw new UnsupportedOperationException("Not implemented: deleteLinkCallable()"); + } + + public UnaryCallable listLinksPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLinksPagedCallable()"); + } + + public UnaryCallable listLinksCallable() { + throw new UnsupportedOperationException("Not implemented: listLinksCallable()"); + } + + public UnaryCallable getLinkCallable() { + throw new UnsupportedOperationException("Not implemented: getLinkCallable()"); + } + public UnaryCallable listExclusionsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listExclusionsPagedCallable()"); 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 d65e4a859..ec2d7c1c2 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 @@ -18,6 +18,7 @@ import static com.google.cloud.logging.v2.ConfigClient.ListBucketsPagedResponse; import static com.google.cloud.logging.v2.ConfigClient.ListExclusionsPagedResponse; +import static com.google.cloud.logging.v2.ConfigClient.ListLinksPagedResponse; import static com.google.cloud.logging.v2.ConfigClient.ListSinksPagedResponse; import static com.google.cloud.logging.v2.ConfigClient.ListViewsPagedResponse; @@ -51,28 +52,36 @@ import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; import com.google.common.collect.Lists; +import com.google.logging.v2.BucketMetadata; import com.google.logging.v2.CmekSettings; import com.google.logging.v2.CopyLogEntriesMetadata; import com.google.logging.v2.CopyLogEntriesRequest; import com.google.logging.v2.CopyLogEntriesResponse; import com.google.logging.v2.CreateBucketRequest; import com.google.logging.v2.CreateExclusionRequest; +import com.google.logging.v2.CreateLinkRequest; import com.google.logging.v2.CreateSinkRequest; import com.google.logging.v2.CreateViewRequest; import com.google.logging.v2.DeleteBucketRequest; import com.google.logging.v2.DeleteExclusionRequest; +import com.google.logging.v2.DeleteLinkRequest; import com.google.logging.v2.DeleteSinkRequest; import com.google.logging.v2.DeleteViewRequest; import com.google.logging.v2.GetBucketRequest; import com.google.logging.v2.GetCmekSettingsRequest; import com.google.logging.v2.GetExclusionRequest; +import com.google.logging.v2.GetLinkRequest; import com.google.logging.v2.GetSettingsRequest; import com.google.logging.v2.GetSinkRequest; import com.google.logging.v2.GetViewRequest; +import com.google.logging.v2.Link; +import com.google.logging.v2.LinkMetadata; import com.google.logging.v2.ListBucketsRequest; import com.google.logging.v2.ListBucketsResponse; import com.google.logging.v2.ListExclusionsRequest; import com.google.logging.v2.ListExclusionsResponse; +import com.google.logging.v2.ListLinksRequest; +import com.google.logging.v2.ListLinksResponse; import com.google.logging.v2.ListSinksRequest; import com.google.logging.v2.ListSinksResponse; import com.google.logging.v2.ListViewsRequest; @@ -147,6 +156,12 @@ public class ConfigServiceV2StubSettings extends StubSettings listBucketsSettings; private final UnaryCallSettings getBucketSettings; + private final UnaryCallSettings createBucketAsyncSettings; + private final OperationCallSettings + createBucketAsyncOperationSettings; + private final UnaryCallSettings updateBucketAsyncSettings; + private final OperationCallSettings + updateBucketAsyncOperationSettings; private final UnaryCallSettings createBucketSettings; private final UnaryCallSettings updateBucketSettings; private final UnaryCallSettings deleteBucketSettings; @@ -163,6 +178,15 @@ public class ConfigServiceV2StubSettings extends StubSettings createSinkSettings; private final UnaryCallSettings updateSinkSettings; private final UnaryCallSettings deleteSinkSettings; + private final UnaryCallSettings createLinkSettings; + private final OperationCallSettings + createLinkOperationSettings; + private final UnaryCallSettings deleteLinkSettings; + private final OperationCallSettings + deleteLinkOperationSettings; + private final PagedCallSettings + listLinksSettings; + private final UnaryCallSettings getLinkSettings; private final PagedCallSettings< ListExclusionsRequest, ListExclusionsResponse, ListExclusionsPagedResponse> listExclusionsSettings; @@ -288,6 +312,42 @@ public Iterable extractResources(ListSinksResponse payload) { } }; + private static final PagedListDescriptor + LIST_LINKS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLinksRequest injectToken(ListLinksRequest payload, String token) { + return ListLinksRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLinksRequest injectPageSize(ListLinksRequest payload, int pageSize) { + return ListLinksRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLinksRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLinksResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLinksResponse payload) { + return payload.getLinksList() == null + ? ImmutableList.of() + : payload.getLinksList(); + } + }; + private static final PagedListDescriptor< ListExclusionsRequest, ListExclusionsResponse, LogExclusion> LIST_EXCLUSIONS_PAGE_STR_DESC = @@ -377,6 +437,23 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListLinksRequest, ListLinksResponse, ListLinksPagedResponse> + LIST_LINKS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLinksRequest, ListLinksResponse, ListLinksPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLinksRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LINKS_PAGE_STR_DESC, request, context); + return ListLinksPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListExclusionsRequest, ListExclusionsResponse, ListExclusionsPagedResponse> LIST_EXCLUSIONS_PAGE_STR_FACT = @@ -405,6 +482,28 @@ public UnaryCallSettings getBucketSettings() { return getBucketSettings; } + /** Returns the object with the settings used for calls to createBucketAsync. */ + public UnaryCallSettings createBucketAsyncSettings() { + return createBucketAsyncSettings; + } + + /** Returns the object with the settings used for calls to createBucketAsync. */ + public OperationCallSettings + createBucketAsyncOperationSettings() { + return createBucketAsyncOperationSettings; + } + + /** Returns the object with the settings used for calls to updateBucketAsync. */ + public UnaryCallSettings updateBucketAsyncSettings() { + return updateBucketAsyncSettings; + } + + /** Returns the object with the settings used for calls to updateBucketAsync. */ + public OperationCallSettings + updateBucketAsyncOperationSettings() { + return updateBucketAsyncOperationSettings; + } + /** Returns the object with the settings used for calls to createBucket. */ public UnaryCallSettings createBucketSettings() { return createBucketSettings; @@ -477,6 +576,39 @@ public UnaryCallSettings deleteSinkSettings() { return deleteSinkSettings; } + /** Returns the object with the settings used for calls to createLink. */ + public UnaryCallSettings createLinkSettings() { + return createLinkSettings; + } + + /** Returns the object with the settings used for calls to createLink. */ + public OperationCallSettings + createLinkOperationSettings() { + return createLinkOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteLink. */ + public UnaryCallSettings deleteLinkSettings() { + return deleteLinkSettings; + } + + /** Returns the object with the settings used for calls to deleteLink. */ + public OperationCallSettings + deleteLinkOperationSettings() { + return deleteLinkOperationSettings; + } + + /** Returns the object with the settings used for calls to listLinks. */ + public PagedCallSettings + listLinksSettings() { + return listLinksSettings; + } + + /** Returns the object with the settings used for calls to getLink. */ + public UnaryCallSettings getLinkSettings() { + return getLinkSettings; + } + /** Returns the object with the settings used for calls to listExclusions. */ public PagedCallSettings< ListExclusionsRequest, ListExclusionsResponse, ListExclusionsPagedResponse> @@ -613,6 +745,12 @@ protected ConfigServiceV2StubSettings(Builder settingsBuilder) throws IOExceptio listBucketsSettings = settingsBuilder.listBucketsSettings().build(); getBucketSettings = settingsBuilder.getBucketSettings().build(); + createBucketAsyncSettings = settingsBuilder.createBucketAsyncSettings().build(); + createBucketAsyncOperationSettings = + settingsBuilder.createBucketAsyncOperationSettings().build(); + updateBucketAsyncSettings = settingsBuilder.updateBucketAsyncSettings().build(); + updateBucketAsyncOperationSettings = + settingsBuilder.updateBucketAsyncOperationSettings().build(); createBucketSettings = settingsBuilder.createBucketSettings().build(); updateBucketSettings = settingsBuilder.updateBucketSettings().build(); deleteBucketSettings = settingsBuilder.deleteBucketSettings().build(); @@ -627,6 +765,12 @@ protected ConfigServiceV2StubSettings(Builder settingsBuilder) throws IOExceptio createSinkSettings = settingsBuilder.createSinkSettings().build(); updateSinkSettings = settingsBuilder.updateSinkSettings().build(); deleteSinkSettings = settingsBuilder.deleteSinkSettings().build(); + createLinkSettings = settingsBuilder.createLinkSettings().build(); + createLinkOperationSettings = settingsBuilder.createLinkOperationSettings().build(); + deleteLinkSettings = settingsBuilder.deleteLinkSettings().build(); + deleteLinkOperationSettings = settingsBuilder.deleteLinkOperationSettings().build(); + listLinksSettings = settingsBuilder.listLinksSettings().build(); + getLinkSettings = settingsBuilder.getLinkSettings().build(); listExclusionsSettings = settingsBuilder.listExclusionsSettings().build(); getExclusionSettings = settingsBuilder.getExclusionSettings().build(); createExclusionSettings = settingsBuilder.createExclusionSettings().build(); @@ -647,6 +791,14 @@ public static class Builder extends StubSettings.Builder listBucketsSettings; private final UnaryCallSettings.Builder getBucketSettings; + private final UnaryCallSettings.Builder + createBucketAsyncSettings; + private final OperationCallSettings.Builder + createBucketAsyncOperationSettings; + private final UnaryCallSettings.Builder + updateBucketAsyncSettings; + private final OperationCallSettings.Builder + updateBucketAsyncOperationSettings; private final UnaryCallSettings.Builder createBucketSettings; private final UnaryCallSettings.Builder updateBucketSettings; private final UnaryCallSettings.Builder deleteBucketSettings; @@ -665,6 +817,16 @@ public static class Builder extends StubSettings.Builder createSinkSettings; private final UnaryCallSettings.Builder updateSinkSettings; private final UnaryCallSettings.Builder deleteSinkSettings; + private final UnaryCallSettings.Builder createLinkSettings; + private final OperationCallSettings.Builder + createLinkOperationSettings; + private final UnaryCallSettings.Builder deleteLinkSettings; + private final OperationCallSettings.Builder + deleteLinkOperationSettings; + private final PagedCallSettings.Builder< + ListLinksRequest, ListLinksResponse, ListLinksPagedResponse> + listLinksSettings; + private final UnaryCallSettings.Builder getLinkSettings; private final PagedCallSettings.Builder< ListExclusionsRequest, ListExclusionsResponse, ListExclusionsPagedResponse> listExclusionsSettings; @@ -742,6 +904,10 @@ protected Builder(ClientContext clientContext) { listBucketsSettings = PagedCallSettings.newBuilder(LIST_BUCKETS_PAGE_STR_FACT); getBucketSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createBucketAsyncSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createBucketAsyncOperationSettings = OperationCallSettings.newBuilder(); + updateBucketAsyncSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateBucketAsyncOperationSettings = OperationCallSettings.newBuilder(); createBucketSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateBucketSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteBucketSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -756,6 +922,12 @@ protected Builder(ClientContext clientContext) { createSinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateSinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteSinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createLinkOperationSettings = OperationCallSettings.newBuilder(); + deleteLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteLinkOperationSettings = OperationCallSettings.newBuilder(); + listLinksSettings = PagedCallSettings.newBuilder(LIST_LINKS_PAGE_STR_FACT); + getLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listExclusionsSettings = PagedCallSettings.newBuilder(LIST_EXCLUSIONS_PAGE_STR_FACT); getExclusionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createExclusionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -772,6 +944,8 @@ protected Builder(ClientContext clientContext) { ImmutableList.>of( listBucketsSettings, getBucketSettings, + createBucketAsyncSettings, + updateBucketAsyncSettings, createBucketSettings, updateBucketSettings, deleteBucketSettings, @@ -786,6 +960,10 @@ protected Builder(ClientContext clientContext) { createSinkSettings, updateSinkSettings, deleteSinkSettings, + createLinkSettings, + deleteLinkSettings, + listLinksSettings, + getLinkSettings, listExclusionsSettings, getExclusionSettings, createExclusionSettings, @@ -804,6 +982,10 @@ protected Builder(ConfigServiceV2StubSettings settings) { listBucketsSettings = settings.listBucketsSettings.toBuilder(); getBucketSettings = settings.getBucketSettings.toBuilder(); + createBucketAsyncSettings = settings.createBucketAsyncSettings.toBuilder(); + createBucketAsyncOperationSettings = settings.createBucketAsyncOperationSettings.toBuilder(); + updateBucketAsyncSettings = settings.updateBucketAsyncSettings.toBuilder(); + updateBucketAsyncOperationSettings = settings.updateBucketAsyncOperationSettings.toBuilder(); createBucketSettings = settings.createBucketSettings.toBuilder(); updateBucketSettings = settings.updateBucketSettings.toBuilder(); deleteBucketSettings = settings.deleteBucketSettings.toBuilder(); @@ -818,6 +1000,12 @@ protected Builder(ConfigServiceV2StubSettings settings) { createSinkSettings = settings.createSinkSettings.toBuilder(); updateSinkSettings = settings.updateSinkSettings.toBuilder(); deleteSinkSettings = settings.deleteSinkSettings.toBuilder(); + createLinkSettings = settings.createLinkSettings.toBuilder(); + createLinkOperationSettings = settings.createLinkOperationSettings.toBuilder(); + deleteLinkSettings = settings.deleteLinkSettings.toBuilder(); + deleteLinkOperationSettings = settings.deleteLinkOperationSettings.toBuilder(); + listLinksSettings = settings.listLinksSettings.toBuilder(); + getLinkSettings = settings.getLinkSettings.toBuilder(); listExclusionsSettings = settings.listExclusionsSettings.toBuilder(); getExclusionSettings = settings.getExclusionSettings.toBuilder(); createExclusionSettings = settings.createExclusionSettings.toBuilder(); @@ -834,6 +1022,8 @@ protected Builder(ConfigServiceV2StubSettings settings) { ImmutableList.>of( listBucketsSettings, getBucketSettings, + createBucketAsyncSettings, + updateBucketAsyncSettings, createBucketSettings, updateBucketSettings, deleteBucketSettings, @@ -848,6 +1038,10 @@ protected Builder(ConfigServiceV2StubSettings settings) { createSinkSettings, updateSinkSettings, deleteSinkSettings, + createLinkSettings, + deleteLinkSettings, + listLinksSettings, + getLinkSettings, listExclusionsSettings, getExclusionSettings, createExclusionSettings, @@ -884,6 +1078,16 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .createBucketAsyncSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateBucketAsyncSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .createBucketSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -954,6 +1158,26 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")); + builder + .createLinkSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteLinkSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listLinksSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getLinkSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .listExclusionsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) @@ -1004,6 +1228,99 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .createBucketAsyncOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(LogBucket.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(BucketMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .updateBucketAsyncOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(LogBucket.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(BucketMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .createLinkOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer(ProtoOperationTransformers.ResponseTransformer.create(Link.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(LinkMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteLinkOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(LinkMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + builder .copyLogEntriesOperationSettings() .setInitialCallSettings( @@ -1058,6 +1375,32 @@ public UnaryCallSettings.Builder getBucketSettings( return getBucketSettings; } + /** Returns the builder for the settings used for calls to createBucketAsync. */ + public UnaryCallSettings.Builder createBucketAsyncSettings() { + return createBucketAsyncSettings; + } + + /** Returns the builder for the settings used for calls to createBucketAsync. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + createBucketAsyncOperationSettings() { + return createBucketAsyncOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateBucketAsync. */ + public UnaryCallSettings.Builder updateBucketAsyncSettings() { + return updateBucketAsyncSettings; + } + + /** Returns the builder for the settings used for calls to updateBucketAsync. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + updateBucketAsyncOperationSettings() { + return updateBucketAsyncOperationSettings; + } + /** Returns the builder for the settings used for calls to createBucket. */ public UnaryCallSettings.Builder createBucketSettings() { return createBucketSettings; @@ -1130,6 +1473,43 @@ public UnaryCallSettings.Builder deleteSinkSettings() return deleteSinkSettings; } + /** Returns the builder for the settings used for calls to createLink. */ + public UnaryCallSettings.Builder createLinkSettings() { + return createLinkSettings; + } + + /** Returns the builder for the settings used for calls to createLink. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + createLinkOperationSettings() { + return createLinkOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteLink. */ + public UnaryCallSettings.Builder deleteLinkSettings() { + return deleteLinkSettings; + } + + /** Returns the builder for the settings used for calls to deleteLink. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + deleteLinkOperationSettings() { + return deleteLinkOperationSettings; + } + + /** Returns the builder for the settings used for calls to listLinks. */ + public PagedCallSettings.Builder + listLinksSettings() { + return listLinksSettings; + } + + /** Returns the builder for the settings used for calls to getLink. */ + public UnaryCallSettings.Builder getLinkSettings() { + return getLinkSettings; + } + /** Returns the builder for the settings used for calls to listExclusions. */ public PagedCallSettings.Builder< ListExclusionsRequest, ListExclusionsResponse, ListExclusionsPagedResponse> 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 f923a043a..4c4c4360d 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 @@ -18,6 +18,7 @@ import static com.google.cloud.logging.v2.ConfigClient.ListBucketsPagedResponse; import static com.google.cloud.logging.v2.ConfigClient.ListExclusionsPagedResponse; +import static com.google.cloud.logging.v2.ConfigClient.ListLinksPagedResponse; import static com.google.cloud.logging.v2.ConfigClient.ListSinksPagedResponse; import static com.google.cloud.logging.v2.ConfigClient.ListViewsPagedResponse; @@ -29,28 +30,36 @@ 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.BucketMetadata; import com.google.logging.v2.CmekSettings; import com.google.logging.v2.CopyLogEntriesMetadata; import com.google.logging.v2.CopyLogEntriesRequest; import com.google.logging.v2.CopyLogEntriesResponse; import com.google.logging.v2.CreateBucketRequest; import com.google.logging.v2.CreateExclusionRequest; +import com.google.logging.v2.CreateLinkRequest; import com.google.logging.v2.CreateSinkRequest; import com.google.logging.v2.CreateViewRequest; import com.google.logging.v2.DeleteBucketRequest; import com.google.logging.v2.DeleteExclusionRequest; +import com.google.logging.v2.DeleteLinkRequest; import com.google.logging.v2.DeleteSinkRequest; import com.google.logging.v2.DeleteViewRequest; import com.google.logging.v2.GetBucketRequest; import com.google.logging.v2.GetCmekSettingsRequest; import com.google.logging.v2.GetExclusionRequest; +import com.google.logging.v2.GetLinkRequest; import com.google.logging.v2.GetSettingsRequest; import com.google.logging.v2.GetSinkRequest; import com.google.logging.v2.GetViewRequest; +import com.google.logging.v2.Link; +import com.google.logging.v2.LinkMetadata; import com.google.logging.v2.ListBucketsRequest; import com.google.logging.v2.ListBucketsResponse; import com.google.logging.v2.ListExclusionsRequest; import com.google.logging.v2.ListExclusionsResponse; +import com.google.logging.v2.ListLinksRequest; +import com.google.logging.v2.ListLinksResponse; import com.google.logging.v2.ListSinksRequest; import com.google.logging.v2.ListSinksResponse; import com.google.logging.v2.ListViewsRequest; @@ -102,6 +111,24 @@ public class GrpcConfigServiceV2Stub extends ConfigServiceV2Stub { .setResponseMarshaller(ProtoUtils.marshaller(LogBucket.getDefaultInstance())) .build(); + private static final MethodDescriptor + createBucketAsyncMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.ConfigServiceV2/CreateBucketAsync") + .setRequestMarshaller(ProtoUtils.marshaller(CreateBucketRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateBucketAsyncMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.ConfigServiceV2/UpdateBucketAsync") + .setRequestMarshaller(ProtoUtils.marshaller(UpdateBucketRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor createBucketMethodDescriptor = MethodDescriptor.newBuilder() @@ -220,6 +247,39 @@ public class GrpcConfigServiceV2Stub extends ConfigServiceV2Stub { .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); + private static final MethodDescriptor createLinkMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.ConfigServiceV2/CreateLink") + .setRequestMarshaller(ProtoUtils.marshaller(CreateLinkRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor deleteLinkMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.ConfigServiceV2/DeleteLink") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteLinkRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listLinksMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.ConfigServiceV2/ListLinks") + .setRequestMarshaller(ProtoUtils.marshaller(ListLinksRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ListLinksResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getLinkMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.ConfigServiceV2/GetLink") + .setRequestMarshaller(ProtoUtils.marshaller(GetLinkRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Link.getDefaultInstance())) + .build(); + private static final MethodDescriptor listExclusionsMethodDescriptor = MethodDescriptor.newBuilder() @@ -322,6 +382,12 @@ public class GrpcConfigServiceV2Stub extends ConfigServiceV2Stub { private final UnaryCallable listBucketsPagedCallable; private final UnaryCallable getBucketCallable; + private final UnaryCallable createBucketAsyncCallable; + private final OperationCallable + createBucketAsyncOperationCallable; + private final UnaryCallable updateBucketAsyncCallable; + private final OperationCallable + updateBucketAsyncOperationCallable; private final UnaryCallable createBucketCallable; private final UnaryCallable updateBucketCallable; private final UnaryCallable deleteBucketCallable; @@ -338,6 +404,15 @@ public class GrpcConfigServiceV2Stub extends ConfigServiceV2Stub { private final UnaryCallable createSinkCallable; private final UnaryCallable updateSinkCallable; private final UnaryCallable deleteSinkCallable; + private final UnaryCallable createLinkCallable; + private final OperationCallable + createLinkOperationCallable; + private final UnaryCallable deleteLinkCallable; + private final OperationCallable + deleteLinkOperationCallable; + private final UnaryCallable listLinksCallable; + private final UnaryCallable listLinksPagedCallable; + private final UnaryCallable getLinkCallable; private final UnaryCallable listExclusionsCallable; private final UnaryCallable listExclusionsPagedCallable; @@ -418,6 +493,26 @@ protected GrpcConfigServiceV2Stub( return params.build(); }) .build(); + GrpcCallSettings createBucketAsyncTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createBucketAsyncMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings updateBucketAsyncTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateBucketAsyncMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); GrpcCallSettings createBucketTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createBucketMethodDescriptor) @@ -558,6 +653,46 @@ protected GrpcConfigServiceV2Stub( return params.build(); }) .build(); + GrpcCallSettings createLinkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createLinkMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings deleteLinkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteLinkMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings listLinksTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLinksMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings getLinkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLinkMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); GrpcCallSettings listExclusionsTransportSettings = GrpcCallSettings.newBuilder() @@ -663,6 +798,28 @@ protected GrpcConfigServiceV2Stub( this.getBucketCallable = callableFactory.createUnaryCallable( getBucketTransportSettings, settings.getBucketSettings(), clientContext); + this.createBucketAsyncCallable = + callableFactory.createUnaryCallable( + createBucketAsyncTransportSettings, + settings.createBucketAsyncSettings(), + clientContext); + this.createBucketAsyncOperationCallable = + callableFactory.createOperationCallable( + createBucketAsyncTransportSettings, + settings.createBucketAsyncOperationSettings(), + clientContext, + operationsStub); + this.updateBucketAsyncCallable = + callableFactory.createUnaryCallable( + updateBucketAsyncTransportSettings, + settings.updateBucketAsyncSettings(), + clientContext); + this.updateBucketAsyncOperationCallable = + callableFactory.createOperationCallable( + updateBucketAsyncTransportSettings, + settings.updateBucketAsyncOperationSettings(), + clientContext, + operationsStub); this.createBucketCallable = callableFactory.createUnaryCallable( createBucketTransportSettings, settings.createBucketSettings(), clientContext); @@ -711,6 +868,33 @@ protected GrpcConfigServiceV2Stub( this.deleteSinkCallable = callableFactory.createUnaryCallable( deleteSinkTransportSettings, settings.deleteSinkSettings(), clientContext); + this.createLinkCallable = + callableFactory.createUnaryCallable( + createLinkTransportSettings, settings.createLinkSettings(), clientContext); + this.createLinkOperationCallable = + callableFactory.createOperationCallable( + createLinkTransportSettings, + settings.createLinkOperationSettings(), + clientContext, + operationsStub); + this.deleteLinkCallable = + callableFactory.createUnaryCallable( + deleteLinkTransportSettings, settings.deleteLinkSettings(), clientContext); + this.deleteLinkOperationCallable = + callableFactory.createOperationCallable( + deleteLinkTransportSettings, + settings.deleteLinkOperationSettings(), + clientContext, + operationsStub); + this.listLinksCallable = + callableFactory.createUnaryCallable( + listLinksTransportSettings, settings.listLinksSettings(), clientContext); + this.listLinksPagedCallable = + callableFactory.createPagedCallable( + listLinksTransportSettings, settings.listLinksSettings(), clientContext); + this.getLinkCallable = + callableFactory.createUnaryCallable( + getLinkTransportSettings, settings.getLinkSettings(), clientContext); this.listExclusionsCallable = callableFactory.createUnaryCallable( listExclusionsTransportSettings, settings.listExclusionsSettings(), clientContext); @@ -776,6 +960,28 @@ public UnaryCallable getBucketCallable() { return getBucketCallable; } + @Override + public UnaryCallable createBucketAsyncCallable() { + return createBucketAsyncCallable; + } + + @Override + public OperationCallable + createBucketAsyncOperationCallable() { + return createBucketAsyncOperationCallable; + } + + @Override + public UnaryCallable updateBucketAsyncCallable() { + return updateBucketAsyncCallable; + } + + @Override + public OperationCallable + updateBucketAsyncOperationCallable() { + return updateBucketAsyncOperationCallable; + } + @Override public UnaryCallable createBucketCallable() { return createBucketCallable; @@ -856,6 +1062,41 @@ public UnaryCallable deleteSinkCallable() { return deleteSinkCallable; } + @Override + public UnaryCallable createLinkCallable() { + return createLinkCallable; + } + + @Override + public OperationCallable createLinkOperationCallable() { + return createLinkOperationCallable; + } + + @Override + public UnaryCallable deleteLinkCallable() { + return deleteLinkCallable; + } + + @Override + public OperationCallable deleteLinkOperationCallable() { + return deleteLinkOperationCallable; + } + + @Override + public UnaryCallable listLinksCallable() { + return listLinksCallable; + } + + @Override + public UnaryCallable listLinksPagedCallable() { + return listLinksPagedCallable; + } + + @Override + public UnaryCallable getLinkCallable() { + return getLinkCallable; + } + @Override public UnaryCallable listExclusionsCallable() { return listExclusionsCallable; 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 aa26975b5..49ed045ce 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 @@ -18,6 +18,7 @@ import static com.google.cloud.logging.v2.ConfigClient.ListBucketsPagedResponse; import static com.google.cloud.logging.v2.ConfigClient.ListExclusionsPagedResponse; +import static com.google.cloud.logging.v2.ConfigClient.ListLinksPagedResponse; import static com.google.cloud.logging.v2.ConfigClient.ListSinksPagedResponse; import static com.google.cloud.logging.v2.ConfigClient.ListViewsPagedResponse; @@ -30,6 +31,7 @@ import com.google.api.gax.rpc.InvalidArgumentException; import com.google.api.gax.rpc.StatusCode; import com.google.common.collect.Lists; +import com.google.logging.v2.BigQueryDataset; import com.google.logging.v2.BillingAccountLocationName; import com.google.logging.v2.BillingAccountName; import com.google.logging.v2.CmekSettings; @@ -38,10 +40,12 @@ import com.google.logging.v2.CopyLogEntriesResponse; import com.google.logging.v2.CreateBucketRequest; import com.google.logging.v2.CreateExclusionRequest; +import com.google.logging.v2.CreateLinkRequest; import com.google.logging.v2.CreateSinkRequest; import com.google.logging.v2.CreateViewRequest; import com.google.logging.v2.DeleteBucketRequest; import com.google.logging.v2.DeleteExclusionRequest; +import com.google.logging.v2.DeleteLinkRequest; import com.google.logging.v2.DeleteSinkRequest; import com.google.logging.v2.DeleteViewRequest; import com.google.logging.v2.FolderLocationName; @@ -49,14 +53,20 @@ import com.google.logging.v2.GetBucketRequest; import com.google.logging.v2.GetCmekSettingsRequest; import com.google.logging.v2.GetExclusionRequest; +import com.google.logging.v2.GetLinkRequest; import com.google.logging.v2.GetSettingsRequest; import com.google.logging.v2.GetSinkRequest; import com.google.logging.v2.GetViewRequest; +import com.google.logging.v2.IndexConfig; import com.google.logging.v2.LifecycleState; +import com.google.logging.v2.Link; +import com.google.logging.v2.LinkName; import com.google.logging.v2.ListBucketsRequest; import com.google.logging.v2.ListBucketsResponse; import com.google.logging.v2.ListExclusionsRequest; import com.google.logging.v2.ListExclusionsResponse; +import com.google.logging.v2.ListLinksRequest; +import com.google.logging.v2.ListLinksResponse; import com.google.logging.v2.ListSinksRequest; import com.google.logging.v2.ListSinksResponse; import com.google.logging.v2.ListViewsRequest; @@ -376,7 +386,9 @@ public void getBucketTest() throws Exception { .setRetentionDays(1544391896) .setLocked(true) .setLifecycleState(LifecycleState.forNumber(0)) + .setAnalyticsEnabled(true) .addAllRestrictedFields(new ArrayList()) + .addAllIndexConfigs(new ArrayList()) .setCmekSettings(CmekSettings.newBuilder().build()) .build(); mockConfigServiceV2.addResponse(expectedResponse); @@ -421,6 +433,150 @@ public void getBucketExceptionTest() throws Exception { } } + @Test + public void createBucketAsyncTest() throws Exception { + LogBucket expectedResponse = + LogBucket.newBuilder() + .setName( + LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setRetentionDays(1544391896) + .setLocked(true) + .setLifecycleState(LifecycleState.forNumber(0)) + .setAnalyticsEnabled(true) + .addAllRestrictedFields(new ArrayList()) + .addAllIndexConfigs(new ArrayList()) + .setCmekSettings(CmekSettings.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createBucketAsyncTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockConfigServiceV2.addResponse(resultOperation); + + CreateBucketRequest request = + CreateBucketRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setBucketId("bucketId-1603305307") + .setBucket(LogBucket.newBuilder().build()) + .build(); + + LogBucket actualResponse = client.createBucketAsyncAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateBucketRequest actualRequest = ((CreateBucketRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getBucketId(), actualRequest.getBucketId()); + Assert.assertEquals(request.getBucket(), actualRequest.getBucket()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createBucketAsyncExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + CreateBucketRequest request = + CreateBucketRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setBucketId("bucketId-1603305307") + .setBucket(LogBucket.newBuilder().build()) + .build(); + client.createBucketAsyncAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void updateBucketAsyncTest() throws Exception { + LogBucket expectedResponse = + LogBucket.newBuilder() + .setName( + LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setRetentionDays(1544391896) + .setLocked(true) + .setLifecycleState(LifecycleState.forNumber(0)) + .setAnalyticsEnabled(true) + .addAllRestrictedFields(new ArrayList()) + .addAllIndexConfigs(new ArrayList()) + .setCmekSettings(CmekSettings.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateBucketAsyncTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockConfigServiceV2.addResponse(resultOperation); + + UpdateBucketRequest request = + UpdateBucketRequest.newBuilder() + .setName( + LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]") + .toString()) + .setBucket(LogBucket.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + LogBucket actualResponse = client.updateBucketAsyncAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateBucketRequest actualRequest = ((UpdateBucketRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getBucket(), actualRequest.getBucket()); + Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateBucketAsyncExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + UpdateBucketRequest request = + UpdateBucketRequest.newBuilder() + .setName( + LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]") + .toString()) + .setBucket(LogBucket.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.updateBucketAsyncAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + @Test public void createBucketTest() throws Exception { LogBucket expectedResponse = @@ -434,7 +590,9 @@ public void createBucketTest() throws Exception { .setRetentionDays(1544391896) .setLocked(true) .setLifecycleState(LifecycleState.forNumber(0)) + .setAnalyticsEnabled(true) .addAllRestrictedFields(new ArrayList()) + .addAllIndexConfigs(new ArrayList()) .setCmekSettings(CmekSettings.newBuilder().build()) .build(); mockConfigServiceV2.addResponse(expectedResponse); @@ -494,7 +652,9 @@ public void updateBucketTest() throws Exception { .setRetentionDays(1544391896) .setLocked(true) .setLifecycleState(LifecycleState.forNumber(0)) + .setAnalyticsEnabled(true) .addAllRestrictedFields(new ArrayList()) + .addAllIndexConfigs(new ArrayList()) .setCmekSettings(CmekSettings.newBuilder().build()) .build(); mockConfigServiceV2.addResponse(expectedResponse); @@ -1732,6 +1892,394 @@ public void deleteSinkExceptionTest2() throws Exception { } } + @Test + public void createLinkTest() throws Exception { + Link expectedResponse = + Link.newBuilder() + .setName( + LinkName.ofProjectLocationBucketLinkName( + "[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setLifecycleState(LifecycleState.forNumber(0)) + .setBigqueryDataset(BigQueryDataset.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createLinkTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockConfigServiceV2.addResponse(resultOperation); + + LogBucketName parent = + LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]"); + Link link = Link.newBuilder().build(); + String linkId = "linkId-1102667083"; + + Link actualResponse = client.createLinkAsync(parent, link, linkId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateLinkRequest actualRequest = ((CreateLinkRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(link, actualRequest.getLink()); + Assert.assertEquals(linkId, actualRequest.getLinkId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createLinkExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + LogBucketName parent = + LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]"); + Link link = Link.newBuilder().build(); + String linkId = "linkId-1102667083"; + client.createLinkAsync(parent, link, linkId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void createLinkTest2() throws Exception { + Link expectedResponse = + Link.newBuilder() + .setName( + LinkName.ofProjectLocationBucketLinkName( + "[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setLifecycleState(LifecycleState.forNumber(0)) + .setBigqueryDataset(BigQueryDataset.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createLinkTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockConfigServiceV2.addResponse(resultOperation); + + String parent = "parent-995424086"; + Link link = Link.newBuilder().build(); + String linkId = "linkId-1102667083"; + + Link actualResponse = client.createLinkAsync(parent, link, linkId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateLinkRequest actualRequest = ((CreateLinkRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(link, actualRequest.getLink()); + Assert.assertEquals(linkId, actualRequest.getLinkId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createLinkExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + String parent = "parent-995424086"; + Link link = Link.newBuilder().build(); + String linkId = "linkId-1102667083"; + client.createLinkAsync(parent, link, linkId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteLinkTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteLinkTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockConfigServiceV2.addResponse(resultOperation); + + LinkName name = + LinkName.ofProjectLocationBucketLinkName("[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]"); + + client.deleteLinkAsync(name).get(); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteLinkRequest actualRequest = ((DeleteLinkRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteLinkExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + LinkName name = + LinkName.ofProjectLocationBucketLinkName("[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]"); + client.deleteLinkAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void deleteLinkTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteLinkTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockConfigServiceV2.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteLinkAsync(name).get(); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteLinkRequest actualRequest = ((DeleteLinkRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteLinkExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + String name = "name3373707"; + client.deleteLinkAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listLinksTest() throws Exception { + Link responsesElement = Link.newBuilder().build(); + ListLinksResponse expectedResponse = + ListLinksResponse.newBuilder() + .setNextPageToken("") + .addAllLinks(Arrays.asList(responsesElement)) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + LogBucketName parent = + LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]"); + + ListLinksPagedResponse pagedListResponse = client.listLinks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLinksList().get(0), resources.get(0)); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLinksRequest actualRequest = ((ListLinksRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLinksExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + LogBucketName parent = + LogBucketName.ofProjectLocationBucketName("[PROJECT]", "[LOCATION]", "[BUCKET]"); + client.listLinks(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLinksTest2() throws Exception { + Link responsesElement = Link.newBuilder().build(); + ListLinksResponse expectedResponse = + ListLinksResponse.newBuilder() + .setNextPageToken("") + .addAllLinks(Arrays.asList(responsesElement)) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListLinksPagedResponse pagedListResponse = client.listLinks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLinksList().get(0), resources.get(0)); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLinksRequest actualRequest = ((ListLinksRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLinksExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + String parent = "parent-995424086"; + client.listLinks(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLinkTest() throws Exception { + Link expectedResponse = + Link.newBuilder() + .setName( + LinkName.ofProjectLocationBucketLinkName( + "[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setLifecycleState(LifecycleState.forNumber(0)) + .setBigqueryDataset(BigQueryDataset.newBuilder().build()) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + LinkName name = + LinkName.ofProjectLocationBucketLinkName("[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]"); + + Link actualResponse = client.getLink(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLinkRequest actualRequest = ((GetLinkRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLinkExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + LinkName name = + LinkName.ofProjectLocationBucketLinkName("[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]"); + client.getLink(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLinkTest2() throws Exception { + Link expectedResponse = + Link.newBuilder() + .setName( + LinkName.ofProjectLocationBucketLinkName( + "[PROJECT]", "[LOCATION]", "[BUCKET]", "[LINK]") + .toString()) + .setDescription("description-1724546052") + .setCreateTime(Timestamp.newBuilder().build()) + .setLifecycleState(LifecycleState.forNumber(0)) + .setBigqueryDataset(BigQueryDataset.newBuilder().build()) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + String name = "name3373707"; + + Link actualResponse = client.getLink(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLinkRequest actualRequest = ((GetLinkRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLinkExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + String name = "name3373707"; + client.getLink(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listExclusionsTest() throws Exception { LogExclusion responsesElement = LogExclusion.newBuilder().build(); @@ -2440,6 +2988,7 @@ public void getCmekSettingsTest() throws Exception { CmekSettings.newBuilder() .setName(CmekSettingsName.ofProjectCmekSettingsName("[PROJECT]").toString()) .setKmsKeyName("kmsKeyName412586233") + .setKmsKeyVersionName("kmsKeyVersionName-1798811307") .setServiceAccountId("serviceAccountId1964232947") .build(); mockConfigServiceV2.addResponse(expectedResponse); @@ -2486,6 +3035,7 @@ public void updateCmekSettingsTest() throws Exception { CmekSettings.newBuilder() .setName(CmekSettingsName.ofProjectCmekSettingsName("[PROJECT]").toString()) .setKmsKeyName("kmsKeyName412586233") + .setKmsKeyVersionName("kmsKeyVersionName-1798811307") .setServiceAccountId("serviceAccountId1964232947") .build(); mockConfigServiceV2.addResponse(expectedResponse); 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 1722f7038..d2237055e 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") + .setBucketName("bucketName1117008789") .setDisabled(true) .setMetricDescriptor(MetricDescriptor.newBuilder().build()) .setValueExtractor("valueExtractor-1867420749") @@ -234,6 +235,7 @@ public void getLogMetricTest2() throws Exception { .setName(LogMetricName.of("[PROJECT]", "[METRIC]").toString()) .setDescription("description-1724546052") .setFilter("filter-1274492040") + .setBucketName("bucketName1117008789") .setDisabled(true) .setMetricDescriptor(MetricDescriptor.newBuilder().build()) .setValueExtractor("valueExtractor-1867420749") @@ -281,6 +283,7 @@ public void createLogMetricTest() throws Exception { .setName(LogMetricName.of("[PROJECT]", "[METRIC]").toString()) .setDescription("description-1724546052") .setFilter("filter-1274492040") + .setBucketName("bucketName1117008789") .setDisabled(true) .setMetricDescriptor(MetricDescriptor.newBuilder().build()) .setValueExtractor("valueExtractor-1867420749") @@ -331,6 +334,7 @@ public void createLogMetricTest2() throws Exception { .setName(LogMetricName.of("[PROJECT]", "[METRIC]").toString()) .setDescription("description-1724546052") .setFilter("filter-1274492040") + .setBucketName("bucketName1117008789") .setDisabled(true) .setMetricDescriptor(MetricDescriptor.newBuilder().build()) .setValueExtractor("valueExtractor-1867420749") @@ -381,6 +385,7 @@ public void updateLogMetricTest() throws Exception { .setName(LogMetricName.of("[PROJECT]", "[METRIC]").toString()) .setDescription("description-1724546052") .setFilter("filter-1274492040") + .setBucketName("bucketName1117008789") .setDisabled(true) .setMetricDescriptor(MetricDescriptor.newBuilder().build()) .setValueExtractor("valueExtractor-1867420749") @@ -431,6 +436,7 @@ public void updateLogMetricTest2() throws Exception { .setName(LogMetricName.of("[PROJECT]", "[METRIC]").toString()) .setDescription("description-1724546052") .setFilter("filter-1274492040") + .setBucketName("bucketName1117008789") .setDisabled(true) .setMetricDescriptor(MetricDescriptor.newBuilder().build()) .setValueExtractor("valueExtractor-1867420749") 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 575678110..565d111cd 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 @@ -22,22 +22,28 @@ import com.google.logging.v2.CopyLogEntriesRequest; import com.google.logging.v2.CreateBucketRequest; import com.google.logging.v2.CreateExclusionRequest; +import com.google.logging.v2.CreateLinkRequest; import com.google.logging.v2.CreateSinkRequest; import com.google.logging.v2.CreateViewRequest; import com.google.logging.v2.DeleteBucketRequest; import com.google.logging.v2.DeleteExclusionRequest; +import com.google.logging.v2.DeleteLinkRequest; import com.google.logging.v2.DeleteSinkRequest; import com.google.logging.v2.DeleteViewRequest; import com.google.logging.v2.GetBucketRequest; import com.google.logging.v2.GetCmekSettingsRequest; import com.google.logging.v2.GetExclusionRequest; +import com.google.logging.v2.GetLinkRequest; import com.google.logging.v2.GetSettingsRequest; import com.google.logging.v2.GetSinkRequest; import com.google.logging.v2.GetViewRequest; +import com.google.logging.v2.Link; import com.google.logging.v2.ListBucketsRequest; import com.google.logging.v2.ListBucketsResponse; import com.google.logging.v2.ListExclusionsRequest; import com.google.logging.v2.ListExclusionsResponse; +import com.google.logging.v2.ListLinksRequest; +import com.google.logging.v2.ListLinksResponse; import com.google.logging.v2.ListSinksRequest; import com.google.logging.v2.ListSinksResponse; import com.google.logging.v2.ListViewsRequest; @@ -137,6 +143,48 @@ public void getBucket(GetBucketRequest request, StreamObserver respon } } + @Override + public void createBucketAsync( + CreateBucketRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateBucketAsync, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateBucketAsync( + UpdateBucketRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateBucketAsync, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void createBucket( CreateBucketRequest request, StreamObserver responseObserver) { @@ -422,6 +470,87 @@ public void deleteSink(DeleteSinkRequest request, StreamObserver response } } + @Override + public void createLink(CreateLinkRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CreateLink, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteLink(DeleteLinkRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteLink, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listLinks( + ListLinksRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListLinksResponse) { + requests.add(request); + responseObserver.onNext(((ListLinksResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method ListLinks, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListLinksResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getLink(GetLinkRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Link) { + requests.add(request); + responseObserver.onNext(((Link) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetLink, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Link.class.getName(), + Exception.class.getName()))); + } + } + @Override public void listExclusions( ListExclusionsRequest request, StreamObserver responseObserver) { diff --git a/grpc-google-cloud-logging-v2/clirr-ignored-differences.xml b/grpc-google-cloud-logging-v2/clirr-ignored-differences.xml new file mode 100644 index 000000000..539f32ba9 --- /dev/null +++ b/grpc-google-cloud-logging-v2/clirr-ignored-differences.xml @@ -0,0 +1,33 @@ + + + + 7012 + com/google/logging/v2/ConfigServiceV2Grpc$AsyncService + void createBucketAsync(com.google.logging.v2.CreateBucketRequest, io.grpc.stub.StreamObserver) + + + 7012 + com/google/logging/v2/ConfigServiceV2Grpc$AsyncService + void updateBucketAsync(com.google.logging.v2.UpdateBucketRequest, io.grpc.stub.StreamObserver) + + + 7012 + com/google/logging/v2/ConfigServiceV2Grpc$AsyncService + void createLink(com.google.logging.v2.CreateLinkRequest, io.grpc.stub.StreamObserver) + + + 7012 + com/google/logging/v2/ConfigServiceV2Grpc$AsyncService + void deleteLink(com.google.logging.v2.DeleteLinkRequest, io.grpc.stub.StreamObserver) + + + 7012 + com/google/logging/v2/ConfigServiceV2Grpc$AsyncService + void getLink(com.google.logging.v2.GetLinkRequest, io.grpc.stub.StreamObserver) + + + 7012 + com/google/logging/v2/ConfigServiceV2Grpc$AsyncService + void listLinks(com.google.logging.v2.ListLinksRequest, io.grpc.stub.StreamObserver) + + 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 index 3519aaf66..a38e5dc74 100644 --- 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 @@ -117,6 +117,88 @@ private ConfigServiceV2Grpc() {} return getGetBucketMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.CreateBucketRequest, com.google.longrunning.Operation> + getCreateBucketAsyncMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateBucketAsync", + requestType = com.google.logging.v2.CreateBucketRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.logging.v2.CreateBucketRequest, com.google.longrunning.Operation> + getCreateBucketAsyncMethod() { + io.grpc.MethodDescriptor< + com.google.logging.v2.CreateBucketRequest, com.google.longrunning.Operation> + getCreateBucketAsyncMethod; + if ((getCreateBucketAsyncMethod = ConfigServiceV2Grpc.getCreateBucketAsyncMethod) == null) { + synchronized (ConfigServiceV2Grpc.class) { + if ((getCreateBucketAsyncMethod = ConfigServiceV2Grpc.getCreateBucketAsyncMethod) == null) { + ConfigServiceV2Grpc.getCreateBucketAsyncMethod = + getCreateBucketAsyncMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBucketAsync")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.CreateBucketRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ConfigServiceV2MethodDescriptorSupplier("CreateBucketAsync")) + .build(); + } + } + } + return getCreateBucketAsyncMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.UpdateBucketRequest, com.google.longrunning.Operation> + getUpdateBucketAsyncMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateBucketAsync", + requestType = com.google.logging.v2.UpdateBucketRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.logging.v2.UpdateBucketRequest, com.google.longrunning.Operation> + getUpdateBucketAsyncMethod() { + io.grpc.MethodDescriptor< + com.google.logging.v2.UpdateBucketRequest, com.google.longrunning.Operation> + getUpdateBucketAsyncMethod; + if ((getUpdateBucketAsyncMethod = ConfigServiceV2Grpc.getUpdateBucketAsyncMethod) == null) { + synchronized (ConfigServiceV2Grpc.class) { + if ((getUpdateBucketAsyncMethod = ConfigServiceV2Grpc.getUpdateBucketAsyncMethod) == null) { + ConfigServiceV2Grpc.getUpdateBucketAsyncMethod = + getUpdateBucketAsyncMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBucketAsync")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.UpdateBucketRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ConfigServiceV2MethodDescriptorSupplier("UpdateBucketAsync")) + .build(); + } + } + } + return getUpdateBucketAsyncMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.logging.v2.CreateBucketRequest, com.google.logging.v2.LogBucket> getCreateBucketMethod; @@ -679,6 +761,168 @@ private ConfigServiceV2Grpc() {} return getDeleteSinkMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.CreateLinkRequest, com.google.longrunning.Operation> + getCreateLinkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateLink", + requestType = com.google.logging.v2.CreateLinkRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.logging.v2.CreateLinkRequest, com.google.longrunning.Operation> + getCreateLinkMethod() { + io.grpc.MethodDescriptor< + com.google.logging.v2.CreateLinkRequest, com.google.longrunning.Operation> + getCreateLinkMethod; + if ((getCreateLinkMethod = ConfigServiceV2Grpc.getCreateLinkMethod) == null) { + synchronized (ConfigServiceV2Grpc.class) { + if ((getCreateLinkMethod = ConfigServiceV2Grpc.getCreateLinkMethod) == null) { + ConfigServiceV2Grpc.getCreateLinkMethod = + getCreateLinkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateLink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.CreateLinkRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ConfigServiceV2MethodDescriptorSupplier("CreateLink")) + .build(); + } + } + } + return getCreateLinkMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.DeleteLinkRequest, com.google.longrunning.Operation> + getDeleteLinkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteLink", + requestType = com.google.logging.v2.DeleteLinkRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.logging.v2.DeleteLinkRequest, com.google.longrunning.Operation> + getDeleteLinkMethod() { + io.grpc.MethodDescriptor< + com.google.logging.v2.DeleteLinkRequest, com.google.longrunning.Operation> + getDeleteLinkMethod; + if ((getDeleteLinkMethod = ConfigServiceV2Grpc.getDeleteLinkMethod) == null) { + synchronized (ConfigServiceV2Grpc.class) { + if ((getDeleteLinkMethod = ConfigServiceV2Grpc.getDeleteLinkMethod) == null) { + ConfigServiceV2Grpc.getDeleteLinkMethod = + getDeleteLinkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteLink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.DeleteLinkRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ConfigServiceV2MethodDescriptorSupplier("DeleteLink")) + .build(); + } + } + } + return getDeleteLinkMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.ListLinksRequest, com.google.logging.v2.ListLinksResponse> + getListLinksMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListLinks", + requestType = com.google.logging.v2.ListLinksRequest.class, + responseType = com.google.logging.v2.ListLinksResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.logging.v2.ListLinksRequest, com.google.logging.v2.ListLinksResponse> + getListLinksMethod() { + io.grpc.MethodDescriptor< + com.google.logging.v2.ListLinksRequest, com.google.logging.v2.ListLinksResponse> + getListLinksMethod; + if ((getListLinksMethod = ConfigServiceV2Grpc.getListLinksMethod) == null) { + synchronized (ConfigServiceV2Grpc.class) { + if ((getListLinksMethod = ConfigServiceV2Grpc.getListLinksMethod) == null) { + ConfigServiceV2Grpc.getListLinksMethod = + getListLinksMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLinks")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.ListLinksRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.ListLinksResponse.getDefaultInstance())) + .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("ListLinks")) + .build(); + } + } + } + return getListLinksMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.GetLinkRequest, com.google.logging.v2.Link> + getGetLinkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetLink", + requestType = com.google.logging.v2.GetLinkRequest.class, + responseType = com.google.logging.v2.Link.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.logging.v2.GetLinkRequest, com.google.logging.v2.Link> + getGetLinkMethod() { + io.grpc.MethodDescriptor + getGetLinkMethod; + if ((getGetLinkMethod = ConfigServiceV2Grpc.getGetLinkMethod) == null) { + synchronized (ConfigServiceV2Grpc.class) { + if ((getGetLinkMethod = ConfigServiceV2Grpc.getGetLinkMethod) == null) { + ConfigServiceV2Grpc.getGetLinkMethod = + getGetLinkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.GetLinkRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.Link.getDefaultInstance())) + .setSchemaDescriptor(new ConfigServiceV2MethodDescriptorSupplier("GetLink")) + .build(); + } + } + } + return getGetLinkMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.logging.v2.ListExclusionsRequest, com.google.logging.v2.ListExclusionsResponse> getListExclusionsMethod; @@ -1175,6 +1419,38 @@ default void getBucket( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBucketMethod(), responseObserver); } + /** + * + * + *
            +     * Creates a log bucket asynchronously that can be used to store log entries.
            +     * After a bucket has been created, the bucket's location cannot be changed.
            +     * 
            + */ + default void createBucketAsync( + com.google.logging.v2.CreateBucketRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateBucketAsyncMethod(), responseObserver); + } + + /** + * + * + *
            +     * 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.
            +     * 
            + */ + default void updateBucketAsync( + com.google.logging.v2.UpdateBucketRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateBucketAsyncMethod(), responseObserver); + } + /** * * @@ -1194,10 +1470,7 @@ default void createBucket( * * *
            -     * 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.
            +     * 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.
            @@ -1387,6 +1660,61 @@ default void deleteSink(
                   io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSinkMethod(), responseObserver);
                 }
             
            +    /**
            +     *
            +     *
            +     * 
            +     * Asynchronously creates a linked dataset in BigQuery which makes it possible
            +     * to use BigQuery to read the logs stored in the log bucket. A log bucket may
            +     * currently only contain one link.
            +     * 
            + */ + default void createLink( + com.google.logging.v2.CreateLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateLinkMethod(), responseObserver); + } + + /** + * + * + *
            +     * Deletes a link. This will also delete the corresponding BigQuery linked
            +     * dataset.
            +     * 
            + */ + default void deleteLink( + com.google.logging.v2.DeleteLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteLinkMethod(), responseObserver); + } + + /** + * + * + *
            +     * Lists links.
            +     * 
            + */ + default void listLinks( + com.google.logging.v2.ListLinksRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListLinksMethod(), responseObserver); + } + + /** + * + * + *
            +     * Gets a link.
            +     * 
            + */ + default void getLink( + com.google.logging.v2.GetLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLinkMethod(), responseObserver); + } + /** * * @@ -1633,6 +1961,42 @@ public void getBucket( getChannel().newCall(getGetBucketMethod(), getCallOptions()), request, responseObserver); } + /** + * + * + *
            +     * Creates a log bucket asynchronously that can be used to store log entries.
            +     * After a bucket has been created, the bucket's location cannot be changed.
            +     * 
            + */ + public void createBucketAsync( + com.google.logging.v2.CreateBucketRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateBucketAsyncMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * 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.
            +     * 
            + */ + public void updateBucketAsync( + com.google.logging.v2.UpdateBucketRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateBucketAsyncMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1654,10 +2018,7 @@ public void createBucket( * * *
            -     * 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.
            +     * 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.
            @@ -1863,6 +2224,65 @@ public void deleteSink(
                       getChannel().newCall(getDeleteSinkMethod(), getCallOptions()), request, responseObserver);
                 }
             
            +    /**
            +     *
            +     *
            +     * 
            +     * Asynchronously creates a linked dataset in BigQuery which makes it possible
            +     * to use BigQuery to read the logs stored in the log bucket. A log bucket may
            +     * currently only contain one link.
            +     * 
            + */ + public void createLink( + com.google.logging.v2.CreateLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateLinkMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
            +     * Deletes a link. This will also delete the corresponding BigQuery linked
            +     * dataset.
            +     * 
            + */ + public void deleteLink( + com.google.logging.v2.DeleteLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteLinkMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
            +     * Lists links.
            +     * 
            + */ + public void listLinks( + com.google.logging.v2.ListLinksRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListLinksMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
            +     * Gets a link.
            +     * 
            + */ + public void getLink( + com.google.logging.v2.GetLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetLinkMethod(), getCallOptions()), request, responseObserver); + } + /** * * @@ -2110,6 +2530,36 @@ public com.google.logging.v2.LogBucket getBucket( 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) { + 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
            +     * `FAILED_PRECONDITION` will be returned.
            +     * 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) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateBucketAsyncMethod(), getCallOptions(), request); + } + /** * * @@ -2128,10 +2578,7 @@ public com.google.logging.v2.LogBucket createBucket( * * *
            -     * 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.
            +     * 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.
            @@ -2314,6 +2761,60 @@ public com.google.protobuf.Empty deleteSink(com.google.logging.v2.DeleteSinkRequ
                       getChannel(), getDeleteSinkMethod(), getCallOptions(), request);
                 }
             
            +    /**
            +     *
            +     *
            +     * 
            +     * 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) { + 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) { + 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) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListLinksMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Gets a link.
            +     * 
            + */ + public com.google.logging.v2.Link getLink(com.google.logging.v2.GetLinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetLinkMethod(), getCallOptions(), request); + } + /** * * @@ -2531,6 +3032,36 @@ protected ConfigServiceV2FutureStub build( getChannel().newCall(getGetBucketMethod(), getCallOptions()), request); } + /** + * + * + *
            +     * Creates a log bucket asynchronously that can be used to store log entries.
            +     * After a bucket has been created, the bucket's location cannot be changed.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + createBucketAsync(com.google.logging.v2.CreateBucketRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateBucketAsyncMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Updates a log bucket asynchronously.
            +     * If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then
            +     * `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 + updateBucketAsync(com.google.logging.v2.UpdateBucketRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateBucketAsyncMethod(), getCallOptions()), request); + } + /** * * @@ -2549,10 +3080,7 @@ protected ConfigServiceV2FutureStub build( * * *
            -     * 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.
            +     * 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.
            @@ -2741,6 +3269,62 @@ public com.google.common.util.concurrent.ListenableFuture
            +     * Asynchronously creates a linked dataset in BigQuery which makes it possible
            +     * to use BigQuery to read the logs stored in the log bucket. A log bucket may
            +     * currently only contain one link.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + createLink(com.google.logging.v2.CreateLinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateLinkMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Deletes a link. This will also delete the corresponding BigQuery linked
            +     * dataset.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + deleteLink(com.google.logging.v2.DeleteLinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteLinkMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Lists links.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.logging.v2.ListLinksResponse> + listLinks(com.google.logging.v2.ListLinksRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListLinksMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Gets a link.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture getLink( + com.google.logging.v2.GetLinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetLinkMethod(), getCallOptions()), request); + } + /** * * @@ -2915,30 +3499,36 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -2968,6 +3558,16 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.logging.v2.GetBucketRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_CREATE_BUCKET_ASYNC: + serviceImpl.createBucketAsync( + (com.google.logging.v2.CreateBucketRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_BUCKET_ASYNC: + serviceImpl.updateBucketAsync( + (com.google.logging.v2.UpdateBucketRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_CREATE_BUCKET: serviceImpl.createBucket( (com.google.logging.v2.CreateBucketRequest) request, @@ -3040,6 +3640,27 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.logging.v2.DeleteSinkRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_CREATE_LINK: + serviceImpl.createLink( + (com.google.logging.v2.CreateLinkRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_LINK: + serviceImpl.deleteLink( + (com.google.logging.v2.DeleteLinkRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_LINKS: + serviceImpl.listLinks( + (com.google.logging.v2.ListLinksRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_LINK: + serviceImpl.getLink( + (com.google.logging.v2.GetLinkRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_LIST_EXCLUSIONS: serviceImpl.listExclusions( (com.google.logging.v2.ListExclusionsRequest) request, @@ -3121,6 +3742,18 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.logging.v2.GetBucketRequest, com.google.logging.v2.LogBucket>( service, METHODID_GET_BUCKET))) + .addMethod( + getCreateBucketAsyncMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.CreateBucketRequest, com.google.longrunning.Operation>( + service, METHODID_CREATE_BUCKET_ASYNC))) + .addMethod( + getUpdateBucketAsyncMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.UpdateBucketRequest, com.google.longrunning.Operation>( + service, METHODID_UPDATE_BUCKET_ASYNC))) .addMethod( getCreateBucketMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -3205,6 +3838,30 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.logging.v2.DeleteSinkRequest, com.google.protobuf.Empty>( service, METHODID_DELETE_SINK))) + .addMethod( + getCreateLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.CreateLinkRequest, com.google.longrunning.Operation>( + service, METHODID_CREATE_LINK))) + .addMethod( + getDeleteLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.DeleteLinkRequest, com.google.longrunning.Operation>( + service, METHODID_DELETE_LINK))) + .addMethod( + getListLinksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.ListLinksRequest, + com.google.logging.v2.ListLinksResponse>(service, METHODID_LIST_LINKS))) + .addMethod( + getGetLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.GetLinkRequest, com.google.logging.v2.Link>( + service, METHODID_GET_LINK))) .addMethod( getListExclusionsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -3319,6 +3976,8 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .setSchemaDescriptor(new ConfigServiceV2FileDescriptorSupplier()) .addMethod(getListBucketsMethod()) .addMethod(getGetBucketMethod()) + .addMethod(getCreateBucketAsyncMethod()) + .addMethod(getUpdateBucketAsyncMethod()) .addMethod(getCreateBucketMethod()) .addMethod(getUpdateBucketMethod()) .addMethod(getDeleteBucketMethod()) @@ -3333,6 +3992,10 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getCreateSinkMethod()) .addMethod(getUpdateSinkMethod()) .addMethod(getDeleteSinkMethod()) + .addMethod(getCreateLinkMethod()) + .addMethod(getDeleteLinkMethod()) + .addMethod(getListLinksMethod()) + .addMethod(getGetLinkMethod()) .addMethod(getListExclusionsMethod()) .addMethod(getGetExclusionMethod()) .addMethod(getCreateExclusionMethod()) diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryDataset.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryDataset.java new file mode 100644 index 000000000..5c0a532ca --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryDataset.java @@ -0,0 +1,661 @@ +/* + * 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 BigQuery dataset that was created by a link.
            + * 
            + * + * Protobuf type {@code google.logging.v2.BigQueryDataset} + */ +public final class BigQueryDataset extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.logging.v2.BigQueryDataset) + BigQueryDatasetOrBuilder { + private static final long serialVersionUID = 0L; + // Use BigQueryDataset.newBuilder() to construct. + private BigQueryDataset(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BigQueryDataset() { + datasetId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BigQueryDataset(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_BigQueryDataset_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_BigQueryDataset_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.logging.v2.BigQueryDataset.class, + com.google.logging.v2.BigQueryDataset.Builder.class); + } + + public static final int DATASET_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object datasetId_ = ""; + /** + * + * + *
            +   * Output only. The full resource name of the BigQuery dataset. The DATASET_ID
            +   * will match the ID of the link, so the link must match the naming
            +   * restrictions of BigQuery datasets (alphanumeric characters and underscores
            +   * only).
            +   * The dataset will have a resource path of
            +   *   "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET_ID]"
            +   * 
            + * + * string dataset_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The datasetId. + */ + @java.lang.Override + public java.lang.String getDatasetId() { + java.lang.Object ref = datasetId_; + 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(); + datasetId_ = s; + return s; + } + } + /** + * + * + *
            +   * Output only. The full resource name of the BigQuery dataset. The DATASET_ID
            +   * will match the ID of the link, so the link must match the naming
            +   * restrictions of BigQuery datasets (alphanumeric characters and underscores
            +   * only).
            +   * The dataset will have a resource path of
            +   *   "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET_ID]"
            +   * 
            + * + * string dataset_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for datasetId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDatasetIdBytes() { + java.lang.Object ref = datasetId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + datasetId_ = 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(datasetId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, datasetId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(datasetId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, datasetId_); + } + size += getUnknownFields().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.BigQueryDataset)) { + return super.equals(obj); + } + com.google.logging.v2.BigQueryDataset other = (com.google.logging.v2.BigQueryDataset) obj; + + if (!getDatasetId().equals(other.getDatasetId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + DATASET_ID_FIELD_NUMBER; + hash = (53 * hash) + getDatasetId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.logging.v2.BigQueryDataset parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.BigQueryDataset parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.BigQueryDataset parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.BigQueryDataset parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.BigQueryDataset parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.BigQueryDataset parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.BigQueryDataset parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.logging.v2.BigQueryDataset 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.BigQueryDataset parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.logging.v2.BigQueryDataset parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.logging.v2.BigQueryDataset parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.logging.v2.BigQueryDataset parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.logging.v2.BigQueryDataset prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
            +   * Describes a BigQuery dataset that was created by a link.
            +   * 
            + * + * Protobuf type {@code google.logging.v2.BigQueryDataset} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.logging.v2.BigQueryDataset) + com.google.logging.v2.BigQueryDatasetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_BigQueryDataset_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_BigQueryDataset_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.logging.v2.BigQueryDataset.class, + com.google.logging.v2.BigQueryDataset.Builder.class); + } + + // Construct using com.google.logging.v2.BigQueryDataset.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + datasetId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_BigQueryDataset_descriptor; + } + + @java.lang.Override + public com.google.logging.v2.BigQueryDataset getDefaultInstanceForType() { + return com.google.logging.v2.BigQueryDataset.getDefaultInstance(); + } + + @java.lang.Override + public com.google.logging.v2.BigQueryDataset build() { + com.google.logging.v2.BigQueryDataset result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.logging.v2.BigQueryDataset buildPartial() { + com.google.logging.v2.BigQueryDataset result = + new com.google.logging.v2.BigQueryDataset(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.logging.v2.BigQueryDataset result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.datasetId_ = datasetId_; + } + } + + @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.BigQueryDataset) { + return mergeFrom((com.google.logging.v2.BigQueryDataset) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.logging.v2.BigQueryDataset other) { + if (other == com.google.logging.v2.BigQueryDataset.getDefaultInstance()) return this; + if (!other.getDatasetId().isEmpty()) { + datasetId_ = other.datasetId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + datasetId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object datasetId_ = ""; + /** + * + * + *
            +     * Output only. The full resource name of the BigQuery dataset. The DATASET_ID
            +     * will match the ID of the link, so the link must match the naming
            +     * restrictions of BigQuery datasets (alphanumeric characters and underscores
            +     * only).
            +     * The dataset will have a resource path of
            +     *   "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET_ID]"
            +     * 
            + * + * string dataset_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The datasetId. + */ + public java.lang.String getDatasetId() { + java.lang.Object ref = datasetId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + datasetId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
            +     * Output only. The full resource name of the BigQuery dataset. The DATASET_ID
            +     * will match the ID of the link, so the link must match the naming
            +     * restrictions of BigQuery datasets (alphanumeric characters and underscores
            +     * only).
            +     * The dataset will have a resource path of
            +     *   "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET_ID]"
            +     * 
            + * + * string dataset_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for datasetId. + */ + public com.google.protobuf.ByteString getDatasetIdBytes() { + java.lang.Object ref = datasetId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + datasetId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
            +     * Output only. The full resource name of the BigQuery dataset. The DATASET_ID
            +     * will match the ID of the link, so the link must match the naming
            +     * restrictions of BigQuery datasets (alphanumeric characters and underscores
            +     * only).
            +     * The dataset will have a resource path of
            +     *   "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET_ID]"
            +     * 
            + * + * string dataset_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The datasetId to set. + * @return This builder for chaining. + */ + public Builder setDatasetId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + datasetId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
            +     * Output only. The full resource name of the BigQuery dataset. The DATASET_ID
            +     * will match the ID of the link, so the link must match the naming
            +     * restrictions of BigQuery datasets (alphanumeric characters and underscores
            +     * only).
            +     * The dataset will have a resource path of
            +     *   "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET_ID]"
            +     * 
            + * + * string dataset_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDatasetId() { + datasetId_ = getDefaultInstance().getDatasetId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
            +     * Output only. The full resource name of the BigQuery dataset. The DATASET_ID
            +     * will match the ID of the link, so the link must match the naming
            +     * restrictions of BigQuery datasets (alphanumeric characters and underscores
            +     * only).
            +     * The dataset will have a resource path of
            +     *   "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET_ID]"
            +     * 
            + * + * string dataset_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for datasetId to set. + * @return This builder for chaining. + */ + public Builder setDatasetIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + datasetId_ = value; + bitField0_ |= 0x00000001; + 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.BigQueryDataset) + } + + // @@protoc_insertion_point(class_scope:google.logging.v2.BigQueryDataset) + private static final com.google.logging.v2.BigQueryDataset DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.logging.v2.BigQueryDataset(); + } + + public static com.google.logging.v2.BigQueryDataset getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BigQueryDataset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.BigQueryDataset getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryDatasetOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryDatasetOrBuilder.java new file mode 100644 index 000000000..b4e9c47cf --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryDatasetOrBuilder.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 BigQueryDatasetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.logging.v2.BigQueryDataset) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Output only. The full resource name of the BigQuery dataset. The DATASET_ID
            +   * will match the ID of the link, so the link must match the naming
            +   * restrictions of BigQuery datasets (alphanumeric characters and underscores
            +   * only).
            +   * The dataset will have a resource path of
            +   *   "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET_ID]"
            +   * 
            + * + * string dataset_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The datasetId. + */ + java.lang.String getDatasetId(); + /** + * + * + *
            +   * Output only. The full resource name of the BigQuery dataset. The DATASET_ID
            +   * will match the ID of the link, so the link must match the naming
            +   * restrictions of BigQuery datasets (alphanumeric characters and underscores
            +   * only).
            +   * The dataset will have a resource path of
            +   *   "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET_ID]"
            +   * 
            + * + * string dataset_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for datasetId. + */ + com.google.protobuf.ByteString getDatasetIdBytes(); +} diff --git a/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 index 60621ab20..56fcc1ca5 100644 --- a/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 @@ -96,8 +96,8 @@ public 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
            @@ -557,8 +557,8 @@ public Builder clearUsePartitionedTables() {
                  *
                  *
                  * 
            -     * 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
            @@ -579,8 +579,8 @@ public boolean getUsesTimestampColumnPartitioning() {
                  *
                  *
                  * 
            -     * 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
            @@ -605,8 +605,8 @@ public Builder setUsesTimestampColumnPartitioning(boolean value) {
                  *
                  *
                  * 
            -     * 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
            diff --git a/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
            index 65f52f765..642a8b7c9 100644
            --- a/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
            @@ -47,8 +47,8 @@ public interface BigQueryOptionsOrBuilder
                *
                *
                * 
            -   * 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
            diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BucketMetadata.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BucketMetadata.java
            new file mode 100644
            index 000000000..d80040f6c
            --- /dev/null
            +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BucketMetadata.java
            @@ -0,0 +1,1773 @@
            +/*
            + * 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 LongRunningUpdateBucket Operations.
            + * 
            + * + * Protobuf type {@code google.logging.v2.BucketMetadata} + */ +public final class BucketMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.logging.v2.BucketMetadata) + BucketMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use BucketMetadata.newBuilder() to construct. + private BucketMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BucketMetadata() { + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BucketMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_BucketMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_BucketMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.logging.v2.BucketMetadata.class, + com.google.logging.v2.BucketMetadata.Builder.class); + } + + private int requestCase_ = 0; + private java.lang.Object request_; + + public enum RequestCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CREATE_BUCKET_REQUEST(4), + UPDATE_BUCKET_REQUEST(5), + REQUEST_NOT_SET(0); + private final int value; + + private RequestCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RequestCase valueOf(int value) { + return forNumber(value); + } + + public static RequestCase forNumber(int value) { + switch (value) { + case 4: + return CREATE_BUCKET_REQUEST; + case 5: + return UPDATE_BUCKET_REQUEST; + case 0: + return REQUEST_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public RequestCase getRequestCase() { + return RequestCase.forNumber(requestCase_); + } + + public static final int START_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
            +   * The create time of an operation.
            +   * 
            + * + * .google.protobuf.Timestamp start_time = 1; + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + 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 startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + 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 endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + public static final int STATE_FIELD_NUMBER = 3; + private int state_ = 0; + /** + * + * + *
            +   * State of an operation.
            +   * 
            + * + * .google.logging.v2.OperationState state = 3; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
            +   * State of an operation.
            +   * 
            + * + * .google.logging.v2.OperationState state = 3; + * + * @return The state. + */ + @java.lang.Override + public com.google.logging.v2.OperationState getState() { + com.google.logging.v2.OperationState result = + com.google.logging.v2.OperationState.forNumber(state_); + return result == null ? com.google.logging.v2.OperationState.UNRECOGNIZED : result; + } + + public static final int CREATE_BUCKET_REQUEST_FIELD_NUMBER = 4; + /** + * + * + *
            +   * LongRunningCreateBucket RPC request.
            +   * 
            + * + * .google.logging.v2.CreateBucketRequest create_bucket_request = 4; + * + * @return Whether the createBucketRequest field is set. + */ + @java.lang.Override + public boolean hasCreateBucketRequest() { + return requestCase_ == 4; + } + /** + * + * + *
            +   * LongRunningCreateBucket RPC request.
            +   * 
            + * + * .google.logging.v2.CreateBucketRequest create_bucket_request = 4; + * + * @return The createBucketRequest. + */ + @java.lang.Override + public com.google.logging.v2.CreateBucketRequest getCreateBucketRequest() { + if (requestCase_ == 4) { + return (com.google.logging.v2.CreateBucketRequest) request_; + } + return com.google.logging.v2.CreateBucketRequest.getDefaultInstance(); + } + /** + * + * + *
            +   * LongRunningCreateBucket RPC request.
            +   * 
            + * + * .google.logging.v2.CreateBucketRequest create_bucket_request = 4; + */ + @java.lang.Override + public com.google.logging.v2.CreateBucketRequestOrBuilder getCreateBucketRequestOrBuilder() { + if (requestCase_ == 4) { + return (com.google.logging.v2.CreateBucketRequest) request_; + } + return com.google.logging.v2.CreateBucketRequest.getDefaultInstance(); + } + + public static final int UPDATE_BUCKET_REQUEST_FIELD_NUMBER = 5; + /** + * + * + *
            +   * LongRunningUpdateBucket RPC request.
            +   * 
            + * + * .google.logging.v2.UpdateBucketRequest update_bucket_request = 5; + * + * @return Whether the updateBucketRequest field is set. + */ + @java.lang.Override + public boolean hasUpdateBucketRequest() { + return requestCase_ == 5; + } + /** + * + * + *
            +   * LongRunningUpdateBucket RPC request.
            +   * 
            + * + * .google.logging.v2.UpdateBucketRequest update_bucket_request = 5; + * + * @return The updateBucketRequest. + */ + @java.lang.Override + public com.google.logging.v2.UpdateBucketRequest getUpdateBucketRequest() { + if (requestCase_ == 5) { + return (com.google.logging.v2.UpdateBucketRequest) request_; + } + return com.google.logging.v2.UpdateBucketRequest.getDefaultInstance(); + } + /** + * + * + *
            +   * LongRunningUpdateBucket RPC request.
            +   * 
            + * + * .google.logging.v2.UpdateBucketRequest update_bucket_request = 5; + */ + @java.lang.Override + public com.google.logging.v2.UpdateBucketRequestOrBuilder getUpdateBucketRequestOrBuilder() { + if (requestCase_ == 5) { + return (com.google.logging.v2.UpdateBucketRequest) request_; + } + return com.google.logging.v2.UpdateBucketRequest.getDefaultInstance(); + } + + 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 (requestCase_ == 4) { + output.writeMessage(4, (com.google.logging.v2.CreateBucketRequest) request_); + } + if (requestCase_ == 5) { + output.writeMessage(5, (com.google.logging.v2.UpdateBucketRequest) request_); + } + getUnknownFields().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 (requestCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.logging.v2.CreateBucketRequest) request_); + } + if (requestCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.logging.v2.UpdateBucketRequest) request_); + } + size += getUnknownFields().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.BucketMetadata)) { + return super.equals(obj); + } + com.google.logging.v2.BucketMetadata other = (com.google.logging.v2.BucketMetadata) 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 (!getRequestCase().equals(other.getRequestCase())) return false; + switch (requestCase_) { + case 4: + if (!getCreateBucketRequest().equals(other.getCreateBucketRequest())) return false; + break; + case 5: + if (!getUpdateBucketRequest().equals(other.getUpdateBucketRequest())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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_; + switch (requestCase_) { + case 4: + hash = (37 * hash) + CREATE_BUCKET_REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getCreateBucketRequest().hashCode(); + break; + case 5: + hash = (37 * hash) + UPDATE_BUCKET_REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getUpdateBucketRequest().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.logging.v2.BucketMetadata parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.BucketMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.BucketMetadata parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.BucketMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.BucketMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.BucketMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.BucketMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.logging.v2.BucketMetadata 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.BucketMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.logging.v2.BucketMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.logging.v2.BucketMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.logging.v2.BucketMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.logging.v2.BucketMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
            +   * Metadata for LongRunningUpdateBucket Operations.
            +   * 
            + * + * Protobuf type {@code google.logging.v2.BucketMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.logging.v2.BucketMetadata) + com.google.logging.v2.BucketMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_BucketMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_BucketMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.logging.v2.BucketMetadata.class, + com.google.logging.v2.BucketMetadata.Builder.class); + } + + // Construct using com.google.logging.v2.BucketMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + state_ = 0; + if (createBucketRequestBuilder_ != null) { + createBucketRequestBuilder_.clear(); + } + if (updateBucketRequestBuilder_ != null) { + updateBucketRequestBuilder_.clear(); + } + requestCase_ = 0; + request_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_BucketMetadata_descriptor; + } + + @java.lang.Override + public com.google.logging.v2.BucketMetadata getDefaultInstanceForType() { + return com.google.logging.v2.BucketMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.logging.v2.BucketMetadata build() { + com.google.logging.v2.BucketMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.logging.v2.BucketMetadata buildPartial() { + com.google.logging.v2.BucketMetadata result = new com.google.logging.v2.BucketMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.logging.v2.BucketMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.state_ = state_; + } + } + + private void buildPartialOneofs(com.google.logging.v2.BucketMetadata result) { + result.requestCase_ = requestCase_; + result.request_ = this.request_; + if (requestCase_ == 4 && createBucketRequestBuilder_ != null) { + result.request_ = createBucketRequestBuilder_.build(); + } + if (requestCase_ == 5 && updateBucketRequestBuilder_ != null) { + result.request_ = updateBucketRequestBuilder_.build(); + } + } + + @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.BucketMetadata) { + return mergeFrom((com.google.logging.v2.BucketMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.logging.v2.BucketMetadata other) { + if (other == com.google.logging.v2.BucketMetadata.getDefaultInstance()) return this; + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + switch (other.getRequestCase()) { + case CREATE_BUCKET_REQUEST: + { + mergeCreateBucketRequest(other.getCreateBucketRequest()); + break; + } + case UPDATE_BUCKET_REQUEST: + { + mergeUpdateBucketRequest(other.getUpdateBucketRequest()); + break; + } + case REQUEST_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + input.readMessage( + getCreateBucketRequestFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage( + getUpdateBucketRequestFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 5; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int requestCase_ = 0; + private java.lang.Object request_; + + public RequestCase getRequestCase() { + return RequestCase.forNumber(requestCase_); + } + + public Builder clearRequest() { + requestCase_ = 0; + request_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
            +     * The create time of an operation.
            +     * 
            + * + * .google.protobuf.Timestamp start_time = 1; + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
            +     * The create time of an operation.
            +     * 
            + * + * .google.protobuf.Timestamp start_time = 1; + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + 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; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + 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(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + 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 (((bitField0_ & 0x00000001) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
            +     * The create time of an operation.
            +     * 
            + * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000001); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
            +     * The create time of an operation.
            +     * 
            + * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000001; + 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 ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
            +     * 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; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + 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(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + 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 (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
            +     * The end time of an operation.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000002); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
            +     * The end time of an operation.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000002; + 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; + bitField0_ |= 0x00000004; + 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() { + com.google.logging.v2.OperationState result = + com.google.logging.v2.OperationState.forNumber(state_); + return result == null ? com.google.logging.v2.OperationState.UNRECOGNIZED : result; + } + /** + * + * + *
            +     * State of an operation.
            +     * 
            + * + * .google.logging.v2.OperationState state = 3; + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.logging.v2.OperationState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
            +     * State of an operation.
            +     * 
            + * + * .google.logging.v2.OperationState state = 3; + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000004); + state_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.CreateBucketRequest, + com.google.logging.v2.CreateBucketRequest.Builder, + com.google.logging.v2.CreateBucketRequestOrBuilder> + createBucketRequestBuilder_; + /** + * + * + *
            +     * LongRunningCreateBucket RPC request.
            +     * 
            + * + * .google.logging.v2.CreateBucketRequest create_bucket_request = 4; + * + * @return Whether the createBucketRequest field is set. + */ + @java.lang.Override + public boolean hasCreateBucketRequest() { + return requestCase_ == 4; + } + /** + * + * + *
            +     * LongRunningCreateBucket RPC request.
            +     * 
            + * + * .google.logging.v2.CreateBucketRequest create_bucket_request = 4; + * + * @return The createBucketRequest. + */ + @java.lang.Override + public com.google.logging.v2.CreateBucketRequest getCreateBucketRequest() { + if (createBucketRequestBuilder_ == null) { + if (requestCase_ == 4) { + return (com.google.logging.v2.CreateBucketRequest) request_; + } + return com.google.logging.v2.CreateBucketRequest.getDefaultInstance(); + } else { + if (requestCase_ == 4) { + return createBucketRequestBuilder_.getMessage(); + } + return com.google.logging.v2.CreateBucketRequest.getDefaultInstance(); + } + } + /** + * + * + *
            +     * LongRunningCreateBucket RPC request.
            +     * 
            + * + * .google.logging.v2.CreateBucketRequest create_bucket_request = 4; + */ + public Builder setCreateBucketRequest(com.google.logging.v2.CreateBucketRequest value) { + if (createBucketRequestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + createBucketRequestBuilder_.setMessage(value); + } + requestCase_ = 4; + return this; + } + /** + * + * + *
            +     * LongRunningCreateBucket RPC request.
            +     * 
            + * + * .google.logging.v2.CreateBucketRequest create_bucket_request = 4; + */ + public Builder setCreateBucketRequest( + com.google.logging.v2.CreateBucketRequest.Builder builderForValue) { + if (createBucketRequestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + createBucketRequestBuilder_.setMessage(builderForValue.build()); + } + requestCase_ = 4; + return this; + } + /** + * + * + *
            +     * LongRunningCreateBucket RPC request.
            +     * 
            + * + * .google.logging.v2.CreateBucketRequest create_bucket_request = 4; + */ + public Builder mergeCreateBucketRequest(com.google.logging.v2.CreateBucketRequest value) { + if (createBucketRequestBuilder_ == null) { + if (requestCase_ == 4 + && request_ != com.google.logging.v2.CreateBucketRequest.getDefaultInstance()) { + request_ = + com.google.logging.v2.CreateBucketRequest.newBuilder( + (com.google.logging.v2.CreateBucketRequest) request_) + .mergeFrom(value) + .buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + if (requestCase_ == 4) { + createBucketRequestBuilder_.mergeFrom(value); + } else { + createBucketRequestBuilder_.setMessage(value); + } + } + requestCase_ = 4; + return this; + } + /** + * + * + *
            +     * LongRunningCreateBucket RPC request.
            +     * 
            + * + * .google.logging.v2.CreateBucketRequest create_bucket_request = 4; + */ + public Builder clearCreateBucketRequest() { + if (createBucketRequestBuilder_ == null) { + if (requestCase_ == 4) { + requestCase_ = 0; + request_ = null; + onChanged(); + } + } else { + if (requestCase_ == 4) { + requestCase_ = 0; + request_ = null; + } + createBucketRequestBuilder_.clear(); + } + return this; + } + /** + * + * + *
            +     * LongRunningCreateBucket RPC request.
            +     * 
            + * + * .google.logging.v2.CreateBucketRequest create_bucket_request = 4; + */ + public com.google.logging.v2.CreateBucketRequest.Builder getCreateBucketRequestBuilder() { + return getCreateBucketRequestFieldBuilder().getBuilder(); + } + /** + * + * + *
            +     * LongRunningCreateBucket RPC request.
            +     * 
            + * + * .google.logging.v2.CreateBucketRequest create_bucket_request = 4; + */ + @java.lang.Override + public com.google.logging.v2.CreateBucketRequestOrBuilder getCreateBucketRequestOrBuilder() { + if ((requestCase_ == 4) && (createBucketRequestBuilder_ != null)) { + return createBucketRequestBuilder_.getMessageOrBuilder(); + } else { + if (requestCase_ == 4) { + return (com.google.logging.v2.CreateBucketRequest) request_; + } + return com.google.logging.v2.CreateBucketRequest.getDefaultInstance(); + } + } + /** + * + * + *
            +     * LongRunningCreateBucket RPC request.
            +     * 
            + * + * .google.logging.v2.CreateBucketRequest create_bucket_request = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.CreateBucketRequest, + com.google.logging.v2.CreateBucketRequest.Builder, + com.google.logging.v2.CreateBucketRequestOrBuilder> + getCreateBucketRequestFieldBuilder() { + if (createBucketRequestBuilder_ == null) { + if (!(requestCase_ == 4)) { + request_ = com.google.logging.v2.CreateBucketRequest.getDefaultInstance(); + } + createBucketRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.CreateBucketRequest, + com.google.logging.v2.CreateBucketRequest.Builder, + com.google.logging.v2.CreateBucketRequestOrBuilder>( + (com.google.logging.v2.CreateBucketRequest) request_, + getParentForChildren(), + isClean()); + request_ = null; + } + requestCase_ = 4; + onChanged(); + return createBucketRequestBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.UpdateBucketRequest, + com.google.logging.v2.UpdateBucketRequest.Builder, + com.google.logging.v2.UpdateBucketRequestOrBuilder> + updateBucketRequestBuilder_; + /** + * + * + *
            +     * LongRunningUpdateBucket RPC request.
            +     * 
            + * + * .google.logging.v2.UpdateBucketRequest update_bucket_request = 5; + * + * @return Whether the updateBucketRequest field is set. + */ + @java.lang.Override + public boolean hasUpdateBucketRequest() { + return requestCase_ == 5; + } + /** + * + * + *
            +     * LongRunningUpdateBucket RPC request.
            +     * 
            + * + * .google.logging.v2.UpdateBucketRequest update_bucket_request = 5; + * + * @return The updateBucketRequest. + */ + @java.lang.Override + public com.google.logging.v2.UpdateBucketRequest getUpdateBucketRequest() { + if (updateBucketRequestBuilder_ == null) { + if (requestCase_ == 5) { + return (com.google.logging.v2.UpdateBucketRequest) request_; + } + return com.google.logging.v2.UpdateBucketRequest.getDefaultInstance(); + } else { + if (requestCase_ == 5) { + return updateBucketRequestBuilder_.getMessage(); + } + return com.google.logging.v2.UpdateBucketRequest.getDefaultInstance(); + } + } + /** + * + * + *
            +     * LongRunningUpdateBucket RPC request.
            +     * 
            + * + * .google.logging.v2.UpdateBucketRequest update_bucket_request = 5; + */ + public Builder setUpdateBucketRequest(com.google.logging.v2.UpdateBucketRequest value) { + if (updateBucketRequestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + updateBucketRequestBuilder_.setMessage(value); + } + requestCase_ = 5; + return this; + } + /** + * + * + *
            +     * LongRunningUpdateBucket RPC request.
            +     * 
            + * + * .google.logging.v2.UpdateBucketRequest update_bucket_request = 5; + */ + public Builder setUpdateBucketRequest( + com.google.logging.v2.UpdateBucketRequest.Builder builderForValue) { + if (updateBucketRequestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + updateBucketRequestBuilder_.setMessage(builderForValue.build()); + } + requestCase_ = 5; + return this; + } + /** + * + * + *
            +     * LongRunningUpdateBucket RPC request.
            +     * 
            + * + * .google.logging.v2.UpdateBucketRequest update_bucket_request = 5; + */ + public Builder mergeUpdateBucketRequest(com.google.logging.v2.UpdateBucketRequest value) { + if (updateBucketRequestBuilder_ == null) { + if (requestCase_ == 5 + && request_ != com.google.logging.v2.UpdateBucketRequest.getDefaultInstance()) { + request_ = + com.google.logging.v2.UpdateBucketRequest.newBuilder( + (com.google.logging.v2.UpdateBucketRequest) request_) + .mergeFrom(value) + .buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + if (requestCase_ == 5) { + updateBucketRequestBuilder_.mergeFrom(value); + } else { + updateBucketRequestBuilder_.setMessage(value); + } + } + requestCase_ = 5; + return this; + } + /** + * + * + *
            +     * LongRunningUpdateBucket RPC request.
            +     * 
            + * + * .google.logging.v2.UpdateBucketRequest update_bucket_request = 5; + */ + public Builder clearUpdateBucketRequest() { + if (updateBucketRequestBuilder_ == null) { + if (requestCase_ == 5) { + requestCase_ = 0; + request_ = null; + onChanged(); + } + } else { + if (requestCase_ == 5) { + requestCase_ = 0; + request_ = null; + } + updateBucketRequestBuilder_.clear(); + } + return this; + } + /** + * + * + *
            +     * LongRunningUpdateBucket RPC request.
            +     * 
            + * + * .google.logging.v2.UpdateBucketRequest update_bucket_request = 5; + */ + public com.google.logging.v2.UpdateBucketRequest.Builder getUpdateBucketRequestBuilder() { + return getUpdateBucketRequestFieldBuilder().getBuilder(); + } + /** + * + * + *
            +     * LongRunningUpdateBucket RPC request.
            +     * 
            + * + * .google.logging.v2.UpdateBucketRequest update_bucket_request = 5; + */ + @java.lang.Override + public com.google.logging.v2.UpdateBucketRequestOrBuilder getUpdateBucketRequestOrBuilder() { + if ((requestCase_ == 5) && (updateBucketRequestBuilder_ != null)) { + return updateBucketRequestBuilder_.getMessageOrBuilder(); + } else { + if (requestCase_ == 5) { + return (com.google.logging.v2.UpdateBucketRequest) request_; + } + return com.google.logging.v2.UpdateBucketRequest.getDefaultInstance(); + } + } + /** + * + * + *
            +     * LongRunningUpdateBucket RPC request.
            +     * 
            + * + * .google.logging.v2.UpdateBucketRequest update_bucket_request = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.UpdateBucketRequest, + com.google.logging.v2.UpdateBucketRequest.Builder, + com.google.logging.v2.UpdateBucketRequestOrBuilder> + getUpdateBucketRequestFieldBuilder() { + if (updateBucketRequestBuilder_ == null) { + if (!(requestCase_ == 5)) { + request_ = com.google.logging.v2.UpdateBucketRequest.getDefaultInstance(); + } + updateBucketRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.UpdateBucketRequest, + com.google.logging.v2.UpdateBucketRequest.Builder, + com.google.logging.v2.UpdateBucketRequestOrBuilder>( + (com.google.logging.v2.UpdateBucketRequest) request_, + getParentForChildren(), + isClean()); + request_ = null; + } + requestCase_ = 5; + onChanged(); + return updateBucketRequestBuilder_; + } + + @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.BucketMetadata) + } + + // @@protoc_insertion_point(class_scope:google.logging.v2.BucketMetadata) + private static final com.google.logging.v2.BucketMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.logging.v2.BucketMetadata(); + } + + public static com.google.logging.v2.BucketMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BucketMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.BucketMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BucketMetadataOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BucketMetadataOrBuilder.java new file mode 100644 index 000000000..78b402032 --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BucketMetadataOrBuilder.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/logging_config.proto + +package com.google.logging.v2; + +public interface BucketMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.logging.v2.BucketMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * The create time of an operation.
            +   * 
            + * + * .google.protobuf.Timestamp start_time = 1; + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * + * + *
            +   * The create time of an operation.
            +   * 
            + * + * .google.protobuf.Timestamp start_time = 1; + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
            +   * The create time of an operation.
            +   * 
            + * + * .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(); + + /** + * + * + *
            +   * LongRunningCreateBucket RPC request.
            +   * 
            + * + * .google.logging.v2.CreateBucketRequest create_bucket_request = 4; + * + * @return Whether the createBucketRequest field is set. + */ + boolean hasCreateBucketRequest(); + /** + * + * + *
            +   * LongRunningCreateBucket RPC request.
            +   * 
            + * + * .google.logging.v2.CreateBucketRequest create_bucket_request = 4; + * + * @return The createBucketRequest. + */ + com.google.logging.v2.CreateBucketRequest getCreateBucketRequest(); + /** + * + * + *
            +   * LongRunningCreateBucket RPC request.
            +   * 
            + * + * .google.logging.v2.CreateBucketRequest create_bucket_request = 4; + */ + com.google.logging.v2.CreateBucketRequestOrBuilder getCreateBucketRequestOrBuilder(); + + /** + * + * + *
            +   * LongRunningUpdateBucket RPC request.
            +   * 
            + * + * .google.logging.v2.UpdateBucketRequest update_bucket_request = 5; + * + * @return Whether the updateBucketRequest field is set. + */ + boolean hasUpdateBucketRequest(); + /** + * + * + *
            +   * LongRunningUpdateBucket RPC request.
            +   * 
            + * + * .google.logging.v2.UpdateBucketRequest update_bucket_request = 5; + * + * @return The updateBucketRequest. + */ + com.google.logging.v2.UpdateBucketRequest getUpdateBucketRequest(); + /** + * + * + *
            +   * LongRunningUpdateBucket RPC request.
            +   * 
            + * + * .google.logging.v2.UpdateBucketRequest update_bucket_request = 5; + */ + com.google.logging.v2.UpdateBucketRequestOrBuilder getUpdateBucketRequestOrBuilder(); + + public com.google.logging.v2.BucketMetadata.RequestCase getRequestCase(); +} diff --git a/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 index 38e44419a..d9adbf4e0 100644 --- a/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 @@ -47,6 +47,7 @@ private CmekSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) private CmekSettings() { name_ = ""; kmsKeyName_ = ""; + kmsKeyVersionName_ = ""; serviceAccountId_ = ""; } @@ -212,6 +213,77 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { } } + public static final int KMS_KEY_VERSION_NAME_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object kmsKeyVersionName_ = ""; + /** + * + * + *
            +   * The CryptoKeyVersion resource name for the configured Cloud KMS key.
            +   * KMS key name format:
            +   *     "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]/cryptoKeyVersions/[VERSION]"
            +   * For example:
            +   *   `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key/cryptoKeyVersions/1"`
            +   * This is a read-only field used to convey the specific configured
            +   * CryptoKeyVersion of `kms_key` that has been configured. It will be
            +   * populated in cases where the CMEK settings are bound to a single key
            +   * version.
            +   * If this field is populated, the `kms_key` is tied to a specific
            +   * CryptoKeyVersion.
            +   * 
            + * + * string kms_key_version_name = 4; + * + * @return The kmsKeyVersionName. + */ + @java.lang.Override + public java.lang.String getKmsKeyVersionName() { + java.lang.Object ref = kmsKeyVersionName_; + 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(); + kmsKeyVersionName_ = s; + return s; + } + } + /** + * + * + *
            +   * The CryptoKeyVersion resource name for the configured Cloud KMS key.
            +   * KMS key name format:
            +   *     "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]/cryptoKeyVersions/[VERSION]"
            +   * For example:
            +   *   `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key/cryptoKeyVersions/1"`
            +   * This is a read-only field used to convey the specific configured
            +   * CryptoKeyVersion of `kms_key` that has been configured. It will be
            +   * populated in cases where the CMEK settings are bound to a single key
            +   * version.
            +   * If this field is populated, the `kms_key` is tied to a specific
            +   * CryptoKeyVersion.
            +   * 
            + * + * string kms_key_version_name = 4; + * + * @return The bytes for kmsKeyVersionName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { + java.lang.Object ref = kmsKeyVersionName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKeyVersionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int SERVICE_ACCOUNT_ID_FIELD_NUMBER = 3; @SuppressWarnings("serial") @@ -220,8 +292,8 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { * * *
            -   * Output only. The service account that will be used by the Log Router to access your
            -   * Cloud KMS key.
            +   * 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
                * cloudkms.cryptoKeyEncrypterDecrypter role to the service account that
                * the Log Router will use to access your Cloud KMS key. Use
            @@ -252,8 +324,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.
            +   * 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
                * cloudkms.cryptoKeyEncrypterDecrypter role to the service account that
                * the Log Router will use to access your Cloud KMS key. Use
            @@ -304,6 +376,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
                 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) {
                   com.google.protobuf.GeneratedMessageV3.writeString(output, 3, serviceAccountId_);
                 }
            +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyVersionName_)) {
            +      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, kmsKeyVersionName_);
            +    }
                 getUnknownFields().writeTo(output);
               }
             
            @@ -322,6 +397,9 @@ public int getSerializedSize() {
                 if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAccountId_)) {
                   size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, serviceAccountId_);
                 }
            +    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyVersionName_)) {
            +      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, kmsKeyVersionName_);
            +    }
                 size += getUnknownFields().getSerializedSize();
                 memoizedSize = size;
                 return size;
            @@ -339,6 +417,7 @@ public boolean equals(final java.lang.Object obj) {
             
                 if (!getName().equals(other.getName())) return false;
                 if (!getKmsKeyName().equals(other.getKmsKeyName())) return false;
            +    if (!getKmsKeyVersionName().equals(other.getKmsKeyVersionName())) return false;
                 if (!getServiceAccountId().equals(other.getServiceAccountId())) return false;
                 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
                 return true;
            @@ -355,6 +434,8 @@ public int hashCode() {
                 hash = (53 * hash) + getName().hashCode();
                 hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER;
                 hash = (53 * hash) + getKmsKeyName().hashCode();
            +    hash = (37 * hash) + KMS_KEY_VERSION_NAME_FIELD_NUMBER;
            +    hash = (53 * hash) + getKmsKeyVersionName().hashCode();
                 hash = (37 * hash) + SERVICE_ACCOUNT_ID_FIELD_NUMBER;
                 hash = (53 * hash) + getServiceAccountId().hashCode();
                 hash = (29 * hash) + getUnknownFields().hashCode();
            @@ -504,6 +585,7 @@ public Builder clear() {
                   bitField0_ = 0;
                   name_ = "";
                   kmsKeyName_ = "";
            +      kmsKeyVersionName_ = "";
                   serviceAccountId_ = "";
                   return this;
                 }
            @@ -547,6 +629,9 @@ private void buildPartial0(com.google.logging.v2.CmekSettings result) {
                     result.kmsKeyName_ = kmsKeyName_;
                   }
                   if (((from_bitField0_ & 0x00000004) != 0)) {
            +        result.kmsKeyVersionName_ = kmsKeyVersionName_;
            +      }
            +      if (((from_bitField0_ & 0x00000008) != 0)) {
                     result.serviceAccountId_ = serviceAccountId_;
                   }
                 }
            @@ -606,9 +691,14 @@ public Builder mergeFrom(com.google.logging.v2.CmekSettings other) {
                     bitField0_ |= 0x00000002;
                     onChanged();
                   }
            +      if (!other.getKmsKeyVersionName().isEmpty()) {
            +        kmsKeyVersionName_ = other.kmsKeyVersionName_;
            +        bitField0_ |= 0x00000004;
            +        onChanged();
            +      }
                   if (!other.getServiceAccountId().isEmpty()) {
                     serviceAccountId_ = other.serviceAccountId_;
            -        bitField0_ |= 0x00000004;
            +        bitField0_ |= 0x00000008;
                     onChanged();
                   }
                   this.mergeUnknownFields(other.getUnknownFields());
            @@ -652,9 +742,15 @@ public Builder mergeFrom(
                         case 26:
                           {
                             serviceAccountId_ = input.readStringRequireUtf8();
            -                bitField0_ |= 0x00000004;
            +                bitField0_ |= 0x00000008;
                             break;
                           } // case 26
            +            case 34:
            +              {
            +                kmsKeyVersionName_ = input.readStringRequireUtf8();
            +                bitField0_ |= 0x00000004;
            +                break;
            +              } // case 34
                         default:
                           {
                             if (!super.parseUnknownField(input, extensionRegistry, tag)) {
            @@ -971,13 +1067,169 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) {
                   return this;
                 }
             
            +    private java.lang.Object kmsKeyVersionName_ = "";
            +    /**
            +     *
            +     *
            +     * 
            +     * The CryptoKeyVersion resource name for the configured Cloud KMS key.
            +     * KMS key name format:
            +     *     "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]/cryptoKeyVersions/[VERSION]"
            +     * For example:
            +     *   `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key/cryptoKeyVersions/1"`
            +     * This is a read-only field used to convey the specific configured
            +     * CryptoKeyVersion of `kms_key` that has been configured. It will be
            +     * populated in cases where the CMEK settings are bound to a single key
            +     * version.
            +     * If this field is populated, the `kms_key` is tied to a specific
            +     * CryptoKeyVersion.
            +     * 
            + * + * string kms_key_version_name = 4; + * + * @return The kmsKeyVersionName. + */ + public java.lang.String getKmsKeyVersionName() { + java.lang.Object ref = kmsKeyVersionName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKeyVersionName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
            +     * The CryptoKeyVersion resource name for the configured Cloud KMS key.
            +     * KMS key name format:
            +     *     "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]/cryptoKeyVersions/[VERSION]"
            +     * For example:
            +     *   `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key/cryptoKeyVersions/1"`
            +     * This is a read-only field used to convey the specific configured
            +     * CryptoKeyVersion of `kms_key` that has been configured. It will be
            +     * populated in cases where the CMEK settings are bound to a single key
            +     * version.
            +     * If this field is populated, the `kms_key` is tied to a specific
            +     * CryptoKeyVersion.
            +     * 
            + * + * string kms_key_version_name = 4; + * + * @return The bytes for kmsKeyVersionName. + */ + public com.google.protobuf.ByteString getKmsKeyVersionNameBytes() { + java.lang.Object ref = kmsKeyVersionName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKeyVersionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
            +     * The CryptoKeyVersion resource name for the configured Cloud KMS key.
            +     * KMS key name format:
            +     *     "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]/cryptoKeyVersions/[VERSION]"
            +     * For example:
            +     *   `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key/cryptoKeyVersions/1"`
            +     * This is a read-only field used to convey the specific configured
            +     * CryptoKeyVersion of `kms_key` that has been configured. It will be
            +     * populated in cases where the CMEK settings are bound to a single key
            +     * version.
            +     * If this field is populated, the `kms_key` is tied to a specific
            +     * CryptoKeyVersion.
            +     * 
            + * + * string kms_key_version_name = 4; + * + * @param value The kmsKeyVersionName to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyVersionName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kmsKeyVersionName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
            +     * The CryptoKeyVersion resource name for the configured Cloud KMS key.
            +     * KMS key name format:
            +     *     "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]/cryptoKeyVersions/[VERSION]"
            +     * For example:
            +     *   `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key/cryptoKeyVersions/1"`
            +     * This is a read-only field used to convey the specific configured
            +     * CryptoKeyVersion of `kms_key` that has been configured. It will be
            +     * populated in cases where the CMEK settings are bound to a single key
            +     * version.
            +     * If this field is populated, the `kms_key` is tied to a specific
            +     * CryptoKeyVersion.
            +     * 
            + * + * string kms_key_version_name = 4; + * + * @return This builder for chaining. + */ + public Builder clearKmsKeyVersionName() { + kmsKeyVersionName_ = getDefaultInstance().getKmsKeyVersionName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
            +     * The CryptoKeyVersion resource name for the configured Cloud KMS key.
            +     * KMS key name format:
            +     *     "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]/cryptoKeyVersions/[VERSION]"
            +     * For example:
            +     *   `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key/cryptoKeyVersions/1"`
            +     * This is a read-only field used to convey the specific configured
            +     * CryptoKeyVersion of `kms_key` that has been configured. It will be
            +     * populated in cases where the CMEK settings are bound to a single key
            +     * version.
            +     * If this field is populated, the `kms_key` is tied to a specific
            +     * CryptoKeyVersion.
            +     * 
            + * + * string kms_key_version_name = 4; + * + * @param value The bytes for kmsKeyVersionName to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyVersionNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKeyVersionName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + private java.lang.Object serviceAccountId_ = ""; /** * * *
            -     * Output only. The service account that will be used by the Log Router to access your
            -     * Cloud KMS key.
            +     * 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
                  * cloudkms.cryptoKeyEncrypterDecrypter role to the service account that
                  * the Log Router will use to access your Cloud KMS key. Use
            @@ -1007,8 +1259,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.
            +     * 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
                  * cloudkms.cryptoKeyEncrypterDecrypter role to the service account that
                  * the Log Router will use to access your Cloud KMS key. Use
            @@ -1038,8 +1290,8 @@ public com.google.protobuf.ByteString getServiceAccountIdBytes() {
                  *
                  *
                  * 
            -     * Output only. The service account that will be used by the Log Router to access your
            -     * Cloud KMS key.
            +     * 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
                  * cloudkms.cryptoKeyEncrypterDecrypter role to the service account that
                  * the Log Router will use to access your Cloud KMS key. Use
            @@ -1060,7 +1312,7 @@ public Builder setServiceAccountId(java.lang.String value) {
                     throw new NullPointerException();
                   }
                   serviceAccountId_ = value;
            -      bitField0_ |= 0x00000004;
            +      bitField0_ |= 0x00000008;
                   onChanged();
                   return this;
                 }
            @@ -1068,8 +1320,8 @@ public Builder setServiceAccountId(java.lang.String value) {
                  *
                  *
                  * 
            -     * Output only. The service account that will be used by the Log Router to access your
            -     * Cloud KMS key.
            +     * 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
                  * cloudkms.cryptoKeyEncrypterDecrypter role to the service account that
                  * the Log Router will use to access your Cloud KMS key. Use
            @@ -1086,7 +1338,7 @@ public Builder setServiceAccountId(java.lang.String value) {
                  */
                 public Builder clearServiceAccountId() {
                   serviceAccountId_ = getDefaultInstance().getServiceAccountId();
            -      bitField0_ = (bitField0_ & ~0x00000004);
            +      bitField0_ = (bitField0_ & ~0x00000008);
                   onChanged();
                   return this;
                 }
            @@ -1094,8 +1346,8 @@ public Builder clearServiceAccountId() {
                  *
                  *
                  * 
            -     * Output only. The service account that will be used by the Log Router to access your
            -     * Cloud KMS key.
            +     * 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
                  * cloudkms.cryptoKeyEncrypterDecrypter role to the service account that
                  * the Log Router will use to access your Cloud KMS key. Use
            @@ -1117,7 +1369,7 @@ public Builder setServiceAccountIdBytes(com.google.protobuf.ByteString value) {
                   }
                   checkByteStringIsUtf8(value);
                   serviceAccountId_ = value;
            -      bitField0_ |= 0x00000004;
            +      bitField0_ |= 0x00000008;
                   onChanged();
                   return this;
                 }
            diff --git a/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
            index d485be213..a4fa4c2bc 100644
            --- a/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
            @@ -111,8 +111,53 @@ public interface CmekSettingsOrBuilder
                *
                *
                * 
            -   * Output only. The service account that will be used by the Log Router to access your
            -   * Cloud KMS key.
            +   * The CryptoKeyVersion resource name for the configured Cloud KMS key.
            +   * KMS key name format:
            +   *     "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]/cryptoKeyVersions/[VERSION]"
            +   * For example:
            +   *   `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key/cryptoKeyVersions/1"`
            +   * This is a read-only field used to convey the specific configured
            +   * CryptoKeyVersion of `kms_key` that has been configured. It will be
            +   * populated in cases where the CMEK settings are bound to a single key
            +   * version.
            +   * If this field is populated, the `kms_key` is tied to a specific
            +   * CryptoKeyVersion.
            +   * 
            + * + * string kms_key_version_name = 4; + * + * @return The kmsKeyVersionName. + */ + java.lang.String getKmsKeyVersionName(); + /** + * + * + *
            +   * The CryptoKeyVersion resource name for the configured Cloud KMS key.
            +   * KMS key name format:
            +   *     "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]/cryptoKeyVersions/[VERSION]"
            +   * For example:
            +   *   `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key/cryptoKeyVersions/1"`
            +   * This is a read-only field used to convey the specific configured
            +   * CryptoKeyVersion of `kms_key` that has been configured. It will be
            +   * populated in cases where the CMEK settings are bound to a single key
            +   * version.
            +   * If this field is populated, the `kms_key` is tied to a specific
            +   * CryptoKeyVersion.
            +   * 
            + * + * string kms_key_version_name = 4; + * + * @return The bytes for kmsKeyVersionName. + */ + com.google.protobuf.ByteString getKmsKeyVersionNameBytes(); + + /** + * + * + *
            +   * 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
                * cloudkms.cryptoKeyEncrypterDecrypter role to the service account that
                * the Log Router will use to access your Cloud KMS key. Use
            @@ -132,8 +177,8 @@ public interface CmekSettingsOrBuilder
                *
                *
                * 
            -   * Output only. The service account that will be used by the Log Router to access your
            -   * Cloud KMS key.
            +   * 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
                * cloudkms.cryptoKeyEncrypterDecrypter role to the service account that
                * the Log Router will use to access your Cloud KMS key. Use
            diff --git a/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
            index 39af342d7..c5075f579 100644
            --- a/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
            @@ -132,8 +132,8 @@ public 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.
            +   * 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]; @@ -156,8 +156,8 @@ 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.
            +   * 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]; @@ -738,8 +738,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
            -     * 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.
            +     * 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]; @@ -761,8 +761,8 @@ 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.
            +     * 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]; @@ -784,8 +784,8 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
            -     * Optional. A filter specifying which log entries to copy. The filter must be no more
            -     * than 20k characters. An empty filter matches all log entries.
            +     * 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]; @@ -806,8 +806,8 @@ public Builder setFilter(java.lang.String value) { * * *
            -     * 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.
            +     * 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]; @@ -824,8 +824,8 @@ public Builder clearFilter() { * * *
            -     * 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.
            +     * 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]; diff --git a/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 index 94380119c..7d8f89f42 100644 --- a/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 @@ -56,8 +56,8 @@ public interface CopyLogEntriesRequestOrBuilder * * *
            -   * 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.
            +   * 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]; @@ -69,8 +69,8 @@ public interface CopyLogEntriesRequestOrBuilder * * *
            -   * 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.
            +   * 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]; diff --git a/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 index 8713b81c7..16a43f952 100644 --- a/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 @@ -137,9 +137,9 @@ public 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]; @@ -162,9 +162,9 @@ 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]; @@ -190,9 +190,9 @@ public 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
            -   * ignored.
            +   * 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]; @@ -207,9 +207,9 @@ public 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
            -   * ignored.
            +   * 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]; @@ -224,9 +224,9 @@ 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.
            +   * 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]; @@ -768,9 +768,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
            -     * 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]; @@ -792,9 +792,9 @@ 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]; @@ -816,9 +816,9 @@ 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]; @@ -839,9 +839,9 @@ public Builder setBucketId(java.lang.String value) { * * *
            -     * 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]; @@ -858,9 +858,9 @@ public Builder clearBucketId() { * * *
            -     * 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]; @@ -889,9 +889,9 @@ public Builder setBucketIdBytes(com.google.protobuf.ByteString value) { * * *
            -     * 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.
            +     * 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]; @@ -906,9 +906,9 @@ public 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
            -     * ignored.
            +     * 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]; @@ -927,9 +927,9 @@ 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.
            +     * 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]; @@ -952,9 +952,9 @@ public Builder setBucket(com.google.logging.v2.LogBucket value) { * * *
            -     * 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.
            +     * 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]; @@ -974,9 +974,9 @@ public Builder setBucket(com.google.logging.v2.LogBucket.Builder builderForValue * * *
            -     * 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.
            +     * 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]; @@ -1002,9 +1002,9 @@ public Builder mergeBucket(com.google.logging.v2.LogBucket value) { * * *
            -     * 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.
            +     * 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]; @@ -1024,9 +1024,9 @@ public Builder clearBucket() { * * *
            -     * 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.
            +     * 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]; @@ -1041,9 +1041,9 @@ public com.google.logging.v2.LogBucket.Builder getBucketBuilder() { * * *
            -     * 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.
            +     * 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]; @@ -1060,9 +1060,9 @@ public com.google.logging.v2.LogBucketOrBuilder getBucketOrBuilder() { * * *
            -     * 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.
            +     * 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]; diff --git a/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 index c11f6c828..129056453 100644 --- a/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 @@ -62,9 +62,9 @@ public interface CreateBucketRequestOrBuilder * * *
            -   * 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]; @@ -76,9 +76,9 @@ public interface CreateBucketRequestOrBuilder * * *
            -   * 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]; @@ -91,9 +91,9 @@ public interface CreateBucketRequestOrBuilder * * *
            -   * 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.
            +   * 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]; @@ -105,9 +105,9 @@ public interface CreateBucketRequestOrBuilder * * *
            -   * 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.
            +   * 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]; @@ -119,9 +119,9 @@ public interface CreateBucketRequestOrBuilder * * *
            -   * 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.
            +   * 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]; diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLinkRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLinkRequest.java new file mode 100644 index 000000000..59700ef4b --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLinkRequest.java @@ -0,0 +1,1120 @@ +/* + * 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 CreateLink.
            + * 
            + * + * Protobuf type {@code google.logging.v2.CreateLinkRequest} + */ +public final class CreateLinkRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.logging.v2.CreateLinkRequest) + CreateLinkRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateLinkRequest.newBuilder() to construct. + private CreateLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateLinkRequest() { + parent_ = ""; + linkId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateLinkRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CreateLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CreateLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.logging.v2.CreateLinkRequest.class, + com.google.logging.v2.CreateLinkRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
            +   * Required. The full resource name of the bucket to create a link for.
            +   *     "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]"
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + /** + * + * + *
            +   * Required. The full resource name of the bucket to create a link for.
            +   *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
            +   *     "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
            +   *     "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
            +   *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
            +   * 
            + * + * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LINK_FIELD_NUMBER = 2; + private com.google.logging.v2.Link link_; + /** + * + * + *
            +   * Required. The new link.
            +   * 
            + * + * .google.logging.v2.Link link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the link field is set. + */ + @java.lang.Override + public boolean hasLink() { + return link_ != null; + } + /** + * + * + *
            +   * Required. The new link.
            +   * 
            + * + * .google.logging.v2.Link link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The link. + */ + @java.lang.Override + public com.google.logging.v2.Link getLink() { + return link_ == null ? com.google.logging.v2.Link.getDefaultInstance() : link_; + } + /** + * + * + *
            +   * Required. The new link.
            +   * 
            + * + * .google.logging.v2.Link link = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.logging.v2.LinkOrBuilder getLinkOrBuilder() { + return link_ == null ? com.google.logging.v2.Link.getDefaultInstance() : link_; + } + + public static final int LINK_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object linkId_ = ""; + /** + * + * + *
            +   * Required. The ID to use for the link. The link_id can have up to 100
            +   * characters. A valid link_id must only have alphanumeric characters and
            +   * underscores within it.
            +   * 
            + * + * string link_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The linkId. + */ + @java.lang.Override + public java.lang.String getLinkId() { + java.lang.Object ref = linkId_; + 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(); + linkId_ = s; + return s; + } + } + /** + * + * + *
            +   * Required. The ID to use for the link. The link_id can have up to 100
            +   * characters. A valid link_id must only have alphanumeric characters and
            +   * underscores within it.
            +   * 
            + * + * string link_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for linkId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLinkIdBytes() { + java.lang.Object ref = linkId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + linkId_ = 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(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (link_ != null) { + output.writeMessage(2, getLink()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(linkId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, linkId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (link_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLink()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(linkId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, linkId_); + } + size += getUnknownFields().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.CreateLinkRequest)) { + return super.equals(obj); + } + com.google.logging.v2.CreateLinkRequest other = (com.google.logging.v2.CreateLinkRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasLink() != other.hasLink()) return false; + if (hasLink()) { + if (!getLink().equals(other.getLink())) return false; + } + if (!getLinkId().equals(other.getLinkId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasLink()) { + hash = (37 * hash) + LINK_FIELD_NUMBER; + hash = (53 * hash) + getLink().hashCode(); + } + hash = (37 * hash) + LINK_ID_FIELD_NUMBER; + hash = (53 * hash) + getLinkId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.logging.v2.CreateLinkRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.CreateLinkRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.CreateLinkRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.CreateLinkRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.CreateLinkRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.CreateLinkRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.CreateLinkRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.logging.v2.CreateLinkRequest 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.CreateLinkRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.logging.v2.CreateLinkRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.logging.v2.CreateLinkRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.logging.v2.CreateLinkRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.logging.v2.CreateLinkRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
            +   * The parameters to CreateLink.
            +   * 
            + * + * Protobuf type {@code google.logging.v2.CreateLinkRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.logging.v2.CreateLinkRequest) + com.google.logging.v2.CreateLinkRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CreateLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CreateLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.logging.v2.CreateLinkRequest.class, + com.google.logging.v2.CreateLinkRequest.Builder.class); + } + + // Construct using com.google.logging.v2.CreateLinkRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + link_ = null; + if (linkBuilder_ != null) { + linkBuilder_.dispose(); + linkBuilder_ = null; + } + linkId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CreateLinkRequest_descriptor; + } + + @java.lang.Override + public com.google.logging.v2.CreateLinkRequest getDefaultInstanceForType() { + return com.google.logging.v2.CreateLinkRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.logging.v2.CreateLinkRequest build() { + com.google.logging.v2.CreateLinkRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.logging.v2.CreateLinkRequest buildPartial() { + com.google.logging.v2.CreateLinkRequest result = + new com.google.logging.v2.CreateLinkRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.logging.v2.CreateLinkRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.link_ = linkBuilder_ == null ? link_ : linkBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.linkId_ = linkId_; + } + } + + @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.CreateLinkRequest) { + return mergeFrom((com.google.logging.v2.CreateLinkRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.logging.v2.CreateLinkRequest other) { + if (other == com.google.logging.v2.CreateLinkRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasLink()) { + mergeLink(other.getLink()); + } + if (!other.getLinkId().isEmpty()) { + linkId_ = other.linkId_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getLinkFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + linkId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
            +     * Required. The full resource name of the bucket to create a link for.
            +     *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
            +     *     "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
            +     *     "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
            +     *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
            +     * 
            + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
            +     * Required. The full resource name of the bucket to create a link for.
            +     *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
            +     *     "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
            +     *     "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
            +     *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
            +     * Required. The full resource name of the bucket to create a link for.
            +     *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
            +     *     "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
            +     *     "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
            +     *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
            +     * Required. The full resource name of the bucket to create a link for.
            +     *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
            +     *     "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
            +     *     "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
            +     *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
            +     * Required. The full resource name of the bucket to create a link for.
            +     *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
            +     *     "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
            +     *     "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
            +     *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.logging.v2.Link link_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.Link, + com.google.logging.v2.Link.Builder, + com.google.logging.v2.LinkOrBuilder> + linkBuilder_; + /** + * + * + *
            +     * Required. The new link.
            +     * 
            + * + * .google.logging.v2.Link link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the link field is set. + */ + public boolean hasLink() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
            +     * Required. The new link.
            +     * 
            + * + * .google.logging.v2.Link link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The link. + */ + public com.google.logging.v2.Link getLink() { + if (linkBuilder_ == null) { + return link_ == null ? com.google.logging.v2.Link.getDefaultInstance() : link_; + } else { + return linkBuilder_.getMessage(); + } + } + /** + * + * + *
            +     * Required. The new link.
            +     * 
            + * + * .google.logging.v2.Link link = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setLink(com.google.logging.v2.Link value) { + if (linkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + link_ = value; + } else { + linkBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
            +     * Required. The new link.
            +     * 
            + * + * .google.logging.v2.Link link = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setLink(com.google.logging.v2.Link.Builder builderForValue) { + if (linkBuilder_ == null) { + link_ = builderForValue.build(); + } else { + linkBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
            +     * Required. The new link.
            +     * 
            + * + * .google.logging.v2.Link link = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeLink(com.google.logging.v2.Link value) { + if (linkBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && link_ != null + && link_ != com.google.logging.v2.Link.getDefaultInstance()) { + getLinkBuilder().mergeFrom(value); + } else { + link_ = value; + } + } else { + linkBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
            +     * Required. The new link.
            +     * 
            + * + * .google.logging.v2.Link link = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearLink() { + bitField0_ = (bitField0_ & ~0x00000002); + link_ = null; + if (linkBuilder_ != null) { + linkBuilder_.dispose(); + linkBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
            +     * Required. The new link.
            +     * 
            + * + * .google.logging.v2.Link link = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.logging.v2.Link.Builder getLinkBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getLinkFieldBuilder().getBuilder(); + } + /** + * + * + *
            +     * Required. The new link.
            +     * 
            + * + * .google.logging.v2.Link link = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.logging.v2.LinkOrBuilder getLinkOrBuilder() { + if (linkBuilder_ != null) { + return linkBuilder_.getMessageOrBuilder(); + } else { + return link_ == null ? com.google.logging.v2.Link.getDefaultInstance() : link_; + } + } + /** + * + * + *
            +     * Required. The new link.
            +     * 
            + * + * .google.logging.v2.Link link = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.Link, + com.google.logging.v2.Link.Builder, + com.google.logging.v2.LinkOrBuilder> + getLinkFieldBuilder() { + if (linkBuilder_ == null) { + linkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.Link, + com.google.logging.v2.Link.Builder, + com.google.logging.v2.LinkOrBuilder>(getLink(), getParentForChildren(), isClean()); + link_ = null; + } + return linkBuilder_; + } + + private java.lang.Object linkId_ = ""; + /** + * + * + *
            +     * Required. The ID to use for the link. The link_id can have up to 100
            +     * characters. A valid link_id must only have alphanumeric characters and
            +     * underscores within it.
            +     * 
            + * + * string link_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The linkId. + */ + public java.lang.String getLinkId() { + java.lang.Object ref = linkId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + linkId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
            +     * Required. The ID to use for the link. The link_id can have up to 100
            +     * characters. A valid link_id must only have alphanumeric characters and
            +     * underscores within it.
            +     * 
            + * + * string link_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for linkId. + */ + public com.google.protobuf.ByteString getLinkIdBytes() { + java.lang.Object ref = linkId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + linkId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
            +     * Required. The ID to use for the link. The link_id can have up to 100
            +     * characters. A valid link_id must only have alphanumeric characters and
            +     * underscores within it.
            +     * 
            + * + * string link_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The linkId to set. + * @return This builder for chaining. + */ + public Builder setLinkId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + linkId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
            +     * Required. The ID to use for the link. The link_id can have up to 100
            +     * characters. A valid link_id must only have alphanumeric characters and
            +     * underscores within it.
            +     * 
            + * + * string link_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearLinkId() { + linkId_ = getDefaultInstance().getLinkId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
            +     * Required. The ID to use for the link. The link_id can have up to 100
            +     * characters. A valid link_id must only have alphanumeric characters and
            +     * underscores within it.
            +     * 
            + * + * string link_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for linkId to set. + * @return This builder for chaining. + */ + public Builder setLinkIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + linkId_ = value; + bitField0_ |= 0x00000004; + 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.CreateLinkRequest) + } + + // @@protoc_insertion_point(class_scope:google.logging.v2.CreateLinkRequest) + private static final com.google.logging.v2.CreateLinkRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.logging.v2.CreateLinkRequest(); + } + + public static com.google.logging.v2.CreateLinkRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateLinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.CreateLinkRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLinkRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLinkRequestOrBuilder.java new file mode 100644 index 000000000..43ee8889b --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLinkRequestOrBuilder.java @@ -0,0 +1,126 @@ +/* + * 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 CreateLinkRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.logging.v2.CreateLinkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The full resource name of the bucket to create a link for.
            +   *     "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]"
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
            +   * Required. The full resource name of the bucket to create a link for.
            +   *     "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]"
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
            +   * Required. The new link.
            +   * 
            + * + * .google.logging.v2.Link link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the link field is set. + */ + boolean hasLink(); + /** + * + * + *
            +   * Required. The new link.
            +   * 
            + * + * .google.logging.v2.Link link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The link. + */ + com.google.logging.v2.Link getLink(); + /** + * + * + *
            +   * Required. The new link.
            +   * 
            + * + * .google.logging.v2.Link link = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.logging.v2.LinkOrBuilder getLinkOrBuilder(); + + /** + * + * + *
            +   * Required. The ID to use for the link. The link_id can have up to 100
            +   * characters. A valid link_id must only have alphanumeric characters and
            +   * underscores within it.
            +   * 
            + * + * string link_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The linkId. + */ + java.lang.String getLinkId(); + /** + * + * + *
            +   * Required. The ID to use for the link. The link_id can have up to 100
            +   * characters. A valid link_id must only have alphanumeric characters and
            +   * underscores within it.
            +   * 
            + * + * string link_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for linkId. + */ + com.google.protobuf.ByteString getLinkIdBytes(); +} diff --git a/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 index 65ba9fe6c..0ad17bd3d 100644 --- a/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 @@ -200,7 +200,8 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() { * 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 - * more information, see `writer_identity` in [LogSink][google.logging.v2.LogSink]. + * more information, see `writer_identity` in + * [LogSink][google.logging.v2.LogSink]. *
            * * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -958,7 +959,8 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() { * 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 - * more information, see `writer_identity` in [LogSink][google.logging.v2.LogSink]. + * more information, see `writer_identity` in + * [LogSink][google.logging.v2.LogSink]. *
            * * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -982,7 +984,8 @@ public boolean getUniqueWriterIdentity() { * 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 - * more information, see `writer_identity` in [LogSink][google.logging.v2.LogSink]. + * more information, see `writer_identity` in + * [LogSink][google.logging.v2.LogSink]. *
            * * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1010,7 +1013,8 @@ public Builder setUniqueWriterIdentity(boolean value) { * 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 - * more information, see `writer_identity` in [LogSink][google.logging.v2.LogSink]. + * more information, see `writer_identity` in + * [LogSink][google.logging.v2.LogSink]. *
            * * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/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 index 775ef0c17..610cf0378 100644 --- a/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 @@ -117,7 +117,8 @@ public interface CreateSinkRequestOrBuilder * 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 - * more information, see `writer_identity` in [LogSink][google.logging.v2.LogSink]. + * more information, see `writer_identity` in + * [LogSink][google.logging.v2.LogSink]. *
            * * bool unique_writer_identity = 3 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/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 index 1503f8f89..13dec0499 100644 --- a/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 @@ -133,7 +133,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
            -   * Required. The id to use for this view.
            +   * Required. A client-assigned identifier such as `"my-view"`. Identifiers are
            +   * limited to 100 characters and can include only letters, digits,
            +   * underscores, hyphens, and periods.
                * 
            * * string view_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -156,7 +158,9 @@ public java.lang.String getViewId() { * * *
            -   * Required. The id to use for this view.
            +   * Required. A client-assigned identifier such as `"my-view"`. Identifiers are
            +   * limited to 100 characters and can include only letters, digits,
            +   * underscores, hyphens, and periods.
                * 
            * * string view_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -743,7 +747,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
            -     * Required. The id to use for this view.
            +     * Required. A client-assigned identifier such as `"my-view"`. Identifiers are
            +     * limited to 100 characters and can include only letters, digits,
            +     * underscores, hyphens, and periods.
                  * 
            * * string view_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -765,7 +771,9 @@ public java.lang.String getViewId() { * * *
            -     * Required. The id to use for this view.
            +     * Required. A client-assigned identifier such as `"my-view"`. Identifiers are
            +     * limited to 100 characters and can include only letters, digits,
            +     * underscores, hyphens, and periods.
                  * 
            * * string view_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -787,7 +795,9 @@ public com.google.protobuf.ByteString getViewIdBytes() { * * *
            -     * Required. The id to use for this view.
            +     * Required. A client-assigned identifier such as `"my-view"`. Identifiers are
            +     * limited to 100 characters and can include only letters, digits,
            +     * underscores, hyphens, and periods.
                  * 
            * * string view_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -808,7 +818,9 @@ public Builder setViewId(java.lang.String value) { * * *
            -     * Required. The id to use for this view.
            +     * Required. A client-assigned identifier such as `"my-view"`. Identifiers are
            +     * limited to 100 characters and can include only letters, digits,
            +     * underscores, hyphens, and periods.
                  * 
            * * string view_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -825,7 +837,9 @@ public Builder clearViewId() { * * *
            -     * Required. The id to use for this view.
            +     * Required. A client-assigned identifier such as `"my-view"`. Identifiers are
            +     * limited to 100 characters and can include only letters, digits,
            +     * underscores, hyphens, and periods.
                  * 
            * * string view_id = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/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 index 2cdbdb4b0..ff287ed14 100644 --- a/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 @@ -58,7 +58,9 @@ public interface CreateViewRequestOrBuilder * * *
            -   * Required. The id to use for this view.
            +   * Required. A client-assigned identifier such as `"my-view"`. Identifiers are
            +   * limited to 100 characters and can include only letters, digits,
            +   * underscores, hyphens, and periods.
                * 
            * * string view_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -70,7 +72,9 @@ public interface CreateViewRequestOrBuilder * * *
            -   * Required. The id to use for this view.
            +   * Required. A client-assigned identifier such as `"my-view"`. Identifiers are
            +   * limited to 100 characters and can include only letters, digits,
            +   * underscores, hyphens, and periods.
                * 
            * * string view_id = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLinkRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLinkRequest.java new file mode 100644 index 000000000..918aa6022 --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLinkRequest.java @@ -0,0 +1,669 @@ +/* + * 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 DeleteLink.
            + * 
            + * + * Protobuf type {@code google.logging.v2.DeleteLinkRequest} + */ +public final class DeleteLinkRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.logging.v2.DeleteLinkRequest) + DeleteLinkRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteLinkRequest.newBuilder() to construct. + private DeleteLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteLinkRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteLinkRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_DeleteLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_DeleteLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.logging.v2.DeleteLinkRequest.class, + com.google.logging.v2.DeleteLinkRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
            +   * Required. The full resource name of the link to delete.
            +   *  "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +   *   "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +   *   "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +   *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +   * 
            + * + * + * 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 full resource name of the link to delete.
            +   *  "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +   *   "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +   *   "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +   *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +   * 
            + * + * + * 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_); + } + getUnknownFields().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 += getUnknownFields().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.DeleteLinkRequest)) { + return super.equals(obj); + } + com.google.logging.v2.DeleteLinkRequest other = (com.google.logging.v2.DeleteLinkRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.logging.v2.DeleteLinkRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.DeleteLinkRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.DeleteLinkRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.DeleteLinkRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.DeleteLinkRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.DeleteLinkRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.DeleteLinkRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.logging.v2.DeleteLinkRequest 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.DeleteLinkRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.logging.v2.DeleteLinkRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.logging.v2.DeleteLinkRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.logging.v2.DeleteLinkRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.logging.v2.DeleteLinkRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
            +   * The parameters to DeleteLink.
            +   * 
            + * + * Protobuf type {@code google.logging.v2.DeleteLinkRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.logging.v2.DeleteLinkRequest) + com.google.logging.v2.DeleteLinkRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_DeleteLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_DeleteLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.logging.v2.DeleteLinkRequest.class, + com.google.logging.v2.DeleteLinkRequest.Builder.class); + } + + // Construct using com.google.logging.v2.DeleteLinkRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_DeleteLinkRequest_descriptor; + } + + @java.lang.Override + public com.google.logging.v2.DeleteLinkRequest getDefaultInstanceForType() { + return com.google.logging.v2.DeleteLinkRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.logging.v2.DeleteLinkRequest build() { + com.google.logging.v2.DeleteLinkRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.logging.v2.DeleteLinkRequest buildPartial() { + com.google.logging.v2.DeleteLinkRequest result = + new com.google.logging.v2.DeleteLinkRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.logging.v2.DeleteLinkRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @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.DeleteLinkRequest) { + return mergeFrom((com.google.logging.v2.DeleteLinkRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.logging.v2.DeleteLinkRequest other) { + if (other == com.google.logging.v2.DeleteLinkRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
            +     * Required. The full resource name of the link to delete.
            +     *  "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     *   "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     *   "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     * 
            + * + * + * 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 full resource name of the link to delete.
            +     *  "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     *   "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     *   "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     * 
            + * + * + * 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 full resource name of the link to delete.
            +     *  "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     *   "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     *   "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     * 
            + * + * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
            +     * Required. The full resource name of the link to delete.
            +     *  "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     *   "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     *   "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
            +     * Required. The full resource name of the link to delete.
            +     *  "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     *   "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     *   "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     * 
            + * + * + * 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; + bitField0_ |= 0x00000001; + 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.DeleteLinkRequest) + } + + // @@protoc_insertion_point(class_scope:google.logging.v2.DeleteLinkRequest) + private static final com.google.logging.v2.DeleteLinkRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.logging.v2.DeleteLinkRequest(); + } + + public static com.google.logging.v2.DeleteLinkRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteLinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.DeleteLinkRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLinkRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLinkRequestOrBuilder.java new file mode 100644 index 000000000..7d89cff2c --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLinkRequestOrBuilder.java @@ -0,0 +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_config.proto + +package com.google.logging.v2; + +public interface DeleteLinkRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.logging.v2.DeleteLinkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The full resource name of the link to delete.
            +   *  "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +   *   "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +   *   "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +   *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
            +   * Required. The full resource name of the link to delete.
            +   *  "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +   *   "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +   *   "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +   *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +   * 
            + * + * + * 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/DeleteSinkRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteSinkRequest.java index 9a61f2100..e2df7bc49 100644 --- a/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 @@ -75,8 +75,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
            -   * Required. The full resource name of the sink to delete, including the parent
            -   * resource and the sink identifier:
            +   * 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]"
            @@ -107,8 +107,8 @@ public java.lang.String getSinkName() {
                *
                *
                * 
            -   * Required. The full resource name of the sink to delete, including the parent
            -   * resource and the sink identifier:
            +   * 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]"
            @@ -481,8 +481,8 @@ public Builder mergeFrom(
                  *
                  *
                  * 
            -     * Required. The full resource name of the sink to delete, including the parent
            -     * resource and the sink identifier:
            +     * 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]"
            @@ -512,8 +512,8 @@ public java.lang.String getSinkName() {
                  *
                  *
                  * 
            -     * Required. The full resource name of the sink to delete, including the parent
            -     * resource and the sink identifier:
            +     * 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]"
            @@ -543,8 +543,8 @@ public com.google.protobuf.ByteString getSinkNameBytes() {
                  *
                  *
                  * 
            -     * Required. The full resource name of the sink to delete, including the parent
            -     * resource and the sink identifier:
            +     * 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]"
            @@ -573,8 +573,8 @@ public Builder setSinkName(java.lang.String value) {
                  *
                  *
                  * 
            -     * Required. The full resource name of the sink to delete, including the parent
            -     * resource and the sink identifier:
            +     * 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]"
            @@ -599,8 +599,8 @@ public Builder clearSinkName() {
                  *
                  *
                  * 
            -     * Required. The full resource name of the sink to delete, including the parent
            -     * resource and the sink identifier:
            +     * 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]"
            diff --git a/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
            index 79667a089..902f78e87 100644
            --- a/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
            @@ -27,8 +27,8 @@ public interface DeleteSinkRequestOrBuilder
                *
                *
                * 
            -   * Required. The full resource name of the sink to delete, including the parent
            -   * resource and the sink identifier:
            +   * 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]"
            @@ -48,8 +48,8 @@ public interface DeleteSinkRequestOrBuilder
                *
                *
                * 
            -   * Required. The full resource name of the sink to delete, including the parent
            -   * resource and the sink identifier:
            +   * 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]"
            diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLinkRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLinkRequest.java
            new file mode 100644
            index 000000000..12c39b674
            --- /dev/null
            +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLinkRequest.java
            @@ -0,0 +1,667 @@
            +/*
            + * 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 GetLink.
            + * 
            + * + * Protobuf type {@code google.logging.v2.GetLinkRequest} + */ +public final class GetLinkRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.logging.v2.GetLinkRequest) + GetLinkRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetLinkRequest.newBuilder() to construct. + private GetLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetLinkRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetLinkRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_GetLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_GetLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.logging.v2.GetLinkRequest.class, + com.google.logging.v2.GetLinkRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
            +   * Required. The resource name of the link:
            +   *   "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +   *   "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +   *   "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +   *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]
            +   * 
            + * + * + * 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 name of the link:
            +   *   "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +   *   "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +   *   "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +   *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]
            +   * 
            + * + * + * 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_); + } + getUnknownFields().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 += getUnknownFields().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.GetLinkRequest)) { + return super.equals(obj); + } + com.google.logging.v2.GetLinkRequest other = (com.google.logging.v2.GetLinkRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.logging.v2.GetLinkRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.GetLinkRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.GetLinkRequest parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.GetLinkRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.GetLinkRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.GetLinkRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.GetLinkRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.logging.v2.GetLinkRequest 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.GetLinkRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.logging.v2.GetLinkRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.logging.v2.GetLinkRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.logging.v2.GetLinkRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.logging.v2.GetLinkRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
            +   * The parameters to GetLink.
            +   * 
            + * + * Protobuf type {@code google.logging.v2.GetLinkRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.logging.v2.GetLinkRequest) + com.google.logging.v2.GetLinkRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_GetLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_GetLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.logging.v2.GetLinkRequest.class, + com.google.logging.v2.GetLinkRequest.Builder.class); + } + + // Construct using com.google.logging.v2.GetLinkRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_GetLinkRequest_descriptor; + } + + @java.lang.Override + public com.google.logging.v2.GetLinkRequest getDefaultInstanceForType() { + return com.google.logging.v2.GetLinkRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.logging.v2.GetLinkRequest build() { + com.google.logging.v2.GetLinkRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.logging.v2.GetLinkRequest buildPartial() { + com.google.logging.v2.GetLinkRequest result = new com.google.logging.v2.GetLinkRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.logging.v2.GetLinkRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @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.GetLinkRequest) { + return mergeFrom((com.google.logging.v2.GetLinkRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.logging.v2.GetLinkRequest other) { + if (other == com.google.logging.v2.GetLinkRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
            +     * Required. The resource name of the link:
            +     *   "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     *   "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     *   "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]
            +     * 
            + * + * + * 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 name of the link:
            +     *   "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     *   "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     *   "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]
            +     * 
            + * + * + * 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 name of the link:
            +     *   "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     *   "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     *   "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]
            +     * 
            + * + * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
            +     * Required. The resource name of the link:
            +     *   "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     *   "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     *   "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
            +     * Required. The resource name of the link:
            +     *   "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     *   "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     *   "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]
            +     * 
            + * + * + * 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; + bitField0_ |= 0x00000001; + 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.GetLinkRequest) + } + + // @@protoc_insertion_point(class_scope:google.logging.v2.GetLinkRequest) + private static final com.google.logging.v2.GetLinkRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.logging.v2.GetLinkRequest(); + } + + public static com.google.logging.v2.GetLinkRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetLinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.GetLinkRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLinkRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLinkRequestOrBuilder.java new file mode 100644 index 000000000..a717b1c29 --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLinkRequestOrBuilder.java @@ -0,0 +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_config.proto + +package com.google.logging.v2; + +public interface GetLinkRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.logging.v2.GetLinkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The resource name of the link:
            +   *   "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +   *   "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +   *   "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +   *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
            +   * Required. The resource name of the link:
            +   *   "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +   *   "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +   *   "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +   *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexConfig.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexConfig.java new file mode 100644 index 000000000..20836be64 --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexConfig.java @@ -0,0 +1,1111 @@ +/* + * 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; + +/** + * + * + *
            + * Configuration for an indexed field.
            + * 
            + * + * Protobuf type {@code google.logging.v2.IndexConfig} + */ +public final class IndexConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.logging.v2.IndexConfig) + IndexConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use IndexConfig.newBuilder() to construct. + private IndexConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IndexConfig() { + fieldPath_ = ""; + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IndexConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_IndexConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_IndexConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.logging.v2.IndexConfig.class, + com.google.logging.v2.IndexConfig.Builder.class); + } + + public static final int FIELD_PATH_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object fieldPath_ = ""; + /** + * + * + *
            +   * Required. The LogEntry field path to index.
            +   * Note that some paths are automatically indexed, and other paths are not
            +   * eligible for indexing. See [indexing documentation](
            +   * https://cloud.google.com/logging/docs/view/advanced-queries#indexed-fields)
            +   * for details.
            +   * For example: `jsonPayload.request.status`
            +   * 
            + * + * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The fieldPath. + */ + @java.lang.Override + public java.lang.String getFieldPath() { + java.lang.Object ref = fieldPath_; + 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(); + fieldPath_ = s; + return s; + } + } + /** + * + * + *
            +   * Required. The LogEntry field path to index.
            +   * Note that some paths are automatically indexed, and other paths are not
            +   * eligible for indexing. See [indexing documentation](
            +   * https://cloud.google.com/logging/docs/view/advanced-queries#indexed-fields)
            +   * for details.
            +   * For example: `jsonPayload.request.status`
            +   * 
            + * + * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for fieldPath. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFieldPathBytes() { + java.lang.Object ref = fieldPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 2; + private int type_ = 0; + /** + * + * + *
            +   * Required. The type of data in this index.
            +   * 
            + * + * .google.logging.v2.IndexType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
            +   * Required. The type of data in this index.
            +   * 
            + * + * .google.logging.v2.IndexType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The type. + */ + @java.lang.Override + public com.google.logging.v2.IndexType getType() { + com.google.logging.v2.IndexType result = com.google.logging.v2.IndexType.forNumber(type_); + return result == null ? com.google.logging.v2.IndexType.UNRECOGNIZED : result; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
            +   * Output only. The timestamp when the index was last modified.
            +   * This is used to return the timestamp, and will be ignored if supplied
            +   * during update.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.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 timestamp when the index was last modified.
            +   * This is used to return the timestamp, and will be ignored if supplied
            +   * during update.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.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 timestamp when the index was last modified.
            +   * This is used to return the timestamp, and will be ignored if supplied
            +   * during update.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + 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(fieldPath_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldPath_); + } + if (type_ != com.google.logging.v2.IndexType.INDEX_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, type_); + } + if (createTime_ != null) { + output.writeMessage(3, getCreateTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldPath_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldPath_); + } + if (type_ != com.google.logging.v2.IndexType.INDEX_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + size += getUnknownFields().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.IndexConfig)) { + return super.equals(obj); + } + com.google.logging.v2.IndexConfig other = (com.google.logging.v2.IndexConfig) obj; + + if (!getFieldPath().equals(other.getFieldPath())) return false; + if (type_ != other.type_) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + FIELD_PATH_FIELD_NUMBER; + hash = (53 * hash) + getFieldPath().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.logging.v2.IndexConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.IndexConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.IndexConfig parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.IndexConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.IndexConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.IndexConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.IndexConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.logging.v2.IndexConfig 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.IndexConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.logging.v2.IndexConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.logging.v2.IndexConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.logging.v2.IndexConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.logging.v2.IndexConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
            +   * Configuration for an indexed field.
            +   * 
            + * + * Protobuf type {@code google.logging.v2.IndexConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.logging.v2.IndexConfig) + com.google.logging.v2.IndexConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_IndexConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_IndexConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.logging.v2.IndexConfig.class, + com.google.logging.v2.IndexConfig.Builder.class); + } + + // Construct using com.google.logging.v2.IndexConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + fieldPath_ = ""; + type_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_IndexConfig_descriptor; + } + + @java.lang.Override + public com.google.logging.v2.IndexConfig getDefaultInstanceForType() { + return com.google.logging.v2.IndexConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.logging.v2.IndexConfig build() { + com.google.logging.v2.IndexConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.logging.v2.IndexConfig buildPartial() { + com.google.logging.v2.IndexConfig result = new com.google.logging.v2.IndexConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.logging.v2.IndexConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.fieldPath_ = fieldPath_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + } + + @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.IndexConfig) { + return mergeFrom((com.google.logging.v2.IndexConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.logging.v2.IndexConfig other) { + if (other == com.google.logging.v2.IndexConfig.getDefaultInstance()) return this; + if (!other.getFieldPath().isEmpty()) { + fieldPath_ = other.fieldPath_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + fieldPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object fieldPath_ = ""; + /** + * + * + *
            +     * Required. The LogEntry field path to index.
            +     * Note that some paths are automatically indexed, and other paths are not
            +     * eligible for indexing. See [indexing documentation](
            +     * https://cloud.google.com/logging/docs/view/advanced-queries#indexed-fields)
            +     * for details.
            +     * For example: `jsonPayload.request.status`
            +     * 
            + * + * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The fieldPath. + */ + public java.lang.String getFieldPath() { + java.lang.Object ref = fieldPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldPath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
            +     * Required. The LogEntry field path to index.
            +     * Note that some paths are automatically indexed, and other paths are not
            +     * eligible for indexing. See [indexing documentation](
            +     * https://cloud.google.com/logging/docs/view/advanced-queries#indexed-fields)
            +     * for details.
            +     * For example: `jsonPayload.request.status`
            +     * 
            + * + * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for fieldPath. + */ + public com.google.protobuf.ByteString getFieldPathBytes() { + java.lang.Object ref = fieldPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
            +     * Required. The LogEntry field path to index.
            +     * Note that some paths are automatically indexed, and other paths are not
            +     * eligible for indexing. See [indexing documentation](
            +     * https://cloud.google.com/logging/docs/view/advanced-queries#indexed-fields)
            +     * for details.
            +     * For example: `jsonPayload.request.status`
            +     * 
            + * + * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The fieldPath to set. + * @return This builder for chaining. + */ + public Builder setFieldPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + fieldPath_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
            +     * Required. The LogEntry field path to index.
            +     * Note that some paths are automatically indexed, and other paths are not
            +     * eligible for indexing. See [indexing documentation](
            +     * https://cloud.google.com/logging/docs/view/advanced-queries#indexed-fields)
            +     * for details.
            +     * For example: `jsonPayload.request.status`
            +     * 
            + * + * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearFieldPath() { + fieldPath_ = getDefaultInstance().getFieldPath(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
            +     * Required. The LogEntry field path to index.
            +     * Note that some paths are automatically indexed, and other paths are not
            +     * eligible for indexing. See [indexing documentation](
            +     * https://cloud.google.com/logging/docs/view/advanced-queries#indexed-fields)
            +     * for details.
            +     * For example: `jsonPayload.request.status`
            +     * 
            + * + * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for fieldPath to set. + * @return This builder for chaining. + */ + public Builder setFieldPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fieldPath_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int type_ = 0; + /** + * + * + *
            +     * Required. The type of data in this index.
            +     * 
            + * + * .google.logging.v2.IndexType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
            +     * Required. The type of data in this index.
            +     * 
            + * + * .google.logging.v2.IndexType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
            +     * Required. The type of data in this index.
            +     * 
            + * + * .google.logging.v2.IndexType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The type. + */ + @java.lang.Override + public com.google.logging.v2.IndexType getType() { + com.google.logging.v2.IndexType result = com.google.logging.v2.IndexType.forNumber(type_); + return result == null ? com.google.logging.v2.IndexType.UNRECOGNIZED : result; + } + /** + * + * + *
            +     * Required. The type of data in this index.
            +     * 
            + * + * .google.logging.v2.IndexType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.logging.v2.IndexType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
            +     * Required. The type of data in this index.
            +     * 
            + * + * .google.logging.v2.IndexType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000002); + type_ = 0; + 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 timestamp when the index was last modified.
            +     * This is used to return the timestamp, and will be ignored if supplied
            +     * during update.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
            +     * Output only. The timestamp when the index was last modified.
            +     * This is used to return the timestamp, and will be ignored if supplied
            +     * during update.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
            +     * Output only. The timestamp when the index was last modified.
            +     * This is used to return the timestamp, and will be ignored if supplied
            +     * during update.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.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; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
            +     * Output only. The timestamp when the index was last modified.
            +     * This is used to return the timestamp, and will be ignored if supplied
            +     * during update.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
            +     * Output only. The timestamp when the index was last modified.
            +     * This is used to return the timestamp, and will be ignored if supplied
            +     * during update.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
            +     * Output only. The timestamp when the index was last modified.
            +     * This is used to return the timestamp, and will be ignored if supplied
            +     * during update.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
            +     * Output only. The timestamp when the index was last modified.
            +     * This is used to return the timestamp, and will be ignored if supplied
            +     * during update.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
            +     * Output only. The timestamp when the index was last modified.
            +     * This is used to return the timestamp, and will be ignored if supplied
            +     * during update.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
            +     * Output only. The timestamp when the index was last modified.
            +     * This is used to return the timestamp, and will be ignored if supplied
            +     * during update.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + 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_; + } + + @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.IndexConfig) + } + + // @@protoc_insertion_point(class_scope:google.logging.v2.IndexConfig) + private static final com.google.logging.v2.IndexConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.logging.v2.IndexConfig(); + } + + public static com.google.logging.v2.IndexConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IndexConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.IndexConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexConfigOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexConfigOrBuilder.java new file mode 100644 index 000000000..8c3a9c45b --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexConfigOrBuilder.java @@ -0,0 +1,129 @@ +/* + * 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 IndexConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.logging.v2.IndexConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The LogEntry field path to index.
            +   * Note that some paths are automatically indexed, and other paths are not
            +   * eligible for indexing. See [indexing documentation](
            +   * https://cloud.google.com/logging/docs/view/advanced-queries#indexed-fields)
            +   * for details.
            +   * For example: `jsonPayload.request.status`
            +   * 
            + * + * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The fieldPath. + */ + java.lang.String getFieldPath(); + /** + * + * + *
            +   * Required. The LogEntry field path to index.
            +   * Note that some paths are automatically indexed, and other paths are not
            +   * eligible for indexing. See [indexing documentation](
            +   * https://cloud.google.com/logging/docs/view/advanced-queries#indexed-fields)
            +   * for details.
            +   * For example: `jsonPayload.request.status`
            +   * 
            + * + * string field_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for fieldPath. + */ + com.google.protobuf.ByteString getFieldPathBytes(); + + /** + * + * + *
            +   * Required. The type of data in this index.
            +   * 
            + * + * .google.logging.v2.IndexType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * + * + *
            +   * Required. The type of data in this index.
            +   * 
            + * + * .google.logging.v2.IndexType type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The type. + */ + com.google.logging.v2.IndexType getType(); + + /** + * + * + *
            +   * Output only. The timestamp when the index was last modified.
            +   * This is used to return the timestamp, and will be ignored if supplied
            +   * during update.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
            +   * Output only. The timestamp when the index was last modified.
            +   * This is used to return the timestamp, and will be ignored if supplied
            +   * during update.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
            +   * Output only. The timestamp when the index was last modified.
            +   * This is used to return the timestamp, and will be ignored if supplied
            +   * during update.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); +} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexType.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexType.java new file mode 100644 index 000000000..2cea93d7c --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/IndexType.java @@ -0,0 +1,177 @@ +/* + * 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; + +/** + * + * + *
            + * IndexType is used for custom indexing. It describes the type of an indexed
            + * field.
            + * 
            + * + * Protobuf enum {@code google.logging.v2.IndexType} + */ +public enum IndexType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +   * The index's type is unspecified.
            +   * 
            + * + * INDEX_TYPE_UNSPECIFIED = 0; + */ + INDEX_TYPE_UNSPECIFIED(0), + /** + * + * + *
            +   * The index is a string-type index.
            +   * 
            + * + * INDEX_TYPE_STRING = 1; + */ + INDEX_TYPE_STRING(1), + /** + * + * + *
            +   * The index is a integer-type index.
            +   * 
            + * + * INDEX_TYPE_INTEGER = 2; + */ + INDEX_TYPE_INTEGER(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
            +   * The index's type is unspecified.
            +   * 
            + * + * INDEX_TYPE_UNSPECIFIED = 0; + */ + public static final int INDEX_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
            +   * The index is a string-type index.
            +   * 
            + * + * INDEX_TYPE_STRING = 1; + */ + public static final int INDEX_TYPE_STRING_VALUE = 1; + /** + * + * + *
            +   * The index is a integer-type index.
            +   * 
            + * + * INDEX_TYPE_INTEGER = 2; + */ + public static final int INDEX_TYPE_INTEGER_VALUE = 2; + + 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 IndexType 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 IndexType forNumber(int value) { + switch (value) { + case 0: + return INDEX_TYPE_UNSPECIFIED; + case 1: + return INDEX_TYPE_STRING; + case 2: + return INDEX_TYPE_INTEGER; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public IndexType findValueByNumber(int number) { + return IndexType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + 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(2); + } + + private static final IndexType[] VALUES = values(); + + public static IndexType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private IndexType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.logging.v2.IndexType) +} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LifecycleState.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LifecycleState.java index a915b5423..5f07cf396 100644 --- a/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 @@ -60,6 +60,38 @@ public enum LifecycleState implements com.google.protobuf.ProtocolMessageEnum { * DELETE_REQUESTED = 2; */ DELETE_REQUESTED(2), + /** + * + * + *
            +   * The resource has been marked for an update by the user. It will remain in
            +   * this state until the update is complete.
            +   * 
            + * + * UPDATING = 3; + */ + UPDATING(3), + /** + * + * + *
            +   * The resource has been marked for creation by the user. It will remain in
            +   * this state until the creation is complete.
            +   * 
            + * + * CREATING = 4; + */ + CREATING(4), + /** + * + * + *
            +   * The resource is in an INTERNAL error state.
            +   * 
            + * + * FAILED = 5; + */ + FAILED(5), UNRECOGNIZED(-1), ; @@ -95,6 +127,38 @@ public enum LifecycleState implements com.google.protobuf.ProtocolMessageEnum { * DELETE_REQUESTED = 2; */ public static final int DELETE_REQUESTED_VALUE = 2; + /** + * + * + *
            +   * The resource has been marked for an update by the user. It will remain in
            +   * this state until the update is complete.
            +   * 
            + * + * UPDATING = 3; + */ + public static final int UPDATING_VALUE = 3; + /** + * + * + *
            +   * The resource has been marked for creation by the user. It will remain in
            +   * this state until the creation is complete.
            +   * 
            + * + * CREATING = 4; + */ + public static final int CREATING_VALUE = 4; + /** + * + * + *
            +   * The resource is in an INTERNAL error state.
            +   * 
            + * + * FAILED = 5; + */ + public static final int FAILED_VALUE = 5; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -126,6 +190,12 @@ public static LifecycleState forNumber(int value) { return ACTIVE; case 2: return DELETE_REQUESTED; + case 3: + return UPDATING; + case 4: + return CREATING; + case 5: + return FAILED; default: return null; } @@ -155,7 +225,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.logging.v2.LoggingConfigProto.getDescriptor().getEnumTypes().get(0); + return com.google.logging.v2.LoggingConfigProto.getDescriptor().getEnumTypes().get(1); } private static final LifecycleState[] VALUES = values(); diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/Link.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/Link.java new file mode 100644 index 000000000..d303a2457 --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/Link.java @@ -0,0 +1,1615 @@ +/* + * 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 link connected to an analytics enabled bucket.
            + * 
            + * + * Protobuf type {@code google.logging.v2.Link} + */ +public final class Link extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.logging.v2.Link) + LinkOrBuilder { + private static final long serialVersionUID = 0L; + // Use Link.newBuilder() to construct. + private Link(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Link() { + name_ = ""; + description_ = ""; + lifecycleState_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Link(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_Link_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_Link_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.logging.v2.Link.class, com.google.logging.v2.Link.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
            +   * The resource name of the link. The name can have up to 100 characters.
            +   * A valid link id (at the end of the link name) must only have alphanumeric
            +   * characters and underscores within it.
            +   *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +   *     "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +   *     "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +   *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +   * For example:
            +   *   `projects/my-project/locations/global/buckets/my-bucket/links/my_link
            +   * 
            + * + * 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 link. The name can have up to 100 characters.
            +   * A valid link id (at the end of the link name) must only have alphanumeric
            +   * characters and underscores within it.
            +   *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +   *     "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +   *     "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +   *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +   * For example:
            +   *   `projects/my-project/locations/global/buckets/my-bucket/links/my_link
            +   * 
            + * + * 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 = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + * + * + *
            +   * Describes this link.
            +   * The maximum length of the description is 8000 characters.
            +   * 
            + * + * string description = 2; + * + * @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 link.
            +   * The maximum length of the description is 8000 characters.
            +   * 
            + * + * string description = 2; + * + * @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 = 3; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
            +   * Output only. The creation timestamp of the link.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
            +   * Output only. The creation timestamp of the link.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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 link.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int LIFECYCLE_STATE_FIELD_NUMBER = 4; + private int lifecycleState_ = 0; + /** + * + * + *
            +   * Output only. The resource lifecycle state.
            +   * 
            + * + * + * .google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for lifecycleState. + */ + @java.lang.Override + public int getLifecycleStateValue() { + return lifecycleState_; + } + /** + * + * + *
            +   * Output only. The resource lifecycle state.
            +   * 
            + * + * + * .google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lifecycleState. + */ + @java.lang.Override + public com.google.logging.v2.LifecycleState getLifecycleState() { + com.google.logging.v2.LifecycleState result = + com.google.logging.v2.LifecycleState.forNumber(lifecycleState_); + return result == null ? com.google.logging.v2.LifecycleState.UNRECOGNIZED : result; + } + + public static final int BIGQUERY_DATASET_FIELD_NUMBER = 5; + private com.google.logging.v2.BigQueryDataset bigqueryDataset_; + /** + * + * + *
            +   * The information of a BigQuery Dataset. When a link is created, a BigQuery
            +   * dataset is created along with it, in the same project as the LogBucket it's
            +   * linked to. This dataset will also have BigQuery Views corresponding to the
            +   * LogViews in the bucket.
            +   * 
            + * + * .google.logging.v2.BigQueryDataset bigquery_dataset = 5; + * + * @return Whether the bigqueryDataset field is set. + */ + @java.lang.Override + public boolean hasBigqueryDataset() { + return bigqueryDataset_ != null; + } + /** + * + * + *
            +   * The information of a BigQuery Dataset. When a link is created, a BigQuery
            +   * dataset is created along with it, in the same project as the LogBucket it's
            +   * linked to. This dataset will also have BigQuery Views corresponding to the
            +   * LogViews in the bucket.
            +   * 
            + * + * .google.logging.v2.BigQueryDataset bigquery_dataset = 5; + * + * @return The bigqueryDataset. + */ + @java.lang.Override + public com.google.logging.v2.BigQueryDataset getBigqueryDataset() { + return bigqueryDataset_ == null + ? com.google.logging.v2.BigQueryDataset.getDefaultInstance() + : bigqueryDataset_; + } + /** + * + * + *
            +   * The information of a BigQuery Dataset. When a link is created, a BigQuery
            +   * dataset is created along with it, in the same project as the LogBucket it's
            +   * linked to. This dataset will also have BigQuery Views corresponding to the
            +   * LogViews in the bucket.
            +   * 
            + * + * .google.logging.v2.BigQueryDataset bigquery_dataset = 5; + */ + @java.lang.Override + public com.google.logging.v2.BigQueryDatasetOrBuilder getBigqueryDatasetOrBuilder() { + return bigqueryDataset_ == null + ? com.google.logging.v2.BigQueryDataset.getDefaultInstance() + : bigqueryDataset_; + } + + 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, 2, description_); + } + if (createTime_ != null) { + output.writeMessage(3, getCreateTime()); + } + if (lifecycleState_ + != com.google.logging.v2.LifecycleState.LIFECYCLE_STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(4, lifecycleState_); + } + if (bigqueryDataset_ != null) { + output.writeMessage(5, getBigqueryDataset()); + } + getUnknownFields().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(2, description_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (lifecycleState_ + != com.google.logging.v2.LifecycleState.LIFECYCLE_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, lifecycleState_); + } + if (bigqueryDataset_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getBigqueryDataset()); + } + size += getUnknownFields().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.Link)) { + return super.equals(obj); + } + com.google.logging.v2.Link other = (com.google.logging.v2.Link) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (lifecycleState_ != other.lifecycleState_) return false; + if (hasBigqueryDataset() != other.hasBigqueryDataset()) return false; + if (hasBigqueryDataset()) { + if (!getBigqueryDataset().equals(other.getBigqueryDataset())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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(); + } + hash = (37 * hash) + LIFECYCLE_STATE_FIELD_NUMBER; + hash = (53 * hash) + lifecycleState_; + if (hasBigqueryDataset()) { + hash = (37 * hash) + BIGQUERY_DATASET_FIELD_NUMBER; + hash = (53 * hash) + getBigqueryDataset().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.logging.v2.Link parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.Link parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.Link parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.Link parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.Link parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.Link parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.Link parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.logging.v2.Link 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.Link parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.logging.v2.Link parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.logging.v2.Link parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.logging.v2.Link parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.logging.v2.Link prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
            +   * Describes a link connected to an analytics enabled bucket.
            +   * 
            + * + * Protobuf type {@code google.logging.v2.Link} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.logging.v2.Link) + com.google.logging.v2.LinkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_Link_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_Link_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.logging.v2.Link.class, com.google.logging.v2.Link.Builder.class); + } + + // Construct using com.google.logging.v2.Link.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + description_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + lifecycleState_ = 0; + bigqueryDataset_ = null; + if (bigqueryDatasetBuilder_ != null) { + bigqueryDatasetBuilder_.dispose(); + bigqueryDatasetBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_Link_descriptor; + } + + @java.lang.Override + public com.google.logging.v2.Link getDefaultInstanceForType() { + return com.google.logging.v2.Link.getDefaultInstance(); + } + + @java.lang.Override + public com.google.logging.v2.Link build() { + com.google.logging.v2.Link result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.logging.v2.Link buildPartial() { + com.google.logging.v2.Link result = new com.google.logging.v2.Link(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.logging.v2.Link result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.lifecycleState_ = lifecycleState_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.bigqueryDataset_ = + bigqueryDatasetBuilder_ == null ? bigqueryDataset_ : bigqueryDatasetBuilder_.build(); + } + } + + @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.Link) { + return mergeFrom((com.google.logging.v2.Link) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.logging.v2.Link other) { + if (other == com.google.logging.v2.Link.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.lifecycleState_ != 0) { + setLifecycleStateValue(other.getLifecycleStateValue()); + } + if (other.hasBigqueryDataset()) { + mergeBigqueryDataset(other.getBigqueryDataset()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + lifecycleState_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + input.readMessage(getBigqueryDatasetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
            +     * The resource name of the link. The name can have up to 100 characters.
            +     * A valid link id (at the end of the link name) must only have alphanumeric
            +     * characters and underscores within it.
            +     *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     *     "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     *     "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     * For example:
            +     *   `projects/my-project/locations/global/buckets/my-bucket/links/my_link
            +     * 
            + * + * 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 link. The name can have up to 100 characters.
            +     * A valid link id (at the end of the link name) must only have alphanumeric
            +     * characters and underscores within it.
            +     *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     *     "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     *     "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     * For example:
            +     *   `projects/my-project/locations/global/buckets/my-bucket/links/my_link
            +     * 
            + * + * 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 link. The name can have up to 100 characters.
            +     * A valid link id (at the end of the link name) must only have alphanumeric
            +     * characters and underscores within it.
            +     *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     *     "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     *     "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     * For example:
            +     *   `projects/my-project/locations/global/buckets/my-bucket/links/my_link
            +     * 
            + * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
            +     * The resource name of the link. The name can have up to 100 characters.
            +     * A valid link id (at the end of the link name) must only have alphanumeric
            +     * characters and underscores within it.
            +     *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     *     "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     *     "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     * For example:
            +     *   `projects/my-project/locations/global/buckets/my-bucket/links/my_link
            +     * 
            + * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
            +     * The resource name of the link. The name can have up to 100 characters.
            +     * A valid link id (at the end of the link name) must only have alphanumeric
            +     * characters and underscores within it.
            +     *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     *     "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     *     "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +     * For example:
            +     *   `projects/my-project/locations/global/buckets/my-bucket/links/my_link
            +     * 
            + * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
            +     * Describes this link.
            +     * The maximum length of the description is 8000 characters.
            +     * 
            + * + * string description = 2; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
            +     * Describes this link.
            +     * The maximum length of the description is 8000 characters.
            +     * 
            + * + * string description = 2; + * + * @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 link.
            +     * The maximum length of the description is 8000 characters.
            +     * 
            + * + * string description = 2; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
            +     * Describes this link.
            +     * The maximum length of the description is 8000 characters.
            +     * 
            + * + * string description = 2; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
            +     * Describes this link.
            +     * The maximum length of the description is 8000 characters.
            +     * 
            + * + * string description = 2; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000002; + 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 link.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
            +     * Output only. The creation timestamp of the link.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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 link.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.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; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
            +     * Output only. The creation timestamp of the link.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
            +     * Output only. The creation timestamp of the link.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
            +     * Output only. The creation timestamp of the link.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
            +     * Output only. The creation timestamp of the link.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
            +     * Output only. The creation timestamp of the link.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
            +     * Output only. The creation timestamp of the link.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + 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 int lifecycleState_ = 0; + /** + * + * + *
            +     * Output only. The resource lifecycle state.
            +     * 
            + * + * + * .google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for lifecycleState. + */ + @java.lang.Override + public int getLifecycleStateValue() { + return lifecycleState_; + } + /** + * + * + *
            +     * Output only. The resource lifecycle state.
            +     * 
            + * + * + * .google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for lifecycleState to set. + * @return This builder for chaining. + */ + public Builder setLifecycleStateValue(int value) { + lifecycleState_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
            +     * Output only. The resource lifecycle state.
            +     * 
            + * + * + * .google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lifecycleState. + */ + @java.lang.Override + public com.google.logging.v2.LifecycleState getLifecycleState() { + com.google.logging.v2.LifecycleState result = + com.google.logging.v2.LifecycleState.forNumber(lifecycleState_); + return result == null ? com.google.logging.v2.LifecycleState.UNRECOGNIZED : result; + } + /** + * + * + *
            +     * Output only. The resource lifecycle state.
            +     * 
            + * + * + * .google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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(); + } + bitField0_ |= 0x00000008; + lifecycleState_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
            +     * Output only. The resource lifecycle state.
            +     * 
            + * + * + * .google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearLifecycleState() { + bitField0_ = (bitField0_ & ~0x00000008); + lifecycleState_ = 0; + onChanged(); + return this; + } + + private com.google.logging.v2.BigQueryDataset bigqueryDataset_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.BigQueryDataset, + com.google.logging.v2.BigQueryDataset.Builder, + com.google.logging.v2.BigQueryDatasetOrBuilder> + bigqueryDatasetBuilder_; + /** + * + * + *
            +     * The information of a BigQuery Dataset. When a link is created, a BigQuery
            +     * dataset is created along with it, in the same project as the LogBucket it's
            +     * linked to. This dataset will also have BigQuery Views corresponding to the
            +     * LogViews in the bucket.
            +     * 
            + * + * .google.logging.v2.BigQueryDataset bigquery_dataset = 5; + * + * @return Whether the bigqueryDataset field is set. + */ + public boolean hasBigqueryDataset() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
            +     * The information of a BigQuery Dataset. When a link is created, a BigQuery
            +     * dataset is created along with it, in the same project as the LogBucket it's
            +     * linked to. This dataset will also have BigQuery Views corresponding to the
            +     * LogViews in the bucket.
            +     * 
            + * + * .google.logging.v2.BigQueryDataset bigquery_dataset = 5; + * + * @return The bigqueryDataset. + */ + public com.google.logging.v2.BigQueryDataset getBigqueryDataset() { + if (bigqueryDatasetBuilder_ == null) { + return bigqueryDataset_ == null + ? com.google.logging.v2.BigQueryDataset.getDefaultInstance() + : bigqueryDataset_; + } else { + return bigqueryDatasetBuilder_.getMessage(); + } + } + /** + * + * + *
            +     * The information of a BigQuery Dataset. When a link is created, a BigQuery
            +     * dataset is created along with it, in the same project as the LogBucket it's
            +     * linked to. This dataset will also have BigQuery Views corresponding to the
            +     * LogViews in the bucket.
            +     * 
            + * + * .google.logging.v2.BigQueryDataset bigquery_dataset = 5; + */ + public Builder setBigqueryDataset(com.google.logging.v2.BigQueryDataset value) { + if (bigqueryDatasetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + bigqueryDataset_ = value; + } else { + bigqueryDatasetBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
            +     * The information of a BigQuery Dataset. When a link is created, a BigQuery
            +     * dataset is created along with it, in the same project as the LogBucket it's
            +     * linked to. This dataset will also have BigQuery Views corresponding to the
            +     * LogViews in the bucket.
            +     * 
            + * + * .google.logging.v2.BigQueryDataset bigquery_dataset = 5; + */ + public Builder setBigqueryDataset( + com.google.logging.v2.BigQueryDataset.Builder builderForValue) { + if (bigqueryDatasetBuilder_ == null) { + bigqueryDataset_ = builderForValue.build(); + } else { + bigqueryDatasetBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
            +     * The information of a BigQuery Dataset. When a link is created, a BigQuery
            +     * dataset is created along with it, in the same project as the LogBucket it's
            +     * linked to. This dataset will also have BigQuery Views corresponding to the
            +     * LogViews in the bucket.
            +     * 
            + * + * .google.logging.v2.BigQueryDataset bigquery_dataset = 5; + */ + public Builder mergeBigqueryDataset(com.google.logging.v2.BigQueryDataset value) { + if (bigqueryDatasetBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && bigqueryDataset_ != null + && bigqueryDataset_ != com.google.logging.v2.BigQueryDataset.getDefaultInstance()) { + getBigqueryDatasetBuilder().mergeFrom(value); + } else { + bigqueryDataset_ = value; + } + } else { + bigqueryDatasetBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
            +     * The information of a BigQuery Dataset. When a link is created, a BigQuery
            +     * dataset is created along with it, in the same project as the LogBucket it's
            +     * linked to. This dataset will also have BigQuery Views corresponding to the
            +     * LogViews in the bucket.
            +     * 
            + * + * .google.logging.v2.BigQueryDataset bigquery_dataset = 5; + */ + public Builder clearBigqueryDataset() { + bitField0_ = (bitField0_ & ~0x00000010); + bigqueryDataset_ = null; + if (bigqueryDatasetBuilder_ != null) { + bigqueryDatasetBuilder_.dispose(); + bigqueryDatasetBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
            +     * The information of a BigQuery Dataset. When a link is created, a BigQuery
            +     * dataset is created along with it, in the same project as the LogBucket it's
            +     * linked to. This dataset will also have BigQuery Views corresponding to the
            +     * LogViews in the bucket.
            +     * 
            + * + * .google.logging.v2.BigQueryDataset bigquery_dataset = 5; + */ + public com.google.logging.v2.BigQueryDataset.Builder getBigqueryDatasetBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getBigqueryDatasetFieldBuilder().getBuilder(); + } + /** + * + * + *
            +     * The information of a BigQuery Dataset. When a link is created, a BigQuery
            +     * dataset is created along with it, in the same project as the LogBucket it's
            +     * linked to. This dataset will also have BigQuery Views corresponding to the
            +     * LogViews in the bucket.
            +     * 
            + * + * .google.logging.v2.BigQueryDataset bigquery_dataset = 5; + */ + public com.google.logging.v2.BigQueryDatasetOrBuilder getBigqueryDatasetOrBuilder() { + if (bigqueryDatasetBuilder_ != null) { + return bigqueryDatasetBuilder_.getMessageOrBuilder(); + } else { + return bigqueryDataset_ == null + ? com.google.logging.v2.BigQueryDataset.getDefaultInstance() + : bigqueryDataset_; + } + } + /** + * + * + *
            +     * The information of a BigQuery Dataset. When a link is created, a BigQuery
            +     * dataset is created along with it, in the same project as the LogBucket it's
            +     * linked to. This dataset will also have BigQuery Views corresponding to the
            +     * LogViews in the bucket.
            +     * 
            + * + * .google.logging.v2.BigQueryDataset bigquery_dataset = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.BigQueryDataset, + com.google.logging.v2.BigQueryDataset.Builder, + com.google.logging.v2.BigQueryDatasetOrBuilder> + getBigqueryDatasetFieldBuilder() { + if (bigqueryDatasetBuilder_ == null) { + bigqueryDatasetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.BigQueryDataset, + com.google.logging.v2.BigQueryDataset.Builder, + com.google.logging.v2.BigQueryDatasetOrBuilder>( + getBigqueryDataset(), getParentForChildren(), isClean()); + bigqueryDataset_ = null; + } + return bigqueryDatasetBuilder_; + } + + @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.Link) + } + + // @@protoc_insertion_point(class_scope:google.logging.v2.Link) + private static final com.google.logging.v2.Link DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.logging.v2.Link(); + } + + public static com.google.logging.v2.Link getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Link parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.Link getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkMetadata.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkMetadata.java new file mode 100644 index 000000000..2327a9e3f --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkMetadata.java @@ -0,0 +1,1773 @@ +/* + * 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 long running Link operations.
            + * 
            + * + * Protobuf type {@code google.logging.v2.LinkMetadata} + */ +public final class LinkMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.logging.v2.LinkMetadata) + LinkMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use LinkMetadata.newBuilder() to construct. + private LinkMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LinkMetadata() { + state_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LinkMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_LinkMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_LinkMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.logging.v2.LinkMetadata.class, + com.google.logging.v2.LinkMetadata.Builder.class); + } + + private int requestCase_ = 0; + private java.lang.Object request_; + + public enum RequestCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CREATE_LINK_REQUEST(4), + DELETE_LINK_REQUEST(5), + REQUEST_NOT_SET(0); + private final int value; + + private RequestCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RequestCase valueOf(int value) { + return forNumber(value); + } + + public static RequestCase forNumber(int value) { + switch (value) { + case 4: + return CREATE_LINK_REQUEST; + case 5: + return DELETE_LINK_REQUEST; + case 0: + return REQUEST_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public RequestCase getRequestCase() { + return RequestCase.forNumber(requestCase_); + } + + public static final int START_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
            +   * The start time of an operation.
            +   * 
            + * + * .google.protobuf.Timestamp start_time = 1; + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return startTime_ != null; + } + /** + * + * + *
            +   * The start 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 start time of an operation.
            +   * 
            + * + * .google.protobuf.Timestamp start_time = 1; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + 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 endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + public static final int STATE_FIELD_NUMBER = 3; + private int state_ = 0; + /** + * + * + *
            +   * State of an operation.
            +   * 
            + * + * .google.logging.v2.OperationState state = 3; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
            +   * State of an operation.
            +   * 
            + * + * .google.logging.v2.OperationState state = 3; + * + * @return The state. + */ + @java.lang.Override + public com.google.logging.v2.OperationState getState() { + com.google.logging.v2.OperationState result = + com.google.logging.v2.OperationState.forNumber(state_); + return result == null ? com.google.logging.v2.OperationState.UNRECOGNIZED : result; + } + + public static final int CREATE_LINK_REQUEST_FIELD_NUMBER = 4; + /** + * + * + *
            +   * CreateLink RPC request.
            +   * 
            + * + * .google.logging.v2.CreateLinkRequest create_link_request = 4; + * + * @return Whether the createLinkRequest field is set. + */ + @java.lang.Override + public boolean hasCreateLinkRequest() { + return requestCase_ == 4; + } + /** + * + * + *
            +   * CreateLink RPC request.
            +   * 
            + * + * .google.logging.v2.CreateLinkRequest create_link_request = 4; + * + * @return The createLinkRequest. + */ + @java.lang.Override + public com.google.logging.v2.CreateLinkRequest getCreateLinkRequest() { + if (requestCase_ == 4) { + return (com.google.logging.v2.CreateLinkRequest) request_; + } + return com.google.logging.v2.CreateLinkRequest.getDefaultInstance(); + } + /** + * + * + *
            +   * CreateLink RPC request.
            +   * 
            + * + * .google.logging.v2.CreateLinkRequest create_link_request = 4; + */ + @java.lang.Override + public com.google.logging.v2.CreateLinkRequestOrBuilder getCreateLinkRequestOrBuilder() { + if (requestCase_ == 4) { + return (com.google.logging.v2.CreateLinkRequest) request_; + } + return com.google.logging.v2.CreateLinkRequest.getDefaultInstance(); + } + + public static final int DELETE_LINK_REQUEST_FIELD_NUMBER = 5; + /** + * + * + *
            +   * DeleteLink RPC request.
            +   * 
            + * + * .google.logging.v2.DeleteLinkRequest delete_link_request = 5; + * + * @return Whether the deleteLinkRequest field is set. + */ + @java.lang.Override + public boolean hasDeleteLinkRequest() { + return requestCase_ == 5; + } + /** + * + * + *
            +   * DeleteLink RPC request.
            +   * 
            + * + * .google.logging.v2.DeleteLinkRequest delete_link_request = 5; + * + * @return The deleteLinkRequest. + */ + @java.lang.Override + public com.google.logging.v2.DeleteLinkRequest getDeleteLinkRequest() { + if (requestCase_ == 5) { + return (com.google.logging.v2.DeleteLinkRequest) request_; + } + return com.google.logging.v2.DeleteLinkRequest.getDefaultInstance(); + } + /** + * + * + *
            +   * DeleteLink RPC request.
            +   * 
            + * + * .google.logging.v2.DeleteLinkRequest delete_link_request = 5; + */ + @java.lang.Override + public com.google.logging.v2.DeleteLinkRequestOrBuilder getDeleteLinkRequestOrBuilder() { + if (requestCase_ == 5) { + return (com.google.logging.v2.DeleteLinkRequest) request_; + } + return com.google.logging.v2.DeleteLinkRequest.getDefaultInstance(); + } + + 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 (requestCase_ == 4) { + output.writeMessage(4, (com.google.logging.v2.CreateLinkRequest) request_); + } + if (requestCase_ == 5) { + output.writeMessage(5, (com.google.logging.v2.DeleteLinkRequest) request_); + } + getUnknownFields().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 (requestCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.logging.v2.CreateLinkRequest) request_); + } + if (requestCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.logging.v2.DeleteLinkRequest) request_); + } + size += getUnknownFields().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.LinkMetadata)) { + return super.equals(obj); + } + com.google.logging.v2.LinkMetadata other = (com.google.logging.v2.LinkMetadata) 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 (!getRequestCase().equals(other.getRequestCase())) return false; + switch (requestCase_) { + case 4: + if (!getCreateLinkRequest().equals(other.getCreateLinkRequest())) return false; + break; + case 5: + if (!getDeleteLinkRequest().equals(other.getDeleteLinkRequest())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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_; + switch (requestCase_) { + case 4: + hash = (37 * hash) + CREATE_LINK_REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getCreateLinkRequest().hashCode(); + break; + case 5: + hash = (37 * hash) + DELETE_LINK_REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getDeleteLinkRequest().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.logging.v2.LinkMetadata parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.LinkMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.LinkMetadata parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.LinkMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.LinkMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.LinkMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.LinkMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.logging.v2.LinkMetadata 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.LinkMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.logging.v2.LinkMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.logging.v2.LinkMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.logging.v2.LinkMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.logging.v2.LinkMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
            +   * Metadata for long running Link operations.
            +   * 
            + * + * Protobuf type {@code google.logging.v2.LinkMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.logging.v2.LinkMetadata) + com.google.logging.v2.LinkMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_LinkMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_LinkMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.logging.v2.LinkMetadata.class, + com.google.logging.v2.LinkMetadata.Builder.class); + } + + // Construct using com.google.logging.v2.LinkMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + state_ = 0; + if (createLinkRequestBuilder_ != null) { + createLinkRequestBuilder_.clear(); + } + if (deleteLinkRequestBuilder_ != null) { + deleteLinkRequestBuilder_.clear(); + } + requestCase_ = 0; + request_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_LinkMetadata_descriptor; + } + + @java.lang.Override + public com.google.logging.v2.LinkMetadata getDefaultInstanceForType() { + return com.google.logging.v2.LinkMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.logging.v2.LinkMetadata build() { + com.google.logging.v2.LinkMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.logging.v2.LinkMetadata buildPartial() { + com.google.logging.v2.LinkMetadata result = new com.google.logging.v2.LinkMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.logging.v2.LinkMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.state_ = state_; + } + } + + private void buildPartialOneofs(com.google.logging.v2.LinkMetadata result) { + result.requestCase_ = requestCase_; + result.request_ = this.request_; + if (requestCase_ == 4 && createLinkRequestBuilder_ != null) { + result.request_ = createLinkRequestBuilder_.build(); + } + if (requestCase_ == 5 && deleteLinkRequestBuilder_ != null) { + result.request_ = deleteLinkRequestBuilder_.build(); + } + } + + @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.LinkMetadata) { + return mergeFrom((com.google.logging.v2.LinkMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.logging.v2.LinkMetadata other) { + if (other == com.google.logging.v2.LinkMetadata.getDefaultInstance()) return this; + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + switch (other.getRequestCase()) { + case CREATE_LINK_REQUEST: + { + mergeCreateLinkRequest(other.getCreateLinkRequest()); + break; + } + case DELETE_LINK_REQUEST: + { + mergeDeleteLinkRequest(other.getDeleteLinkRequest()); + break; + } + case REQUEST_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + input.readMessage( + getCreateLinkRequestFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage( + getDeleteLinkRequestFieldBuilder().getBuilder(), extensionRegistry); + requestCase_ = 5; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int requestCase_ = 0; + private java.lang.Object request_; + + public RequestCase getRequestCase() { + return RequestCase.forNumber(requestCase_); + } + + public Builder clearRequest() { + requestCase_ = 0; + request_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
            +     * The start time of an operation.
            +     * 
            + * + * .google.protobuf.Timestamp start_time = 1; + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
            +     * The start time of an operation.
            +     * 
            + * + * .google.protobuf.Timestamp start_time = 1; + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
            +     * The start 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; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
            +     * The start 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(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
            +     * The start time of an operation.
            +     * 
            + * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
            +     * The start time of an operation.
            +     * 
            + * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000001); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
            +     * The start time of an operation.
            +     * 
            + * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
            +     * The start 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 start 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 ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
            +     * 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; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + 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(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + 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 (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
            +     * The end time of an operation.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000002); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
            +     * The end time of an operation.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000002; + 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; + bitField0_ |= 0x00000004; + 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() { + com.google.logging.v2.OperationState result = + com.google.logging.v2.OperationState.forNumber(state_); + return result == null ? com.google.logging.v2.OperationState.UNRECOGNIZED : result; + } + /** + * + * + *
            +     * State of an operation.
            +     * 
            + * + * .google.logging.v2.OperationState state = 3; + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.logging.v2.OperationState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
            +     * State of an operation.
            +     * 
            + * + * .google.logging.v2.OperationState state = 3; + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000004); + state_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.CreateLinkRequest, + com.google.logging.v2.CreateLinkRequest.Builder, + com.google.logging.v2.CreateLinkRequestOrBuilder> + createLinkRequestBuilder_; + /** + * + * + *
            +     * CreateLink RPC request.
            +     * 
            + * + * .google.logging.v2.CreateLinkRequest create_link_request = 4; + * + * @return Whether the createLinkRequest field is set. + */ + @java.lang.Override + public boolean hasCreateLinkRequest() { + return requestCase_ == 4; + } + /** + * + * + *
            +     * CreateLink RPC request.
            +     * 
            + * + * .google.logging.v2.CreateLinkRequest create_link_request = 4; + * + * @return The createLinkRequest. + */ + @java.lang.Override + public com.google.logging.v2.CreateLinkRequest getCreateLinkRequest() { + if (createLinkRequestBuilder_ == null) { + if (requestCase_ == 4) { + return (com.google.logging.v2.CreateLinkRequest) request_; + } + return com.google.logging.v2.CreateLinkRequest.getDefaultInstance(); + } else { + if (requestCase_ == 4) { + return createLinkRequestBuilder_.getMessage(); + } + return com.google.logging.v2.CreateLinkRequest.getDefaultInstance(); + } + } + /** + * + * + *
            +     * CreateLink RPC request.
            +     * 
            + * + * .google.logging.v2.CreateLinkRequest create_link_request = 4; + */ + public Builder setCreateLinkRequest(com.google.logging.v2.CreateLinkRequest value) { + if (createLinkRequestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + createLinkRequestBuilder_.setMessage(value); + } + requestCase_ = 4; + return this; + } + /** + * + * + *
            +     * CreateLink RPC request.
            +     * 
            + * + * .google.logging.v2.CreateLinkRequest create_link_request = 4; + */ + public Builder setCreateLinkRequest( + com.google.logging.v2.CreateLinkRequest.Builder builderForValue) { + if (createLinkRequestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + createLinkRequestBuilder_.setMessage(builderForValue.build()); + } + requestCase_ = 4; + return this; + } + /** + * + * + *
            +     * CreateLink RPC request.
            +     * 
            + * + * .google.logging.v2.CreateLinkRequest create_link_request = 4; + */ + public Builder mergeCreateLinkRequest(com.google.logging.v2.CreateLinkRequest value) { + if (createLinkRequestBuilder_ == null) { + if (requestCase_ == 4 + && request_ != com.google.logging.v2.CreateLinkRequest.getDefaultInstance()) { + request_ = + com.google.logging.v2.CreateLinkRequest.newBuilder( + (com.google.logging.v2.CreateLinkRequest) request_) + .mergeFrom(value) + .buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + if (requestCase_ == 4) { + createLinkRequestBuilder_.mergeFrom(value); + } else { + createLinkRequestBuilder_.setMessage(value); + } + } + requestCase_ = 4; + return this; + } + /** + * + * + *
            +     * CreateLink RPC request.
            +     * 
            + * + * .google.logging.v2.CreateLinkRequest create_link_request = 4; + */ + public Builder clearCreateLinkRequest() { + if (createLinkRequestBuilder_ == null) { + if (requestCase_ == 4) { + requestCase_ = 0; + request_ = null; + onChanged(); + } + } else { + if (requestCase_ == 4) { + requestCase_ = 0; + request_ = null; + } + createLinkRequestBuilder_.clear(); + } + return this; + } + /** + * + * + *
            +     * CreateLink RPC request.
            +     * 
            + * + * .google.logging.v2.CreateLinkRequest create_link_request = 4; + */ + public com.google.logging.v2.CreateLinkRequest.Builder getCreateLinkRequestBuilder() { + return getCreateLinkRequestFieldBuilder().getBuilder(); + } + /** + * + * + *
            +     * CreateLink RPC request.
            +     * 
            + * + * .google.logging.v2.CreateLinkRequest create_link_request = 4; + */ + @java.lang.Override + public com.google.logging.v2.CreateLinkRequestOrBuilder getCreateLinkRequestOrBuilder() { + if ((requestCase_ == 4) && (createLinkRequestBuilder_ != null)) { + return createLinkRequestBuilder_.getMessageOrBuilder(); + } else { + if (requestCase_ == 4) { + return (com.google.logging.v2.CreateLinkRequest) request_; + } + return com.google.logging.v2.CreateLinkRequest.getDefaultInstance(); + } + } + /** + * + * + *
            +     * CreateLink RPC request.
            +     * 
            + * + * .google.logging.v2.CreateLinkRequest create_link_request = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.CreateLinkRequest, + com.google.logging.v2.CreateLinkRequest.Builder, + com.google.logging.v2.CreateLinkRequestOrBuilder> + getCreateLinkRequestFieldBuilder() { + if (createLinkRequestBuilder_ == null) { + if (!(requestCase_ == 4)) { + request_ = com.google.logging.v2.CreateLinkRequest.getDefaultInstance(); + } + createLinkRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.CreateLinkRequest, + com.google.logging.v2.CreateLinkRequest.Builder, + com.google.logging.v2.CreateLinkRequestOrBuilder>( + (com.google.logging.v2.CreateLinkRequest) request_, + getParentForChildren(), + isClean()); + request_ = null; + } + requestCase_ = 4; + onChanged(); + return createLinkRequestBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.DeleteLinkRequest, + com.google.logging.v2.DeleteLinkRequest.Builder, + com.google.logging.v2.DeleteLinkRequestOrBuilder> + deleteLinkRequestBuilder_; + /** + * + * + *
            +     * DeleteLink RPC request.
            +     * 
            + * + * .google.logging.v2.DeleteLinkRequest delete_link_request = 5; + * + * @return Whether the deleteLinkRequest field is set. + */ + @java.lang.Override + public boolean hasDeleteLinkRequest() { + return requestCase_ == 5; + } + /** + * + * + *
            +     * DeleteLink RPC request.
            +     * 
            + * + * .google.logging.v2.DeleteLinkRequest delete_link_request = 5; + * + * @return The deleteLinkRequest. + */ + @java.lang.Override + public com.google.logging.v2.DeleteLinkRequest getDeleteLinkRequest() { + if (deleteLinkRequestBuilder_ == null) { + if (requestCase_ == 5) { + return (com.google.logging.v2.DeleteLinkRequest) request_; + } + return com.google.logging.v2.DeleteLinkRequest.getDefaultInstance(); + } else { + if (requestCase_ == 5) { + return deleteLinkRequestBuilder_.getMessage(); + } + return com.google.logging.v2.DeleteLinkRequest.getDefaultInstance(); + } + } + /** + * + * + *
            +     * DeleteLink RPC request.
            +     * 
            + * + * .google.logging.v2.DeleteLinkRequest delete_link_request = 5; + */ + public Builder setDeleteLinkRequest(com.google.logging.v2.DeleteLinkRequest value) { + if (deleteLinkRequestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + deleteLinkRequestBuilder_.setMessage(value); + } + requestCase_ = 5; + return this; + } + /** + * + * + *
            +     * DeleteLink RPC request.
            +     * 
            + * + * .google.logging.v2.DeleteLinkRequest delete_link_request = 5; + */ + public Builder setDeleteLinkRequest( + com.google.logging.v2.DeleteLinkRequest.Builder builderForValue) { + if (deleteLinkRequestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + deleteLinkRequestBuilder_.setMessage(builderForValue.build()); + } + requestCase_ = 5; + return this; + } + /** + * + * + *
            +     * DeleteLink RPC request.
            +     * 
            + * + * .google.logging.v2.DeleteLinkRequest delete_link_request = 5; + */ + public Builder mergeDeleteLinkRequest(com.google.logging.v2.DeleteLinkRequest value) { + if (deleteLinkRequestBuilder_ == null) { + if (requestCase_ == 5 + && request_ != com.google.logging.v2.DeleteLinkRequest.getDefaultInstance()) { + request_ = + com.google.logging.v2.DeleteLinkRequest.newBuilder( + (com.google.logging.v2.DeleteLinkRequest) request_) + .mergeFrom(value) + .buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + if (requestCase_ == 5) { + deleteLinkRequestBuilder_.mergeFrom(value); + } else { + deleteLinkRequestBuilder_.setMessage(value); + } + } + requestCase_ = 5; + return this; + } + /** + * + * + *
            +     * DeleteLink RPC request.
            +     * 
            + * + * .google.logging.v2.DeleteLinkRequest delete_link_request = 5; + */ + public Builder clearDeleteLinkRequest() { + if (deleteLinkRequestBuilder_ == null) { + if (requestCase_ == 5) { + requestCase_ = 0; + request_ = null; + onChanged(); + } + } else { + if (requestCase_ == 5) { + requestCase_ = 0; + request_ = null; + } + deleteLinkRequestBuilder_.clear(); + } + return this; + } + /** + * + * + *
            +     * DeleteLink RPC request.
            +     * 
            + * + * .google.logging.v2.DeleteLinkRequest delete_link_request = 5; + */ + public com.google.logging.v2.DeleteLinkRequest.Builder getDeleteLinkRequestBuilder() { + return getDeleteLinkRequestFieldBuilder().getBuilder(); + } + /** + * + * + *
            +     * DeleteLink RPC request.
            +     * 
            + * + * .google.logging.v2.DeleteLinkRequest delete_link_request = 5; + */ + @java.lang.Override + public com.google.logging.v2.DeleteLinkRequestOrBuilder getDeleteLinkRequestOrBuilder() { + if ((requestCase_ == 5) && (deleteLinkRequestBuilder_ != null)) { + return deleteLinkRequestBuilder_.getMessageOrBuilder(); + } else { + if (requestCase_ == 5) { + return (com.google.logging.v2.DeleteLinkRequest) request_; + } + return com.google.logging.v2.DeleteLinkRequest.getDefaultInstance(); + } + } + /** + * + * + *
            +     * DeleteLink RPC request.
            +     * 
            + * + * .google.logging.v2.DeleteLinkRequest delete_link_request = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.DeleteLinkRequest, + com.google.logging.v2.DeleteLinkRequest.Builder, + com.google.logging.v2.DeleteLinkRequestOrBuilder> + getDeleteLinkRequestFieldBuilder() { + if (deleteLinkRequestBuilder_ == null) { + if (!(requestCase_ == 5)) { + request_ = com.google.logging.v2.DeleteLinkRequest.getDefaultInstance(); + } + deleteLinkRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.DeleteLinkRequest, + com.google.logging.v2.DeleteLinkRequest.Builder, + com.google.logging.v2.DeleteLinkRequestOrBuilder>( + (com.google.logging.v2.DeleteLinkRequest) request_, + getParentForChildren(), + isClean()); + request_ = null; + } + requestCase_ = 5; + onChanged(); + return deleteLinkRequestBuilder_; + } + + @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.LinkMetadata) + } + + // @@protoc_insertion_point(class_scope:google.logging.v2.LinkMetadata) + private static final com.google.logging.v2.LinkMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.logging.v2.LinkMetadata(); + } + + public static com.google.logging.v2.LinkMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LinkMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.LinkMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkMetadataOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkMetadataOrBuilder.java new file mode 100644 index 000000000..1db4db75f --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkMetadataOrBuilder.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/logging_config.proto + +package com.google.logging.v2; + +public interface LinkMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.logging.v2.LinkMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * The start time of an operation.
            +   * 
            + * + * .google.protobuf.Timestamp start_time = 1; + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * + * + *
            +   * The start time of an operation.
            +   * 
            + * + * .google.protobuf.Timestamp start_time = 1; + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
            +   * The start time of an operation.
            +   * 
            + * + * .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(); + + /** + * + * + *
            +   * CreateLink RPC request.
            +   * 
            + * + * .google.logging.v2.CreateLinkRequest create_link_request = 4; + * + * @return Whether the createLinkRequest field is set. + */ + boolean hasCreateLinkRequest(); + /** + * + * + *
            +   * CreateLink RPC request.
            +   * 
            + * + * .google.logging.v2.CreateLinkRequest create_link_request = 4; + * + * @return The createLinkRequest. + */ + com.google.logging.v2.CreateLinkRequest getCreateLinkRequest(); + /** + * + * + *
            +   * CreateLink RPC request.
            +   * 
            + * + * .google.logging.v2.CreateLinkRequest create_link_request = 4; + */ + com.google.logging.v2.CreateLinkRequestOrBuilder getCreateLinkRequestOrBuilder(); + + /** + * + * + *
            +   * DeleteLink RPC request.
            +   * 
            + * + * .google.logging.v2.DeleteLinkRequest delete_link_request = 5; + * + * @return Whether the deleteLinkRequest field is set. + */ + boolean hasDeleteLinkRequest(); + /** + * + * + *
            +   * DeleteLink RPC request.
            +   * 
            + * + * .google.logging.v2.DeleteLinkRequest delete_link_request = 5; + * + * @return The deleteLinkRequest. + */ + com.google.logging.v2.DeleteLinkRequest getDeleteLinkRequest(); + /** + * + * + *
            +   * DeleteLink RPC request.
            +   * 
            + * + * .google.logging.v2.DeleteLinkRequest delete_link_request = 5; + */ + com.google.logging.v2.DeleteLinkRequestOrBuilder getDeleteLinkRequestOrBuilder(); + + public com.google.logging.v2.LinkMetadata.RequestCase getRequestCase(); +} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkName.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkName.java new file mode 100644 index 000000000..9078b8556 --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkName.java @@ -0,0 +1,643 @@ +/* + * 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. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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 LinkName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_BUCKET_LINK = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/buckets/{bucket}/links/{link}"); + private static final PathTemplate ORGANIZATION_LOCATION_BUCKET_LINK = + PathTemplate.createWithoutUrlEncoding( + "organizations/{organization}/locations/{location}/buckets/{bucket}/links/{link}"); + private static final PathTemplate FOLDER_LOCATION_BUCKET_LINK = + PathTemplate.createWithoutUrlEncoding( + "folders/{folder}/locations/{location}/buckets/{bucket}/links/{link}"); + private static final PathTemplate BILLING_ACCOUNT_LOCATION_BUCKET_LINK = + PathTemplate.createWithoutUrlEncoding( + "billingAccounts/{billing_account}/locations/{location}/buckets/{bucket}/links/{link}"); + private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + private final String project; + private final String location; + private final String bucket; + private final String link; + private final String organization; + private final String folder; + private final String billingAccount; + + @Deprecated + protected LinkName() { + project = null; + location = null; + bucket = null; + link = null; + organization = null; + folder = null; + billingAccount = null; + } + + private LinkName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + bucket = Preconditions.checkNotNull(builder.getBucket()); + link = Preconditions.checkNotNull(builder.getLink()); + organization = null; + folder = null; + billingAccount = null; + pathTemplate = PROJECT_LOCATION_BUCKET_LINK; + } + + private LinkName(OrganizationLocationBucketLinkBuilder builder) { + organization = Preconditions.checkNotNull(builder.getOrganization()); + location = Preconditions.checkNotNull(builder.getLocation()); + bucket = Preconditions.checkNotNull(builder.getBucket()); + link = Preconditions.checkNotNull(builder.getLink()); + project = null; + folder = null; + billingAccount = null; + pathTemplate = ORGANIZATION_LOCATION_BUCKET_LINK; + } + + private LinkName(FolderLocationBucketLinkBuilder builder) { + folder = Preconditions.checkNotNull(builder.getFolder()); + location = Preconditions.checkNotNull(builder.getLocation()); + bucket = Preconditions.checkNotNull(builder.getBucket()); + link = Preconditions.checkNotNull(builder.getLink()); + project = null; + organization = null; + billingAccount = null; + pathTemplate = FOLDER_LOCATION_BUCKET_LINK; + } + + private LinkName(BillingAccountLocationBucketLinkBuilder builder) { + billingAccount = Preconditions.checkNotNull(builder.getBillingAccount()); + location = Preconditions.checkNotNull(builder.getLocation()); + bucket = Preconditions.checkNotNull(builder.getBucket()); + link = Preconditions.checkNotNull(builder.getLink()); + project = null; + organization = null; + folder = null; + pathTemplate = BILLING_ACCOUNT_LOCATION_BUCKET_LINK; + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getBucket() { + return bucket; + } + + public String getLink() { + return link; + } + + 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 newProjectLocationBucketLinkBuilder() { + return new Builder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static OrganizationLocationBucketLinkBuilder newOrganizationLocationBucketLinkBuilder() { + return new OrganizationLocationBucketLinkBuilder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static FolderLocationBucketLinkBuilder newFolderLocationBucketLinkBuilder() { + return new FolderLocationBucketLinkBuilder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static BillingAccountLocationBucketLinkBuilder + newBillingAccountLocationBucketLinkBuilder() { + return new BillingAccountLocationBucketLinkBuilder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static LinkName of(String project, String location, String bucket, String link) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setBucket(bucket) + .setLink(link) + .build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static LinkName ofProjectLocationBucketLinkName( + String project, String location, String bucket, String link) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setBucket(bucket) + .setLink(link) + .build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static LinkName ofOrganizationLocationBucketLinkName( + String organization, String location, String bucket, String link) { + return newOrganizationLocationBucketLinkBuilder() + .setOrganization(organization) + .setLocation(location) + .setBucket(bucket) + .setLink(link) + .build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static LinkName ofFolderLocationBucketLinkName( + String folder, String location, String bucket, String link) { + return newFolderLocationBucketLinkBuilder() + .setFolder(folder) + .setLocation(location) + .setBucket(bucket) + .setLink(link) + .build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static LinkName ofBillingAccountLocationBucketLinkName( + String billingAccount, String location, String bucket, String link) { + return newBillingAccountLocationBucketLinkBuilder() + .setBillingAccount(billingAccount) + .setLocation(location) + .setBucket(bucket) + .setLink(link) + .build(); + } + + public static String format(String project, String location, String bucket, String link) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setBucket(bucket) + .setLink(link) + .build() + .toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatProjectLocationBucketLinkName( + String project, String location, String bucket, String link) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setBucket(bucket) + .setLink(link) + .build() + .toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatOrganizationLocationBucketLinkName( + String organization, String location, String bucket, String link) { + return newOrganizationLocationBucketLinkBuilder() + .setOrganization(organization) + .setLocation(location) + .setBucket(bucket) + .setLink(link) + .build() + .toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatFolderLocationBucketLinkName( + String folder, String location, String bucket, String link) { + return newFolderLocationBucketLinkBuilder() + .setFolder(folder) + .setLocation(location) + .setBucket(bucket) + .setLink(link) + .build() + .toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatBillingAccountLocationBucketLinkName( + String billingAccount, String location, String bucket, String link) { + return newBillingAccountLocationBucketLinkBuilder() + .setBillingAccount(billingAccount) + .setLocation(location) + .setBucket(bucket) + .setLink(link) + .build() + .toString(); + } + + public static LinkName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + if (PROJECT_LOCATION_BUCKET_LINK.matches(formattedString)) { + Map matchMap = PROJECT_LOCATION_BUCKET_LINK.match(formattedString); + return ofProjectLocationBucketLinkName( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("bucket"), + matchMap.get("link")); + } else if (ORGANIZATION_LOCATION_BUCKET_LINK.matches(formattedString)) { + Map matchMap = ORGANIZATION_LOCATION_BUCKET_LINK.match(formattedString); + return ofOrganizationLocationBucketLinkName( + matchMap.get("organization"), + matchMap.get("location"), + matchMap.get("bucket"), + matchMap.get("link")); + } else if (FOLDER_LOCATION_BUCKET_LINK.matches(formattedString)) { + Map matchMap = FOLDER_LOCATION_BUCKET_LINK.match(formattedString); + return ofFolderLocationBucketLinkName( + matchMap.get("folder"), + matchMap.get("location"), + matchMap.get("bucket"), + matchMap.get("link")); + } else if (BILLING_ACCOUNT_LOCATION_BUCKET_LINK.matches(formattedString)) { + Map matchMap = BILLING_ACCOUNT_LOCATION_BUCKET_LINK.match(formattedString); + return ofBillingAccountLocationBucketLinkName( + matchMap.get("billing_account"), + matchMap.get("location"), + matchMap.get("bucket"), + matchMap.get("link")); + } + throw new ValidationException("LinkName.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 (LinkName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_BUCKET_LINK.matches(formattedString) + || ORGANIZATION_LOCATION_BUCKET_LINK.matches(formattedString) + || FOLDER_LOCATION_BUCKET_LINK.matches(formattedString) + || BILLING_ACCOUNT_LOCATION_BUCKET_LINK.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 (location != null) { + fieldMapBuilder.put("location", location); + } + if (bucket != null) { + fieldMapBuilder.put("bucket", bucket); + } + if (link != null) { + fieldMapBuilder.put("link", link); + } + 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()) { + LinkName that = ((LinkName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.bucket, that.bucket) + && Objects.equals(this.link, that.link) + && 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(location); + h *= 1000003; + h ^= Objects.hashCode(bucket); + h *= 1000003; + h ^= Objects.hashCode(link); + h *= 1000003; + h ^= Objects.hashCode(organization); + h *= 1000003; + h ^= Objects.hashCode(folder); + h *= 1000003; + h ^= Objects.hashCode(billingAccount); + return h; + } + + /** Builder for projects/{project}/locations/{location}/buckets/{bucket}/links/{link}. */ + public static class Builder { + private String project; + private String location; + private String bucket; + private String link; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getBucket() { + return bucket; + } + + public String getLink() { + return link; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setBucket(String bucket) { + this.bucket = bucket; + return this; + } + + public Builder setLink(String link) { + this.link = link; + return this; + } + + private Builder(LinkName linkName) { + Preconditions.checkArgument( + Objects.equals(linkName.pathTemplate, PROJECT_LOCATION_BUCKET_LINK), + "toBuilder is only supported when LinkName has the pattern of projects/{project}/locations/{location}/buckets/{bucket}/links/{link}"); + this.project = linkName.project; + this.location = linkName.location; + this.bucket = linkName.bucket; + this.link = linkName.link; + } + + public LinkName build() { + return new LinkName(this); + } + } + + /** + * Builder for organizations/{organization}/locations/{location}/buckets/{bucket}/links/{link}. + */ + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static class OrganizationLocationBucketLinkBuilder { + private String organization; + private String location; + private String bucket; + private String link; + + protected OrganizationLocationBucketLinkBuilder() {} + + public String getOrganization() { + return organization; + } + + public String getLocation() { + return location; + } + + public String getBucket() { + return bucket; + } + + public String getLink() { + return link; + } + + public OrganizationLocationBucketLinkBuilder setOrganization(String organization) { + this.organization = organization; + return this; + } + + public OrganizationLocationBucketLinkBuilder setLocation(String location) { + this.location = location; + return this; + } + + public OrganizationLocationBucketLinkBuilder setBucket(String bucket) { + this.bucket = bucket; + return this; + } + + public OrganizationLocationBucketLinkBuilder setLink(String link) { + this.link = link; + return this; + } + + public LinkName build() { + return new LinkName(this); + } + } + + /** Builder for folders/{folder}/locations/{location}/buckets/{bucket}/links/{link}. */ + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static class FolderLocationBucketLinkBuilder { + private String folder; + private String location; + private String bucket; + private String link; + + protected FolderLocationBucketLinkBuilder() {} + + public String getFolder() { + return folder; + } + + public String getLocation() { + return location; + } + + public String getBucket() { + return bucket; + } + + public String getLink() { + return link; + } + + public FolderLocationBucketLinkBuilder setFolder(String folder) { + this.folder = folder; + return this; + } + + public FolderLocationBucketLinkBuilder setLocation(String location) { + this.location = location; + return this; + } + + public FolderLocationBucketLinkBuilder setBucket(String bucket) { + this.bucket = bucket; + return this; + } + + public FolderLocationBucketLinkBuilder setLink(String link) { + this.link = link; + return this; + } + + public LinkName build() { + return new LinkName(this); + } + } + + /** + * Builder for + * billingAccounts/{billing_account}/locations/{location}/buckets/{bucket}/links/{link}. + */ + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static class BillingAccountLocationBucketLinkBuilder { + private String billingAccount; + private String location; + private String bucket; + private String link; + + protected BillingAccountLocationBucketLinkBuilder() {} + + public String getBillingAccount() { + return billingAccount; + } + + public String getLocation() { + return location; + } + + public String getBucket() { + return bucket; + } + + public String getLink() { + return link; + } + + public BillingAccountLocationBucketLinkBuilder setBillingAccount(String billingAccount) { + this.billingAccount = billingAccount; + return this; + } + + public BillingAccountLocationBucketLinkBuilder setLocation(String location) { + this.location = location; + return this; + } + + public BillingAccountLocationBucketLinkBuilder setBucket(String bucket) { + this.bucket = bucket; + return this; + } + + public BillingAccountLocationBucketLinkBuilder setLink(String link) { + this.link = link; + return this; + } + + public LinkName build() { + return new LinkName(this); + } + } +} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkOrBuilder.java new file mode 100644 index 000000000..0d3b1d527 --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LinkOrBuilder.java @@ -0,0 +1,204 @@ +/* + * 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 LinkOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.logging.v2.Link) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * The resource name of the link. The name can have up to 100 characters.
            +   * A valid link id (at the end of the link name) must only have alphanumeric
            +   * characters and underscores within it.
            +   *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +   *     "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +   *     "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +   *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +   * For example:
            +   *   `projects/my-project/locations/global/buckets/my-bucket/links/my_link
            +   * 
            + * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
            +   * The resource name of the link. The name can have up to 100 characters.
            +   * A valid link id (at the end of the link name) must only have alphanumeric
            +   * characters and underscores within it.
            +   *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +   *     "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +   *     "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +   *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]"
            +   * For example:
            +   *   `projects/my-project/locations/global/buckets/my-bucket/links/my_link
            +   * 
            + * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +   * Describes this link.
            +   * The maximum length of the description is 8000 characters.
            +   * 
            + * + * string description = 2; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
            +   * Describes this link.
            +   * The maximum length of the description is 8000 characters.
            +   * 
            + * + * string description = 2; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
            +   * Output only. The creation timestamp of the link.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
            +   * Output only. The creation timestamp of the link.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
            +   * Output only. The creation timestamp of the link.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. The resource lifecycle state.
            +   * 
            + * + * + * .google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for lifecycleState. + */ + int getLifecycleStateValue(); + /** + * + * + *
            +   * Output only. The resource lifecycle state.
            +   * 
            + * + * + * .google.logging.v2.LifecycleState lifecycle_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lifecycleState. + */ + com.google.logging.v2.LifecycleState getLifecycleState(); + + /** + * + * + *
            +   * The information of a BigQuery Dataset. When a link is created, a BigQuery
            +   * dataset is created along with it, in the same project as the LogBucket it's
            +   * linked to. This dataset will also have BigQuery Views corresponding to the
            +   * LogViews in the bucket.
            +   * 
            + * + * .google.logging.v2.BigQueryDataset bigquery_dataset = 5; + * + * @return Whether the bigqueryDataset field is set. + */ + boolean hasBigqueryDataset(); + /** + * + * + *
            +   * The information of a BigQuery Dataset. When a link is created, a BigQuery
            +   * dataset is created along with it, in the same project as the LogBucket it's
            +   * linked to. This dataset will also have BigQuery Views corresponding to the
            +   * LogViews in the bucket.
            +   * 
            + * + * .google.logging.v2.BigQueryDataset bigquery_dataset = 5; + * + * @return The bigqueryDataset. + */ + com.google.logging.v2.BigQueryDataset getBigqueryDataset(); + /** + * + * + *
            +   * The information of a BigQuery Dataset. When a link is created, a BigQuery
            +   * dataset is created along with it, in the same project as the LogBucket it's
            +   * linked to. This dataset will also have BigQuery Views corresponding to the
            +   * LogViews in the bucket.
            +   * 
            + * + * .google.logging.v2.BigQueryDataset bigquery_dataset = 5; + */ + com.google.logging.v2.BigQueryDatasetOrBuilder getBigqueryDatasetOrBuilder(); +} diff --git a/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 index 5428a76ae..a528d2a23 100644 --- a/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 @@ -145,10 +145,10 @@ public 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]; @@ -171,10 +171,10 @@ 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]; @@ -200,9 +200,9 @@ public 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]; @@ -756,10 +756,10 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
            -     * 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]; @@ -781,10 +781,10 @@ 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]; @@ -806,10 +806,10 @@ 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]; @@ -830,10 +830,10 @@ public Builder setPageToken(java.lang.String value) { * * *
            -     * 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]; @@ -850,10 +850,10 @@ public Builder clearPageToken() { * * *
            -     * 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]; @@ -877,9 +877,9 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * *
            -     * 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]; @@ -894,9 +894,9 @@ public int getPageSize() { * * *
            -     * 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]; @@ -915,9 +915,9 @@ public Builder setPageSize(int value) { * * *
            -     * 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]; diff --git a/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 index afdd84396..0f895cf02 100644 --- a/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 @@ -70,10 +70,10 @@ public interface ListBucketsRequestOrBuilder * * *
            -   * 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]; @@ -85,10 +85,10 @@ public interface ListBucketsRequestOrBuilder * * *
            -   * 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]; @@ -101,9 +101,9 @@ public interface ListBucketsRequestOrBuilder * * *
            -   * 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]; diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksRequest.java new file mode 100644 index 000000000..f10fd7c43 --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksRequest.java @@ -0,0 +1,958 @@ +/* + * 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 ListLinks.
            + * 
            + * + * Protobuf type {@code google.logging.v2.ListLinksRequest} + */ +public final class ListLinksRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.logging.v2.ListLinksRequest) + ListLinksRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListLinksRequest.newBuilder() to construct. + private ListLinksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListLinksRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListLinksRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListLinksRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListLinksRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.logging.v2.ListLinksRequest.class, + com.google.logging.v2.ListLinksRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
            +   * Required. The parent resource whose links are to be listed:
            +   *   "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/"
            +   *   "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/"
            +   *   "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/"
            +   *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + /** + * + * + *
            +   * Required. The parent resource whose links are to be listed:
            +   *   "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/"
            +   *   "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/"
            +   *   "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/"
            +   *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/
            +   * 
            + * + * + * 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() { + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
            +   * Optional. If present, then retrieve the next batch of results from the
            +   * preceding call to this method. `pageToken` must be the value of
            +   * `nextPageToken` from the previous response.
            +   * 
            + * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + 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.
            +   * 
            + * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + 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); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_ = 0; + /** + * + * + *
            +   * Optional. The maximum number of results to return from this request.
            +   * 
            + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + 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(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + size += getUnknownFields().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.ListLinksRequest)) { + return super.equals(obj); + } + com.google.logging.v2.ListLinksRequest other = (com.google.logging.v2.ListLinksRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.logging.v2.ListLinksRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.ListLinksRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.ListLinksRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.ListLinksRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.ListLinksRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.ListLinksRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.ListLinksRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.logging.v2.ListLinksRequest 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.ListLinksRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.logging.v2.ListLinksRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.logging.v2.ListLinksRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.logging.v2.ListLinksRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.logging.v2.ListLinksRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
            +   * The parameters to ListLinks.
            +   * 
            + * + * Protobuf type {@code google.logging.v2.ListLinksRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.logging.v2.ListLinksRequest) + com.google.logging.v2.ListLinksRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListLinksRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListLinksRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.logging.v2.ListLinksRequest.class, + com.google.logging.v2.ListLinksRequest.Builder.class); + } + + // Construct using com.google.logging.v2.ListLinksRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageToken_ = ""; + pageSize_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListLinksRequest_descriptor; + } + + @java.lang.Override + public com.google.logging.v2.ListLinksRequest getDefaultInstanceForType() { + return com.google.logging.v2.ListLinksRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.logging.v2.ListLinksRequest build() { + com.google.logging.v2.ListLinksRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.logging.v2.ListLinksRequest buildPartial() { + com.google.logging.v2.ListLinksRequest result = + new com.google.logging.v2.ListLinksRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.logging.v2.ListLinksRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + } + + @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.ListLinksRequest) { + return mergeFrom((com.google.logging.v2.ListLinksRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.logging.v2.ListLinksRequest other) { + if (other == com.google.logging.v2.ListLinksRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
            +     * Required. The parent resource whose links are to be listed:
            +     *   "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/"
            +     *   "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/"
            +     *   "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/"
            +     *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/
            +     * 
            + * + * + * 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; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
            +     * Required. The parent resource whose links are to be listed:
            +     *   "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/"
            +     *   "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/"
            +     *   "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/"
            +     *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + 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); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
            +     * Required. The parent resource whose links are to be listed:
            +     *   "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/"
            +     *   "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/"
            +     *   "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/"
            +     *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
            +     * Required. The parent resource whose links are to be listed:
            +     *   "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/"
            +     *   "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/"
            +     *   "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/"
            +     *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
            +     * Required. The parent resource whose links are to be listed:
            +     *   "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/"
            +     *   "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/"
            +     *   "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/"
            +     *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + 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.
            +     * 
            + * + * 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; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
            +     * 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.
            +     * 
            + * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + 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); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
            +     * 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.
            +     * 
            + * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
            +     * Optional. If present, then retrieve the next batch of results from the
            +     * preceding call to this method. `pageToken` must be the value of
            +     * `nextPageToken` from the previous response.
            +     * 
            + * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
            +     * Optional. If present, then retrieve the next batch of results from the
            +     * preceding call to this method. `pageToken` must be the value of
            +     * `nextPageToken` from the previous response.
            +     * 
            + * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
            +     * Optional. The maximum number of results to return from this request.
            +     * 
            + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
            +     * Optional. The maximum number of results to return from this request.
            +     * 
            + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
            +     * Optional. The maximum number of results to return from this request.
            +     * 
            + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000004); + pageSize_ = 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.ListLinksRequest) + } + + // @@protoc_insertion_point(class_scope:google.logging.v2.ListLinksRequest) + private static final com.google.logging.v2.ListLinksRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.logging.v2.ListLinksRequest(); + } + + public static com.google.logging.v2.ListLinksRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLinksRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.ListLinksRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksRequestOrBuilder.java new file mode 100644 index 000000000..e3437c0ac --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksRequestOrBuilder.java @@ -0,0 +1,104 @@ +/* + * 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 ListLinksRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.logging.v2.ListLinksRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The parent resource whose links are to be listed:
            +   *   "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/"
            +   *   "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/"
            +   *   "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/"
            +   *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
            +   * Required. The parent resource whose links are to be listed:
            +   *   "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/"
            +   *   "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/"
            +   *   "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/"
            +   *   "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + 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.
            +   * 
            + * + * 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.
            +   * 
            + * + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
            +   * Optional. The maximum number of results to return from this request.
            +   * 
            + * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); +} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksResponse.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksResponse.java new file mode 100644 index 000000000..b1a1b1fe2 --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksResponse.java @@ -0,0 +1,1124 @@ +/* + * 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 ListLinks.
            + * 
            + * + * Protobuf type {@code google.logging.v2.ListLinksResponse} + */ +public final class ListLinksResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.logging.v2.ListLinksResponse) + ListLinksResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListLinksResponse.newBuilder() to construct. + private ListLinksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListLinksResponse() { + links_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListLinksResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListLinksResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListLinksResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.logging.v2.ListLinksResponse.class, + com.google.logging.v2.ListLinksResponse.Builder.class); + } + + public static final int LINKS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List links_; + /** + * + * + *
            +   * A list of links.
            +   * 
            + * + * repeated .google.logging.v2.Link links = 1; + */ + @java.lang.Override + public java.util.List getLinksList() { + return links_; + } + /** + * + * + *
            +   * A list of links.
            +   * 
            + * + * repeated .google.logging.v2.Link links = 1; + */ + @java.lang.Override + public java.util.List getLinksOrBuilderList() { + return links_; + } + /** + * + * + *
            +   * A list of links.
            +   * 
            + * + * repeated .google.logging.v2.Link links = 1; + */ + @java.lang.Override + public int getLinksCount() { + return links_.size(); + } + /** + * + * + *
            +   * A list of links.
            +   * 
            + * + * repeated .google.logging.v2.Link links = 1; + */ + @java.lang.Override + public com.google.logging.v2.Link getLinks(int index) { + return links_.get(index); + } + /** + * + * + *
            +   * A list of links.
            +   * 
            + * + * repeated .google.logging.v2.Link links = 1; + */ + @java.lang.Override + public com.google.logging.v2.LinkOrBuilder getLinksOrBuilder(int index) { + return links_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
            +   * If there might be more results than those appearing in this response, then
            +   * `nextPageToken` is included. To get the next set of results, call the same
            +   * method again using the value of `nextPageToken` as `pageToken`.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
            +   * If there might be more results than those appearing in this response, then
            +   * `nextPageToken` is included. To get the next set of results, call the same
            +   * method again using the value of `nextPageToken` as `pageToken`.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + 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); + nextPageToken_ = 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 { + for (int i = 0; i < links_.size(); i++) { + output.writeMessage(1, links_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < links_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, links_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().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.ListLinksResponse)) { + return super.equals(obj); + } + com.google.logging.v2.ListLinksResponse other = (com.google.logging.v2.ListLinksResponse) obj; + + if (!getLinksList().equals(other.getLinksList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getLinksCount() > 0) { + hash = (37 * hash) + LINKS_FIELD_NUMBER; + hash = (53 * hash) + getLinksList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.logging.v2.ListLinksResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.ListLinksResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.ListLinksResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.ListLinksResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.ListLinksResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.ListLinksResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.ListLinksResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.logging.v2.ListLinksResponse 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.ListLinksResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.logging.v2.ListLinksResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.logging.v2.ListLinksResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.logging.v2.ListLinksResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.logging.v2.ListLinksResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
            +   * The response from ListLinks.
            +   * 
            + * + * Protobuf type {@code google.logging.v2.ListLinksResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.logging.v2.ListLinksResponse) + com.google.logging.v2.ListLinksResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListLinksResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListLinksResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.logging.v2.ListLinksResponse.class, + com.google.logging.v2.ListLinksResponse.Builder.class); + } + + // Construct using com.google.logging.v2.ListLinksResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (linksBuilder_ == null) { + links_ = java.util.Collections.emptyList(); + } else { + links_ = null; + linksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_ListLinksResponse_descriptor; + } + + @java.lang.Override + public com.google.logging.v2.ListLinksResponse getDefaultInstanceForType() { + return com.google.logging.v2.ListLinksResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.logging.v2.ListLinksResponse build() { + com.google.logging.v2.ListLinksResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.logging.v2.ListLinksResponse buildPartial() { + com.google.logging.v2.ListLinksResponse result = + new com.google.logging.v2.ListLinksResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.logging.v2.ListLinksResponse result) { + if (linksBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + links_ = java.util.Collections.unmodifiableList(links_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.links_ = links_; + } else { + result.links_ = linksBuilder_.build(); + } + } + + private void buildPartial0(com.google.logging.v2.ListLinksResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @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.ListLinksResponse) { + return mergeFrom((com.google.logging.v2.ListLinksResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.logging.v2.ListLinksResponse other) { + if (other == com.google.logging.v2.ListLinksResponse.getDefaultInstance()) return this; + if (linksBuilder_ == null) { + if (!other.links_.isEmpty()) { + if (links_.isEmpty()) { + links_ = other.links_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLinksIsMutable(); + links_.addAll(other.links_); + } + onChanged(); + } + } else { + if (!other.links_.isEmpty()) { + if (linksBuilder_.isEmpty()) { + linksBuilder_.dispose(); + linksBuilder_ = null; + links_ = other.links_; + bitField0_ = (bitField0_ & ~0x00000001); + linksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLinksFieldBuilder() + : null; + } else { + linksBuilder_.addAllMessages(other.links_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.logging.v2.Link m = + input.readMessage(com.google.logging.v2.Link.parser(), extensionRegistry); + if (linksBuilder_ == null) { + ensureLinksIsMutable(); + links_.add(m); + } else { + linksBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List links_ = java.util.Collections.emptyList(); + + private void ensureLinksIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + links_ = new java.util.ArrayList(links_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.logging.v2.Link, + com.google.logging.v2.Link.Builder, + com.google.logging.v2.LinkOrBuilder> + linksBuilder_; + + /** + * + * + *
            +     * A list of links.
            +     * 
            + * + * repeated .google.logging.v2.Link links = 1; + */ + public java.util.List getLinksList() { + if (linksBuilder_ == null) { + return java.util.Collections.unmodifiableList(links_); + } else { + return linksBuilder_.getMessageList(); + } + } + /** + * + * + *
            +     * A list of links.
            +     * 
            + * + * repeated .google.logging.v2.Link links = 1; + */ + public int getLinksCount() { + if (linksBuilder_ == null) { + return links_.size(); + } else { + return linksBuilder_.getCount(); + } + } + /** + * + * + *
            +     * A list of links.
            +     * 
            + * + * repeated .google.logging.v2.Link links = 1; + */ + public com.google.logging.v2.Link getLinks(int index) { + if (linksBuilder_ == null) { + return links_.get(index); + } else { + return linksBuilder_.getMessage(index); + } + } + /** + * + * + *
            +     * A list of links.
            +     * 
            + * + * repeated .google.logging.v2.Link links = 1; + */ + public Builder setLinks(int index, com.google.logging.v2.Link value) { + if (linksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLinksIsMutable(); + links_.set(index, value); + onChanged(); + } else { + linksBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
            +     * A list of links.
            +     * 
            + * + * repeated .google.logging.v2.Link links = 1; + */ + public Builder setLinks(int index, com.google.logging.v2.Link.Builder builderForValue) { + if (linksBuilder_ == null) { + ensureLinksIsMutable(); + links_.set(index, builderForValue.build()); + onChanged(); + } else { + linksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
            +     * A list of links.
            +     * 
            + * + * repeated .google.logging.v2.Link links = 1; + */ + public Builder addLinks(com.google.logging.v2.Link value) { + if (linksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLinksIsMutable(); + links_.add(value); + onChanged(); + } else { + linksBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
            +     * A list of links.
            +     * 
            + * + * repeated .google.logging.v2.Link links = 1; + */ + public Builder addLinks(int index, com.google.logging.v2.Link value) { + if (linksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLinksIsMutable(); + links_.add(index, value); + onChanged(); + } else { + linksBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
            +     * A list of links.
            +     * 
            + * + * repeated .google.logging.v2.Link links = 1; + */ + public Builder addLinks(com.google.logging.v2.Link.Builder builderForValue) { + if (linksBuilder_ == null) { + ensureLinksIsMutable(); + links_.add(builderForValue.build()); + onChanged(); + } else { + linksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
            +     * A list of links.
            +     * 
            + * + * repeated .google.logging.v2.Link links = 1; + */ + public Builder addLinks(int index, com.google.logging.v2.Link.Builder builderForValue) { + if (linksBuilder_ == null) { + ensureLinksIsMutable(); + links_.add(index, builderForValue.build()); + onChanged(); + } else { + linksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
            +     * A list of links.
            +     * 
            + * + * repeated .google.logging.v2.Link links = 1; + */ + public Builder addAllLinks(java.lang.Iterable values) { + if (linksBuilder_ == null) { + ensureLinksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, links_); + onChanged(); + } else { + linksBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
            +     * A list of links.
            +     * 
            + * + * repeated .google.logging.v2.Link links = 1; + */ + public Builder clearLinks() { + if (linksBuilder_ == null) { + links_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + linksBuilder_.clear(); + } + return this; + } + /** + * + * + *
            +     * A list of links.
            +     * 
            + * + * repeated .google.logging.v2.Link links = 1; + */ + public Builder removeLinks(int index) { + if (linksBuilder_ == null) { + ensureLinksIsMutable(); + links_.remove(index); + onChanged(); + } else { + linksBuilder_.remove(index); + } + return this; + } + /** + * + * + *
            +     * A list of links.
            +     * 
            + * + * repeated .google.logging.v2.Link links = 1; + */ + public com.google.logging.v2.Link.Builder getLinksBuilder(int index) { + return getLinksFieldBuilder().getBuilder(index); + } + /** + * + * + *
            +     * A list of links.
            +     * 
            + * + * repeated .google.logging.v2.Link links = 1; + */ + public com.google.logging.v2.LinkOrBuilder getLinksOrBuilder(int index) { + if (linksBuilder_ == null) { + return links_.get(index); + } else { + return linksBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
            +     * A list of links.
            +     * 
            + * + * repeated .google.logging.v2.Link links = 1; + */ + public java.util.List getLinksOrBuilderList() { + if (linksBuilder_ != null) { + return linksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(links_); + } + } + /** + * + * + *
            +     * A list of links.
            +     * 
            + * + * repeated .google.logging.v2.Link links = 1; + */ + public com.google.logging.v2.Link.Builder addLinksBuilder() { + return getLinksFieldBuilder().addBuilder(com.google.logging.v2.Link.getDefaultInstance()); + } + /** + * + * + *
            +     * A list of links.
            +     * 
            + * + * repeated .google.logging.v2.Link links = 1; + */ + public com.google.logging.v2.Link.Builder addLinksBuilder(int index) { + return getLinksFieldBuilder() + .addBuilder(index, com.google.logging.v2.Link.getDefaultInstance()); + } + /** + * + * + *
            +     * A list of links.
            +     * 
            + * + * repeated .google.logging.v2.Link links = 1; + */ + public java.util.List getLinksBuilderList() { + return getLinksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.logging.v2.Link, + com.google.logging.v2.Link.Builder, + com.google.logging.v2.LinkOrBuilder> + getLinksFieldBuilder() { + if (linksBuilder_ == null) { + linksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.logging.v2.Link, + com.google.logging.v2.Link.Builder, + com.google.logging.v2.LinkOrBuilder>( + links_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + links_ = null; + } + return linksBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
            +     * If there might be more results than those appearing in this response, then
            +     * `nextPageToken` is included. To get the next set of results, call the same
            +     * method again using the value of `nextPageToken` as `pageToken`.
            +     * 
            + * + * 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; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
            +     * If there might be more results than those appearing in this response, then
            +     * `nextPageToken` is included. To get the next set of results, call the same
            +     * method again using the value of `nextPageToken` as `pageToken`.
            +     * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + 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); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
            +     * If there might be more results than those appearing in this response, then
            +     * `nextPageToken` is included. To get the next set of results, call the same
            +     * method again using the value of `nextPageToken` as `pageToken`.
            +     * 
            + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
            +     * If there might be more results than those appearing in this response, then
            +     * `nextPageToken` is included. To get the next set of results, call the same
            +     * method again using the value of `nextPageToken` as `pageToken`.
            +     * 
            + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
            +     * If there might be more results than those appearing in this response, then
            +     * `nextPageToken` is included. To get the next set of results, call the same
            +     * method again using the value of `nextPageToken` as `pageToken`.
            +     * 
            + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + 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.ListLinksResponse) + } + + // @@protoc_insertion_point(class_scope:google.logging.v2.ListLinksResponse) + private static final com.google.logging.v2.ListLinksResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.logging.v2.ListLinksResponse(); + } + + public static com.google.logging.v2.ListLinksResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLinksResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.ListLinksResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksResponseOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksResponseOrBuilder.java new file mode 100644 index 000000000..c3234f521 --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLinksResponseOrBuilder.java @@ -0,0 +1,105 @@ +/* + * 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 ListLinksResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.logging.v2.ListLinksResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * A list of links.
            +   * 
            + * + * repeated .google.logging.v2.Link links = 1; + */ + java.util.List getLinksList(); + /** + * + * + *
            +   * A list of links.
            +   * 
            + * + * repeated .google.logging.v2.Link links = 1; + */ + com.google.logging.v2.Link getLinks(int index); + /** + * + * + *
            +   * A list of links.
            +   * 
            + * + * repeated .google.logging.v2.Link links = 1; + */ + int getLinksCount(); + /** + * + * + *
            +   * A list of links.
            +   * 
            + * + * repeated .google.logging.v2.Link links = 1; + */ + java.util.List getLinksOrBuilderList(); + /** + * + * + *
            +   * A list of links.
            +   * 
            + * + * repeated .google.logging.v2.Link links = 1; + */ + com.google.logging.v2.LinkOrBuilder getLinksOrBuilder(int index); + + /** + * + * + *
            +   * If there might be more results than those appearing in this response, then
            +   * `nextPageToken` is included. To get the next set of results, call the same
            +   * method again using the value of `nextPageToken` as `pageToken`.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
            +   * If there might be more results than those appearing in this response, then
            +   * `nextPageToken` is included. To get the next set of results, call the same
            +   * method again using the value of `nextPageToken` as `pageToken`.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/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 index 76c517eb0..1e6f84cff 100644 --- a/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 @@ -90,6 +90,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` * * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` * Projects listed in the `project_ids` field are added to this list. + * A maximum of 100 resources may be specified in a single request. *
            * * @@ -117,6 +118,7 @@ public com.google.protobuf.ProtocolStringList getResourceNamesList() { * * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` * * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` * Projects listed in the `project_ids` field are added to this list. + * A maximum of 100 resources may be specified in a single request. *
            * * @@ -144,6 +146,7 @@ public int getResourceNamesCount() { * * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` * * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` * Projects listed in the `project_ids` field are added to this list. + * A maximum of 100 resources may be specified in a single request. *
            * * @@ -172,6 +175,7 @@ public java.lang.String getResourceNames(int index) { * * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` * * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` * Projects listed in the `project_ids` field are added to this list. + * A maximum of 100 resources may be specified in a single request. *
            * * @@ -193,13 +197,11 @@ public 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).
            -   * Only log entries that match the filter are returned.  An empty filter
            -   * matches all log entries in the resources listed in `resource_names`.
            +   * Optional. Only log entries that match the filter are returned.  An empty
            +   * filter matches all log entries in the resources listed in `resource_names`.
                * Referencing a parent resource that is not listed in `resource_names` will
            -   * cause the filter to return no results. The maximum length of the filter is
            -   * 20000 characters.
            +   * cause the filter to return no results. The maximum length of a filter is
            +   * 20,000 characters.
                * 
            * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -222,13 +224,11 @@ 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).
            -   * Only log entries that match the filter are returned.  An empty filter
            -   * matches all log entries in the resources listed in `resource_names`.
            +   * Optional. Only log entries that match the filter are returned.  An empty
            +   * filter matches all log entries in the resources listed in `resource_names`.
                * Referencing a parent resource that is not listed in `resource_names` will
            -   * cause the filter to return no results. The maximum length of the filter is
            -   * 20000 characters.
            +   * cause the filter to return no results. The maximum length of a filter is
            +   * 20,000 characters.
                * 
            * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -315,10 +315,10 @@ public 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]; @@ -867,6 +867,7 @@ private void ensureResourceNamesIsMutable() { * * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` * * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` * Projects listed in the `project_ids` field are added to this list. + * A maximum of 100 resources may be specified in a single request. *
            * * @@ -894,6 +895,7 @@ public com.google.protobuf.ProtocolStringList getResourceNamesList() { * * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` * * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` * Projects listed in the `project_ids` field are added to this list. + * A maximum of 100 resources may be specified in a single request. *
            * * @@ -921,6 +923,7 @@ public int getResourceNamesCount() { * * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` * * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` * Projects listed in the `project_ids` field are added to this list. + * A maximum of 100 resources may be specified in a single request. *
            * * @@ -949,6 +952,7 @@ public java.lang.String getResourceNames(int index) { * * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` * * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` * Projects listed in the `project_ids` field are added to this list. + * A maximum of 100 resources may be specified in a single request. *
            * * @@ -977,6 +981,7 @@ public com.google.protobuf.ByteString getResourceNamesBytes(int index) { * * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` * * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` * Projects listed in the `project_ids` field are added to this list. + * A maximum of 100 resources may be specified in a single request. *
            * * @@ -1012,6 +1017,7 @@ public Builder setResourceNames(int index, java.lang.String value) { * * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` * * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` * Projects listed in the `project_ids` field are added to this list. + * A maximum of 100 resources may be specified in a single request. *
            * * @@ -1046,6 +1052,7 @@ public Builder addResourceNames(java.lang.String value) { * * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` * * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` * Projects listed in the `project_ids` field are added to this list. + * A maximum of 100 resources may be specified in a single request. *
            * * @@ -1077,6 +1084,7 @@ public Builder addAllResourceNames(java.lang.Iterable values) * * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` * * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` * Projects listed in the `project_ids` field are added to this list. + * A maximum of 100 resources may be specified in a single request. *
            * * @@ -1107,6 +1115,7 @@ public Builder clearResourceNames() { * * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` * * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` * Projects listed in the `project_ids` field are added to this list. + * A maximum of 100 resources may be specified in a single request. *
            * * @@ -1132,13 +1141,11 @@ public Builder addResourceNamesBytes(com.google.protobuf.ByteString value) { * * *
            -     * 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`.
            +     * Optional. Only log entries that match the filter are returned.  An empty
            +     * filter matches all log entries in the resources listed in `resource_names`.
                  * Referencing a parent resource that is not listed in `resource_names` will
            -     * cause the filter to return no results. The maximum length of the filter is
            -     * 20000 characters.
            +     * cause the filter to return no results. The maximum length of a filter is
            +     * 20,000 characters.
                  * 
            * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1160,13 +1167,11 @@ 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).
            -     * Only log entries that match the filter are returned.  An empty filter
            -     * matches all log entries in the resources listed in `resource_names`.
            +     * Optional. Only log entries that match the filter are returned.  An empty
            +     * filter matches all log entries in the resources listed in `resource_names`.
                  * Referencing a parent resource that is not listed in `resource_names` will
            -     * cause the filter to return no results. The maximum length of the filter is
            -     * 20000 characters.
            +     * cause the filter to return no results. The maximum length of a filter is
            +     * 20,000 characters.
                  * 
            * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1188,13 +1193,11 @@ 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).
            -     * Only log entries that match the filter are returned.  An empty filter
            -     * matches all log entries in the resources listed in `resource_names`.
            +     * Optional. Only log entries that match the filter are returned.  An empty
            +     * filter matches all log entries in the resources listed in `resource_names`.
                  * Referencing a parent resource that is not listed in `resource_names` will
            -     * cause the filter to return no results. The maximum length of the filter is
            -     * 20000 characters.
            +     * cause the filter to return no results. The maximum length of a filter is
            +     * 20,000 characters.
                  * 
            * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1215,13 +1218,11 @@ public Builder setFilter(java.lang.String value) { * * *
            -     * 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`.
            +     * Optional. Only log entries that match the filter are returned.  An empty
            +     * filter matches all log entries in the resources listed in `resource_names`.
                  * Referencing a parent resource that is not listed in `resource_names` will
            -     * cause the filter to return no results. The maximum length of the filter is
            -     * 20000 characters.
            +     * cause the filter to return no results. The maximum length of a filter is
            +     * 20,000 characters.
                  * 
            * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1238,13 +1239,11 @@ public Builder clearFilter() { * * *
            -     * 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`.
            +     * Optional. Only log entries that match the filter are returned.  An empty
            +     * filter matches all log entries in the resources listed in `resource_names`.
                  * Referencing a parent resource that is not listed in `resource_names` will
            -     * cause the filter to return no results. The maximum length of the filter is
            -     * 20000 characters.
            +     * cause the filter to return no results. The maximum length of a filter is
            +     * 20,000 characters.
                  * 
            * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1399,10 +1398,10 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { * * *
            -     * 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]; @@ -1417,10 +1416,10 @@ public int getPageSize() { * * *
            -     * 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]; @@ -1439,10 +1438,10 @@ public Builder setPageSize(int value) { * * *
            -     * 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]; diff --git a/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 index 171732b5d..292d65d4d 100644 --- a/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 @@ -39,6 +39,7 @@ public interface ListLogEntriesRequestOrBuilder * * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` * * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` * Projects listed in the `project_ids` field are added to this list. + * A maximum of 100 resources may be specified in a single request. *
            * * @@ -64,6 +65,7 @@ public interface ListLogEntriesRequestOrBuilder * * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` * * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` * Projects listed in the `project_ids` field are added to this list. + * A maximum of 100 resources may be specified in a single request. *
            * * @@ -89,6 +91,7 @@ public interface ListLogEntriesRequestOrBuilder * * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` * * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` * Projects listed in the `project_ids` field are added to this list. + * A maximum of 100 resources may be specified in a single request. *
            * * @@ -115,6 +118,7 @@ public interface ListLogEntriesRequestOrBuilder * * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` * * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` * Projects listed in the `project_ids` field are added to this list. + * A maximum of 100 resources may be specified in a single request. *
            * * @@ -130,13 +134,11 @@ public interface ListLogEntriesRequestOrBuilder * * *
            -   * 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`.
            +   * Optional. Only log entries that match the filter are returned.  An empty
            +   * filter matches all log entries in the resources listed in `resource_names`.
                * Referencing a parent resource that is not listed in `resource_names` will
            -   * cause the filter to return no results. The maximum length of the filter is
            -   * 20000 characters.
            +   * cause the filter to return no results. The maximum length of a filter is
            +   * 20,000 characters.
                * 
            * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -148,13 +150,11 @@ public interface ListLogEntriesRequestOrBuilder * * *
            -   * 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`.
            +   * Optional. Only log entries that match the filter are returned.  An empty
            +   * filter matches all log entries in the resources listed in `resource_names`.
                * Referencing a parent resource that is not listed in `resource_names` will
            -   * cause the filter to return no results. The maximum length of the filter is
            -   * 20000 characters.
            +   * cause the filter to return no results. The maximum length of a filter is
            +   * 20,000 characters.
                * 
            * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -202,10 +202,10 @@ public interface ListLogEntriesRequestOrBuilder * * *
            -   * 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]; diff --git a/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 index f4d77419a..4d9a83be6 100644 --- a/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 @@ -39,8 +39,8 @@ private ListLogsRequest(com.google.protobuf.GeneratedMessageV3.Builder builde private ListLogsRequest() { parent_ = ""; - pageToken_ = ""; resourceNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + pageToken_ = ""; } @java.lang.Override @@ -77,7 +77,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
            -   * Required. The resource name that owns the logs:
            +   * Required. The resource name to list logs for:
                * *  `projects/[PROJECT_ID]`
                * *  `organizations/[ORGANIZATION_ID]`
                * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
            @@ -106,7 +106,7 @@ public java.lang.String getParent() {
                *
                *
                * 
            -   * Required. The resource name that owns the logs:
            +   * Required. The resource name to list logs for:
                * *  `projects/[PROJECT_ID]`
                * *  `organizations/[ORGANIZATION_ID]`
                * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
            @@ -132,83 +132,6 @@ public com.google.protobuf.ByteString getParentBytes() {
                 }
               }
             
            -  public static final int PAGE_SIZE_FIELD_NUMBER = 2;
            -  private int pageSize_ = 0;
            -  /**
            -   *
            -   *
            -   * 
            -   * Optional. The maximum number of 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. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - /** - * - * - *
            -   * Optional. If present, then retrieve the next batch of results from the
            -   * preceding call to this method.  `pageToken` must be the value of
            -   * `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.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - 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(); - 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.
            -   * 
            - * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for pageToken. - */ - @java.lang.Override - 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); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - public static final int RESOURCE_NAMES_FIELD_NUMBER = 8; @SuppressWarnings("serial") @@ -217,7 +140,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
            -   * Optional. The resource name that owns the logs:
            +   * Optional. List of resource names to list logs for:
                *  * `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]`
            @@ -227,6 +150,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
                * *  `organizations/[ORGANIZATION_ID]`
                * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
                * *  `folders/[FOLDER_ID]`
            +   * The resource name in the `parent` field is added to this list.
                * 
            * * @@ -242,7 +166,7 @@ public com.google.protobuf.ProtocolStringList getResourceNamesList() { * * *
            -   * Optional. The resource name that owns the logs:
            +   * Optional. List of resource names to list logs for:
                *  * `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]`
            @@ -252,6 +176,7 @@ public com.google.protobuf.ProtocolStringList getResourceNamesList() {
                * *  `organizations/[ORGANIZATION_ID]`
                * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
                * *  `folders/[FOLDER_ID]`
            +   * The resource name in the `parent` field is added to this list.
                * 
            * * @@ -267,7 +192,7 @@ public int getResourceNamesCount() { * * *
            -   * Optional. The resource name that owns the logs:
            +   * Optional. List of resource names to list logs for:
                *  * `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]`
            @@ -277,6 +202,7 @@ public int getResourceNamesCount() {
                * *  `organizations/[ORGANIZATION_ID]`
                * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
                * *  `folders/[FOLDER_ID]`
            +   * The resource name in the `parent` field is added to this list.
                * 
            * * @@ -293,7 +219,7 @@ public java.lang.String getResourceNames(int index) { * * *
            -   * Optional. The resource name that owns the logs:
            +   * Optional. List of resource names to list logs for:
                *  * `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]`
            @@ -303,6 +229,7 @@ public java.lang.String getResourceNames(int index) {
                * *  `organizations/[ORGANIZATION_ID]`
                * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
                * *  `folders/[FOLDER_ID]`
            +   * The resource name in the `parent` field is added to this list.
                * 
            * * @@ -316,6 +243,83 @@ public com.google.protobuf.ByteString getResourceNamesBytes(int index) { return resourceNames_.getByteString(index); } + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
            +   * Optional. The maximum number of results to return from this request.
            +   * Non-positive values are ignored.  The presence of `nextPageToken` in the
            +   * response indicates that more results might be available.
            +   * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
            +   * Optional. If present, then retrieve the next batch of results from the
            +   * preceding call to this method.  `pageToken` must be the value of
            +   * `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.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + 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.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + 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); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -384,9 +388,9 @@ public boolean equals(final java.lang.Object obj) { com.google.logging.v2.ListLogsRequest other = (com.google.logging.v2.ListLogsRequest) obj; if (!getParent().equals(other.getParent())) return false; + if (!getResourceNamesList().equals(other.getResourceNamesList())) return false; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken().equals(other.getPageToken())) return false; - if (!getResourceNamesList().equals(other.getResourceNamesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -400,14 +404,14 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + PARENT_FIELD_NUMBER; hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); if (getResourceNamesCount() > 0) { hash = (37 * hash) + RESOURCE_NAMES_FIELD_NUMBER; hash = (53 * hash) + getResourceNamesList().hashCode(); } + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -547,10 +551,10 @@ public Builder clear() { super.clear(); bitField0_ = 0; parent_ = ""; + resourceNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; pageToken_ = ""; - resourceNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); return this; } @@ -587,9 +591,9 @@ public com.google.logging.v2.ListLogsRequest buildPartial() { } private void buildPartialRepeatedFields(com.google.logging.v2.ListLogsRequest result) { - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { resourceNames_ = resourceNames_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000002); } result.resourceNames_ = resourceNames_; } @@ -599,10 +603,10 @@ private void buildPartial0(com.google.logging.v2.ListLogsRequest result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; } - if (((from_bitField0_ & 0x00000002) != 0)) { + if (((from_bitField0_ & 0x00000004) != 0)) { result.pageSize_ = pageSize_; } - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { result.pageToken_ = pageToken_; } } @@ -657,24 +661,24 @@ public Builder mergeFrom(com.google.logging.v2.ListLogsRequest other) { bitField0_ |= 0x00000001; onChanged(); } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000004; - onChanged(); - } if (!other.resourceNames_.isEmpty()) { if (resourceNames_.isEmpty()) { resourceNames_ = other.resourceNames_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureResourceNamesIsMutable(); resourceNames_.addAll(other.resourceNames_); } onChanged(); } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -710,13 +714,13 @@ public Builder mergeFrom( case 16: { pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 26 case 66: @@ -750,7 +754,7 @@ public Builder mergeFrom( * * *
            -     * Required. The resource name that owns the logs:
            +     * Required. The resource name to list logs for:
                  * *  `projects/[PROJECT_ID]`
                  * *  `organizations/[ORGANIZATION_ID]`
                  * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
            @@ -778,7 +782,7 @@ public java.lang.String getParent() {
                  *
                  *
                  * 
            -     * Required. The resource name that owns the logs:
            +     * Required. The resource name to list logs for:
                  * *  `projects/[PROJECT_ID]`
                  * *  `organizations/[ORGANIZATION_ID]`
                  * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
            @@ -806,7 +810,7 @@ public com.google.protobuf.ByteString getParentBytes() {
                  *
                  *
                  * 
            -     * Required. The resource name that owns the logs:
            +     * Required. The resource name to list logs for:
                  * *  `projects/[PROJECT_ID]`
                  * *  `organizations/[ORGANIZATION_ID]`
                  * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
            @@ -833,7 +837,7 @@ public Builder setParent(java.lang.String value) {
                  *
                  *
                  * 
            -     * Required. The resource name that owns the logs:
            +     * Required. The resource name to list logs for:
                  * *  `projects/[PROJECT_ID]`
                  * *  `organizations/[ORGANIZATION_ID]`
                  * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
            @@ -856,7 +860,7 @@ public Builder clearParent() {
                  *
                  *
                  * 
            -     * Required. The resource name that owns the logs:
            +     * Required. The resource name to list logs for:
                  * *  `projects/[PROJECT_ID]`
                  * *  `organizations/[ORGANIZATION_ID]`
                  * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
            @@ -881,250 +885,72 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
                   return this;
                 }
             
            -    private int pageSize_;
            +    private com.google.protobuf.LazyStringList resourceNames_ =
            +        com.google.protobuf.LazyStringArrayList.EMPTY;
            +
            +    private void ensureResourceNamesIsMutable() {
            +      if (!((bitField0_ & 0x00000002) != 0)) {
            +        resourceNames_ = new com.google.protobuf.LazyStringArrayList(resourceNames_);
            +        bitField0_ |= 0x00000002;
            +      }
            +    }
                 /**
                  *
                  *
                  * 
            -     * 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. List of resource names to list logs for:
            +     *  * `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]`
            +     * The resource name in the `parent` field is added to this list.
                  * 
            * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * - * @return The pageSize. + * @return A list containing the resourceNames. */ - @java.lang.Override - public int getPageSize() { - return pageSize_; + public com.google.protobuf.ProtocolStringList getResourceNamesList() { + return resourceNames_.getUnmodifiableView(); } /** * * *
            -     * 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. List of resource names to list logs for:
            +     *  * `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]`
            +     * The resource name in the `parent` field is added to this list.
                  * 
            * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * - * @param value The pageSize to set. - * @return This builder for chaining. + * @return The count of resourceNames. */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; + public int getResourceNamesCount() { + return resourceNames_.size(); } /** * * *
            -     * 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 This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000002); - pageSize_ = 0; - onChanged(); - return this; - } - - 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.
            -     * 
            - * - * 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; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
            -     * 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. - */ - 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); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
            -     * 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]; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - pageToken_ = value; - bitField0_ |= 0x00000004; - 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.
            -     * 
            - * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); - 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.
            -     * 
            - * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList resourceNames_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureResourceNamesIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - resourceNames_ = new com.google.protobuf.LazyStringArrayList(resourceNames_); - bitField0_ |= 0x00000008; - } - } - /** - * - * - *
            -     * 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. - */ - 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]`
            -     *  * `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. - */ - public int getResourceNamesCount() { - return resourceNames_.size(); - } - /** - * - * - *
            -     * Optional. The resource name that owns the logs:
            +     * Optional. List of resource names to list logs for:
                  *  * `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]`
            @@ -1134,6 +960,7 @@ public int getResourceNamesCount() {
                  * *  `organizations/[ORGANIZATION_ID]`
                  * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
                  * *  `folders/[FOLDER_ID]`
            +     * The resource name in the `parent` field is added to this list.
                  * 
            * * @@ -1150,7 +977,7 @@ public java.lang.String getResourceNames(int index) { * * *
            -     * Optional. The resource name that owns the logs:
            +     * Optional. List of resource names to list logs for:
                  *  * `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]`
            @@ -1160,6 +987,7 @@ public java.lang.String getResourceNames(int index) {
                  * *  `organizations/[ORGANIZATION_ID]`
                  * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
                  * *  `folders/[FOLDER_ID]`
            +     * The resource name in the `parent` field is added to this list.
                  * 
            * * @@ -1176,7 +1004,7 @@ public com.google.protobuf.ByteString getResourceNamesBytes(int index) { * * *
            -     * Optional. The resource name that owns the logs:
            +     * Optional. List of resource names to list logs for:
                  *  * `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]`
            @@ -1186,6 +1014,7 @@ public com.google.protobuf.ByteString getResourceNamesBytes(int index) {
                  * *  `organizations/[ORGANIZATION_ID]`
                  * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
                  * *  `folders/[FOLDER_ID]`
            +     * The resource name in the `parent` field is added to this list.
                  * 
            * * @@ -1209,7 +1038,7 @@ public Builder setResourceNames(int index, java.lang.String value) { * * *
            -     * Optional. The resource name that owns the logs:
            +     * Optional. List of resource names to list logs for:
                  *  * `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]`
            @@ -1219,6 +1048,7 @@ public Builder setResourceNames(int index, java.lang.String value) {
                  * *  `organizations/[ORGANIZATION_ID]`
                  * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
                  * *  `folders/[FOLDER_ID]`
            +     * The resource name in the `parent` field is added to this list.
                  * 
            * * @@ -1241,7 +1071,7 @@ public Builder addResourceNames(java.lang.String value) { * * *
            -     * Optional. The resource name that owns the logs:
            +     * Optional. List of resource names to list logs for:
                  *  * `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]`
            @@ -1251,6 +1081,7 @@ public Builder addResourceNames(java.lang.String value) {
                  * *  `organizations/[ORGANIZATION_ID]`
                  * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
                  * *  `folders/[FOLDER_ID]`
            +     * The resource name in the `parent` field is added to this list.
                  * 
            * * @@ -1270,7 +1101,7 @@ public Builder addAllResourceNames(java.lang.Iterable values) * * *
            -     * Optional. The resource name that owns the logs:
            +     * Optional. List of resource names to list logs for:
                  *  * `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]`
            @@ -1280,6 +1111,7 @@ public Builder addAllResourceNames(java.lang.Iterable values)
                  * *  `organizations/[ORGANIZATION_ID]`
                  * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
                  * *  `folders/[FOLDER_ID]`
            +     * The resource name in the `parent` field is added to this list.
                  * 
            * * @@ -1290,7 +1122,7 @@ public Builder addAllResourceNames(java.lang.Iterable values) */ public Builder clearResourceNames() { resourceNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1298,7 +1130,7 @@ public Builder clearResourceNames() { * * *
            -     * Optional. The resource name that owns the logs:
            +     * Optional. List of resource names to list logs for:
                  *  * `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]`
            @@ -1308,6 +1140,7 @@ public Builder clearResourceNames() {
                  * *  `organizations/[ORGANIZATION_ID]`
                  * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
                  * *  `folders/[FOLDER_ID]`
            +     * The resource name in the `parent` field is added to this list.
                  * 
            * * @@ -1328,6 +1161,186 @@ public Builder addResourceNamesBytes(com.google.protobuf.ByteString value) { return this; } + 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.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + 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.
            +     * 
            + * + * 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; + bitField0_ |= 0x00000004; + 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.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000004); + pageSize_ = 0; + onChanged(); + return this; + } + + 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.
            +     * 
            + * + * 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; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
            +     * 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. + */ + 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); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
            +     * 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]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
            +     * Optional. If present, then retrieve the next batch of results from the
            +     * preceding call to this method.  `pageToken` must be the value of
            +     * `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 This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
            +     * Optional. If present, then retrieve the next batch of results from the
            +     * preceding call to this method.  `pageToken` must be the value of
            +     * `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]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); 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 index 788b0faf9..b631c1fcd 100644 --- 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 @@ -27,7 +27,7 @@ public interface ListLogsRequestOrBuilder * * *
            -   * Required. The resource name that owns the logs:
            +   * Required. The resource name to list logs for:
                * *  `projects/[PROJECT_ID]`
                * *  `organizations/[ORGANIZATION_ID]`
                * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
            @@ -45,7 +45,7 @@ public interface ListLogsRequestOrBuilder
                *
                *
                * 
            -   * Required. The resource name that owns the logs:
            +   * Required. The resource name to list logs for:
                * *  `projects/[PROJECT_ID]`
                * *  `organizations/[ORGANIZATION_ID]`
                * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
            @@ -64,53 +64,7 @@ public interface ListLogsRequestOrBuilder
                *
                *
                * 
            -   * 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:
            +   * Optional. List of resource names to list logs for:
                *  * `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]`
            @@ -120,6 +74,7 @@ public interface ListLogsRequestOrBuilder
                * *  `organizations/[ORGANIZATION_ID]`
                * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
                * *  `folders/[FOLDER_ID]`
            +   * The resource name in the `parent` field is added to this list.
                * 
            * * @@ -133,7 +88,7 @@ public interface ListLogsRequestOrBuilder * * *
            -   * Optional. The resource name that owns the logs:
            +   * Optional. List of resource names to list logs for:
                *  * `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]`
            @@ -143,6 +98,7 @@ public interface ListLogsRequestOrBuilder
                * *  `organizations/[ORGANIZATION_ID]`
                * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
                * *  `folders/[FOLDER_ID]`
            +   * The resource name in the `parent` field is added to this list.
                * 
            * * @@ -156,7 +112,7 @@ public interface ListLogsRequestOrBuilder * * *
            -   * Optional. The resource name that owns the logs:
            +   * Optional. List of resource names to list logs for:
                *  * `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]`
            @@ -166,6 +122,7 @@ public interface ListLogsRequestOrBuilder
                * *  `organizations/[ORGANIZATION_ID]`
                * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
                * *  `folders/[FOLDER_ID]`
            +   * The resource name in the `parent` field is added to this list.
                * 
            * * @@ -180,7 +137,7 @@ public interface ListLogsRequestOrBuilder * * *
            -   * Optional. The resource name that owns the logs:
            +   * Optional. List of resource names to list logs for:
                *  * `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]`
            @@ -190,6 +147,7 @@ public interface ListLogsRequestOrBuilder
                * *  `organizations/[ORGANIZATION_ID]`
                * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
                * *  `folders/[FOLDER_ID]`
            +   * The resource name in the `parent` field is added to this list.
                * 
            * * @@ -200,4 +158,50 @@ public interface ListLogsRequestOrBuilder * @return The bytes of the resourceNames at the given index. */ com.google.protobuf.ByteString getResourceNamesBytes(int index); + + /** + * + * + *
            +   * Optional. The maximum number of results to return from this request.
            +   * Non-positive values are ignored.  The presence of `nextPageToken` in the
            +   * 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(); } diff --git a/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 index ff9684a0e..b2f05c793 100644 --- a/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 @@ -129,10 +129,10 @@ public 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]; @@ -155,10 +155,10 @@ 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]; @@ -700,10 +700,10 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
            -     * 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]; @@ -725,10 +725,10 @@ 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]; @@ -750,10 +750,10 @@ 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]; @@ -774,10 +774,10 @@ public Builder setPageToken(java.lang.String value) { * * *
            -     * 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]; @@ -794,10 +794,10 @@ public Builder clearPageToken() { * * *
            -     * 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]; diff --git a/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 index 4e185bd6b..101411177 100644 --- a/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 @@ -54,10 +54,10 @@ public interface ListViewsRequestOrBuilder * * *
            -   * 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]; @@ -69,10 +69,10 @@ public interface ListViewsRequestOrBuilder * * *
            -   * 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]; diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationMetadata.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationMetadata.java new file mode 100644 index 000000000..6e4a0caac --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationMetadata.java @@ -0,0 +1,541 @@ +/* + * 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; + +/** + * + * + *
            + * Cloud Logging specific location metadata.
            + * 
            + * + * Protobuf type {@code google.logging.v2.LocationMetadata} + */ +public final class LocationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.logging.v2.LocationMetadata) + LocationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use LocationMetadata.newBuilder() to construct. + private LocationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LocationMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LocationMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_LocationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_LocationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.logging.v2.LocationMetadata.class, + com.google.logging.v2.LocationMetadata.Builder.class); + } + + public static final int LOG_ANALYTICS_ENABLED_FIELD_NUMBER = 1; + private boolean logAnalyticsEnabled_ = false; + /** + * + * + *
            +   * Indicates whether or not Log Analytics features are supported in the given
            +   * location.
            +   * 
            + * + * bool log_analytics_enabled = 1; + * + * @return The logAnalyticsEnabled. + */ + @java.lang.Override + public boolean getLogAnalyticsEnabled() { + return logAnalyticsEnabled_; + } + + 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 (logAnalyticsEnabled_ != false) { + output.writeBool(1, logAnalyticsEnabled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (logAnalyticsEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, logAnalyticsEnabled_); + } + size += getUnknownFields().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.LocationMetadata)) { + return super.equals(obj); + } + com.google.logging.v2.LocationMetadata other = (com.google.logging.v2.LocationMetadata) obj; + + if (getLogAnalyticsEnabled() != other.getLogAnalyticsEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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_ANALYTICS_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLogAnalyticsEnabled()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.logging.v2.LocationMetadata parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.LocationMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.LocationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.LocationMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.LocationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.LocationMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.LocationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.logging.v2.LocationMetadata 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.LocationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.logging.v2.LocationMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.logging.v2.LocationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.logging.v2.LocationMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.logging.v2.LocationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
            +   * Cloud Logging specific location metadata.
            +   * 
            + * + * Protobuf type {@code google.logging.v2.LocationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.logging.v2.LocationMetadata) + com.google.logging.v2.LocationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_LocationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_LocationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.logging.v2.LocationMetadata.class, + com.google.logging.v2.LocationMetadata.Builder.class); + } + + // Construct using com.google.logging.v2.LocationMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + logAnalyticsEnabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_LocationMetadata_descriptor; + } + + @java.lang.Override + public com.google.logging.v2.LocationMetadata getDefaultInstanceForType() { + return com.google.logging.v2.LocationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.logging.v2.LocationMetadata build() { + com.google.logging.v2.LocationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.logging.v2.LocationMetadata buildPartial() { + com.google.logging.v2.LocationMetadata result = + new com.google.logging.v2.LocationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.logging.v2.LocationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.logAnalyticsEnabled_ = logAnalyticsEnabled_; + } + } + + @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.LocationMetadata) { + return mergeFrom((com.google.logging.v2.LocationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.logging.v2.LocationMetadata other) { + if (other == com.google.logging.v2.LocationMetadata.getDefaultInstance()) return this; + if (other.getLogAnalyticsEnabled() != false) { + setLogAnalyticsEnabled(other.getLogAnalyticsEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + logAnalyticsEnabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean logAnalyticsEnabled_; + /** + * + * + *
            +     * Indicates whether or not Log Analytics features are supported in the given
            +     * location.
            +     * 
            + * + * bool log_analytics_enabled = 1; + * + * @return The logAnalyticsEnabled. + */ + @java.lang.Override + public boolean getLogAnalyticsEnabled() { + return logAnalyticsEnabled_; + } + /** + * + * + *
            +     * Indicates whether or not Log Analytics features are supported in the given
            +     * location.
            +     * 
            + * + * bool log_analytics_enabled = 1; + * + * @param value The logAnalyticsEnabled to set. + * @return This builder for chaining. + */ + public Builder setLogAnalyticsEnabled(boolean value) { + + logAnalyticsEnabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
            +     * Indicates whether or not Log Analytics features are supported in the given
            +     * location.
            +     * 
            + * + * bool log_analytics_enabled = 1; + * + * @return This builder for chaining. + */ + public Builder clearLogAnalyticsEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + logAnalyticsEnabled_ = 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.LocationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.logging.v2.LocationMetadata) + private static final com.google.logging.v2.LocationMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.logging.v2.LocationMetadata(); + } + + public static com.google.logging.v2.LocationMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LocationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.LocationMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationMetadataOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationMetadataOrBuilder.java new file mode 100644 index 000000000..455d865ab --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LocationMetadataOrBuilder.java @@ -0,0 +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; + +public interface LocationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.logging.v2.LocationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Indicates whether or not Log Analytics features are supported in the given
            +   * location.
            +   * 
            + * + * bool log_analytics_enabled = 1; + * + * @return The logAnalyticsEnabled. + */ + boolean getLogAnalyticsEnabled(); +} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucket.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucket.java index 950d22eaf..0d04bc40b 100644 --- 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 @@ -42,6 +42,7 @@ private LogBucket() { description_ = ""; lifecycleState_ = 0; restrictedFields_ = com.google.protobuf.LazyStringArrayList.EMPTY; + indexConfigs_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -191,8 +192,8 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
            -   * Output only. The creation timestamp of the bucket. This is not set for any of the
            -   * default buckets.
            +   * 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]; @@ -208,8 +209,8 @@ public boolean hasCreateTime() { * * *
            -   * Output only. The creation timestamp of the bucket. This is not set for any of the
            -   * default buckets.
            +   * 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]; @@ -225,8 +226,8 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
            -   * Output only. The creation timestamp of the bucket. This is not set for any of the
            -   * default buckets.
            +   * 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]; @@ -366,6 +367,25 @@ public com.google.logging.v2.LifecycleState getLifecycleState() { return result == null ? com.google.logging.v2.LifecycleState.UNRECOGNIZED : result; } + public static final int ANALYTICS_ENABLED_FIELD_NUMBER = 14; + private boolean analyticsEnabled_ = false; + /** + * + * + *
            +   * Whether log analytics is enabled for this bucket.
            +   * Once enabled, log analytics features cannot be disabled.
            +   * 
            + * + * bool analytics_enabled = 14; + * + * @return The analyticsEnabled. + */ + @java.lang.Override + public boolean getAnalyticsEnabled() { + return analyticsEnabled_; + } + public static final int RESTRICTED_FIELDS_FIELD_NUMBER = 15; @SuppressWarnings("serial") @@ -445,6 +465,77 @@ public com.google.protobuf.ByteString getRestrictedFieldsBytes(int index) { return restrictedFields_.getByteString(index); } + public static final int INDEX_CONFIGS_FIELD_NUMBER = 17; + + @SuppressWarnings("serial") + private java.util.List indexConfigs_; + /** + * + * + *
            +   * A list of indexed fields and related configuration data.
            +   * 
            + * + * repeated .google.logging.v2.IndexConfig index_configs = 17; + */ + @java.lang.Override + public java.util.List getIndexConfigsList() { + return indexConfigs_; + } + /** + * + * + *
            +   * A list of indexed fields and related configuration data.
            +   * 
            + * + * repeated .google.logging.v2.IndexConfig index_configs = 17; + */ + @java.lang.Override + public java.util.List + getIndexConfigsOrBuilderList() { + return indexConfigs_; + } + /** + * + * + *
            +   * A list of indexed fields and related configuration data.
            +   * 
            + * + * repeated .google.logging.v2.IndexConfig index_configs = 17; + */ + @java.lang.Override + public int getIndexConfigsCount() { + return indexConfigs_.size(); + } + /** + * + * + *
            +   * A list of indexed fields and related configuration data.
            +   * 
            + * + * repeated .google.logging.v2.IndexConfig index_configs = 17; + */ + @java.lang.Override + public com.google.logging.v2.IndexConfig getIndexConfigs(int index) { + return indexConfigs_.get(index); + } + /** + * + * + *
            +   * A list of indexed fields and related configuration data.
            +   * 
            + * + * repeated .google.logging.v2.IndexConfig index_configs = 17; + */ + @java.lang.Override + public com.google.logging.v2.IndexConfigOrBuilder getIndexConfigsOrBuilder(int index) { + return indexConfigs_.get(index); + } + public static final int CMEK_SETTINGS_FIELD_NUMBER = 19; private com.google.logging.v2.CmekSettings cmekSettings_; /** @@ -543,9 +634,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io != com.google.logging.v2.LifecycleState.LIFECYCLE_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(12, lifecycleState_); } + if (analyticsEnabled_ != false) { + output.writeBool(14, analyticsEnabled_); + } for (int i = 0; i < restrictedFields_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, restrictedFields_.getRaw(i)); } + for (int i = 0; i < indexConfigs_.size(); i++) { + output.writeMessage(17, indexConfigs_.get(i)); + } if (cmekSettings_ != null) { output.writeMessage(19, getCmekSettings()); } @@ -580,6 +677,9 @@ public int getSerializedSize() { != com.google.logging.v2.LifecycleState.LIFECYCLE_STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, lifecycleState_); } + if (analyticsEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, analyticsEnabled_); + } { int dataSize = 0; for (int i = 0; i < restrictedFields_.size(); i++) { @@ -588,6 +688,9 @@ public int getSerializedSize() { size += dataSize; size += 1 * getRestrictedFieldsList().size(); } + for (int i = 0; i < indexConfigs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, indexConfigs_.get(i)); + } if (cmekSettings_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getCmekSettings()); } @@ -619,7 +722,9 @@ public boolean equals(final java.lang.Object obj) { if (getRetentionDays() != other.getRetentionDays()) return false; if (getLocked() != other.getLocked()) return false; if (lifecycleState_ != other.lifecycleState_) return false; + if (getAnalyticsEnabled() != other.getAnalyticsEnabled()) return false; if (!getRestrictedFieldsList().equals(other.getRestrictedFieldsList())) return false; + if (!getIndexConfigsList().equals(other.getIndexConfigsList())) return false; if (hasCmekSettings() != other.hasCmekSettings()) return false; if (hasCmekSettings()) { if (!getCmekSettings().equals(other.getCmekSettings())) return false; @@ -653,10 +758,16 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLocked()); hash = (37 * hash) + LIFECYCLE_STATE_FIELD_NUMBER; hash = (53 * hash) + lifecycleState_; + hash = (37 * hash) + ANALYTICS_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAnalyticsEnabled()); if (getRestrictedFieldsCount() > 0) { hash = (37 * hash) + RESTRICTED_FIELDS_FIELD_NUMBER; hash = (53 * hash) + getRestrictedFieldsList().hashCode(); } + if (getIndexConfigsCount() > 0) { + hash = (37 * hash) + INDEX_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getIndexConfigsList().hashCode(); + } if (hasCmekSettings()) { hash = (37 * hash) + CMEK_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getCmekSettings().hashCode(); @@ -813,8 +924,16 @@ public Builder clear() { retentionDays_ = 0; locked_ = false; lifecycleState_ = 0; + analyticsEnabled_ = false; restrictedFields_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); + if (indexConfigsBuilder_ == null) { + indexConfigs_ = java.util.Collections.emptyList(); + } else { + indexConfigs_ = null; + indexConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000200); cmekSettings_ = null; if (cmekSettingsBuilder_ != null) { cmekSettingsBuilder_.dispose(); @@ -855,11 +974,20 @@ public com.google.logging.v2.LogBucket buildPartial() { } private void buildPartialRepeatedFields(com.google.logging.v2.LogBucket result) { - if (((bitField0_ & 0x00000080) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { restrictedFields_ = restrictedFields_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); } result.restrictedFields_ = restrictedFields_; + if (indexConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0)) { + indexConfigs_ = java.util.Collections.unmodifiableList(indexConfigs_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.indexConfigs_ = indexConfigs_; + } else { + result.indexConfigs_ = indexConfigsBuilder_.build(); + } } private void buildPartial0(com.google.logging.v2.LogBucket result) { @@ -885,7 +1013,10 @@ private void buildPartial0(com.google.logging.v2.LogBucket result) { if (((from_bitField0_ & 0x00000040) != 0)) { result.lifecycleState_ = lifecycleState_; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { + result.analyticsEnabled_ = analyticsEnabled_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { result.cmekSettings_ = cmekSettingsBuilder_ == null ? cmekSettings_ : cmekSettingsBuilder_.build(); } @@ -961,16 +1092,46 @@ public Builder mergeFrom(com.google.logging.v2.LogBucket other) { if (other.lifecycleState_ != 0) { setLifecycleStateValue(other.getLifecycleStateValue()); } + if (other.getAnalyticsEnabled() != false) { + setAnalyticsEnabled(other.getAnalyticsEnabled()); + } if (!other.restrictedFields_.isEmpty()) { if (restrictedFields_.isEmpty()) { restrictedFields_ = other.restrictedFields_; - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); } else { ensureRestrictedFieldsIsMutable(); restrictedFields_.addAll(other.restrictedFields_); } onChanged(); } + if (indexConfigsBuilder_ == null) { + if (!other.indexConfigs_.isEmpty()) { + if (indexConfigs_.isEmpty()) { + indexConfigs_ = other.indexConfigs_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureIndexConfigsIsMutable(); + indexConfigs_.addAll(other.indexConfigs_); + } + onChanged(); + } + } else { + if (!other.indexConfigs_.isEmpty()) { + if (indexConfigsBuilder_.isEmpty()) { + indexConfigsBuilder_.dispose(); + indexConfigsBuilder_ = null; + indexConfigs_ = other.indexConfigs_; + bitField0_ = (bitField0_ & ~0x00000200); + indexConfigsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getIndexConfigsFieldBuilder() + : null; + } else { + indexConfigsBuilder_.addAllMessages(other.indexConfigs_); + } + } + } if (other.hasCmekSettings()) { mergeCmekSettings(other.getCmekSettings()); } @@ -1042,6 +1203,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 96 + case 112: + { + analyticsEnabled_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 112 case 122: { java.lang.String s = input.readStringRequireUtf8(); @@ -1049,10 +1216,23 @@ public Builder mergeFrom( restrictedFields_.add(s); break; } // case 122 + case 138: + { + com.google.logging.v2.IndexConfig m = + input.readMessage( + com.google.logging.v2.IndexConfig.parser(), extensionRegistry); + if (indexConfigsBuilder_ == null) { + ensureIndexConfigsIsMutable(); + indexConfigs_.add(m); + } else { + indexConfigsBuilder_.addMessage(m); + } + break; + } // case 138 case 154: { input.readMessage(getCmekSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; break; } // case 154 default: @@ -1331,8 +1511,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * * *
            -     * Output only. The creation timestamp of the bucket. This is not set for any of the
            -     * default buckets.
            +     * Output only. The creation timestamp of the bucket. This is not set for any
            +     * of the default buckets.
                  * 
            * * @@ -1348,8 +1528,8 @@ public boolean hasCreateTime() { * * *
            -     * Output only. The creation timestamp of the bucket. This is not set for any of the
            -     * default buckets.
            +     * Output only. The creation timestamp of the bucket. This is not set for any
            +     * of the default buckets.
                  * 
            * * @@ -1371,8 +1551,8 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
            -     * Output only. The creation timestamp of the bucket. This is not set for any of the
            -     * default buckets.
            +     * Output only. The creation timestamp of the bucket. This is not set for any
            +     * of the default buckets.
                  * 
            * * @@ -1396,8 +1576,8 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { * * *
            -     * Output only. The creation timestamp of the bucket. This is not set for any of the
            -     * default buckets.
            +     * Output only. The creation timestamp of the bucket. This is not set for any
            +     * of the default buckets.
                  * 
            * * @@ -1418,8 +1598,8 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
            -     * Output only. The creation timestamp of the bucket. This is not set for any of the
            -     * default buckets.
            +     * Output only. The creation timestamp of the bucket. This is not set for any
            +     * of the default buckets.
                  * 
            * * @@ -1446,8 +1626,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * * *
            -     * Output only. The creation timestamp of the bucket. This is not set for any of the
            -     * default buckets.
            +     * Output only. The creation timestamp of the bucket. This is not set for any
            +     * of the default buckets.
                  * 
            * * @@ -1468,8 +1648,8 @@ public Builder clearCreateTime() { * * *
            -     * Output only. The creation timestamp of the bucket. This is not set for any of the
            -     * default buckets.
            +     * Output only. The creation timestamp of the bucket. This is not set for any
            +     * of the default buckets.
                  * 
            * * @@ -1485,8 +1665,8 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { * * *
            -     * Output only. The creation timestamp of the bucket. This is not set for any of the
            -     * default buckets.
            +     * Output only. The creation timestamp of the bucket. This is not set for any
            +     * of the default buckets.
                  * 
            * * @@ -1506,8 +1686,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
            -     * Output only. The creation timestamp of the bucket. This is not set for any of the
            -     * default buckets.
            +     * Output only. The creation timestamp of the bucket. This is not set for any
            +     * of the default buckets.
                  * 
            * * @@ -1953,13 +2133,69 @@ public Builder clearLifecycleState() { return this; } + private boolean analyticsEnabled_; + /** + * + * + *
            +     * Whether log analytics is enabled for this bucket.
            +     * Once enabled, log analytics features cannot be disabled.
            +     * 
            + * + * bool analytics_enabled = 14; + * + * @return The analyticsEnabled. + */ + @java.lang.Override + public boolean getAnalyticsEnabled() { + return analyticsEnabled_; + } + /** + * + * + *
            +     * Whether log analytics is enabled for this bucket.
            +     * Once enabled, log analytics features cannot be disabled.
            +     * 
            + * + * bool analytics_enabled = 14; + * + * @param value The analyticsEnabled to set. + * @return This builder for chaining. + */ + public Builder setAnalyticsEnabled(boolean value) { + + analyticsEnabled_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
            +     * Whether log analytics is enabled for this bucket.
            +     * Once enabled, log analytics features cannot be disabled.
            +     * 
            + * + * bool analytics_enabled = 14; + * + * @return This builder for chaining. + */ + public Builder clearAnalyticsEnabled() { + bitField0_ = (bitField0_ & ~0x00000080); + analyticsEnabled_ = false; + onChanged(); + return this; + } + private com.google.protobuf.LazyStringList restrictedFields_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureRestrictedFieldsIsMutable() { - if (!((bitField0_ & 0x00000080) != 0)) { + if (!((bitField0_ & 0x00000100) != 0)) { restrictedFields_ = new com.google.protobuf.LazyStringArrayList(restrictedFields_); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; } } /** @@ -2126,7 +2362,7 @@ public Builder addAllRestrictedFields(java.lang.Iterable value */ public Builder clearRestrictedFields() { restrictedFields_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -2157,6 +2393,354 @@ public Builder addRestrictedFieldsBytes(com.google.protobuf.ByteString value) { return this; } + private java.util.List indexConfigs_ = + java.util.Collections.emptyList(); + + private void ensureIndexConfigsIsMutable() { + if (!((bitField0_ & 0x00000200) != 0)) { + indexConfigs_ = new java.util.ArrayList(indexConfigs_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.logging.v2.IndexConfig, + com.google.logging.v2.IndexConfig.Builder, + com.google.logging.v2.IndexConfigOrBuilder> + indexConfigsBuilder_; + + /** + * + * + *
            +     * A list of indexed fields and related configuration data.
            +     * 
            + * + * repeated .google.logging.v2.IndexConfig index_configs = 17; + */ + public java.util.List getIndexConfigsList() { + if (indexConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(indexConfigs_); + } else { + return indexConfigsBuilder_.getMessageList(); + } + } + /** + * + * + *
            +     * A list of indexed fields and related configuration data.
            +     * 
            + * + * repeated .google.logging.v2.IndexConfig index_configs = 17; + */ + public int getIndexConfigsCount() { + if (indexConfigsBuilder_ == null) { + return indexConfigs_.size(); + } else { + return indexConfigsBuilder_.getCount(); + } + } + /** + * + * + *
            +     * A list of indexed fields and related configuration data.
            +     * 
            + * + * repeated .google.logging.v2.IndexConfig index_configs = 17; + */ + public com.google.logging.v2.IndexConfig getIndexConfigs(int index) { + if (indexConfigsBuilder_ == null) { + return indexConfigs_.get(index); + } else { + return indexConfigsBuilder_.getMessage(index); + } + } + /** + * + * + *
            +     * A list of indexed fields and related configuration data.
            +     * 
            + * + * repeated .google.logging.v2.IndexConfig index_configs = 17; + */ + public Builder setIndexConfigs(int index, com.google.logging.v2.IndexConfig value) { + if (indexConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIndexConfigsIsMutable(); + indexConfigs_.set(index, value); + onChanged(); + } else { + indexConfigsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
            +     * A list of indexed fields and related configuration data.
            +     * 
            + * + * repeated .google.logging.v2.IndexConfig index_configs = 17; + */ + public Builder setIndexConfigs( + int index, com.google.logging.v2.IndexConfig.Builder builderForValue) { + if (indexConfigsBuilder_ == null) { + ensureIndexConfigsIsMutable(); + indexConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + indexConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
            +     * A list of indexed fields and related configuration data.
            +     * 
            + * + * repeated .google.logging.v2.IndexConfig index_configs = 17; + */ + public Builder addIndexConfigs(com.google.logging.v2.IndexConfig value) { + if (indexConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIndexConfigsIsMutable(); + indexConfigs_.add(value); + onChanged(); + } else { + indexConfigsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
            +     * A list of indexed fields and related configuration data.
            +     * 
            + * + * repeated .google.logging.v2.IndexConfig index_configs = 17; + */ + public Builder addIndexConfigs(int index, com.google.logging.v2.IndexConfig value) { + if (indexConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIndexConfigsIsMutable(); + indexConfigs_.add(index, value); + onChanged(); + } else { + indexConfigsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
            +     * A list of indexed fields and related configuration data.
            +     * 
            + * + * repeated .google.logging.v2.IndexConfig index_configs = 17; + */ + public Builder addIndexConfigs(com.google.logging.v2.IndexConfig.Builder builderForValue) { + if (indexConfigsBuilder_ == null) { + ensureIndexConfigsIsMutable(); + indexConfigs_.add(builderForValue.build()); + onChanged(); + } else { + indexConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
            +     * A list of indexed fields and related configuration data.
            +     * 
            + * + * repeated .google.logging.v2.IndexConfig index_configs = 17; + */ + public Builder addIndexConfigs( + int index, com.google.logging.v2.IndexConfig.Builder builderForValue) { + if (indexConfigsBuilder_ == null) { + ensureIndexConfigsIsMutable(); + indexConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + indexConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
            +     * A list of indexed fields and related configuration data.
            +     * 
            + * + * repeated .google.logging.v2.IndexConfig index_configs = 17; + */ + public Builder addAllIndexConfigs( + java.lang.Iterable values) { + if (indexConfigsBuilder_ == null) { + ensureIndexConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, indexConfigs_); + onChanged(); + } else { + indexConfigsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
            +     * A list of indexed fields and related configuration data.
            +     * 
            + * + * repeated .google.logging.v2.IndexConfig index_configs = 17; + */ + public Builder clearIndexConfigs() { + if (indexConfigsBuilder_ == null) { + indexConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + indexConfigsBuilder_.clear(); + } + return this; + } + /** + * + * + *
            +     * A list of indexed fields and related configuration data.
            +     * 
            + * + * repeated .google.logging.v2.IndexConfig index_configs = 17; + */ + public Builder removeIndexConfigs(int index) { + if (indexConfigsBuilder_ == null) { + ensureIndexConfigsIsMutable(); + indexConfigs_.remove(index); + onChanged(); + } else { + indexConfigsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
            +     * A list of indexed fields and related configuration data.
            +     * 
            + * + * repeated .google.logging.v2.IndexConfig index_configs = 17; + */ + public com.google.logging.v2.IndexConfig.Builder getIndexConfigsBuilder(int index) { + return getIndexConfigsFieldBuilder().getBuilder(index); + } + /** + * + * + *
            +     * A list of indexed fields and related configuration data.
            +     * 
            + * + * repeated .google.logging.v2.IndexConfig index_configs = 17; + */ + public com.google.logging.v2.IndexConfigOrBuilder getIndexConfigsOrBuilder(int index) { + if (indexConfigsBuilder_ == null) { + return indexConfigs_.get(index); + } else { + return indexConfigsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
            +     * A list of indexed fields and related configuration data.
            +     * 
            + * + * repeated .google.logging.v2.IndexConfig index_configs = 17; + */ + public java.util.List + getIndexConfigsOrBuilderList() { + if (indexConfigsBuilder_ != null) { + return indexConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(indexConfigs_); + } + } + /** + * + * + *
            +     * A list of indexed fields and related configuration data.
            +     * 
            + * + * repeated .google.logging.v2.IndexConfig index_configs = 17; + */ + public com.google.logging.v2.IndexConfig.Builder addIndexConfigsBuilder() { + return getIndexConfigsFieldBuilder() + .addBuilder(com.google.logging.v2.IndexConfig.getDefaultInstance()); + } + /** + * + * + *
            +     * A list of indexed fields and related configuration data.
            +     * 
            + * + * repeated .google.logging.v2.IndexConfig index_configs = 17; + */ + public com.google.logging.v2.IndexConfig.Builder addIndexConfigsBuilder(int index) { + return getIndexConfigsFieldBuilder() + .addBuilder(index, com.google.logging.v2.IndexConfig.getDefaultInstance()); + } + /** + * + * + *
            +     * A list of indexed fields and related configuration data.
            +     * 
            + * + * repeated .google.logging.v2.IndexConfig index_configs = 17; + */ + public java.util.List getIndexConfigsBuilderList() { + return getIndexConfigsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.logging.v2.IndexConfig, + com.google.logging.v2.IndexConfig.Builder, + com.google.logging.v2.IndexConfigOrBuilder> + getIndexConfigsFieldBuilder() { + if (indexConfigsBuilder_ == null) { + indexConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.logging.v2.IndexConfig, + com.google.logging.v2.IndexConfig.Builder, + com.google.logging.v2.IndexConfigOrBuilder>( + indexConfigs_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); + indexConfigs_ = null; + } + return indexConfigsBuilder_; + } + private com.google.logging.v2.CmekSettings cmekSettings_; private com.google.protobuf.SingleFieldBuilderV3< com.google.logging.v2.CmekSettings, @@ -2179,7 +2763,7 @@ public Builder addRestrictedFieldsBytes(com.google.protobuf.ByteString value) { * @return Whether the cmekSettings field is set. */ public boolean hasCmekSettings() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** * @@ -2227,7 +2811,7 @@ public Builder setCmekSettings(com.google.logging.v2.CmekSettings value) { } else { cmekSettingsBuilder_.setMessage(value); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -2250,7 +2834,7 @@ public Builder setCmekSettings(com.google.logging.v2.CmekSettings.Builder builde } else { cmekSettingsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -2269,7 +2853,7 @@ public Builder setCmekSettings(com.google.logging.v2.CmekSettings.Builder builde */ public Builder mergeCmekSettings(com.google.logging.v2.CmekSettings value) { if (cmekSettingsBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) + if (((bitField0_ & 0x00000400) != 0) && cmekSettings_ != null && cmekSettings_ != com.google.logging.v2.CmekSettings.getDefaultInstance()) { getCmekSettingsBuilder().mergeFrom(value); @@ -2279,7 +2863,7 @@ public Builder mergeCmekSettings(com.google.logging.v2.CmekSettings value) { } else { cmekSettingsBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -2297,7 +2881,7 @@ public Builder mergeCmekSettings(com.google.logging.v2.CmekSettings value) { * .google.logging.v2.CmekSettings cmek_settings = 19; */ public Builder clearCmekSettings() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000400); cmekSettings_ = null; if (cmekSettingsBuilder_ != null) { cmekSettingsBuilder_.dispose(); @@ -2320,7 +2904,7 @@ public Builder clearCmekSettings() { * .google.logging.v2.CmekSettings cmek_settings = 19; */ public com.google.logging.v2.CmekSettings.Builder getCmekSettingsBuilder() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); return getCmekSettingsFieldBuilder().getBuilder(); } 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 index a6406eaf8..f87fd33f3 100644 --- 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 @@ -91,8 +91,8 @@ public interface LogBucketOrBuilder * * *
            -   * Output only. The creation timestamp of the bucket. This is not set for any of the
            -   * default buckets.
            +   * 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]; @@ -105,8 +105,8 @@ public interface LogBucketOrBuilder * * *
            -   * Output only. The creation timestamp of the bucket. This is not set for any of the
            -   * default buckets.
            +   * 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]; @@ -119,8 +119,8 @@ public interface LogBucketOrBuilder * * *
            -   * Output only. The creation timestamp of the bucket. This is not set for any of the
            -   * default buckets.
            +   * 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]; @@ -226,6 +226,20 @@ public interface LogBucketOrBuilder */ com.google.logging.v2.LifecycleState getLifecycleState(); + /** + * + * + *
            +   * Whether log analytics is enabled for this bucket.
            +   * Once enabled, log analytics features cannot be disabled.
            +   * 
            + * + * bool analytics_enabled = 14; + * + * @return The analyticsEnabled. + */ + boolean getAnalyticsEnabled(); + /** * * @@ -293,6 +307,58 @@ public interface LogBucketOrBuilder */ com.google.protobuf.ByteString getRestrictedFieldsBytes(int index); + /** + * + * + *
            +   * A list of indexed fields and related configuration data.
            +   * 
            + * + * repeated .google.logging.v2.IndexConfig index_configs = 17; + */ + java.util.List getIndexConfigsList(); + /** + * + * + *
            +   * A list of indexed fields and related configuration data.
            +   * 
            + * + * repeated .google.logging.v2.IndexConfig index_configs = 17; + */ + com.google.logging.v2.IndexConfig getIndexConfigs(int index); + /** + * + * + *
            +   * A list of indexed fields and related configuration data.
            +   * 
            + * + * repeated .google.logging.v2.IndexConfig index_configs = 17; + */ + int getIndexConfigsCount(); + /** + * + * + *
            +   * A list of indexed fields and related configuration data.
            +   * 
            + * + * repeated .google.logging.v2.IndexConfig index_configs = 17; + */ + java.util.List + getIndexConfigsOrBuilderList(); + /** + * + * + *
            +   * A list of indexed fields and related configuration data.
            +   * 
            + * + * repeated .google.logging.v2.IndexConfig index_configs = 17; + */ + com.google.logging.v2.IndexConfigOrBuilder getIndexConfigsOrBuilder(int index); + /** * * diff --git a/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 index 0966999df..06a5e3e7b 100644 --- a/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 @@ -470,11 +470,12 @@ public 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.
            -   * If this field is omitted in a new log entry, then Logging assigns it the
            -   * current time. Timestamps have nanosecond accuracy, but trailing zeros in
            -   * the fractional seconds might be omitted when the timestamp is displayed.
            +   * 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. If this field is omitted in a new log entry, then Logging assigns
            +   * it the current time. Timestamps have nanosecond accuracy, but trailing
            +   * zeros in the fractional seconds might be omitted when the timestamp is
            +   * displayed.
                * Incoming log entries must have timestamps that don't exceed the
                * [logs retention
                * period](https://cloud.google.com/logging/quotas#logs_retention_periods) in
            @@ -495,11 +496,12 @@ public 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.
            -   * If this field is omitted in a new log entry, then Logging assigns it the
            -   * current time. Timestamps have nanosecond accuracy, but trailing zeros in
            -   * the fractional seconds might be omitted when the timestamp is displayed.
            +   * 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. If this field is omitted in a new log entry, then Logging assigns
            +   * it the current time. Timestamps have nanosecond accuracy, but trailing
            +   * zeros in the fractional seconds might be omitted when the timestamp is
            +   * displayed.
                * Incoming log entries must have timestamps that don't exceed the
                * [logs retention
                * period](https://cloud.google.com/logging/quotas#logs_retention_periods) in
            @@ -520,11 +522,12 @@ 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.
            -   * If this field is omitted in a new log entry, then Logging assigns it the
            -   * current time. Timestamps have nanosecond accuracy, but trailing zeros in
            -   * the fractional seconds might be omitted when the timestamp is displayed.
            +   * 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. If this field is omitted in a new log entry, then Logging assigns
            +   * it the current time. Timestamps have nanosecond accuracy, but trailing
            +   * zeros in the fractional seconds might be omitted when the timestamp is
            +   * displayed.
                * Incoming log entries must have timestamps that don't exceed the
                * [logs retention
                * period](https://cloud.google.com/logging/quotas#logs_retention_periods) in
            @@ -602,7 +605,8 @@ public com.google.protobuf.TimestampOrBuilder getReceiveTimestampOrBuilder() {
                *
                *
                * 
            -   * Optional. The severity of the log entry. The default value is `LogSeverity.DEFAULT`.
            +   * Optional. The severity of the log entry. The default value is
            +   * `LogSeverity.DEFAULT`.
                * 
            * * .google.logging.type.LogSeverity severity = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -618,7 +622,8 @@ public int getSeverityValue() { * * *
            -   * Optional. The severity of the log entry. The default value is `LogSeverity.DEFAULT`.
            +   * Optional. The severity of the log entry. The default value is
            +   * `LogSeverity.DEFAULT`.
                * 
            * * .google.logging.type.LogSeverity severity = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -641,8 +646,8 @@ public 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
            +   * 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
                * `timestamp`, and with the same `insert_id` to be duplicates which are
                * removed in a single query result. However, there are no guarantees of
                * de-duplication in the export of logs.
            @@ -672,8 +677,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
            +   * 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
                * `timestamp`, and with the same `insert_id` to be duplicates which are
                * removed in a single query result. However, there are no guarantees of
                * de-duplication in the export of logs.
            @@ -706,8 +711,8 @@ public com.google.protobuf.ByteString getInsertIdBytes() {
                *
                *
                * 
            -   * Optional. Information about the HTTP request associated with this log entry, if
            -   * applicable.
            +   * Optional. Information about the HTTP request associated with this log
            +   * entry, if applicable.
                * 
            * * @@ -724,8 +729,8 @@ public boolean hasHttpRequest() { * * *
            -   * Optional. Information about the HTTP request associated with this log entry, if
            -   * applicable.
            +   * Optional. Information about the HTTP request associated with this log
            +   * entry, if applicable.
                * 
            * * @@ -744,8 +749,8 @@ public com.google.logging.type.HttpRequest getHttpRequest() { * * *
            -   * Optional. Information about the HTTP request associated with this log entry, if
            -   * applicable.
            +   * Optional. Information about the HTTP request associated with this log
            +   * entry, if applicable.
                * 
            * * @@ -789,8 +794,8 @@ public 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.
            +   * 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.
            @@ -821,8 +826,8 @@ public 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.
            +   * 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.
            @@ -844,8 +849,8 @@ public 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.
            +   * 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.
            @@ -874,8 +879,8 @@ public 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.
            +   * 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.
            @@ -968,10 +973,14 @@ public 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
            -   * `//tracing.googleapis.com`. Example:
            -   * `projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824`
            +   * Optional. The REST resource name of the trace being written to
            +   * [Cloud Trace](https://cloud.google.com/trace) in
            +   * association with this log entry. For example, if your trace data is stored
            +   * in the Cloud project "my-trace-project" and if the service that is creating
            +   * the log entry receives a trace header that includes the trace ID "12345",
            +   * then the service should use "projects/my-tracing-project/traces/12345".
            +   * The `trace` field provides the link between logs and traces. By using
            +   * this field, you can navigate from a log entry to a trace.
                * 
            * * string trace = 22 [(.google.api.field_behavior) = OPTIONAL]; @@ -994,10 +1003,14 @@ 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
            -   * `//tracing.googleapis.com`. Example:
            -   * `projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824`
            +   * Optional. The REST resource name of the trace being written to
            +   * [Cloud Trace](https://cloud.google.com/trace) in
            +   * association with this log entry. For example, if your trace data is stored
            +   * in the Cloud project "my-trace-project" and if the service that is creating
            +   * the log entry receives a trace header that includes the trace ID "12345",
            +   * then the service should use "projects/my-tracing-project/traces/12345".
            +   * The `trace` field provides the link between logs and traces. By using
            +   * this field, you can navigate from a log entry to a trace.
                * 
            * * string trace = 22 [(.google.api.field_behavior) = OPTIONAL]; @@ -1025,10 +1038,31 @@ public 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
            -   * 16-character hexadecimal encoding of an 8-byte array, such as
            -   * `000000000000004a`.
            +   * Optional. The ID of the [Cloud Trace](https://cloud.google.com/trace) span
            +   * associated with the current operation in which the log is being written.
            +   * For example, if a span has the REST resource name of
            +   * "projects/some-project/traces/some-trace/spans/some-span-id", then the
            +   * `span_id` field is "some-span-id".
            +   * A
            +   * [Span](https://cloud.google.com/trace/docs/reference/v2/rest/v2/projects.traces/batchWrite#Span)
            +   * represents a single operation within a trace. Whereas a trace may involve
            +   * multiple different microservices running on multiple different machines,
            +   * a span generally corresponds to a single logical operation being performed
            +   * in a single instance of a microservice on one specific machine. Spans
            +   * are the nodes within the tree that is a trace.
            +   * Applications that are [instrumented for
            +   * tracing](https://cloud.google.com/trace/docs/setup) will generally assign a
            +   * new, unique span ID on each incoming request. It is also common to create
            +   * and record additional spans corresponding to internal processing elements
            +   * as well as issuing requests to dependencies.
            +   * The span ID is expected to be a 16-character, hexadecimal encoding of an
            +   * 8-byte array and should not be zero. It should be unique within the trace
            +   * and should, ideally, be generated in a manner that is uniformly random.
            +   * Example values:
            +   *   - `000000000000004a`
            +   *   - `7a2190356c3fc94b`
            +   *   - `0000f00300090021`
            +   *   - `d39223e101960076`
                * 
            * * string span_id = 27 [(.google.api.field_behavior) = OPTIONAL]; @@ -1051,10 +1085,31 @@ 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
            -   * 16-character hexadecimal encoding of an 8-byte array, such as
            -   * `000000000000004a`.
            +   * Optional. The ID of the [Cloud Trace](https://cloud.google.com/trace) span
            +   * associated with the current operation in which the log is being written.
            +   * For example, if a span has the REST resource name of
            +   * "projects/some-project/traces/some-trace/spans/some-span-id", then the
            +   * `span_id` field is "some-span-id".
            +   * A
            +   * [Span](https://cloud.google.com/trace/docs/reference/v2/rest/v2/projects.traces/batchWrite#Span)
            +   * represents a single operation within a trace. Whereas a trace may involve
            +   * multiple different microservices running on multiple different machines,
            +   * a span generally corresponds to a single logical operation being performed
            +   * in a single instance of a microservice on one specific machine. Spans
            +   * are the nodes within the tree that is a trace.
            +   * Applications that are [instrumented for
            +   * tracing](https://cloud.google.com/trace/docs/setup) will generally assign a
            +   * new, unique span ID on each incoming request. It is also common to create
            +   * and record additional spans corresponding to internal processing elements
            +   * as well as issuing requests to dependencies.
            +   * The span ID is expected to be a 16-character, hexadecimal encoding of an
            +   * 8-byte array and should not be zero. It should be unique within the trace
            +   * and should, ideally, be generated in a manner that is uniformly random.
            +   * Example values:
            +   *   - `000000000000004a`
            +   *   - `7a2190356c3fc94b`
            +   *   - `0000f00300090021`
            +   *   - `d39223e101960076`
                * 
            * * string span_id = 27 [(.google.api.field_behavior) = OPTIONAL]; @@ -1103,7 +1158,8 @@ public boolean getTraceSampled() { * * *
            -   * Optional. Source code location information associated with the log entry, if any.
            +   * Optional. Source code location information associated with the log entry,
            +   * if any.
                * 
            * * @@ -1120,7 +1176,8 @@ public boolean hasSourceLocation() { * * *
            -   * Optional. Source code location information associated with the log entry, if any.
            +   * Optional. Source code location information associated with the log entry,
            +   * if any.
                * 
            * * @@ -1139,7 +1196,8 @@ public com.google.logging.v2.LogEntrySourceLocation getSourceLocation() { * * *
            -   * Optional. Source code location information associated with the log entry, if any.
            +   * Optional. Source code location information associated with the log entry,
            +   * if any.
                * 
            * * @@ -1159,8 +1217,8 @@ public com.google.logging.v2.LogEntrySourceLocationOrBuilder getSourceLocationOr * * *
            -   * Optional. Information indicating this LogEntry is part of a sequence of multiple log
            -   * entries split from a single LogEntry.
            +   * 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]; @@ -1175,8 +1233,8 @@ public boolean hasSplit() { * * *
            -   * Optional. Information indicating this LogEntry is part of a sequence of multiple log
            -   * entries split from a single LogEntry.
            +   * 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]; @@ -1191,8 +1249,8 @@ 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.
            +   * 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]; @@ -3076,11 +3134,12 @@ public 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.
            -     * If this field is omitted in a new log entry, then Logging assigns it the
            -     * current time. Timestamps have nanosecond accuracy, but trailing zeros in
            -     * the fractional seconds might be omitted when the timestamp is displayed.
            +     * 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. If this field is omitted in a new log entry, then Logging assigns
            +     * it the current time. Timestamps have nanosecond accuracy, but trailing
            +     * zeros in the fractional seconds might be omitted when the timestamp is
            +     * displayed.
                  * Incoming log entries must have timestamps that don't exceed the
                  * [logs retention
                  * period](https://cloud.google.com/logging/quotas#logs_retention_periods) in
            @@ -3100,11 +3159,12 @@ public 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.
            -     * If this field is omitted in a new log entry, then Logging assigns it the
            -     * current time. Timestamps have nanosecond accuracy, but trailing zeros in
            -     * the fractional seconds might be omitted when the timestamp is displayed.
            +     * 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. If this field is omitted in a new log entry, then Logging assigns
            +     * it the current time. Timestamps have nanosecond accuracy, but trailing
            +     * zeros in the fractional seconds might be omitted when the timestamp is
            +     * displayed.
                  * Incoming log entries must have timestamps that don't exceed the
                  * [logs retention
                  * period](https://cloud.google.com/logging/quotas#logs_retention_periods) in
            @@ -3128,11 +3188,12 @@ 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.
            -     * If this field is omitted in a new log entry, then Logging assigns it the
            -     * current time. Timestamps have nanosecond accuracy, but trailing zeros in
            -     * the fractional seconds might be omitted when the timestamp is displayed.
            +     * 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. If this field is omitted in a new log entry, then Logging assigns
            +     * it the current time. Timestamps have nanosecond accuracy, but trailing
            +     * zeros in the fractional seconds might be omitted when the timestamp is
            +     * displayed.
                  * Incoming log entries must have timestamps that don't exceed the
                  * [logs retention
                  * period](https://cloud.google.com/logging/quotas#logs_retention_periods) in
            @@ -3160,11 +3221,12 @@ public Builder setTimestamp(com.google.protobuf.Timestamp value) {
                  *
                  *
                  * 
            -     * 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.
            -     * If this field is omitted in a new log entry, then Logging assigns it the
            -     * current time. Timestamps have nanosecond accuracy, but trailing zeros in
            -     * the fractional seconds might be omitted when the timestamp is displayed.
            +     * 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. If this field is omitted in a new log entry, then Logging assigns
            +     * it the current time. Timestamps have nanosecond accuracy, but trailing
            +     * zeros in the fractional seconds might be omitted when the timestamp is
            +     * displayed.
                  * Incoming log entries must have timestamps that don't exceed the
                  * [logs retention
                  * period](https://cloud.google.com/logging/quotas#logs_retention_periods) in
            @@ -3189,11 +3251,12 @@ public Builder setTimestamp(com.google.protobuf.Timestamp.Builder builderForValu
                  *
                  *
                  * 
            -     * 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.
            -     * If this field is omitted in a new log entry, then Logging assigns it the
            -     * current time. Timestamps have nanosecond accuracy, but trailing zeros in
            -     * the fractional seconds might be omitted when the timestamp is displayed.
            +     * 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. If this field is omitted in a new log entry, then Logging assigns
            +     * it the current time. Timestamps have nanosecond accuracy, but trailing
            +     * zeros in the fractional seconds might be omitted when the timestamp is
            +     * displayed.
                  * Incoming log entries must have timestamps that don't exceed the
                  * [logs retention
                  * period](https://cloud.google.com/logging/quotas#logs_retention_periods) in
            @@ -3224,11 +3287,12 @@ public Builder mergeTimestamp(com.google.protobuf.Timestamp value) {
                  *
                  *
                  * 
            -     * 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.
            -     * If this field is omitted in a new log entry, then Logging assigns it the
            -     * current time. Timestamps have nanosecond accuracy, but trailing zeros in
            -     * the fractional seconds might be omitted when the timestamp is displayed.
            +     * 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. If this field is omitted in a new log entry, then Logging assigns
            +     * it the current time. Timestamps have nanosecond accuracy, but trailing
            +     * zeros in the fractional seconds might be omitted when the timestamp is
            +     * displayed.
                  * Incoming log entries must have timestamps that don't exceed the
                  * [logs retention
                  * period](https://cloud.google.com/logging/quotas#logs_retention_periods) in
            @@ -3253,11 +3317,12 @@ public Builder clearTimestamp() {
                  *
                  *
                  * 
            -     * 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.
            -     * If this field is omitted in a new log entry, then Logging assigns it the
            -     * current time. Timestamps have nanosecond accuracy, but trailing zeros in
            -     * the fractional seconds might be omitted when the timestamp is displayed.
            +     * 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. If this field is omitted in a new log entry, then Logging assigns
            +     * it the current time. Timestamps have nanosecond accuracy, but trailing
            +     * zeros in the fractional seconds might be omitted when the timestamp is
            +     * displayed.
                  * Incoming log entries must have timestamps that don't exceed the
                  * [logs retention
                  * period](https://cloud.google.com/logging/quotas#logs_retention_periods) in
            @@ -3277,11 +3342,12 @@ public com.google.protobuf.Timestamp.Builder getTimestampBuilder() {
                  *
                  *
                  * 
            -     * 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.
            -     * If this field is omitted in a new log entry, then Logging assigns it the
            -     * current time. Timestamps have nanosecond accuracy, but trailing zeros in
            -     * the fractional seconds might be omitted when the timestamp is displayed.
            +     * 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. If this field is omitted in a new log entry, then Logging assigns
            +     * it the current time. Timestamps have nanosecond accuracy, but trailing
            +     * zeros in the fractional seconds might be omitted when the timestamp is
            +     * displayed.
                  * Incoming log entries must have timestamps that don't exceed the
                  * [logs retention
                  * period](https://cloud.google.com/logging/quotas#logs_retention_periods) in
            @@ -3303,11 +3369,12 @@ public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {
                  *
                  *
                  * 
            -     * 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.
            -     * If this field is omitted in a new log entry, then Logging assigns it the
            -     * current time. Timestamps have nanosecond accuracy, but trailing zeros in
            -     * the fractional seconds might be omitted when the timestamp is displayed.
            +     * 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. If this field is omitted in a new log entry, then Logging assigns
            +     * it the current time. Timestamps have nanosecond accuracy, but trailing
            +     * zeros in the fractional seconds might be omitted when the timestamp is
            +     * displayed.
                  * Incoming log entries must have timestamps that don't exceed the
                  * [logs retention
                  * period](https://cloud.google.com/logging/quotas#logs_retention_periods) in
            @@ -3541,7 +3608,8 @@ public com.google.protobuf.TimestampOrBuilder getReceiveTimestampOrBuilder() {
                  *
                  *
                  * 
            -     * Optional. The severity of the log entry. The default value is `LogSeverity.DEFAULT`.
            +     * Optional. The severity of the log entry. The default value is
            +     * `LogSeverity.DEFAULT`.
                  * 
            * * @@ -3558,7 +3626,8 @@ public int getSeverityValue() { * * *
            -     * Optional. The severity of the log entry. The default value is `LogSeverity.DEFAULT`.
            +     * Optional. The severity of the log entry. The default value is
            +     * `LogSeverity.DEFAULT`.
                  * 
            * * @@ -3578,7 +3647,8 @@ public Builder setSeverityValue(int value) { * * *
            -     * Optional. The severity of the log entry. The default value is `LogSeverity.DEFAULT`.
            +     * Optional. The severity of the log entry. The default value is
            +     * `LogSeverity.DEFAULT`.
                  * 
            * * @@ -3597,7 +3667,8 @@ public com.google.logging.type.LogSeverity getSeverity() { * * *
            -     * Optional. The severity of the log entry. The default value is `LogSeverity.DEFAULT`.
            +     * Optional. The severity of the log entry. The default value is
            +     * `LogSeverity.DEFAULT`.
                  * 
            * * @@ -3620,7 +3691,8 @@ public Builder setSeverity(com.google.logging.type.LogSeverity value) { * * *
            -     * Optional. The severity of the log entry. The default value is `LogSeverity.DEFAULT`.
            +     * Optional. The severity of the log entry. The default value is
            +     * `LogSeverity.DEFAULT`.
                  * 
            * * @@ -3641,8 +3713,8 @@ public Builder clearSeverity() { * * *
            -     * 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
            +     * 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
                  * `timestamp`, and with the same `insert_id` to be duplicates which are
                  * removed in a single query result. However, there are no guarantees of
                  * de-duplication in the export of logs.
            @@ -3671,8 +3743,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
            +     * 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
                  * `timestamp`, and with the same `insert_id` to be duplicates which are
                  * removed in a single query result. However, there are no guarantees of
                  * de-duplication in the export of logs.
            @@ -3701,8 +3773,8 @@ 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
            +     * 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
                  * `timestamp`, and with the same `insert_id` to be duplicates which are
                  * removed in a single query result. However, there are no guarantees of
                  * de-duplication in the export of logs.
            @@ -3730,8 +3802,8 @@ public Builder setInsertId(java.lang.String value) {
                  *
                  *
                  * 
            -     * 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
            +     * 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
                  * `timestamp`, and with the same `insert_id` to be duplicates which are
                  * removed in a single query result. However, there are no guarantees of
                  * de-duplication in the export of logs.
            @@ -3755,8 +3827,8 @@ public Builder clearInsertId() {
                  *
                  *
                  * 
            -     * 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
            +     * 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
                  * `timestamp`, and with the same `insert_id` to be duplicates which are
                  * removed in a single query result. However, there are no guarantees of
                  * de-duplication in the export of logs.
            @@ -3792,8 +3864,8 @@ public Builder setInsertIdBytes(com.google.protobuf.ByteString value) {
                  *
                  *
                  * 
            -     * Optional. Information about the HTTP request associated with this log entry, if
            -     * applicable.
            +     * Optional. Information about the HTTP request associated with this log
            +     * entry, if applicable.
                  * 
            * * @@ -3809,8 +3881,8 @@ public boolean hasHttpRequest() { * * *
            -     * Optional. Information about the HTTP request associated with this log entry, if
            -     * applicable.
            +     * Optional. Information about the HTTP request associated with this log
            +     * entry, if applicable.
                  * 
            * * @@ -3832,8 +3904,8 @@ public com.google.logging.type.HttpRequest getHttpRequest() { * * *
            -     * Optional. Information about the HTTP request associated with this log entry, if
            -     * applicable.
            +     * Optional. Information about the HTTP request associated with this log
            +     * entry, if applicable.
                  * 
            * * @@ -3857,8 +3929,8 @@ public Builder setHttpRequest(com.google.logging.type.HttpRequest value) { * * *
            -     * Optional. Information about the HTTP request associated with this log entry, if
            -     * applicable.
            +     * Optional. Information about the HTTP request associated with this log
            +     * entry, if applicable.
                  * 
            * * @@ -3879,8 +3951,8 @@ public Builder setHttpRequest(com.google.logging.type.HttpRequest.Builder builde * * *
            -     * Optional. Information about the HTTP request associated with this log entry, if
            -     * applicable.
            +     * Optional. Information about the HTTP request associated with this log
            +     * entry, if applicable.
                  * 
            * * @@ -3907,8 +3979,8 @@ public Builder mergeHttpRequest(com.google.logging.type.HttpRequest value) { * * *
            -     * Optional. Information about the HTTP request associated with this log entry, if
            -     * applicable.
            +     * Optional. Information about the HTTP request associated with this log
            +     * entry, if applicable.
                  * 
            * * @@ -3929,8 +4001,8 @@ public Builder clearHttpRequest() { * * *
            -     * Optional. Information about the HTTP request associated with this log entry, if
            -     * applicable.
            +     * Optional. Information about the HTTP request associated with this log
            +     * entry, if applicable.
                  * 
            * * @@ -3946,8 +4018,8 @@ public com.google.logging.type.HttpRequest.Builder getHttpRequestBuilder() { * * *
            -     * Optional. Information about the HTTP request associated with this log entry, if
            -     * applicable.
            +     * Optional. Information about the HTTP request associated with this log
            +     * entry, if applicable.
                  * 
            * * @@ -3967,8 +4039,8 @@ public com.google.logging.type.HttpRequestOrBuilder getHttpRequestOrBuilder() { * * *
            -     * Optional. Information about the HTTP request associated with this log entry, if
            -     * applicable.
            +     * Optional. Information about the HTTP request associated with this log
            +     * entry, if applicable.
                  * 
            * * @@ -4021,8 +4093,8 @@ public 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.
            +     * 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.
            @@ -4053,8 +4125,8 @@ public 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.
            +     * 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.
            @@ -4076,8 +4148,8 @@ public 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.
            +     * 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.
            @@ -4106,8 +4178,8 @@ public 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.
            +     * 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.
            @@ -4142,8 +4214,8 @@ public Builder clearLabels() {
                  *
                  *
                  * 
            -     * Optional. A map of key, value pairs that provides additional information about the
            -     * log entry. The labels can be user-defined or system-defined.
            +     * 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.
            @@ -4174,8 +4246,8 @@ public java.util.Map getMutableLabels() {
                  *
                  *
                  * 
            -     * Optional. A map of key, value pairs that provides additional information about the
            -     * log entry. The labels can be user-defined or system-defined.
            +     * 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.
            @@ -4204,8 +4276,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
                  *
                  *
                  * 
            -     * Optional. A map of key, value pairs that provides additional information about the
            -     * log entry. The labels can be user-defined or system-defined.
            +     * 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.
            @@ -4440,10 +4512,14 @@ public 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
            -     * `//tracing.googleapis.com`. Example:
            -     * `projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824`
            +     * Optional. The REST resource name of the trace being written to
            +     * [Cloud Trace](https://cloud.google.com/trace) in
            +     * association with this log entry. For example, if your trace data is stored
            +     * in the Cloud project "my-trace-project" and if the service that is creating
            +     * the log entry receives a trace header that includes the trace ID "12345",
            +     * then the service should use "projects/my-tracing-project/traces/12345".
            +     * The `trace` field provides the link between logs and traces. By using
            +     * this field, you can navigate from a log entry to a trace.
                  * 
            * * string trace = 22 [(.google.api.field_behavior) = OPTIONAL]; @@ -4465,10 +4541,14 @@ 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
            -     * `//tracing.googleapis.com`. Example:
            -     * `projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824`
            +     * Optional. The REST resource name of the trace being written to
            +     * [Cloud Trace](https://cloud.google.com/trace) in
            +     * association with this log entry. For example, if your trace data is stored
            +     * in the Cloud project "my-trace-project" and if the service that is creating
            +     * the log entry receives a trace header that includes the trace ID "12345",
            +     * then the service should use "projects/my-tracing-project/traces/12345".
            +     * The `trace` field provides the link between logs and traces. By using
            +     * this field, you can navigate from a log entry to a trace.
                  * 
            * * string trace = 22 [(.google.api.field_behavior) = OPTIONAL]; @@ -4490,10 +4570,14 @@ 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
            -     * `//tracing.googleapis.com`. Example:
            -     * `projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824`
            +     * Optional. The REST resource name of the trace being written to
            +     * [Cloud Trace](https://cloud.google.com/trace) in
            +     * association with this log entry. For example, if your trace data is stored
            +     * in the Cloud project "my-trace-project" and if the service that is creating
            +     * the log entry receives a trace header that includes the trace ID "12345",
            +     * then the service should use "projects/my-tracing-project/traces/12345".
            +     * The `trace` field provides the link between logs and traces. By using
            +     * this field, you can navigate from a log entry to a trace.
                  * 
            * * string trace = 22 [(.google.api.field_behavior) = OPTIONAL]; @@ -4514,10 +4598,14 @@ public Builder setTrace(java.lang.String value) { * * *
            -     * 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
            -     * `//tracing.googleapis.com`. Example:
            -     * `projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824`
            +     * Optional. The REST resource name of the trace being written to
            +     * [Cloud Trace](https://cloud.google.com/trace) in
            +     * association with this log entry. For example, if your trace data is stored
            +     * in the Cloud project "my-trace-project" and if the service that is creating
            +     * the log entry receives a trace header that includes the trace ID "12345",
            +     * then the service should use "projects/my-tracing-project/traces/12345".
            +     * The `trace` field provides the link between logs and traces. By using
            +     * this field, you can navigate from a log entry to a trace.
                  * 
            * * string trace = 22 [(.google.api.field_behavior) = OPTIONAL]; @@ -4534,10 +4622,14 @@ public Builder clearTrace() { * * *
            -     * 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
            -     * `//tracing.googleapis.com`. Example:
            -     * `projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824`
            +     * Optional. The REST resource name of the trace being written to
            +     * [Cloud Trace](https://cloud.google.com/trace) in
            +     * association with this log entry. For example, if your trace data is stored
            +     * in the Cloud project "my-trace-project" and if the service that is creating
            +     * the log entry receives a trace header that includes the trace ID "12345",
            +     * then the service should use "projects/my-tracing-project/traces/12345".
            +     * The `trace` field provides the link between logs and traces. By using
            +     * this field, you can navigate from a log entry to a trace.
                  * 
            * * string trace = 22 [(.google.api.field_behavior) = OPTIONAL]; @@ -4561,10 +4653,31 @@ public Builder setTraceBytes(com.google.protobuf.ByteString value) { * * *
            -     * 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
            -     * 16-character hexadecimal encoding of an 8-byte array, such as
            -     * `000000000000004a`.
            +     * Optional. The ID of the [Cloud Trace](https://cloud.google.com/trace) span
            +     * associated with the current operation in which the log is being written.
            +     * For example, if a span has the REST resource name of
            +     * "projects/some-project/traces/some-trace/spans/some-span-id", then the
            +     * `span_id` field is "some-span-id".
            +     * A
            +     * [Span](https://cloud.google.com/trace/docs/reference/v2/rest/v2/projects.traces/batchWrite#Span)
            +     * represents a single operation within a trace. Whereas a trace may involve
            +     * multiple different microservices running on multiple different machines,
            +     * a span generally corresponds to a single logical operation being performed
            +     * in a single instance of a microservice on one specific machine. Spans
            +     * are the nodes within the tree that is a trace.
            +     * Applications that are [instrumented for
            +     * tracing](https://cloud.google.com/trace/docs/setup) will generally assign a
            +     * new, unique span ID on each incoming request. It is also common to create
            +     * and record additional spans corresponding to internal processing elements
            +     * as well as issuing requests to dependencies.
            +     * The span ID is expected to be a 16-character, hexadecimal encoding of an
            +     * 8-byte array and should not be zero. It should be unique within the trace
            +     * and should, ideally, be generated in a manner that is uniformly random.
            +     * Example values:
            +     *   - `000000000000004a`
            +     *   - `7a2190356c3fc94b`
            +     *   - `0000f00300090021`
            +     *   - `d39223e101960076`
                  * 
            * * string span_id = 27 [(.google.api.field_behavior) = OPTIONAL]; @@ -4586,10 +4699,31 @@ 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
            -     * 16-character hexadecimal encoding of an 8-byte array, such as
            -     * `000000000000004a`.
            +     * Optional. The ID of the [Cloud Trace](https://cloud.google.com/trace) span
            +     * associated with the current operation in which the log is being written.
            +     * For example, if a span has the REST resource name of
            +     * "projects/some-project/traces/some-trace/spans/some-span-id", then the
            +     * `span_id` field is "some-span-id".
            +     * A
            +     * [Span](https://cloud.google.com/trace/docs/reference/v2/rest/v2/projects.traces/batchWrite#Span)
            +     * represents a single operation within a trace. Whereas a trace may involve
            +     * multiple different microservices running on multiple different machines,
            +     * a span generally corresponds to a single logical operation being performed
            +     * in a single instance of a microservice on one specific machine. Spans
            +     * are the nodes within the tree that is a trace.
            +     * Applications that are [instrumented for
            +     * tracing](https://cloud.google.com/trace/docs/setup) will generally assign a
            +     * new, unique span ID on each incoming request. It is also common to create
            +     * and record additional spans corresponding to internal processing elements
            +     * as well as issuing requests to dependencies.
            +     * The span ID is expected to be a 16-character, hexadecimal encoding of an
            +     * 8-byte array and should not be zero. It should be unique within the trace
            +     * and should, ideally, be generated in a manner that is uniformly random.
            +     * Example values:
            +     *   - `000000000000004a`
            +     *   - `7a2190356c3fc94b`
            +     *   - `0000f00300090021`
            +     *   - `d39223e101960076`
                  * 
            * * string span_id = 27 [(.google.api.field_behavior) = OPTIONAL]; @@ -4611,10 +4745,31 @@ 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
            -     * 16-character hexadecimal encoding of an 8-byte array, such as
            -     * `000000000000004a`.
            +     * Optional. The ID of the [Cloud Trace](https://cloud.google.com/trace) span
            +     * associated with the current operation in which the log is being written.
            +     * For example, if a span has the REST resource name of
            +     * "projects/some-project/traces/some-trace/spans/some-span-id", then the
            +     * `span_id` field is "some-span-id".
            +     * A
            +     * [Span](https://cloud.google.com/trace/docs/reference/v2/rest/v2/projects.traces/batchWrite#Span)
            +     * represents a single operation within a trace. Whereas a trace may involve
            +     * multiple different microservices running on multiple different machines,
            +     * a span generally corresponds to a single logical operation being performed
            +     * in a single instance of a microservice on one specific machine. Spans
            +     * are the nodes within the tree that is a trace.
            +     * Applications that are [instrumented for
            +     * tracing](https://cloud.google.com/trace/docs/setup) will generally assign a
            +     * new, unique span ID on each incoming request. It is also common to create
            +     * and record additional spans corresponding to internal processing elements
            +     * as well as issuing requests to dependencies.
            +     * The span ID is expected to be a 16-character, hexadecimal encoding of an
            +     * 8-byte array and should not be zero. It should be unique within the trace
            +     * and should, ideally, be generated in a manner that is uniformly random.
            +     * Example values:
            +     *   - `000000000000004a`
            +     *   - `7a2190356c3fc94b`
            +     *   - `0000f00300090021`
            +     *   - `d39223e101960076`
                  * 
            * * string span_id = 27 [(.google.api.field_behavior) = OPTIONAL]; @@ -4635,10 +4790,31 @@ public Builder setSpanId(java.lang.String value) { * * *
            -     * 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
            -     * 16-character hexadecimal encoding of an 8-byte array, such as
            -     * `000000000000004a`.
            +     * Optional. The ID of the [Cloud Trace](https://cloud.google.com/trace) span
            +     * associated with the current operation in which the log is being written.
            +     * For example, if a span has the REST resource name of
            +     * "projects/some-project/traces/some-trace/spans/some-span-id", then the
            +     * `span_id` field is "some-span-id".
            +     * A
            +     * [Span](https://cloud.google.com/trace/docs/reference/v2/rest/v2/projects.traces/batchWrite#Span)
            +     * represents a single operation within a trace. Whereas a trace may involve
            +     * multiple different microservices running on multiple different machines,
            +     * a span generally corresponds to a single logical operation being performed
            +     * in a single instance of a microservice on one specific machine. Spans
            +     * are the nodes within the tree that is a trace.
            +     * Applications that are [instrumented for
            +     * tracing](https://cloud.google.com/trace/docs/setup) will generally assign a
            +     * new, unique span ID on each incoming request. It is also common to create
            +     * and record additional spans corresponding to internal processing elements
            +     * as well as issuing requests to dependencies.
            +     * The span ID is expected to be a 16-character, hexadecimal encoding of an
            +     * 8-byte array and should not be zero. It should be unique within the trace
            +     * and should, ideally, be generated in a manner that is uniformly random.
            +     * Example values:
            +     *   - `000000000000004a`
            +     *   - `7a2190356c3fc94b`
            +     *   - `0000f00300090021`
            +     *   - `d39223e101960076`
                  * 
            * * string span_id = 27 [(.google.api.field_behavior) = OPTIONAL]; @@ -4655,10 +4831,31 @@ public Builder clearSpanId() { * * *
            -     * 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
            -     * 16-character hexadecimal encoding of an 8-byte array, such as
            -     * `000000000000004a`.
            +     * Optional. The ID of the [Cloud Trace](https://cloud.google.com/trace) span
            +     * associated with the current operation in which the log is being written.
            +     * For example, if a span has the REST resource name of
            +     * "projects/some-project/traces/some-trace/spans/some-span-id", then the
            +     * `span_id` field is "some-span-id".
            +     * A
            +     * [Span](https://cloud.google.com/trace/docs/reference/v2/rest/v2/projects.traces/batchWrite#Span)
            +     * represents a single operation within a trace. Whereas a trace may involve
            +     * multiple different microservices running on multiple different machines,
            +     * a span generally corresponds to a single logical operation being performed
            +     * in a single instance of a microservice on one specific machine. Spans
            +     * are the nodes within the tree that is a trace.
            +     * Applications that are [instrumented for
            +     * tracing](https://cloud.google.com/trace/docs/setup) will generally assign a
            +     * new, unique span ID on each incoming request. It is also common to create
            +     * and record additional spans corresponding to internal processing elements
            +     * as well as issuing requests to dependencies.
            +     * The span ID is expected to be a 16-character, hexadecimal encoding of an
            +     * 8-byte array and should not be zero. It should be unique within the trace
            +     * and should, ideally, be generated in a manner that is uniformly random.
            +     * Example values:
            +     *   - `000000000000004a`
            +     *   - `7a2190356c3fc94b`
            +     *   - `0000f00300090021`
            +     *   - `d39223e101960076`
                  * 
            * * string span_id = 27 [(.google.api.field_behavior) = OPTIONAL]; @@ -4755,7 +4952,8 @@ public Builder clearTraceSampled() { * * *
            -     * Optional. Source code location information associated with the log entry, if any.
            +     * Optional. Source code location information associated with the log entry,
            +     * if any.
                  * 
            * * @@ -4771,7 +4969,8 @@ public boolean hasSourceLocation() { * * *
            -     * Optional. Source code location information associated with the log entry, if any.
            +     * Optional. Source code location information associated with the log entry,
            +     * if any.
                  * 
            * * @@ -4793,7 +4992,8 @@ public com.google.logging.v2.LogEntrySourceLocation getSourceLocation() { * * *
            -     * Optional. Source code location information associated with the log entry, if any.
            +     * Optional. Source code location information associated with the log entry,
            +     * if any.
                  * 
            * * @@ -4817,7 +5017,8 @@ public Builder setSourceLocation(com.google.logging.v2.LogEntrySourceLocation va * * *
            -     * Optional. Source code location information associated with the log entry, if any.
            +     * Optional. Source code location information associated with the log entry,
            +     * if any.
                  * 
            * * @@ -4839,7 +5040,8 @@ public Builder setSourceLocation( * * *
            -     * Optional. Source code location information associated with the log entry, if any.
            +     * Optional. Source code location information associated with the log entry,
            +     * if any.
                  * 
            * * @@ -4867,7 +5069,8 @@ public Builder mergeSourceLocation(com.google.logging.v2.LogEntrySourceLocation * * *
            -     * Optional. Source code location information associated with the log entry, if any.
            +     * Optional. Source code location information associated with the log entry,
            +     * if any.
                  * 
            * * @@ -4888,7 +5091,8 @@ public Builder clearSourceLocation() { * * *
            -     * Optional. Source code location information associated with the log entry, if any.
            +     * Optional. Source code location information associated with the log entry,
            +     * if any.
                  * 
            * * @@ -4904,7 +5108,8 @@ public com.google.logging.v2.LogEntrySourceLocation.Builder getSourceLocationBui * * *
            -     * Optional. Source code location information associated with the log entry, if any.
            +     * Optional. Source code location information associated with the log entry,
            +     * if any.
                  * 
            * * @@ -4924,7 +5129,8 @@ public com.google.logging.v2.LogEntrySourceLocationOrBuilder getSourceLocationOr * * *
            -     * Optional. Source code location information associated with the log entry, if any.
            +     * Optional. Source code location information associated with the log entry,
            +     * if any.
                  * 
            * * @@ -4958,8 +5164,8 @@ public com.google.logging.v2.LogEntrySourceLocationOrBuilder getSourceLocationOr * * *
            -     * Optional. Information indicating this LogEntry is part of a sequence of multiple log
            -     * entries split from a single LogEntry.
            +     * 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]; @@ -4974,8 +5180,8 @@ public boolean hasSplit() { * * *
            -     * Optional. Information indicating this LogEntry is part of a sequence of multiple log
            -     * entries split from a single LogEntry.
            +     * 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]; @@ -4994,8 +5200,8 @@ 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.
            +     * 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]; @@ -5018,8 +5224,8 @@ public Builder setSplit(com.google.logging.v2.LogSplit value) { * * *
            -     * Optional. Information indicating this LogEntry is part of a sequence of multiple log
            -     * entries split from a single LogEntry.
            +     * 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]; @@ -5039,8 +5245,8 @@ public Builder setSplit(com.google.logging.v2.LogSplit.Builder builderForValue) * * *
            -     * Optional. Information indicating this LogEntry is part of a sequence of multiple log
            -     * entries split from a single LogEntry.
            +     * 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]; @@ -5066,8 +5272,8 @@ public Builder mergeSplit(com.google.logging.v2.LogSplit value) { * * *
            -     * Optional. Information indicating this LogEntry is part of a sequence of multiple log
            -     * entries split from a single LogEntry.
            +     * 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]; @@ -5087,8 +5293,8 @@ public Builder clearSplit() { * * *
            -     * Optional. Information indicating this LogEntry is part of a sequence of multiple log
            -     * entries split from a single LogEntry.
            +     * 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]; @@ -5103,8 +5309,8 @@ public com.google.logging.v2.LogSplit.Builder getSplitBuilder() { * * *
            -     * Optional. Information indicating this LogEntry is part of a sequence of multiple log
            -     * entries split from a single LogEntry.
            +     * 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]; @@ -5121,8 +5327,8 @@ public com.google.logging.v2.LogSplitOrBuilder getSplitOrBuilder() { * * *
            -     * Optional. Information indicating this LogEntry is part of a sequence of multiple log
            -     * entries split from a single LogEntry.
            +     * 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]; diff --git a/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 index 8a3d69f58..784b5b625 100644 --- a/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 @@ -258,11 +258,12 @@ public interface LogEntryOrBuilder * * *
            -   * 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.
            -   * If this field is omitted in a new log entry, then Logging assigns it the
            -   * current time. Timestamps have nanosecond accuracy, but trailing zeros in
            -   * the fractional seconds might be omitted when the timestamp is displayed.
            +   * 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. If this field is omitted in a new log entry, then Logging assigns
            +   * it the current time. Timestamps have nanosecond accuracy, but trailing
            +   * zeros in the fractional seconds might be omitted when the timestamp is
            +   * displayed.
                * Incoming log entries must have timestamps that don't exceed the
                * [logs retention
                * period](https://cloud.google.com/logging/quotas#logs_retention_periods) in
            @@ -280,11 +281,12 @@ public interface LogEntryOrBuilder
                *
                *
                * 
            -   * 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.
            -   * If this field is omitted in a new log entry, then Logging assigns it the
            -   * current time. Timestamps have nanosecond accuracy, but trailing zeros in
            -   * the fractional seconds might be omitted when the timestamp is displayed.
            +   * 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. If this field is omitted in a new log entry, then Logging assigns
            +   * it the current time. Timestamps have nanosecond accuracy, but trailing
            +   * zeros in the fractional seconds might be omitted when the timestamp is
            +   * displayed.
                * Incoming log entries must have timestamps that don't exceed the
                * [logs retention
                * period](https://cloud.google.com/logging/quotas#logs_retention_periods) in
            @@ -302,11 +304,12 @@ public interface LogEntryOrBuilder
                *
                *
                * 
            -   * 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.
            -   * If this field is omitted in a new log entry, then Logging assigns it the
            -   * current time. Timestamps have nanosecond accuracy, but trailing zeros in
            -   * the fractional seconds might be omitted when the timestamp is displayed.
            +   * 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. If this field is omitted in a new log entry, then Logging assigns
            +   * it the current time. Timestamps have nanosecond accuracy, but trailing
            +   * zeros in the fractional seconds might be omitted when the timestamp is
            +   * displayed.
                * Incoming log entries must have timestamps that don't exceed the
                * [logs retention
                * period](https://cloud.google.com/logging/quotas#logs_retention_periods) in
            @@ -364,7 +367,8 @@ public interface LogEntryOrBuilder
                *
                *
                * 
            -   * Optional. The severity of the log entry. The default value is `LogSeverity.DEFAULT`.
            +   * Optional. The severity of the log entry. The default value is
            +   * `LogSeverity.DEFAULT`.
                * 
            * * .google.logging.type.LogSeverity severity = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -377,7 +381,8 @@ public interface LogEntryOrBuilder * * *
            -   * Optional. The severity of the log entry. The default value is `LogSeverity.DEFAULT`.
            +   * Optional. The severity of the log entry. The default value is
            +   * `LogSeverity.DEFAULT`.
                * 
            * * .google.logging.type.LogSeverity severity = 10 [(.google.api.field_behavior) = OPTIONAL]; @@ -391,8 +396,8 @@ public interface LogEntryOrBuilder * * *
            -   * 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
            +   * 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
                * `timestamp`, and with the same `insert_id` to be duplicates which are
                * removed in a single query result. However, there are no guarantees of
                * de-duplication in the export of logs.
            @@ -411,8 +416,8 @@ public interface LogEntryOrBuilder
                *
                *
                * 
            -   * 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
            +   * 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
                * `timestamp`, and with the same `insert_id` to be duplicates which are
                * removed in a single query result. However, there are no guarantees of
                * de-duplication in the export of logs.
            @@ -432,8 +437,8 @@ public interface LogEntryOrBuilder
                *
                *
                * 
            -   * Optional. Information about the HTTP request associated with this log entry, if
            -   * applicable.
            +   * Optional. Information about the HTTP request associated with this log
            +   * entry, if applicable.
                * 
            * * @@ -447,8 +452,8 @@ public interface LogEntryOrBuilder * * *
            -   * Optional. Information about the HTTP request associated with this log entry, if
            -   * applicable.
            +   * Optional. Information about the HTTP request associated with this log
            +   * entry, if applicable.
                * 
            * * @@ -462,8 +467,8 @@ public interface LogEntryOrBuilder * * *
            -   * Optional. Information about the HTTP request associated with this log entry, if
            -   * applicable.
            +   * Optional. Information about the HTTP request associated with this log
            +   * entry, if applicable.
                * 
            * * @@ -476,8 +481,8 @@ public interface LogEntryOrBuilder * * *
            -   * Optional. A map of key, value pairs that provides additional information about the
            -   * log entry. The labels can be user-defined or system-defined.
            +   * 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.
            @@ -496,8 +501,8 @@ public interface LogEntryOrBuilder
                *
                *
                * 
            -   * Optional. A map of key, value pairs that provides additional information about the
            -   * log entry. The labels can be user-defined or system-defined.
            +   * 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.
            @@ -519,8 +524,8 @@ public interface LogEntryOrBuilder
                *
                *
                * 
            -   * Optional. A map of key, value pairs that provides additional information about the
            -   * log entry. The labels can be user-defined or system-defined.
            +   * 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.
            @@ -539,8 +544,8 @@ public interface LogEntryOrBuilder
                *
                *
                * 
            -   * Optional. A map of key, value pairs that provides additional information about the
            -   * log entry. The labels can be user-defined or system-defined.
            +   * 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.
            @@ -563,8 +568,8 @@ java.lang.String getLabelsOrDefault(
                *
                *
                * 
            -   * Optional. A map of key, value pairs that provides additional information about the
            -   * log entry. The labels can be user-defined or system-defined.
            +   * 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.
            @@ -628,10 +633,14 @@ java.lang.String getLabelsOrDefault(
                *
                *
                * 
            -   * 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
            -   * `//tracing.googleapis.com`. Example:
            -   * `projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824`
            +   * Optional. The REST resource name of the trace being written to
            +   * [Cloud Trace](https://cloud.google.com/trace) in
            +   * association with this log entry. For example, if your trace data is stored
            +   * in the Cloud project "my-trace-project" and if the service that is creating
            +   * the log entry receives a trace header that includes the trace ID "12345",
            +   * then the service should use "projects/my-tracing-project/traces/12345".
            +   * The `trace` field provides the link between logs and traces. By using
            +   * this field, you can navigate from a log entry to a trace.
                * 
            * * string trace = 22 [(.google.api.field_behavior) = OPTIONAL]; @@ -643,10 +652,14 @@ java.lang.String getLabelsOrDefault( * * *
            -   * 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
            -   * `//tracing.googleapis.com`. Example:
            -   * `projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824`
            +   * Optional. The REST resource name of the trace being written to
            +   * [Cloud Trace](https://cloud.google.com/trace) in
            +   * association with this log entry. For example, if your trace data is stored
            +   * in the Cloud project "my-trace-project" and if the service that is creating
            +   * the log entry receives a trace header that includes the trace ID "12345",
            +   * then the service should use "projects/my-tracing-project/traces/12345".
            +   * The `trace` field provides the link between logs and traces. By using
            +   * this field, you can navigate from a log entry to a trace.
                * 
            * * string trace = 22 [(.google.api.field_behavior) = OPTIONAL]; @@ -659,10 +672,31 @@ java.lang.String getLabelsOrDefault( * * *
            -   * 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
            -   * 16-character hexadecimal encoding of an 8-byte array, such as
            -   * `000000000000004a`.
            +   * Optional. The ID of the [Cloud Trace](https://cloud.google.com/trace) span
            +   * associated with the current operation in which the log is being written.
            +   * For example, if a span has the REST resource name of
            +   * "projects/some-project/traces/some-trace/spans/some-span-id", then the
            +   * `span_id` field is "some-span-id".
            +   * A
            +   * [Span](https://cloud.google.com/trace/docs/reference/v2/rest/v2/projects.traces/batchWrite#Span)
            +   * represents a single operation within a trace. Whereas a trace may involve
            +   * multiple different microservices running on multiple different machines,
            +   * a span generally corresponds to a single logical operation being performed
            +   * in a single instance of a microservice on one specific machine. Spans
            +   * are the nodes within the tree that is a trace.
            +   * Applications that are [instrumented for
            +   * tracing](https://cloud.google.com/trace/docs/setup) will generally assign a
            +   * new, unique span ID on each incoming request. It is also common to create
            +   * and record additional spans corresponding to internal processing elements
            +   * as well as issuing requests to dependencies.
            +   * The span ID is expected to be a 16-character, hexadecimal encoding of an
            +   * 8-byte array and should not be zero. It should be unique within the trace
            +   * and should, ideally, be generated in a manner that is uniformly random.
            +   * Example values:
            +   *   - `000000000000004a`
            +   *   - `7a2190356c3fc94b`
            +   *   - `0000f00300090021`
            +   *   - `d39223e101960076`
                * 
            * * string span_id = 27 [(.google.api.field_behavior) = OPTIONAL]; @@ -674,10 +708,31 @@ java.lang.String getLabelsOrDefault( * * *
            -   * 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
            -   * 16-character hexadecimal encoding of an 8-byte array, such as
            -   * `000000000000004a`.
            +   * Optional. The ID of the [Cloud Trace](https://cloud.google.com/trace) span
            +   * associated with the current operation in which the log is being written.
            +   * For example, if a span has the REST resource name of
            +   * "projects/some-project/traces/some-trace/spans/some-span-id", then the
            +   * `span_id` field is "some-span-id".
            +   * A
            +   * [Span](https://cloud.google.com/trace/docs/reference/v2/rest/v2/projects.traces/batchWrite#Span)
            +   * represents a single operation within a trace. Whereas a trace may involve
            +   * multiple different microservices running on multiple different machines,
            +   * a span generally corresponds to a single logical operation being performed
            +   * in a single instance of a microservice on one specific machine. Spans
            +   * are the nodes within the tree that is a trace.
            +   * Applications that are [instrumented for
            +   * tracing](https://cloud.google.com/trace/docs/setup) will generally assign a
            +   * new, unique span ID on each incoming request. It is also common to create
            +   * and record additional spans corresponding to internal processing elements
            +   * as well as issuing requests to dependencies.
            +   * The span ID is expected to be a 16-character, hexadecimal encoding of an
            +   * 8-byte array and should not be zero. It should be unique within the trace
            +   * and should, ideally, be generated in a manner that is uniformly random.
            +   * Example values:
            +   *   - `000000000000004a`
            +   *   - `7a2190356c3fc94b`
            +   *   - `0000f00300090021`
            +   *   - `d39223e101960076`
                * 
            * * string span_id = 27 [(.google.api.field_behavior) = OPTIONAL]; @@ -708,7 +763,8 @@ java.lang.String getLabelsOrDefault( * * *
            -   * Optional. Source code location information associated with the log entry, if any.
            +   * Optional. Source code location information associated with the log entry,
            +   * if any.
                * 
            * * @@ -722,7 +778,8 @@ java.lang.String getLabelsOrDefault( * * *
            -   * Optional. Source code location information associated with the log entry, if any.
            +   * Optional. Source code location information associated with the log entry,
            +   * if any.
                * 
            * * @@ -736,7 +793,8 @@ java.lang.String getLabelsOrDefault( * * *
            -   * Optional. Source code location information associated with the log entry, if any.
            +   * Optional. Source code location information associated with the log entry,
            +   * if any.
                * 
            * * @@ -749,8 +807,8 @@ java.lang.String getLabelsOrDefault( * * *
            -   * Optional. Information indicating this LogEntry is part of a sequence of multiple log
            -   * entries split from a single LogEntry.
            +   * 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]; @@ -762,8 +820,8 @@ java.lang.String getLabelsOrDefault( * * *
            -   * Optional. Information indicating this LogEntry is part of a sequence of multiple log
            -   * entries split from a single LogEntry.
            +   * 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]; @@ -775,8 +833,8 @@ java.lang.String getLabelsOrDefault( * * *
            -   * Optional. Information indicating this LogEntry is part of a sequence of multiple log
            -   * entries split from a single LogEntry.
            +   * 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]; diff --git a/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 index c963aff80..aa17ce601 100644 --- a/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 @@ -81,10 +81,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
            -   * Required. A client-assigned identifier, such as `"load-balancer-exclusion"`.
            -   * Identifiers are limited to 100 characters and can include only letters,
            -   * digits, underscores, hyphens, and periods. First character has to be
            -   * alphanumeric.
            +   * Required. A client-assigned identifier, such as
            +   * `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and
            +   * can include only letters, digits, underscores, hyphens, and periods. First
            +   * character has to be alphanumeric.
                * 
            * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -107,10 +107,10 @@ 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,
            -   * digits, underscores, hyphens, and periods. First character has to be
            -   * alphanumeric.
            +   * Required. A client-assigned identifier, such as
            +   * `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and
            +   * can include only letters, digits, underscores, hyphens, and periods. First
            +   * character has to be alphanumeric.
                * 
            * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -850,10 +850,10 @@ public Builder mergeFrom( * * *
            -     * Required. A client-assigned identifier, such as `"load-balancer-exclusion"`.
            -     * Identifiers are limited to 100 characters and can include only letters,
            -     * digits, underscores, hyphens, and periods. First character has to be
            -     * alphanumeric.
            +     * Required. A client-assigned identifier, such as
            +     * `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and
            +     * can include only letters, digits, underscores, hyphens, and periods. First
            +     * character has to be alphanumeric.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -875,10 +875,10 @@ 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,
            -     * digits, underscores, hyphens, and periods. First character has to be
            -     * alphanumeric.
            +     * Required. A client-assigned identifier, such as
            +     * `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and
            +     * can include only letters, digits, underscores, hyphens, and periods. First
            +     * character has to be alphanumeric.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -900,10 +900,10 @@ 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,
            -     * digits, underscores, hyphens, and periods. First character has to be
            -     * alphanumeric.
            +     * Required. A client-assigned identifier, such as
            +     * `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and
            +     * can include only letters, digits, underscores, hyphens, and periods. First
            +     * character has to be alphanumeric.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -924,10 +924,10 @@ public Builder setName(java.lang.String value) { * * *
            -     * Required. A client-assigned identifier, such as `"load-balancer-exclusion"`.
            -     * Identifiers are limited to 100 characters and can include only letters,
            -     * digits, underscores, hyphens, and periods. First character has to be
            -     * alphanumeric.
            +     * Required. A client-assigned identifier, such as
            +     * `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and
            +     * can include only letters, digits, underscores, hyphens, and periods. First
            +     * character has to be alphanumeric.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -944,10 +944,10 @@ public Builder clearName() { * * *
            -     * Required. A client-assigned identifier, such as `"load-balancer-exclusion"`.
            -     * Identifiers are limited to 100 characters and can include only letters,
            -     * digits, underscores, hyphens, and periods. First character has to be
            -     * alphanumeric.
            +     * Required. A client-assigned identifier, such as
            +     * `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and
            +     * can include only letters, digits, underscores, hyphens, and periods. First
            +     * character has to be alphanumeric.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/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 index d220a9820..850e4a6cb 100644 --- a/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 @@ -27,10 +27,10 @@ public interface LogExclusionOrBuilder * * *
            -   * Required. A client-assigned identifier, such as `"load-balancer-exclusion"`.
            -   * Identifiers are limited to 100 characters and can include only letters,
            -   * digits, underscores, hyphens, and periods. First character has to be
            -   * alphanumeric.
            +   * Required. A client-assigned identifier, such as
            +   * `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and
            +   * can include only letters, digits, underscores, hyphens, and periods. First
            +   * character has to be alphanumeric.
                * 
            * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -42,10 +42,10 @@ public interface LogExclusionOrBuilder * * *
            -   * Required. A client-assigned identifier, such as `"load-balancer-exclusion"`.
            -   * Identifiers are limited to 100 characters and can include only letters,
            -   * digits, underscores, hyphens, and periods. First character has to be
            -   * alphanumeric.
            +   * Required. A client-assigned identifier, such as
            +   * `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and
            +   * can include only letters, digits, underscores, hyphens, and periods. First
            +   * character has to be alphanumeric.
                * 
            * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/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 index ac60f5f15..4563eec5f 100644 --- a/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 @@ -46,6 +46,7 @@ private LogMetric() { name_ = ""; description_ = ""; filter_ = ""; + bucketName_ = ""; valueExtractor_ = ""; version_ = 0; } @@ -404,6 +405,67 @@ public com.google.protobuf.ByteString getFilterBytes() { } } + public static final int BUCKET_NAME_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private volatile java.lang.Object bucketName_ = ""; + /** + * + * + *
            +   * Optional. The resource name of the Log Bucket that owns the Log Metric.
            +   * Only Log Buckets in projects are supported. The bucket has to be in the
            +   * same project as the metric.
            +   * For example:
            +   *   `projects/my-project/locations/global/buckets/my-bucket`
            +   * If empty, then the Log Metric is considered a non-Bucket Log Metric.
            +   * 
            + * + * string bucket_name = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bucketName. + */ + @java.lang.Override + public java.lang.String getBucketName() { + java.lang.Object ref = bucketName_; + 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(); + bucketName_ = s; + return s; + } + } + /** + * + * + *
            +   * Optional. The resource name of the Log Bucket that owns the Log Metric.
            +   * Only Log Buckets in projects are supported. The bucket has to be in the
            +   * same project as the metric.
            +   * For example:
            +   *   `projects/my-project/locations/global/buckets/my-bucket`
            +   * If empty, then the Log Metric is considered a non-Bucket Log Metric.
            +   * 
            + * + * string bucket_name = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for bucketName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBucketNameBytes() { + java.lang.Object ref = bucketName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bucketName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int DISABLED_FIELD_NUMBER = 12; private boolean disabled_ = false; /** @@ -538,7 +600,7 @@ public 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. * Two functions are supported for value extraction: `EXTRACT(field)` or - * `REGEXP_EXTRACT(field, regex)`. The argument are: + * `REGEXP_EXTRACT(field, regex)`. The arguments are: * 1. field: The name of the log entry field from which the value is to be * extracted. * 2. regex: A regular expression using the Google RE2 syntax @@ -577,7 +639,7 @@ 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. * Two functions are supported for value extraction: `EXTRACT(field)` or - * `REGEXP_EXTRACT(field, regex)`. The argument are: + * `REGEXP_EXTRACT(field, regex)`. The arguments are: * 1. field: The name of the log entry field from which the value is to be * extracted. * 2. regex: A regular expression using the Google RE2 syntax @@ -648,7 +710,7 @@ public int getLabelExtractorsCount() { * extractor expression in this map. The syntax of the extractor expression * is the same as for the `value_extractor` field. * The extracted value is converted to the type defined in the label - * descriptor. If the either the extraction or the type conversion fails, + * descriptor. If either the extraction or the type conversion fails, * the label will have a default value. The default value for a string * label is an empty string, for an integer label its 0, and for a boolean * label its `false`. @@ -682,7 +744,7 @@ public java.util.Map getLabelExtractors() { * extractor expression in this map. The syntax of the extractor expression * is the same as for the `value_extractor` field. * The extracted value is converted to the type defined in the label - * descriptor. If the either the extraction or the type conversion fails, + * descriptor. If either the extraction or the type conversion fails, * the label will have a default value. The default value for a string * label is an empty string, for an integer label its 0, and for a boolean * label its `false`. @@ -707,7 +769,7 @@ public java.util.Map getLabelExtractorsMap() * extractor expression in this map. The syntax of the extractor expression * is the same as for the `value_extractor` field. * The extracted value is converted to the type defined in the label - * descriptor. If the either the extraction or the type conversion fails, + * descriptor. If either the extraction or the type conversion fails, * the label will have a default value. The default value for a string * label is an empty string, for an integer label its 0, and for a boolean * label its `false`. @@ -739,7 +801,7 @@ public java.util.Map getLabelExtractorsMap() * extractor expression in this map. The syntax of the extractor expression * is the same as for the `value_extractor` field. * The extracted value is converted to the type defined in the label - * descriptor. If the either the extraction or the type conversion fails, + * descriptor. If either the extraction or the type conversion fails, * the label will have a default value. The default value for a string * label is an empty string, for an integer label its 0, and for a boolean * label its `false`. @@ -941,7 +1003,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.logging.v2.LogMetric.ApiVersion version = 4 [deprecated = true]; * * @deprecated google.logging.v2.LogMetric.version is deprecated. See - * google/logging/v2/logging_metrics.proto;l=220 + * google/logging/v2/logging_metrics.proto;l=237 * @return The enum numeric value on the wire for version. */ @java.lang.Override @@ -960,7 +1022,7 @@ public int getVersionValue() { * .google.logging.v2.LogMetric.ApiVersion version = 4 [deprecated = true]; * * @deprecated google.logging.v2.LogMetric.version is deprecated. See - * google/logging/v2/logging_metrics.proto;l=220 + * google/logging/v2/logging_metrics.proto;l=237 * @return The version. */ @java.lang.Override @@ -1017,6 +1079,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (disabled_ != false) { output.writeBool(12, disabled_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucketName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, bucketName_); + } getUnknownFields().writeTo(output); } @@ -1066,6 +1131,9 @@ public int getSerializedSize() { if (disabled_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, disabled_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucketName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, bucketName_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1084,6 +1152,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getDescription().equals(other.getDescription())) return false; if (!getFilter().equals(other.getFilter())) return false; + if (!getBucketName().equals(other.getBucketName())) return false; if (getDisabled() != other.getDisabled()) return false; if (hasMetricDescriptor() != other.hasMetricDescriptor()) return false; if (hasMetricDescriptor()) { @@ -1121,6 +1190,8 @@ public int hashCode() { hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + FILTER_FIELD_NUMBER; hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + BUCKET_NAME_FIELD_NUMBER; + hash = (53 * hash) + getBucketName().hashCode(); hash = (37 * hash) + DISABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled()); if (hasMetricDescriptor()) { @@ -1312,6 +1383,7 @@ public Builder clear() { name_ = ""; description_ = ""; filter_ = ""; + bucketName_ = ""; disabled_ = false; metricDescriptor_ = null; if (metricDescriptorBuilder_ != null) { @@ -1381,30 +1453,33 @@ private void buildPartial0(com.google.logging.v2.LogMetric result) { result.filter_ = filter_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.disabled_ = disabled_; + result.bucketName_ = bucketName_; } if (((from_bitField0_ & 0x00000010) != 0)) { + result.disabled_ = disabled_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { result.metricDescriptor_ = metricDescriptorBuilder_ == null ? metricDescriptor_ : metricDescriptorBuilder_.build(); } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.valueExtractor_ = valueExtractor_; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.labelExtractors_ = internalGetLabelExtractors(); result.labelExtractors_.makeImmutable(); } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.bucketOptions_ = bucketOptionsBuilder_ == null ? bucketOptions_ : bucketOptionsBuilder_.build(); } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.version_ = version_; } } @@ -1469,6 +1544,11 @@ public Builder mergeFrom(com.google.logging.v2.LogMetric other) { bitField0_ |= 0x00000004; onChanged(); } + if (!other.getBucketName().isEmpty()) { + bucketName_ = other.bucketName_; + bitField0_ |= 0x00000008; + onChanged(); + } if (other.getDisabled() != false) { setDisabled(other.getDisabled()); } @@ -1477,11 +1557,11 @@ public Builder mergeFrom(com.google.logging.v2.LogMetric other) { } if (!other.getValueExtractor().isEmpty()) { valueExtractor_ = other.valueExtractor_; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } internalGetMutableLabelExtractors().mergeFrom(other.internalGetLabelExtractors()); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; if (other.hasBucketOptions()) { mergeBucketOptions(other.getBucketOptions()); } @@ -1541,20 +1621,20 @@ public Builder mergeFrom( case 32: { version_ = input.readEnum(); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 32 case 42: { input.readMessage( getMetricDescriptorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 42 case 50: { valueExtractor_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 50 case 58: @@ -1566,33 +1646,39 @@ public Builder mergeFrom( internalGetMutableLabelExtractors() .getMutableMap() .put(labelExtractors__.getKey(), labelExtractors__.getValue()); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 58 case 66: { input.readMessage(getBucketOptionsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 66 case 74: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 74 case 82: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 82 case 96: { disabled_ = input.readBool(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 96 + case 106: + { + bucketName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 106 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2005,6 +2091,137 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object bucketName_ = ""; + /** + * + * + *
            +     * Optional. The resource name of the Log Bucket that owns the Log Metric.
            +     * Only Log Buckets in projects are supported. The bucket has to be in the
            +     * same project as the metric.
            +     * For example:
            +     *   `projects/my-project/locations/global/buckets/my-bucket`
            +     * If empty, then the Log Metric is considered a non-Bucket Log Metric.
            +     * 
            + * + * string bucket_name = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bucketName. + */ + public java.lang.String getBucketName() { + java.lang.Object ref = bucketName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bucketName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
            +     * Optional. The resource name of the Log Bucket that owns the Log Metric.
            +     * Only Log Buckets in projects are supported. The bucket has to be in the
            +     * same project as the metric.
            +     * For example:
            +     *   `projects/my-project/locations/global/buckets/my-bucket`
            +     * If empty, then the Log Metric is considered a non-Bucket Log Metric.
            +     * 
            + * + * string bucket_name = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for bucketName. + */ + public com.google.protobuf.ByteString getBucketNameBytes() { + java.lang.Object ref = bucketName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bucketName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
            +     * Optional. The resource name of the Log Bucket that owns the Log Metric.
            +     * Only Log Buckets in projects are supported. The bucket has to be in the
            +     * same project as the metric.
            +     * For example:
            +     *   `projects/my-project/locations/global/buckets/my-bucket`
            +     * If empty, then the Log Metric is considered a non-Bucket Log Metric.
            +     * 
            + * + * string bucket_name = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bucketName to set. + * @return This builder for chaining. + */ + public Builder setBucketName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bucketName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
            +     * Optional. The resource name of the Log Bucket that owns the Log Metric.
            +     * Only Log Buckets in projects are supported. The bucket has to be in the
            +     * same project as the metric.
            +     * For example:
            +     *   `projects/my-project/locations/global/buckets/my-bucket`
            +     * If empty, then the Log Metric is considered a non-Bucket Log Metric.
            +     * 
            + * + * string bucket_name = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearBucketName() { + bucketName_ = getDefaultInstance().getBucketName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
            +     * Optional. The resource name of the Log Bucket that owns the Log Metric.
            +     * Only Log Buckets in projects are supported. The bucket has to be in the
            +     * same project as the metric.
            +     * For example:
            +     *   `projects/my-project/locations/global/buckets/my-bucket`
            +     * If empty, then the Log Metric is considered a non-Bucket Log Metric.
            +     * 
            + * + * string bucket_name = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for bucketName to set. + * @return This builder for chaining. + */ + public Builder setBucketNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bucketName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + private boolean disabled_; /** * @@ -2038,7 +2255,7 @@ public boolean getDisabled() { public Builder setDisabled(boolean value) { disabled_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2055,7 +2272,7 @@ public Builder setDisabled(boolean value) { * @return This builder for chaining. */ public Builder clearDisabled() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); disabled_ = false; onChanged(); return this; @@ -2097,7 +2314,7 @@ public Builder clearDisabled() { * @return Whether the metricDescriptor field is set. */ public boolean hasMetricDescriptor() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -2173,7 +2390,7 @@ public Builder setMetricDescriptor(com.google.api.MetricDescriptor value) { } else { metricDescriptorBuilder_.setMessage(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2210,7 +2427,7 @@ public Builder setMetricDescriptor(com.google.api.MetricDescriptor.Builder build } else { metricDescriptorBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2243,7 +2460,7 @@ public Builder setMetricDescriptor(com.google.api.MetricDescriptor.Builder build */ public Builder mergeMetricDescriptor(com.google.api.MetricDescriptor value) { if (metricDescriptorBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) + if (((bitField0_ & 0x00000020) != 0) && metricDescriptor_ != null && metricDescriptor_ != com.google.api.MetricDescriptor.getDefaultInstance()) { getMetricDescriptorBuilder().mergeFrom(value); @@ -2253,7 +2470,7 @@ public Builder mergeMetricDescriptor(com.google.api.MetricDescriptor value) { } else { metricDescriptorBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2285,7 +2502,7 @@ public Builder mergeMetricDescriptor(com.google.api.MetricDescriptor value) { *
            */ public Builder clearMetricDescriptor() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); metricDescriptor_ = null; if (metricDescriptorBuilder_ != null) { metricDescriptorBuilder_.dispose(); @@ -2322,7 +2539,7 @@ public Builder clearMetricDescriptor() { *
            */ public com.google.api.MetricDescriptor.Builder getMetricDescriptorBuilder() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return getMetricDescriptorFieldBuilder().getBuilder(); } @@ -2414,7 +2631,7 @@ public 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. * Two functions are supported for value extraction: `EXTRACT(field)` or - * `REGEXP_EXTRACT(field, regex)`. The argument are: + * `REGEXP_EXTRACT(field, regex)`. The arguments are: * 1. field: The name of the log entry field from which the value is to be * extracted. * 2. regex: A regular expression using the Google RE2 syntax @@ -2452,7 +2669,7 @@ 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. * Two functions are supported for value extraction: `EXTRACT(field)` or - * `REGEXP_EXTRACT(field, regex)`. The argument are: + * `REGEXP_EXTRACT(field, regex)`. The arguments are: * 1. field: The name of the log entry field from which the value is to be * extracted. * 2. regex: A regular expression using the Google RE2 syntax @@ -2490,7 +2707,7 @@ 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. * Two functions are supported for value extraction: `EXTRACT(field)` or - * `REGEXP_EXTRACT(field, regex)`. The argument are: + * `REGEXP_EXTRACT(field, regex)`. The arguments are: * 1. field: The name of the log entry field from which the value is to be * extracted. * 2. regex: A regular expression using the Google RE2 syntax @@ -2516,7 +2733,7 @@ public Builder setValueExtractor(java.lang.String value) { throw new NullPointerException(); } valueExtractor_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2527,7 +2744,7 @@ public Builder setValueExtractor(java.lang.String value) { * Optional. A `value_extractor` is required when using a distribution * logs-based metric to extract the values to record from a log entry. * Two functions are supported for value extraction: `EXTRACT(field)` or - * `REGEXP_EXTRACT(field, regex)`. The argument are: + * `REGEXP_EXTRACT(field, regex)`. The arguments are: * 1. field: The name of the log entry field from which the value is to be * extracted. * 2. regex: A regular expression using the Google RE2 syntax @@ -2549,7 +2766,7 @@ public Builder setValueExtractor(java.lang.String value) { */ public Builder clearValueExtractor() { valueExtractor_ = getDefaultInstance().getValueExtractor(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -2560,7 +2777,7 @@ public Builder clearValueExtractor() { * Optional. A `value_extractor` is required when using a distribution * logs-based metric to extract the values to record from a log entry. * Two functions are supported for value extraction: `EXTRACT(field)` or - * `REGEXP_EXTRACT(field, regex)`. The argument are: + * `REGEXP_EXTRACT(field, regex)`. The arguments are: * 1. field: The name of the log entry field from which the value is to be * extracted. * 2. regex: A regular expression using the Google RE2 syntax @@ -2587,7 +2804,7 @@ public Builder setValueExtractorBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); valueExtractor_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2613,7 +2830,7 @@ public Builder setValueExtractorBytes(com.google.protobuf.ByteString value) { if (!labelExtractors_.isMutable()) { labelExtractors_ = labelExtractors_.copy(); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return labelExtractors_; } @@ -2631,7 +2848,7 @@ public int getLabelExtractorsCount() { * extractor expression in this map. The syntax of the extractor expression * is the same as for the `value_extractor` field. * The extracted value is converted to the type defined in the label - * descriptor. If the either the extraction or the type conversion fails, + * descriptor. If either the extraction or the type conversion fails, * the label will have a default value. The default value for a string * label is an empty string, for an integer label its 0, and for a boolean * label its `false`. @@ -2666,7 +2883,7 @@ public java.util.Map getLabelExtractors() { * extractor expression in this map. The syntax of the extractor expression * is the same as for the `value_extractor` field. * The extracted value is converted to the type defined in the label - * descriptor. If the either the extraction or the type conversion fails, + * descriptor. If either the extraction or the type conversion fails, * the label will have a default value. The default value for a string * label is an empty string, for an integer label its 0, and for a boolean * label its `false`. @@ -2692,7 +2909,7 @@ public java.util.Map getLabelExtractorsMap() * extractor expression in this map. The syntax of the extractor expression * is the same as for the `value_extractor` field. * The extracted value is converted to the type defined in the label - * descriptor. If the either the extraction or the type conversion fails, + * descriptor. If either the extraction or the type conversion fails, * the label will have a default value. The default value for a string * label is an empty string, for an integer label its 0, and for a boolean * label its `false`. @@ -2725,7 +2942,7 @@ public java.util.Map getLabelExtractorsMap() * extractor expression in this map. The syntax of the extractor expression * is the same as for the `value_extractor` field. * The extracted value is converted to the type defined in the label - * descriptor. If the either the extraction or the type conversion fails, + * descriptor. If either the extraction or the type conversion fails, * the label will have a default value. The default value for a string * label is an empty string, for an integer label its 0, and for a boolean * label its `false`. @@ -2750,7 +2967,7 @@ public java.lang.String getLabelExtractorsOrThrow(java.lang.String key) { } public Builder clearLabelExtractors() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); internalGetMutableLabelExtractors().getMutableMap().clear(); return this; } @@ -2764,7 +2981,7 @@ public Builder clearLabelExtractors() { * extractor expression in this map. The syntax of the extractor expression * is the same as for the `value_extractor` field. * The extracted value is converted to the type defined in the label - * descriptor. If the either the extraction or the type conversion fails, + * descriptor. If either the extraction or the type conversion fails, * the label will have a default value. The default value for a string * label is an empty string, for an integer label its 0, and for a boolean * label its `false`. @@ -2786,7 +3003,7 @@ public Builder removeLabelExtractors(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabelExtractors() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; return internalGetMutableLabelExtractors().getMutableMap(); } /** @@ -2799,7 +3016,7 @@ public java.util.Map getMutableLabelExtracto * extractor expression in this map. The syntax of the extractor expression * is the same as for the `value_extractor` field. * The extracted value is converted to the type defined in the label - * descriptor. If the either the extraction or the type conversion fails, + * descriptor. If either the extraction or the type conversion fails, * the label will have a default value. The default value for a string * label is an empty string, for an integer label its 0, and for a boolean * label its `false`. @@ -2819,7 +3036,7 @@ public Builder putLabelExtractors(java.lang.String key, java.lang.String value) throw new NullPointerException("map value"); } internalGetMutableLabelExtractors().getMutableMap().put(key, value); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; return this; } /** @@ -2832,7 +3049,7 @@ public Builder putLabelExtractors(java.lang.String key, java.lang.String value) * extractor expression in this map. The syntax of the extractor expression * is the same as for the `value_extractor` field. * The extracted value is converted to the type defined in the label - * descriptor. If the either the extraction or the type conversion fails, + * descriptor. If either the extraction or the type conversion fails, * the label will have a default value. The default value for a string * label is an empty string, for an integer label its 0, and for a boolean * label its `false`. @@ -2846,7 +3063,7 @@ public Builder putLabelExtractors(java.lang.String key, java.lang.String value) */ public Builder putAllLabelExtractors(java.util.Map values) { internalGetMutableLabelExtractors().getMutableMap().putAll(values); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; return this; } @@ -2872,7 +3089,7 @@ public Builder putAllLabelExtractors(java.util.Map */ public Builder clearBucketOptions() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); bucketOptions_ = null; if (bucketOptionsBuilder_ != null) { bucketOptionsBuilder_.dispose(); @@ -3014,7 +3231,7 @@ public Builder clearBucketOptions() { * */ public com.google.api.Distribution.BucketOptions.Builder getBucketOptionsBuilder() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return getBucketOptionsFieldBuilder().getBuilder(); } @@ -3091,7 +3308,7 @@ public com.google.api.Distribution.BucketOptionsOrBuilder getBucketOptionsOrBuil * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -3137,7 +3354,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3159,7 +3376,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3177,7 +3394,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) + if (((bitField0_ & 0x00000200) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -3187,7 +3404,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -3204,7 +3421,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -3226,7 +3443,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -3301,7 +3518,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** * @@ -3347,7 +3564,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3369,7 +3586,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3387,7 +3604,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) + if (((bitField0_ & 0x00000400) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); @@ -3397,7 +3614,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3414,7 +3631,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); @@ -3436,7 +3653,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -3502,7 +3719,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.logging.v2.LogMetric.ApiVersion version = 4 [deprecated = true]; * * @deprecated google.logging.v2.LogMetric.version is deprecated. See - * google/logging/v2/logging_metrics.proto;l=220 + * google/logging/v2/logging_metrics.proto;l=237 * @return The enum numeric value on the wire for version. */ @java.lang.Override @@ -3521,14 +3738,14 @@ public int getVersionValue() { * .google.logging.v2.LogMetric.ApiVersion version = 4 [deprecated = true]; * * @deprecated google.logging.v2.LogMetric.version is deprecated. See - * google/logging/v2/logging_metrics.proto;l=220 + * google/logging/v2/logging_metrics.proto;l=237 * @param value The enum numeric value on the wire for version to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setVersionValue(int value) { version_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3543,7 +3760,7 @@ public Builder setVersionValue(int value) { * .google.logging.v2.LogMetric.ApiVersion version = 4 [deprecated = true]; * * @deprecated google.logging.v2.LogMetric.version is deprecated. See - * google/logging/v2/logging_metrics.proto;l=220 + * google/logging/v2/logging_metrics.proto;l=237 * @return The version. */ @java.lang.Override @@ -3564,7 +3781,7 @@ public com.google.logging.v2.LogMetric.ApiVersion getVersion() { * .google.logging.v2.LogMetric.ApiVersion version = 4 [deprecated = true]; * * @deprecated google.logging.v2.LogMetric.version is deprecated. See - * google/logging/v2/logging_metrics.proto;l=220 + * google/logging/v2/logging_metrics.proto;l=237 * @param value The version to set. * @return This builder for chaining. */ @@ -3573,7 +3790,7 @@ public Builder setVersion(com.google.logging.v2.LogMetric.ApiVersion value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; version_ = value.getNumber(); onChanged(); return this; @@ -3589,12 +3806,12 @@ public Builder setVersion(com.google.logging.v2.LogMetric.ApiVersion value) { * .google.logging.v2.LogMetric.ApiVersion version = 4 [deprecated = true]; * * @deprecated google.logging.v2.LogMetric.version is deprecated. See - * google/logging/v2/logging_metrics.proto;l=220 + * google/logging/v2/logging_metrics.proto;l=237 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearVersion() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); version_ = 0; onChanged(); return this; diff --git a/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 index 3f71ddb4c..1155c7830 100644 --- a/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 @@ -128,6 +128,41 @@ public interface LogMetricOrBuilder */ com.google.protobuf.ByteString getFilterBytes(); + /** + * + * + *
            +   * Optional. The resource name of the Log Bucket that owns the Log Metric.
            +   * Only Log Buckets in projects are supported. The bucket has to be in the
            +   * same project as the metric.
            +   * For example:
            +   *   `projects/my-project/locations/global/buckets/my-bucket`
            +   * If empty, then the Log Metric is considered a non-Bucket Log Metric.
            +   * 
            + * + * string bucket_name = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bucketName. + */ + java.lang.String getBucketName(); + /** + * + * + *
            +   * Optional. The resource name of the Log Bucket that owns the Log Metric.
            +   * Only Log Buckets in projects are supported. The bucket has to be in the
            +   * same project as the metric.
            +   * For example:
            +   *   `projects/my-project/locations/global/buckets/my-bucket`
            +   * If empty, then the Log Metric is considered a non-Bucket Log Metric.
            +   * 
            + * + * string bucket_name = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for bucketName. + */ + com.google.protobuf.ByteString getBucketNameBytes(); + /** * * @@ -238,7 +273,7 @@ public interface LogMetricOrBuilder * Optional. A `value_extractor` is required when using a distribution * logs-based metric to extract the values to record from a log entry. * Two functions are supported for value extraction: `EXTRACT(field)` or - * `REGEXP_EXTRACT(field, regex)`. The argument are: + * `REGEXP_EXTRACT(field, regex)`. The arguments are: * 1. field: The name of the log entry field from which the value is to be * extracted. * 2. regex: A regular expression using the Google RE2 syntax @@ -266,7 +301,7 @@ public interface LogMetricOrBuilder * Optional. A `value_extractor` is required when using a distribution * logs-based metric to extract the values to record from a log entry. * Two functions are supported for value extraction: `EXTRACT(field)` or - * `REGEXP_EXTRACT(field, regex)`. The argument are: + * `REGEXP_EXTRACT(field, regex)`. The arguments are: * 1. field: The name of the log entry field from which the value is to be * extracted. * 2. regex: A regular expression using the Google RE2 syntax @@ -298,7 +333,7 @@ public interface LogMetricOrBuilder * extractor expression in this map. The syntax of the extractor expression * is the same as for the `value_extractor` field. * The extracted value is converted to the type defined in the label - * descriptor. If the either the extraction or the type conversion fails, + * descriptor. If either the extraction or the type conversion fails, * the label will have a default value. The default value for a string * label is an empty string, for an integer label its 0, and for a boolean * label its `false`. @@ -320,7 +355,7 @@ public interface LogMetricOrBuilder * extractor expression in this map. The syntax of the extractor expression * is the same as for the `value_extractor` field. * The extracted value is converted to the type defined in the label - * descriptor. If the either the extraction or the type conversion fails, + * descriptor. If either the extraction or the type conversion fails, * the label will have a default value. The default value for a string * label is an empty string, for an integer label its 0, and for a boolean * label its `false`. @@ -345,7 +380,7 @@ public interface LogMetricOrBuilder * extractor expression in this map. The syntax of the extractor expression * is the same as for the `value_extractor` field. * The extracted value is converted to the type defined in the label - * descriptor. If the either the extraction or the type conversion fails, + * descriptor. If either the extraction or the type conversion fails, * the label will have a default value. The default value for a string * label is an empty string, for an integer label its 0, and for a boolean * label its `false`. @@ -367,7 +402,7 @@ public interface LogMetricOrBuilder * extractor expression in this map. The syntax of the extractor expression * is the same as for the `value_extractor` field. * The extracted value is converted to the type defined in the label - * descriptor. If the either the extraction or the type conversion fails, + * descriptor. If either the extraction or the type conversion fails, * the label will have a default value. The default value for a string * label is an empty string, for an integer label its 0, and for a boolean * label its `false`. @@ -393,7 +428,7 @@ java.lang.String getLabelExtractorsOrDefault( * extractor expression in this map. The syntax of the extractor expression * is the same as for the `value_extractor` field. * The extracted value is converted to the type defined in the label - * descriptor. If the either the extraction or the type conversion fails, + * descriptor. If either the extraction or the type conversion fails, * the label will have a default value. The default value for a string * label is an empty string, for an integer label its 0, and for a boolean * label its `false`. @@ -546,7 +581,7 @@ java.lang.String getLabelExtractorsOrDefault( * .google.logging.v2.LogMetric.ApiVersion version = 4 [deprecated = true]; * * @deprecated google.logging.v2.LogMetric.version is deprecated. See - * google/logging/v2/logging_metrics.proto;l=220 + * google/logging/v2/logging_metrics.proto;l=237 * @return The enum numeric value on the wire for version. */ @java.lang.Deprecated @@ -562,7 +597,7 @@ java.lang.String getLabelExtractorsOrDefault( * .google.logging.v2.LogMetric.ApiVersion version = 4 [deprecated = true]; * * @deprecated google.logging.v2.LogMetric.version is deprecated. See - * google/logging/v2/logging_metrics.proto;l=220 + * google/logging/v2/logging_metrics.proto;l=237 * @return The version. */ @java.lang.Deprecated diff --git a/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 index b66b0b057..0fbdd1e3c 100644 --- a/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 @@ -527,8 +527,8 @@ public 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]; @@ -548,7 +548,8 @@ public boolean getDisabled() { * * *
            -   * Optional. Log entries that match any of these 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.
                * 
            @@ -565,7 +566,8 @@ public java.util.List getExclusionsList() { * * *
            -   * Optional. Log entries that match any of these 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.
                * 
            @@ -583,7 +585,8 @@ public java.util.List getExclusionsList() { * * *
            -   * Optional. Log entries that match any of these 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.
                * 
            @@ -600,7 +603,8 @@ public int getExclusionsCount() { * * *
            -   * Optional. Log entries that match any of these 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.
                * 
            @@ -617,7 +621,8 @@ public com.google.logging.v2.LogExclusion getExclusions(int index) { * * *
            -   * Optional. Log entries that match any of these 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.
                * 
            @@ -644,7 +649,7 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder(int in * * * @deprecated google.logging.v2.LogSink.output_version_format is deprecated. See - * google/logging/v2/logging_config.proto;l=880 + * google/logging/v2/logging_config.proto;l=1000 * @return The enum numeric value on the wire for outputVersionFormat. */ @java.lang.Override @@ -663,7 +668,7 @@ public int getOutputVersionFormatValue() { * * * @deprecated google.logging.v2.LogSink.output_version_format is deprecated. See - * google/logging/v2/logging_config.proto;l=880 + * google/logging/v2/logging_config.proto;l=1000 * @return The outputVersionFormat. */ @java.lang.Override @@ -682,9 +687,10 @@ public 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
            -   * field is set by
            +   * 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 either set by specifying
            +   * `custom_writer_identity` or set automatically 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.
            @@ -695,7 +701,7 @@ public com.google.logging.v2.LogSink.VersionFormat getOutputVersionFormat() {
                * 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
            +   * the sink cannot have a writer_identity and no additional permissions are
                * required.
                * 
            * @@ -719,9 +725,10 @@ 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
            -   * field is set by
            +   * 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 either set by specifying
            +   * `custom_writer_identity` or set automatically 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.
            @@ -732,7 +739,7 @@ public java.lang.String getWriterIdentity() {
                * 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
            +   * the sink cannot have a writer_identity and no additional permissions are
                * required.
                * 
            * @@ -759,13 +766,13 @@ public 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 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.
            +   * 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
                * `resource.type=gce_instance` would export all Compute Engine VM instance
                * log entries from all projects in the sink's parent.
            @@ -2181,8 +2188,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
                  *
                  *
                  * 
            -     * 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]; @@ -2197,8 +2204,8 @@ public boolean getDisabled() { * * *
            -     * 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]; @@ -2217,8 +2224,8 @@ public Builder setDisabled(boolean value) { * * *
            -     * 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]; @@ -2252,7 +2259,8 @@ private void ensureExclusionsIsMutable() { * * *
            -     * Optional. Log entries that match any of these 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.
                  * 
            @@ -2272,7 +2280,8 @@ public java.util.List getExclusionsList() { * * *
            -     * Optional. Log entries that match any of these 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.
                  * 
            @@ -2292,7 +2301,8 @@ public int getExclusionsCount() { * * *
            -     * Optional. Log entries that match any of these 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.
                  * 
            @@ -2312,7 +2322,8 @@ public com.google.logging.v2.LogExclusion getExclusions(int index) { * * *
            -     * Optional. Log entries that match any of these 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.
                  * 
            @@ -2338,7 +2349,8 @@ public Builder setExclusions(int index, com.google.logging.v2.LogExclusion value * * *
            -     * Optional. Log entries that match any of these 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.
                  * 
            @@ -2362,7 +2374,8 @@ public Builder setExclusions( * * *
            -     * Optional. Log entries that match any of these 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.
                  * 
            @@ -2388,7 +2401,8 @@ public Builder addExclusions(com.google.logging.v2.LogExclusion value) { * * *
            -     * Optional. Log entries that match any of these 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.
                  * 
            @@ -2414,7 +2428,8 @@ public Builder addExclusions(int index, com.google.logging.v2.LogExclusion value * * *
            -     * Optional. Log entries that match any of these 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.
                  * 
            @@ -2437,7 +2452,8 @@ public Builder addExclusions(com.google.logging.v2.LogExclusion.Builder builderF * * *
            -     * Optional. Log entries that match any of these 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.
                  * 
            @@ -2461,7 +2477,8 @@ public Builder addExclusions( * * *
            -     * Optional. Log entries that match any of these 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.
                  * 
            @@ -2485,7 +2502,8 @@ public Builder addAllExclusions( * * *
            -     * Optional. Log entries that match any of these 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.
                  * 
            @@ -2508,7 +2526,8 @@ public Builder clearExclusions() { * * *
            -     * Optional. Log entries that match any of these 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.
                  * 
            @@ -2531,7 +2550,8 @@ public Builder removeExclusions(int index) { * * *
            -     * Optional. Log entries that match any of these 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.
                  * 
            @@ -2547,7 +2567,8 @@ public com.google.logging.v2.LogExclusion.Builder getExclusionsBuilder(int index * * *
            -     * Optional. Log entries that match any of these 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.
                  * 
            @@ -2567,7 +2588,8 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder(int in * * *
            -     * Optional. Log entries that match any of these 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.
                  * 
            @@ -2588,7 +2610,8 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder(int in * * *
            -     * Optional. Log entries that match any of these 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.
                  * 
            @@ -2605,7 +2628,8 @@ public com.google.logging.v2.LogExclusion.Builder addExclusionsBuilder() { * * *
            -     * Optional. Log entries that match any of these 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.
                  * 
            @@ -2622,7 +2646,8 @@ public com.google.logging.v2.LogExclusion.Builder addExclusionsBuilder(int index * * *
            -     * Optional. Log entries that match any of these 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.
                  * 
            @@ -2664,7 +2689,7 @@ public java.util.List getExclusionsB * * * @deprecated google.logging.v2.LogSink.output_version_format is deprecated. See - * google/logging/v2/logging_config.proto;l=880 + * google/logging/v2/logging_config.proto;l=1000 * @return The enum numeric value on the wire for outputVersionFormat. */ @java.lang.Override @@ -2683,7 +2708,7 @@ public int getOutputVersionFormatValue() { * * * @deprecated google.logging.v2.LogSink.output_version_format is deprecated. See - * google/logging/v2/logging_config.proto;l=880 + * google/logging/v2/logging_config.proto;l=1000 * @param value The enum numeric value on the wire for outputVersionFormat to set. * @return This builder for chaining. */ @@ -2705,7 +2730,7 @@ public Builder setOutputVersionFormatValue(int value) { * * * @deprecated google.logging.v2.LogSink.output_version_format is deprecated. See - * google/logging/v2/logging_config.proto;l=880 + * google/logging/v2/logging_config.proto;l=1000 * @return The outputVersionFormat. */ @java.lang.Override @@ -2726,7 +2751,7 @@ public com.google.logging.v2.LogSink.VersionFormat getOutputVersionFormat() { * * * @deprecated google.logging.v2.LogSink.output_version_format is deprecated. See - * google/logging/v2/logging_config.proto;l=880 + * google/logging/v2/logging_config.proto;l=1000 * @param value The outputVersionFormat to set. * @return This builder for chaining. */ @@ -2751,7 +2776,7 @@ public Builder setOutputVersionFormat(com.google.logging.v2.LogSink.VersionForma * * * @deprecated google.logging.v2.LogSink.output_version_format is deprecated. See - * google/logging/v2/logging_config.proto;l=880 + * google/logging/v2/logging_config.proto;l=1000 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2767,9 +2792,10 @@ public Builder clearOutputVersionFormat() { * * *
            -     * 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
            +     * 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 either set by specifying
            +     * `custom_writer_identity` or set automatically 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.
            @@ -2780,7 +2806,7 @@ public Builder clearOutputVersionFormat() {
                  * 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
            +     * the sink cannot have a writer_identity and no additional permissions are
                  * required.
                  * 
            * @@ -2803,9 +2829,10 @@ 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
            -     * field is set by
            +     * 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 either set by specifying
            +     * `custom_writer_identity` or set automatically 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.
            @@ -2816,7 +2843,7 @@ public java.lang.String getWriterIdentity() {
                  * 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
            +     * the sink cannot have a writer_identity and no additional permissions are
                  * required.
                  * 
            * @@ -2839,9 +2866,10 @@ public com.google.protobuf.ByteString getWriterIdentityBytes() { * * *
            -     * Output only. An IAM identity&mdash;a service account or group&mdash;under which Cloud
            -     * Logging writes the exported log entries to the sink's destination. This
            -     * field is set by
            +     * 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 either set by specifying
            +     * `custom_writer_identity` or set automatically 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.
            @@ -2852,7 +2880,7 @@ public com.google.protobuf.ByteString getWriterIdentityBytes() {
                  * 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
            +     * the sink cannot have a writer_identity and no additional permissions are
                  * required.
                  * 
            * @@ -2874,9 +2902,10 @@ public Builder setWriterIdentity(java.lang.String value) { * * *
            -     * 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
            +     * 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 either set by specifying
            +     * `custom_writer_identity` or set automatically 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.
            @@ -2887,7 +2916,7 @@ public Builder setWriterIdentity(java.lang.String value) {
                  * 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
            +     * the sink cannot have a writer_identity and no additional permissions are
                  * required.
                  * 
            * @@ -2905,9 +2934,10 @@ public Builder clearWriterIdentity() { * * *
            -     * 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
            +     * 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 either set by specifying
            +     * `custom_writer_identity` or set automatically 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.
            @@ -2918,7 +2948,7 @@ public Builder clearWriterIdentity() {
                  * 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
            +     * the sink cannot have a writer_identity and no additional permissions are
                  * required.
                  * 
            * @@ -2943,13 +2973,13 @@ public Builder setWriterIdentityBytes(com.google.protobuf.ByteString value) { * * *
            -     * 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.
            +     * 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
                  * `resource.type=gce_instance` would export all Compute Engine VM instance
                  * log entries from all projects in the sink's parent.
            @@ -2971,13 +3001,13 @@ public boolean getIncludeChildren() {
                  *
                  *
                  * 
            -     * 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.
            +     * 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
                  * `resource.type=gce_instance` would export all Compute Engine VM instance
                  * log entries from all projects in the sink's parent.
            @@ -3003,13 +3033,13 @@ public Builder setIncludeChildren(boolean value) {
                  *
                  *
                  * 
            -     * 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.
            +     * 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
                  * `resource.type=gce_instance` would export all Compute Engine VM instance
                  * log entries from all projects in the sink's parent.
            diff --git a/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
            index 087f5a5e9..bdcb832af 100644
            --- a/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
            @@ -167,8 +167,8 @@ public interface LogSinkOrBuilder
                *
                *
                * 
            -   * 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]; @@ -181,7 +181,8 @@ public interface LogSinkOrBuilder * * *
            -   * Optional. Log entries that match any of these 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.
                * 
            @@ -195,7 +196,8 @@ public interface LogSinkOrBuilder * * *
            -   * Optional. Log entries that match any of these 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.
                * 
            @@ -209,7 +211,8 @@ public interface LogSinkOrBuilder * * *
            -   * Optional. Log entries that match any of these 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.
                * 
            @@ -223,7 +226,8 @@ public interface LogSinkOrBuilder * * *
            -   * Optional. Log entries that match any of these 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.
                * 
            @@ -238,7 +242,8 @@ public interface LogSinkOrBuilder * * *
            -   * Optional. Log entries that match any of these 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.
                * 
            @@ -260,7 +265,7 @@ public interface LogSinkOrBuilder * * * @deprecated google.logging.v2.LogSink.output_version_format is deprecated. See - * google/logging/v2/logging_config.proto;l=880 + * google/logging/v2/logging_config.proto;l=1000 * @return The enum numeric value on the wire for outputVersionFormat. */ @java.lang.Deprecated @@ -276,7 +281,7 @@ public interface LogSinkOrBuilder * * * @deprecated google.logging.v2.LogSink.output_version_format is deprecated. See - * google/logging/v2/logging_config.proto;l=880 + * google/logging/v2/logging_config.proto;l=1000 * @return The outputVersionFormat. */ @java.lang.Deprecated @@ -286,9 +291,10 @@ public interface LogSinkOrBuilder * * *
            -   * 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
            +   * 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 either set by specifying
            +   * `custom_writer_identity` or set automatically 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.
            @@ -299,7 +305,7 @@ public interface LogSinkOrBuilder
                * 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
            +   * the sink cannot have a writer_identity and no additional permissions are
                * required.
                * 
            * @@ -312,9 +318,10 @@ public interface LogSinkOrBuilder * * *
            -   * 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
            +   * 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 either set by specifying
            +   * `custom_writer_identity` or set automatically 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.
            @@ -325,7 +332,7 @@ public interface LogSinkOrBuilder
                * 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
            +   * the sink cannot have a writer_identity and no additional permissions are
                * required.
                * 
            * @@ -339,13 +346,13 @@ public interface LogSinkOrBuilder * * *
            -   * 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.
            +   * 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
                * `resource.type=gce_instance` would export all Compute Engine VM instance
                * log entries from all projects in the sink's parent.
            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
            index 5f5474c1c..9a99335cb 100644
            --- 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
            @@ -27,6 +27,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
                 registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
               }
             
            +  static final com.google.protobuf.Descriptors.Descriptor
            +      internal_static_google_logging_v2_IndexConfig_descriptor;
            +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            +      internal_static_google_logging_v2_IndexConfig_fieldAccessorTable;
               static final com.google.protobuf.Descriptors.Descriptor
                   internal_static_google_logging_v2_LogBucket_descriptor;
               static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            @@ -39,6 +43,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
                   internal_static_google_logging_v2_LogSink_descriptor;
               static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internal_static_google_logging_v2_LogSink_fieldAccessorTable;
            +  static final com.google.protobuf.Descriptors.Descriptor
            +      internal_static_google_logging_v2_BigQueryDataset_descriptor;
            +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            +      internal_static_google_logging_v2_BigQueryDataset_fieldAccessorTable;
            +  static final com.google.protobuf.Descriptors.Descriptor
            +      internal_static_google_logging_v2_Link_descriptor;
            +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            +      internal_static_google_logging_v2_Link_fieldAccessorTable;
               static final com.google.protobuf.Descriptors.Descriptor
                   internal_static_google_logging_v2_BigQueryOptions_descriptor;
               static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            @@ -119,6 +131,26 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
                   internal_static_google_logging_v2_DeleteSinkRequest_descriptor;
               static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internal_static_google_logging_v2_DeleteSinkRequest_fieldAccessorTable;
            +  static final com.google.protobuf.Descriptors.Descriptor
            +      internal_static_google_logging_v2_CreateLinkRequest_descriptor;
            +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            +      internal_static_google_logging_v2_CreateLinkRequest_fieldAccessorTable;
            +  static final com.google.protobuf.Descriptors.Descriptor
            +      internal_static_google_logging_v2_DeleteLinkRequest_descriptor;
            +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            +      internal_static_google_logging_v2_DeleteLinkRequest_fieldAccessorTable;
            +  static final com.google.protobuf.Descriptors.Descriptor
            +      internal_static_google_logging_v2_ListLinksRequest_descriptor;
            +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            +      internal_static_google_logging_v2_ListLinksRequest_fieldAccessorTable;
            +  static final com.google.protobuf.Descriptors.Descriptor
            +      internal_static_google_logging_v2_ListLinksResponse_descriptor;
            +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            +      internal_static_google_logging_v2_ListLinksResponse_fieldAccessorTable;
            +  static final com.google.protobuf.Descriptors.Descriptor
            +      internal_static_google_logging_v2_GetLinkRequest_descriptor;
            +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            +      internal_static_google_logging_v2_GetLinkRequest_fieldAccessorTable;
               static final com.google.protobuf.Descriptors.Descriptor
                   internal_static_google_logging_v2_LogExclusion_descriptor;
               static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            @@ -183,6 +215,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
                   internal_static_google_logging_v2_CopyLogEntriesResponse_descriptor;
               static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
                   internal_static_google_logging_v2_CopyLogEntriesResponse_fieldAccessorTable;
            +  static final com.google.protobuf.Descriptors.Descriptor
            +      internal_static_google_logging_v2_BucketMetadata_descriptor;
            +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            +      internal_static_google_logging_v2_BucketMetadata_fieldAccessorTable;
            +  static final com.google.protobuf.Descriptors.Descriptor
            +      internal_static_google_logging_v2_LinkMetadata_descriptor;
            +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            +      internal_static_google_logging_v2_LinkMetadata_fieldAccessorTable;
            +  static final com.google.protobuf.Descriptors.Descriptor
            +      internal_static_google_logging_v2_LocationMetadata_descriptor;
            +  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
            +      internal_static_google_logging_v2_LocationMetadata_fieldAccessorTable;
             
               public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                 return descriptor;
            @@ -199,422 +243,541 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                       + "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"
            +          + "le/protobuf/timestamp.proto\"\215\001\n\013IndexCon"
            +          + "fig\022\027\n\nfield_path\030\001 \001(\tB\003\340A\002\022/\n\004type\030\002 \001"
            +          + "(\0162\034.google.logging.v2.IndexTypeB\003\340A\002\0224\n"
            +          + "\013create_time\030\003 \001(\0132\032.google.protobuf.Tim"
            +          + "estampB\003\340A\003\"\325\005\n\tLogBucket\022\021\n\004name\030\001 \001(\tB"
            +          + "\003\340A\003\022\023\n\013description\030\003 \001(\t\0224\n\013create_time"
            +          + "\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022"
            +          + "4\n\013update_time\030\005 \001(\0132\032.google.protobuf.T"
            +          + "imestampB\003\340A\003\022\026\n\016retention_days\030\013 \001(\005\022\016\n"
            +          + "\006locked\030\t \001(\010\022?\n\017lifecycle_state\030\014 \001(\0162!"
            +          + ".google.logging.v2.LifecycleStateB\003\340A\003\022\031"
            +          + "\n\021analytics_enabled\030\016 \001(\010\022\031\n\021restricted_"
            +          + "fields\030\017 \003(\t\0225\n\rindex_configs\030\021 \003(\0132\036.go"
            +          + "ogle.logging.v2.IndexConfig\0226\n\rcmek_sett"
            +          + "ings\030\023 \001(\0132\037.google.logging.v2.CmekSetti"
            +          + "ngs:\245\002\352A\241\002\n logging.googleapis.com/LogBu"
            +          + "cket\0228projects/{project}/locations/{loca"
            +          + "tion}/buckets/{bucket}\022Borganizations/{o"
            +          + "rganization}/locations/{location}/bucket"
            +          + "s/{bucket}\0226folders/{folder}/locations/{"
            +          + "location}/buckets/{bucket}\022GbillingAccou"
            +          + "nts/{billing_account}/locations/{locatio"
            +          + "n}/buckets/{bucket}\"\202\004\n\007LogView\022\014\n\004name\030"
            +          + "\001 \001(\t\022\023\n\013description\030\003 \001(\t\0224\n\013create_tim"
            +          + "e\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003"
            +          + "\0224\n\013update_time\030\005 \001(\0132\032.google.protobuf."
            +          + "TimestampB\003\340A\003\022\016\n\006filter\030\007 \001(\t:\327\002\352A\323\002\n\036l"
            +          + "ogging.googleapis.com/LogView\022Eprojects/"
            +          + "{project}/locations/{location}/buckets/{"
            +          + "bucket}/views/{view}\022Oorganizations/{org"
            +          + "anization}/locations/{location}/buckets/"
            +          + "{bucket}/views/{view}\022Cfolders/{folder}/"
            +          + "locations/{location}/buckets/{bucket}/vi"
            +          + "ews/{view}\022TbillingAccounts/{billing_acc"
            +          + "ount}/locations/{location}/buckets/{buck"
            +          + "et}/views/{view}\"\205\006\n\007LogSink\022\021\n\004name\030\001 \001"
            +          + "(\tB\003\340A\002\022\036\n\013destination\030\003 \001(\tB\t\340A\002\372A\003\n\001*\022"
            +          + "\023\n\006filter\030\005 \001(\tB\003\340A\001\022\030\n\013description\030\022 \001("
            +          + "\tB\003\340A\001\022\025\n\010disabled\030\023 \001(\010B\003\340A\001\0228\n\nexclusi"
            +          + "ons\030\020 \003(\0132\037.google.logging.v2.LogExclusi"
            +          + "onB\003\340A\001\022K\n\025output_version_format\030\006 \001(\0162("
            +          + ".google.logging.v2.LogSink.VersionFormat"
            +          + "B\002\030\001\022\034\n\017writer_identity\030\010 \001(\tB\003\340A\003\022\035\n\020in"
            +          + "clude_children\030\t \001(\010B\003\340A\001\022C\n\020bigquery_op"
            +          + "tions\030\014 \001(\0132\".google.logging.v2.BigQuery"
            +          + "OptionsB\003\340A\001H\000\0224\n\013create_time\030\r \001(\0132\032.go"
            +          + "ogle.protobuf.TimestampB\003\340A\003\0224\n\013update_t"
            +          + "ime\030\016 \001(\0132\032.google.protobuf.TimestampB\003\340"
            +          + "A\003\"?\n\rVersionFormat\022\036\n\032VERSION_FORMAT_UN"
            +          + "SPECIFIED\020\000\022\006\n\002V2\020\001\022\006\n\002V1\020\002:\277\001\352A\273\001\n\036logg"
            +          + "ing.googleapis.com/LogSink\022\037projects/{pr"
            +          + "oject}/sinks/{sink}\022)organizations/{orga"
            +          + "nization}/sinks/{sink}\022\035folders/{folder}"
            +          + "/sinks/{sink}\022.billingAccounts/{billing_"
            +          + "account}/sinks/{sink}B\t\n\007options\"*\n\017BigQ"
            +          + "ueryDataset\022\027\n\ndataset_id\030\001 \001(\tB\003\340A\003\"\265\004\n"
            +          + "\004Link\022\014\n\004name\030\001 \001(\t\022\023\n\013description\030\002 \001(\t"
            +          + "\0224\n\013create_time\030\003 \001(\0132\032.google.protobuf."
            +          + "TimestampB\003\340A\003\022?\n\017lifecycle_state\030\004 \001(\0162"
            +          + "!.google.logging.v2.LifecycleStateB\003\340A\003\022"
            +          + "<\n\020bigquery_dataset\030\005 \001(\0132\".google.loggi"
            +          + "ng.v2.BigQueryDataset:\324\002\352A\320\002\n\033logging.go"
            +          + "ogleapis.com/Link\022Eprojects/{project}/lo"
            +          + "cations/{location}/buckets/{bucket}/link"
            +          + "s/{link}\022Oorganizations/{organization}/l"
            +          + "ocations/{location}/buckets/{bucket}/lin"
            +          + "ks/{link}\022Cfolders/{folder}/locations/{l"
            +          + "ocation}/buckets/{bucket}/links/{link}\022T"
            +          + "billingAccounts/{billing_account}/locati"
            +          + "ons/{location}/buckets/{bucket}/links/{l"
            +          + "ink}\"g\n\017BigQueryOptions\022#\n\026use_partition"
            +          + "ed_tables\030\001 \001(\010B\003\340A\001\022/\n\"uses_timestamp_c"
            +          + "olumn_partitioning\030\003 \001(\010B\003\340A\003\"\177\n\022ListBuc"
            +          + "ketsRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 log"
            +          + "ging.googleapis.com/LogBucket\022\027\n\npage_to"
            +          + "ken\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\"]"
            +          + "\n\023ListBucketsResponse\022-\n\007buckets\030\001 \003(\0132\034"
            +          + ".google.logging.v2.LogBucket\022\027\n\017next_pag"
            +          + "e_token\030\002 \001(\t\"\232\001\n\023CreateBucketRequest\0228\n"
            +          + "\006parent\030\001 \001(\tB(\340A\002\372A\"\022 logging.googleapi"
            +          + "s.com/LogBucket\022\026\n\tbucket_id\030\002 \001(\tB\003\340A\002\022"
            +          + "1\n\006bucket\030\003 \001(\0132\034.google.logging.v2.LogB"
            +          + "ucketB\003\340A\002\"\266\001\n\023UpdateBucketRequest\0226\n\004na"
            +          + "me\030\001 \001(\tB(\340A\002\372A\"\n logging.googleapis.com"
            +          + "/LogBucket\0221\n\006bucket\030\002 \001(\0132\034.google.logg"
            +          + "ing.v2.LogBucketB\003\340A\002\0224\n\013update_mask\030\004 \001"
            +          + "(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"J\n\020G"
            +          + "etBucketRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n l"
            +          + "ogging.googleapis.com/LogBucket\"M\n\023Delet"
            +          + "eBucketRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n lo"
            +          + "gging.googleapis.com/LogBucket\"O\n\025Undele"
            +          + "teBucketRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n l"
            +          + "ogging.googleapis.com/LogBucket\"X\n\020ListV"
            +          + "iewsRequest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022\027\n\npage"
            +          + "_token\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A"
            +          + "\001\"W\n\021ListViewsResponse\022)\n\005views\030\001 \003(\0132\032."
            +          + "google.logging.v2.LogView\022\027\n\017next_page_t"
            +          + "oken\030\002 \001(\t\"m\n\021CreateViewRequest\022\023\n\006paren"
            +          + "t\030\001 \001(\tB\003\340A\002\022\024\n\007view_id\030\002 \001(\tB\003\340A\002\022-\n\004vi"
            +          + "ew\030\003 \001(\0132\032.google.logging.v2.LogViewB\003\340A"
            +          + "\002\"\213\001\n\021UpdateViewRequest\022\021\n\004name\030\001 \001(\tB\003\340"
            +          + "A\002\022-\n\004view\030\002 \001(\0132\032.google.logging.v2.Log"
            +          + "ViewB\003\340A\002\0224\n\013update_mask\030\004 \001(\0132\032.google."
            +          + "protobuf.FieldMaskB\003\340A\001\"F\n\016GetViewReques"
            +          + "t\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036logging.googlea"
            +          + "pis.com/LogView\"I\n\021DeleteViewRequest\0224\n\004"
            +          + "name\030\001 \001(\tB&\340A\002\372A \n\036logging.googleapis.c"
            +          + "om/LogView\"{\n\020ListSinksRequest\0226\n\006parent"
            +          + "\030\001 \001(\tB&\340A\002\372A \022\036logging.googleapis.com/L"
            +          + "ogSink\022\027\n\npage_token\030\002 \001(\tB\003\340A\001\022\026\n\tpage_"
            +          + "size\030\003 \001(\005B\003\340A\001\"W\n\021ListSinksResponse\022)\n\005"
            +          + "sinks\030\001 \003(\0132\032.google.logging.v2.LogSink\022"
            +          + "\027\n\017next_page_token\030\002 \001(\t\"K\n\016GetSinkReque"
            +          + "st\0229\n\tsink_name\030\001 \001(\tB&\340A\002\372A \n\036logging.g"
            +          + "oogleapis.com/LogSink\"\237\001\n\021CreateSinkRequ"
            +          + "est\0226\n\006parent\030\001 \001(\tB&\340A\002\372A \022\036logging.goo"
            +          + "gleapis.com/LogSink\022-\n\004sink\030\002 \001(\0132\032.goog"
            +          + "le.logging.v2.LogSinkB\003\340A\002\022#\n\026unique_wri"
            +          + "ter_identity\030\003 \001(\010B\003\340A\001\"\330\001\n\021UpdateSinkRe"
            +          + "quest\0229\n\tsink_name\030\001 \001(\tB&\340A\002\372A \n\036loggin"
            +          + "g.googleapis.com/LogSink\022-\n\004sink\030\002 \001(\0132\032"
            +          + ".google.logging.v2.LogSinkB\003\340A\002\022#\n\026uniqu"
            +          + "e_writer_identity\030\003 \001(\010B\003\340A\001\0224\n\013update_m"
            +          + "ask\030\004 \001(\0132\032.google.protobuf.FieldMaskB\003\340"
            +          + "A\001\"N\n\021DeleteSinkRequest\0229\n\tsink_name\030\001 \001"
            +          + "(\tB&\340A\002\372A \n\036logging.googleapis.com/LogSi"
            +          + "nk\"\212\001\n\021CreateLinkRequest\0223\n\006parent\030\001 \001(\t"
            +          + "B#\340A\002\372A\035\022\033logging.googleapis.com/Link\022*\n"
            +          + "\004link\030\002 \001(\0132\027.google.logging.v2.LinkB\003\340A"
            +          + "\002\022\024\n\007link_id\030\003 \001(\tB\003\340A\002\"F\n\021DeleteLinkReq"
            +          + "uest\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033logging.goog"
            +          + "leapis.com/Link\"x\n\020ListLinksRequest\0223\n\006p"
            +          + "arent\030\001 \001(\tB#\340A\002\372A\035\022\033logging.googleapis."
            +          + "com/Link\022\027\n\npage_token\030\002 \001(\tB\003\340A\001\022\026\n\tpag"
            +          + "e_size\030\003 \001(\005B\003\340A\001\"T\n\021ListLinksResponse\022&"
            +          + "\n\005links\030\001 \003(\0132\027.google.logging.v2.Link\022\027"
            +          + "\n\017next_page_token\030\002 \001(\t\"C\n\016GetLinkReques"
            +          + "t\0221\n\004name\030\001 \001(\tB#\340A\002\372A\035\n\033logging.googlea"
            +          + "pis.com/Link\"\302\003\n\014LogExclusion\022\021\n\004name\030\001 "
            +          + "\001(\tB\003\340A\002\022\030\n\013description\030\002 \001(\tB\003\340A\001\022\023\n\006fi"
            +          + "lter\030\003 \001(\tB\003\340A\002\022\025\n\010disabled\030\004 \001(\010B\003\340A\001\0224"
            +          + "\n\013create_time\030\005 \001(\0132\032.google.protobuf.Ti"
            +          + "mestampB\003\340A\003\0224\n\013update_time\030\006 \001(\0132\032.goog"
            +          + "le.protobuf.TimestampB\003\340A\003:\354\001\352A\350\001\n#loggi"
            +          + "ng.googleapis.com/LogExclusion\022)projects"
            +          + "/{project}/exclusions/{exclusion}\0223organ"
            +          + "izations/{organization}/exclusions/{excl"
            +          + "usion}\022\'folders/{folder}/exclusions/{exc"
            +          + "lusion}\0228billingAccounts/{billing_accoun"
            +          + "t}/exclusions/{exclusion}\"\205\001\n\025ListExclus"
            +          + "ionsRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\022#log"
            +          + "ging.googleapis.com/LogExclusion\022\027\n\npage"
            +          + "_token\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A"
            +          + "\001\"f\n\026ListExclusionsResponse\0223\n\nexclusion"
            +          + "s\030\001 \003(\0132\037.google.logging.v2.LogExclusion"
            +          + "\022\027\n\017next_page_token\030\002 \001(\t\"P\n\023GetExclusio"
            +          + "nRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#logging."
            +          + "googleapis.com/LogExclusion\"\216\001\n\026CreateEx"
            +          + "clusionRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\022#"
            +          + "logging.googleapis.com/LogExclusion\0227\n\te"
            +          + "xclusion\030\002 \001(\0132\037.google.logging.v2.LogEx"
            +          + "clusionB\003\340A\002\"\302\001\n\026UpdateExclusionRequest\022"
            +          + "9\n\004name\030\001 \001(\tB+\340A\002\372A%\n#logging.googleapi"
            +          + "s.com/LogExclusion\0227\n\texclusion\030\002 \001(\0132\037."
            +          + "google.logging.v2.LogExclusionB\003\340A\002\0224\n\013u"
            +          + "pdate_mask\030\003 \001(\0132\032.google.protobuf.Field"
            +          + "MaskB\003\340A\002\"S\n\026DeleteExclusionRequest\0229\n\004n"
            +          + "ame\030\001 \001(\tB+\340A\002\372A%\n#logging.googleapis.co"
            +          + "m/LogExclusion\"S\n\026GetCmekSettingsRequest"
                       + "\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#logging.googleap"
            -          + "is.com/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\326\003\n\025com.go"
            -          + "ogle.logging.v2B\022LoggingConfigProtoP\001Z5c"
            -          + "loud.google.com/go/logging/apiv2/logging"
            -          + "pb;loggingpb\370\001\001\252\002\027Google.Cloud.Logging.V"
            -          + "2\312\002\027Google\\Cloud\\Logging\\V2\352\002\032Google::Cl"
            -          + "oud::Logging::V2\352A`\n+logging.googleapis."
            -          + "com/OrganizationLocation\0221organizations/"
            -          + "{organization}/locations/{location}\352AN\n%"
            -          + "logging.googleapis.com/FolderLocation\022%f"
            -          + "olders/{folder}/locations/{location}\352Ag\n"
            -          + "-logging.googleapis.com/BillingAccountLo"
            -          + "cation\0226billingAccounts/{billing_account"
            -          + "}/locations/{location}b\006proto3"
            +          + "is.com/CmekSettings\"\241\001\n\031UpdateCmekSettin"
            +          + "gsRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022;\n\rcmek_set"
            +          + "tings\030\002 \001(\0132\037.google.logging.v2.CmekSett"
            +          + "ingsB\003\340A\002\0224\n\013update_mask\030\003 \001(\0132\032.google."
            +          + "protobuf.FieldMaskB\003\340A\001\"\275\002\n\014CmekSettings"
            +          + "\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\014kms_key_name\030\002 \001("
            +          + "\t\022\034\n\024kms_key_version_name\030\004 \001(\t\022\037\n\022servi"
            +          + "ce_account_id\030\003 \001(\tB\003\340A\003:\304\001\352A\300\001\n#logging"
            +          + ".googleapis.com/CmekSettings\022\037projects/{"
            +          + "project}/cmekSettings\022)organizations/{or"
            +          + "ganization}/cmekSettings\022\035folders/{folde"
            +          + "r}/cmekSettings\022.billingAccounts/{billin"
            +          + "g_account}/cmekSettings\"K\n\022GetSettingsRe"
            +          + "quest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037logging.goo"
            +          + "gleapis.com/Settings\"\224\001\n\025UpdateSettingsR"
            +          + "equest\022\021\n\004name\030\001 \001(\tB\003\340A\002\0222\n\010settings\030\002 "
            +          + "\001(\0132\033.google.logging.v2.SettingsB\003\340A\002\0224\n"
            +          + "\013update_mask\030\003 \001(\0132\032.google.protobuf.Fie"
            +          + "ldMaskB\003\340A\001\"\322\002\n\010Settings\022\021\n\004name\030\001 \001(\tB\003"
            +          + "\340A\003\022\031\n\014kms_key_name\030\002 \001(\tB\003\340A\001\022#\n\026kms_se"
            +          + "rvice_account_id\030\003 \001(\tB\003\340A\003\022\035\n\020storage_l"
            +          + "ocation\030\004 \001(\tB\003\340A\001\022!\n\024disable_default_si"
            +          + "nk\030\005 \001(\010B\003\340A\001:\260\001\352A\254\001\n\037logging.googleapis"
            +          + ".com/Settings\022\033projects/{project}/settin"
            +          + "gs\022%organizations/{organization}/setting"
            +          + "s\022\031folders/{folder}/settings\022*billingAcc"
            +          + "ounts/{billing_account}/settings\"Y\n\025Copy"
            +          + "LogEntriesRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\023\n\006"
            +          + "filter\030\003 \001(\tB\003\340A\001\022\030\n\013destination\030\004 \001(\tB\003"
            +          + "\340A\002\"\256\002\n\026CopyLogEntriesMetadata\022.\n\nstart_"
            +          + "time\030\001 \001(\0132\032.google.protobuf.Timestamp\022,"
            +          + "\n\010end_time\030\002 \001(\0132\032.google.protobuf.Times"
            +          + "tamp\0220\n\005state\030\003 \001(\0162!.google.logging.v2."
            +          + "OperationState\022\036\n\026cancellation_requested"
            +          + "\030\004 \001(\010\0229\n\007request\030\005 \001(\0132(.google.logging"
            +          + ".v2.CopyLogEntriesRequest\022\020\n\010progress\030\006 "
            +          + "\001(\005\022\027\n\017writer_identity\030\007 \001(\t\":\n\026CopyLogE"
            +          + "ntriesResponse\022 \n\030log_entries_copied_cou"
            +          + "nt\030\001 \001(\003\"\275\002\n\016BucketMetadata\022.\n\nstart_tim"
            +          + "e\030\001 \001(\0132\032.google.protobuf.Timestamp\022,\n\010e"
            +          + "nd_time\030\002 \001(\0132\032.google.protobuf.Timestam"
            +          + "p\0220\n\005state\030\003 \001(\0162!.google.logging.v2.Ope"
            +          + "rationState\022G\n\025create_bucket_request\030\004 \001"
            +          + "(\0132&.google.logging.v2.CreateBucketReque"
            +          + "stH\000\022G\n\025update_bucket_request\030\005 \001(\0132&.go"
            +          + "ogle.logging.v2.UpdateBucketRequestH\000B\t\n"
            +          + "\007request\"\263\002\n\014LinkMetadata\022.\n\nstart_time\030"
            +          + "\001 \001(\0132\032.google.protobuf.Timestamp\022,\n\010end"
            +          + "_time\030\002 \001(\0132\032.google.protobuf.Timestamp\022"
            +          + "0\n\005state\030\003 \001(\0162!.google.logging.v2.Opera"
            +          + "tionState\022C\n\023create_link_request\030\004 \001(\0132$"
            +          + ".google.logging.v2.CreateLinkRequestH\000\022C"
            +          + "\n\023delete_link_request\030\005 \001(\0132$.google.log"
            +          + "ging.v2.DeleteLinkRequestH\000B\t\n\007request\"1"
            +          + "\n\020LocationMetadata\022\035\n\025log_analytics_enab"
            +          + "led\030\001 \001(\010*\364\001\n\016OperationState\022\037\n\033OPERATIO"
            +          + "N_STATE_UNSPECIFIED\020\000\022\035\n\031OPERATION_STATE"
            +          + "_SCHEDULED\020\001\022+\n\'OPERATION_STATE_WAITING_"
            +          + "FOR_PERMISSIONS\020\002\022\033\n\027OPERATION_STATE_RUN"
            +          + "NING\020\003\022\035\n\031OPERATION_STATE_SUCCEEDED\020\004\022\032\n"
            +          + "\026OPERATION_STATE_FAILED\020\005\022\035\n\031OPERATION_S"
            +          + "TATE_CANCELLED\020\006*{\n\016LifecycleState\022\037\n\033LI"
            +          + "FECYCLE_STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022"
            +          + "\024\n\020DELETE_REQUESTED\020\002\022\014\n\010UPDATING\020\003\022\014\n\010C"
            +          + "REATING\020\004\022\n\n\006FAILED\020\005*V\n\tIndexType\022\032\n\026IN"
            +          + "DEX_TYPE_UNSPECIFIED\020\000\022\025\n\021INDEX_TYPE_STR"
            +          + "ING\020\001\022\026\n\022INDEX_TYPE_INTEGER\020\0022\237Y\n\017Config"
            +          + "ServiceV2\022\334\002\n\013ListBuckets\022%.google.loggi"
            +          + "ng.v2.ListBucketsRequest\032&.google.loggin"
            +          + "g.v2.ListBucketsResponse\"\375\001\202\323\344\223\002\355\001\022$/v2/"
            +          + "{parent=*/*/locations/*}/bucketsZ-\022+/v2/"
            +          + "{parent=projects/*/locations/*}/bucketsZ"
            +          + "2\0220/v2/{parent=organizations/*/locations"
            +          + "/*}/bucketsZ,\022*/v2/{parent=folders/*/loc"
            +          + "ations/*}/bucketsZ4\0222/v2/{parent=billing"
            +          + "Accounts/*/locations/*}/buckets\332A\006parent"
            +          + "\022\305\002\n\tGetBucket\022#.google.logging.v2.GetBu"
            +          + "cketRequest\032\034.google.logging.v2.LogBucke"
            +          + "t\"\364\001\202\323\344\223\002\355\001\022$/v2/{name=*/*/locations/*/b"
            +          + "uckets/*}Z-\022+/v2/{name=projects/*/locati"
            +          + "ons/*/buckets/*}Z2\0220/v2/{name=organizati"
            +          + "ons/*/locations/*/buckets/*}Z,\022*/v2/{nam"
            +          + "e=folders/*/locations/*/buckets/*}Z4\0222/v"
            +          + "2/{name=billingAccounts/*/locations/*/bu"
            +          + "ckets/*}\022\323\003\n\021CreateBucketAsync\022&.google."
            +          + "logging.v2.CreateBucketRequest\032\035.google."
            +          + "longrunning.Operation\"\366\002\202\323\344\223\002\321\002\"0/v2/{pa"
            +          + "rent=*/*/locations/*}/buckets:createAsyn"
            +          + "c:\006bucketZA\"7/v2/{parent=projects/*/loca"
            +          + "tions/*}/buckets:createAsync:\006bucketZF\"<"
            +          + "/v2/{parent=organizations/*/locations/*}"
            +          + "/buckets:createAsync:\006bucketZ@\"6/v2/{par"
            +          + "ent=folders/*/locations/*}/buckets:creat"
            +          + "eAsync:\006bucketZH\">/v2/{parent=billingAcc"
            +          + "ounts/*/locations/*}/buckets:createAsync"
            +          + ":\006bucket\312A\033\n\tLogBucket\022\016BucketMetadata\022\323"
            +          + "\003\n\021UpdateBucketAsync\022&.google.logging.v2"
            +          + ".UpdateBucketRequest\032\035.google.longrunnin"
            +          + "g.Operation\"\366\002\202\323\344\223\002\321\002\"0/v2/{name=*/*/loc"
            +          + "ations/*/buckets/*}:updateAsync:\006bucketZ"
            +          + "A\"7/v2/{name=projects/*/locations/*/buck"
            +          + "ets/*}:updateAsync:\006bucketZF\"/v2/{name=billingAccounts/*/loca"
            +          + "tions/*/buckets/*}:updateAsync:\006bucket\312A"
            +          + "\033\n\tLogBucket\022\016BucketMetadata\022\363\002\n\014CreateB"
            +          + "ucket\022&.google.logging.v2.CreateBucketRe"
            +          + "quest\032\034.google.logging.v2.LogBucket\"\234\002\202\323"
            +          + "\344\223\002\225\002\"$/v2/{parent=*/*/locations/*}/buck"
            +          + "ets:\006bucketZ5\"+/v2/{parent=projects/*/lo"
            +          + "cations/*}/buckets:\006bucketZ:\"0/v2/{paren"
            +          + "t=organizations/*/locations/*}/buckets:\006"
            +          + "bucketZ4\"*/v2/{parent=folders/*/location"
            +          + "s/*}/buckets:\006bucketZ<\"2/v2/{parent=bill"
            +          + "ingAccounts/*/locations/*}/buckets:\006buck"
            +          + "et\022\363\002\n\014UpdateBucket\022&.google.logging.v2."
            +          + "UpdateBucketRequest\032\034.google.logging.v2."
            +          + "LogBucket\"\234\002\202\323\344\223\002\225\0022$/v2/{name=*/*/locat"
            +          + "ions/*/buckets/*}:\006bucketZ52+/v2/{name=p"
            +          + "rojects/*/locations/*/buckets/*}:\006bucket"
            +          + "Z:20/v2/{name=organizations/*/locations/"
            +          + "*/buckets/*}:\006bucketZ42*/v2/{name=folder"
            +          + "s/*/locations/*/buckets/*}:\006bucketZ<22/v"
            +          + "2/{name=billingAccounts/*/locations/*/bu"
            +          + "ckets/*}:\006bucket\022\305\002\n\014DeleteBucket\022&.goog"
            +          + "le.logging.v2.DeleteBucketRequest\032\026.goog"
            +          + "le.protobuf.Empty\"\364\001\202\323\344\223\002\355\001*$/v2/{name=*"
            +          + "/*/locations/*/buckets/*}Z-*+/v2/{name=p"
            +          + "rojects/*/locations/*/buckets/*}Z2*0/v2/"
            +          + "{name=organizations/*/locations/*/bucket"
            +          + "s/*}Z,**/v2/{name=folders/*/locations/*/"
            +          + "buckets/*}Z4*2/v2/{name=billingAccounts/"
            +          + "*/locations/*/buckets/*}\022\205\003\n\016UndeleteBuc"
            +          + "ket\022(.google.logging.v2.UndeleteBucketRe"
            +          + "quest\032\026.google.protobuf.Empty\"\260\002\202\323\344\223\002\251\002\""
            +          + "-/v2/{name=*/*/locations/*/buckets/*}:un"
            +          + "delete:\001*Z9\"4/v2/{name=projects/*/locati"
            +          + "ons/*/buckets/*}:undelete:\001*Z>\"9/v2/{nam"
            +          + "e=organizations/*/locations/*/buckets/*}"
            +          + ":undelete:\001*Z8\"3/v2/{name=folders/*/loca"
            +          + "tions/*/buckets/*}:undelete:\001*Z@\";/v2/{n"
            +          + "ame=billingAccounts/*/locations/*/bucket"
            +          + "s/*}:undelete:\001*\022\376\002\n\tListViews\022#.google."
            +          + "logging.v2.ListViewsRequest\032$.google.log"
            +          + "ging.v2.ListViewsResponse\"\245\002\202\323\344\223\002\225\002\022,/v2"
            +          + "/{parent=*/*/locations/*/buckets/*}/view"
            +          + "sZ5\0223/v2/{parent=projects/*/locations/*/"
            +          + "buckets/*}/viewsZ:\0228/v2/{parent=organiza"
            +          + "tions/*/locations/*/buckets/*}/viewsZ4\0222"
            +          + "/v2/{parent=folders/*/locations/*/bucket"
            +          + "s/*}/viewsZ<\022:/v2/{parent=billingAccount"
            +          + "s/*/locations/*/buckets/*}/views\332A\006paren"
            +          + "t\022\347\002\n\007GetView\022!.google.logging.v2.GetVie"
            +          + "wRequest\032\032.google.logging.v2.LogView\"\234\002\202"
            +          + "\323\344\223\002\225\002\022,/v2/{name=*/*/locations/*/bucket"
            +          + "s/*/views/*}Z5\0223/v2/{name=projects/*/loc"
            +          + "ations/*/buckets/*/views/*}Z:\0228/v2/{name"
            +          + "=organizations/*/locations/*/buckets/*/v"
            +          + "iews/*}Z4\0222/v2/{name=folders/*/locations"
            +          + "/*/buckets/*/views/*}Z<\022:/v2/{name=billi"
            +          + "ngAccounts/*/locations/*/buckets/*/views"
            +          + "/*}\022\213\003\n\nCreateView\022$.google.logging.v2.C"
            +          + "reateViewRequest\032\032.google.logging.v2.Log"
            +          + "View\"\272\002\202\323\344\223\002\263\002\",/v2/{parent=*/*/location"
            +          + "s/*/buckets/*}/views:\004viewZ;\"3/v2/{paren"
            +          + "t=projects/*/locations/*/buckets/*}/view"
            +          + "s:\004viewZ@\"8/v2/{parent=organizations/*/l"
            +          + "ocations/*/buckets/*}/views:\004viewZ:\"2/v2"
            +          + "/{parent=folders/*/locations/*/buckets/*"
            +          + "}/views:\004viewZB\":/v2/{parent=billingAcco"
            +          + "unts/*/locations/*/buckets/*}/views:\004vie"
            +          + "w\022\213\003\n\nUpdateView\022$.google.logging.v2.Upd"
            +          + "ateViewRequest\032\032.google.logging.v2.LogVi"
            +          + "ew\"\272\002\202\323\344\223\002\263\0022,/v2/{name=*/*/locations/*/"
            +          + "buckets/*/views/*}:\004viewZ;23/v2/{name=pr"
            +          + "ojects/*/locations/*/buckets/*/views/*}:"
            +          + "\004viewZ@28/v2/{name=organizations/*/locat"
            +          + "ions/*/buckets/*/views/*}:\004viewZ:22/v2/{"
            +          + "name=folders/*/locations/*/buckets/*/vie"
            +          + "ws/*}:\004viewZB2:/v2/{name=billingAccounts"
            +          + "/*/locations/*/buckets/*/views/*}:\004view\022"
            +          + "\351\002\n\nDeleteView\022$.google.logging.v2.Delet"
            +          + "eViewRequest\032\026.google.protobuf.Empty\"\234\002\202"
            +          + "\323\344\223\002\225\002*,/v2/{name=*/*/locations/*/bucket"
            +          + "s/*/views/*}Z5*3/v2/{name=projects/*/loc"
            +          + "ations/*/buckets/*/views/*}Z:*8/v2/{name"
            +          + "=organizations/*/locations/*/buckets/*/v"
            +          + "iews/*}Z4*2/v2/{name=folders/*/locations"
            +          + "/*/buckets/*/views/*}Z<*:/v2/{name=billi"
            +          + "ngAccounts/*/locations/*/buckets/*/views"
            +          + "/*}\022\220\002\n\tListSinks\022#.google.logging.v2.Li"
            +          + "stSinksRequest\032$.google.logging.v2.ListS"
            +          + "inksResponse\"\267\001\202\323\344\223\002\247\001\022\026/v2/{parent=*/*}"
            +          + "/sinksZ\037\022\035/v2/{parent=projects/*}/sinksZ"
            +          + "$\022\"/v2/{parent=organizations/*}/sinksZ\036\022"
            +          + "\034/v2/{parent=folders/*}/sinksZ&\022$/v2/{pa"
            +          + "rent=billingAccounts/*}/sinks\332A\006parent\022\236"
            +          + "\002\n\007GetSink\022!.google.logging.v2.GetSinkRe"
            +          + "quest\032\032.google.logging.v2.LogSink\"\323\001\202\323\344\223"
            +          + "\002\300\001\022\033/v2/{sink_name=*/*/sinks/*}Z$\022\"/v2/"
            +          + "{sink_name=projects/*/sinks/*}Z)\022\'/v2/{s"
            +          + "ink_name=organizations/*/sinks/*}Z#\022!/v2"
            +          + "/{sink_name=folders/*/sinks/*}Z+\022)/v2/{s"
            +          + "ink_name=billingAccounts/*/sinks/*}\332A\tsi"
            +          + "nk_name\022\253\002\n\nCreateSink\022$.google.logging."
            +          + "v2.CreateSinkRequest\032\032.google.logging.v2"
            +          + ".LogSink\"\332\001\202\323\344\223\002\305\001\"\026/v2/{parent=*/*}/sin"
            +          + "ks:\004sinkZ%\"\035/v2/{parent=projects/*}/sink"
            +          + "s:\004sinkZ*\"\"/v2/{parent=organizations/*}/"
            +          + "sinks:\004sinkZ$\"\034/v2/{parent=folders/*}/si"
            +          + "nks:\004sinkZ,\"$/v2/{parent=billingAccounts"
            +          + "/*}/sinks:\004sink\332A\013parent,sink\022\237\004\n\nUpdate"
            +          + "Sink\022$.google.logging.v2.UpdateSinkReque"
            +          + "st\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_name=projects/*/sinks/*}:\004sinkZ"
            +          + "/\032\'/v2/{sink_name=organizations/*/sinks/"
            +          + "*}:\004sinkZ)\032!/v2/{sink_name=folders/*/sin"
            +          + "ks/*}:\004sinkZ1\032)/v2/{sink_name=billingAcc"
            +          + "ounts/*/sinks/*}:\004sinkZ*2\"/v2/{sink_name"
            +          + "=projects/*/sinks/*}:\004sinkZ/2\'/v2/{sink_",
            +      "name=organizations/*/sinks/*}:\004sinkZ)2!/"
            +          + "v2/{sink_name=folders/*/sinks/*}:\004sinkZ1"
            +          + "2)/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.pr"
            +          + "otobuf.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=organization"
            +          + "s/*/sinks/*}Z#*!/v2/{sink_name=folders/*"
            +          + "/sinks/*}Z+*)/v2/{sink_name=billingAccou"
            +          + "nts/*/sinks/*}\332A\tsink_name\022\273\003\n\nCreateLin"
            +          + "k\022$.google.logging.v2.CreateLinkRequest\032"
            +          + "\035.google.longrunning.Operation\"\347\002\202\323\344\223\002\263\002"
            +          + "\",/v2/{parent=*/*/locations/*/buckets/*}"
            +          + "/links:\004linkZ;\"3/v2/{parent=projects/*/l"
            +          + "ocations/*/buckets/*}/links:\004linkZ@\"8/v2"
            +          + "/{parent=organizations/*/locations/*/buc"
            +          + "kets/*}/links:\004linkZ:\"2/v2/{parent=folde"
            +          + "rs/*/locations/*/buckets/*}/links:\004linkZ"
            +          + "B\":/v2/{parent=billingAccounts/*/locatio"
            +          + "ns/*/buckets/*}/links:\004link\332A\023parent,lin"
            +          + "k,link_id\312A\024\n\004Link\022\014LinkMetadata\022\237\003\n\nDel"
            +          + "eteLink\022$.google.logging.v2.DeleteLinkRe"
            +          + "quest\032\035.google.longrunning.Operation\"\313\002\202"
            +          + "\323\344\223\002\225\002*,/v2/{name=*/*/locations/*/bucket"
            +          + "s/*/links/*}Z5*3/v2/{name=projects/*/loc"
            +          + "ations/*/buckets/*/links/*}Z:*8/v2/{name"
            +          + "=organizations/*/locations/*/buckets/*/l"
            +          + "inks/*}Z4*2/v2/{name=folders/*/locations"
            +          + "/*/buckets/*/links/*}Z<*:/v2/{name=billi"
            +          + "ngAccounts/*/locations/*/buckets/*/links"
            +          + "/*}\332A\004name\312A%\n\025google.protobuf.Empty\022\014Li"
            +          + "nkMetadata\022\376\002\n\tListLinks\022#.google.loggin"
            +          + "g.v2.ListLinksRequest\032$.google.logging.v"
            +          + "2.ListLinksResponse\"\245\002\202\323\344\223\002\225\002\022,/v2/{pare"
            +          + "nt=*/*/locations/*/buckets/*}/linksZ5\0223/"
            +          + "v2/{parent=projects/*/locations/*/bucket"
            +          + "s/*}/linksZ:\0228/v2/{parent=organizations/"
            +          + "*/locations/*/buckets/*}/linksZ4\0222/v2/{p"
            +          + "arent=folders/*/locations/*/buckets/*}/l"
            +          + "inksZ<\022:/v2/{parent=billingAccounts/*/lo"
            +          + "cations/*/buckets/*}/links\332A\006parent\022\353\002\n\007"
            +          + "GetLink\022!.google.logging.v2.GetLinkReque"
            +          + "st\032\027.google.logging.v2.Link\"\243\002\202\323\344\223\002\225\002\022,/"
            +          + "v2/{name=*/*/locations/*/buckets/*/links"
            +          + "/*}Z5\0223/v2/{name=projects/*/locations/*/"
            +          + "buckets/*/links/*}Z:\0228/v2/{name=organiza"
            +          + "tions/*/locations/*/buckets/*/links/*}Z4"
            +          + "\0222/v2/{name=folders/*/locations/*/bucket"
            +          + "s/*/links/*}Z<\022:/v2/{name=billingAccount"
            +          + "s/*/locations/*/buckets/*/links/*}\332A\004nam"
            +          + "e\022\270\002\n\016ListExclusions\022(.google.logging.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=or"
            +          + "ganizations/*}/exclusionsZ#\022!/v2/{parent"
            +          + "=folders/*}/exclusionsZ+\022)/v2/{parent=bi"
            +          + "llingAccounts/*}/exclusions\332A\006parent\022\250\002\n"
            +          + "\014GetExclusion\022&.google.logging.v2.GetExc"
            +          + "lusionRequest\032\037.google.logging.v2.LogExc"
            +          + "lusion\"\316\001\202\323\344\223\002\300\001\022\033/v2/{name=*/*/exclusio"
            +          + "ns/*}Z$\022\"/v2/{name=projects/*/exclusions"
            +          + "/*}Z)\022\'/v2/{name=organizations/*/exclusi"
            +          + "ons/*}Z#\022!/v2/{name=folders/*/exclusions"
            +          + "/*}Z+\022)/v2/{name=billingAccounts/*/exclu"
            +          + "sions/*}\332A\004name\022\361\002\n\017CreateExclusion\022).go"
            +          + "ogle.logging.v2.CreateExclusionRequest\032\037"
            +          + ".google.logging.v2.LogExclusion\"\221\002\202\323\344\223\002\367"
            +          + "\001\"\033/v2/{parent=*/*}/exclusions:\texclusio"
            +          + "nZ/\"\"/v2/{parent=projects/*}/exclusions:"
            +          + "\texclusionZ4\"\'/v2/{parent=organizations/"
            +          + "*}/exclusions:\texclusionZ.\"!/v2/{parent="
            +          + "folders/*}/exclusions:\texclusionZ6\")/v2/"
            +          + "{parent=billingAccounts/*}/exclusions:\te"
            +          + "xclusion\332A\020parent,exclusion\022\373\002\n\017UpdateEx"
            +          + "clusion\022).google.logging.v2.UpdateExclus"
            +          + "ionRequest\032\037.google.logging.v2.LogExclus"
            +          + "ion\"\233\002\202\323\344\223\002\367\0012\033/v2/{name=*/*/exclusions/"
            +          + "*}:\texclusionZ/2\"/v2/{name=projects/*/ex"
            +          + "clusions/*}:\texclusionZ42\'/v2/{name=orga"
            +          + "nizations/*/exclusions/*}:\texclusionZ.2!"
            +          + "/v2/{name=folders/*/exclusions/*}:\texclu"
            +          + "sionZ62)/v2/{name=billingAccounts/*/excl"
            +          + "usions/*}:\texclusion\332A\032name,exclusion,up"
            +          + "date_mask\022\245\002\n\017DeleteExclusion\022).google.l"
            +          + "ogging.v2.DeleteExclusionRequest\032\026.googl"
            +          + "e.protobuf.Empty\"\316\001\202\323\344\223\002\300\001*\033/v2/{name=*/"
            +          + "*/exclusions/*}Z$*\"/v2/{name=projects/*/"
            +          + "exclusions/*}Z)*\'/v2/{name=organizations"
            +          + "/*/exclusions/*}Z#*!/v2/{name=folders/*/"
            +          + "exclusions/*}Z+*)/v2/{name=billingAccoun"
            +          + "ts/*/exclusions/*}\332A\004name\022\247\002\n\017GetCmekSet"
            +          + "tings\022).google.logging.v2.GetCmekSetting"
            +          + "sRequest\032\037.google.logging.v2.CmekSetting"
            +          + "s\"\307\001\202\323\344\223\002\300\001\022\033/v2/{name=*/*}/cmekSettings"
            +          + "Z$\022\"/v2/{name=projects/*}/cmekSettingsZ)"
            +          + "\022\'/v2/{name=organizations/*}/cmekSetting"
            +          + "sZ#\022!/v2/{name=folders/*}/cmekSettingsZ+"
            +          + "\022)/v2/{name=billingAccounts/*}/cmekSetti"
            +          + "ngs\022\321\001\n\022UpdateCmekSettings\022,.google.logg"
            +          + "ing.v2.UpdateCmekSettingsRequest\032\037.googl"
            +          + "e.logging.v2.CmekSettings\"l\202\323\344\223\002f2\033/v2/{"
            +          + "name=*/*}/cmekSettings:\rcmek_settingsZ82"
            +          + "\'/v2/{name=organizations/*}/cmekSettings"
            +          + ":\rcmek_settings\022\216\002\n\013GetSettings\022%.google"
            +          + ".logging.v2.GetSettingsRequest\032\033.google."
            +          + "logging.v2.Settings\"\272\001\202\323\344\223\002\254\001\022\027/v2/{name"
            +          + "=*/*}/settingsZ \022\036/v2/{name=projects/*}/"
            +          + "settingsZ%\022#/v2/{name=organizations/*}/s"
            +          + "ettingsZ\037\022\035/v2/{name=folders/*}/settings"
            +          + "Z\'\022%/v2/{name=billingAccounts/*}/setting"
            +          + "s\332A\004name\022\366\001\n\016UpdateSettings\022(.google.log"
            +          + "ging.v2.UpdateSettingsRequest\032\033.google.l"
            +          + "ogging.v2.Settings\"\234\001\202\323\344\223\002\1772\027/v2/{name=*"
            +          + "/*}/settings:\010settingsZ/2#/v2/{name=orga"
            +          + "nizations/*}/settings:\010settingsZ)2\035/v2/{"
            +          + "name=folders/*}/settings:\010settings\332A\024set"
            +          + "tings,update_mask\022\251\001\n\016CopyLogEntries\022(.g"
            +          + "oogle.logging.v2.CopyLogEntriesRequest\032\035"
            +          + ".google.longrunning.Operation\"N\202\323\344\223\002\025\"\020/"
            +          + "v2/entries:copy:\001*\312A0\n\026CopyLogEntriesRes"
            +          + "ponse\022\026CopyLogEntriesMetadata\032\337\001\312A\026loggi"
            +          + "ng.googleapis.com\322A\302\001https://www.googlea"
            +          + "pis.com/auth/cloud-platform,https://www."
            +          + "googleapis.com/auth/cloud-platform.read-"
            +          + "only,https://www.googleapis.com/auth/log"
            +          + "ging.admin,https://www.googleapis.com/au"
            +          + "th/logging.readB\326\003\n\025com.google.logging.v"
            +          + "2B\022LoggingConfigProtoP\001Z5cloud.google.co"
            +          + "m/go/logging/apiv2/loggingpb;loggingpb\370\001"
            +          + "\001\252\002\027Google.Cloud.Logging.V2\312\002\027Google\\Clo"
            +          + "ud\\Logging\\V2\352\002\032Google::Cloud::Logging::"
            +          + "V2\352A`\n+logging.googleapis.com/Organizati"
            +          + "onLocation\0221organizations/{organization}"
            +          + "/locations/{location}\352AN\n%logging.google"
            +          + "apis.com/FolderLocation\022%folders/{folder"
            +          + "}/locations/{location}\352Ag\n-logging.googl"
            +          + "eapis.com/BillingAccountLocation\0226billin"
            +          + "gAccounts/{billing_account}/locations/{l"
            +          + "ocation}b\006proto3"
                 };
                 descriptor =
                     com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
            @@ -629,8 +792,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                           com.google.protobuf.FieldMaskProto.getDescriptor(),
                           com.google.protobuf.TimestampProto.getDescriptor(),
                         });
            -    internal_static_google_logging_v2_LogBucket_descriptor =
            +    internal_static_google_logging_v2_IndexConfig_descriptor =
                     getDescriptor().getMessageTypes().get(0);
            +    internal_static_google_logging_v2_IndexConfig_fieldAccessorTable =
            +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
            +            internal_static_google_logging_v2_IndexConfig_descriptor,
            +            new java.lang.String[] {
            +              "FieldPath", "Type", "CreateTime",
            +            });
            +    internal_static_google_logging_v2_LogBucket_descriptor =
            +        getDescriptor().getMessageTypes().get(1);
                 internal_static_google_logging_v2_LogBucket_fieldAccessorTable =
                     new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                         internal_static_google_logging_v2_LogBucket_descriptor,
            @@ -642,17 +813,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                           "RetentionDays",
                           "Locked",
                           "LifecycleState",
            +              "AnalyticsEnabled",
                           "RestrictedFields",
            +              "IndexConfigs",
                           "CmekSettings",
                         });
            -    internal_static_google_logging_v2_LogView_descriptor = getDescriptor().getMessageTypes().get(1);
            +    internal_static_google_logging_v2_LogView_descriptor = getDescriptor().getMessageTypes().get(2);
                 internal_static_google_logging_v2_LogView_fieldAccessorTable =
                     new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                         internal_static_google_logging_v2_LogView_descriptor,
                         new java.lang.String[] {
                           "Name", "Description", "CreateTime", "UpdateTime", "Filter",
                         });
            -    internal_static_google_logging_v2_LogSink_descriptor = getDescriptor().getMessageTypes().get(2);
            +    internal_static_google_logging_v2_LogSink_descriptor = getDescriptor().getMessageTypes().get(3);
                 internal_static_google_logging_v2_LogSink_fieldAccessorTable =
                     new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                         internal_static_google_logging_v2_LogSink_descriptor,
            @@ -671,8 +844,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                           "UpdateTime",
                           "Options",
                         });
            +    internal_static_google_logging_v2_BigQueryDataset_descriptor =
            +        getDescriptor().getMessageTypes().get(4);
            +    internal_static_google_logging_v2_BigQueryDataset_fieldAccessorTable =
            +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
            +            internal_static_google_logging_v2_BigQueryDataset_descriptor,
            +            new java.lang.String[] {
            +              "DatasetId",
            +            });
            +    internal_static_google_logging_v2_Link_descriptor = getDescriptor().getMessageTypes().get(5);
            +    internal_static_google_logging_v2_Link_fieldAccessorTable =
            +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
            +            internal_static_google_logging_v2_Link_descriptor,
            +            new java.lang.String[] {
            +              "Name", "Description", "CreateTime", "LifecycleState", "BigqueryDataset",
            +            });
                 internal_static_google_logging_v2_BigQueryOptions_descriptor =
            -        getDescriptor().getMessageTypes().get(3);
            +        getDescriptor().getMessageTypes().get(6);
                 internal_static_google_logging_v2_BigQueryOptions_fieldAccessorTable =
                     new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                         internal_static_google_logging_v2_BigQueryOptions_descriptor,
            @@ -680,7 +868,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                           "UsePartitionedTables", "UsesTimestampColumnPartitioning",
                         });
                 internal_static_google_logging_v2_ListBucketsRequest_descriptor =
            -        getDescriptor().getMessageTypes().get(4);
            +        getDescriptor().getMessageTypes().get(7);
                 internal_static_google_logging_v2_ListBucketsRequest_fieldAccessorTable =
                     new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                         internal_static_google_logging_v2_ListBucketsRequest_descriptor,
            @@ -688,7 +876,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                           "Parent", "PageToken", "PageSize",
                         });
                 internal_static_google_logging_v2_ListBucketsResponse_descriptor =
            -        getDescriptor().getMessageTypes().get(5);
            +        getDescriptor().getMessageTypes().get(8);
                 internal_static_google_logging_v2_ListBucketsResponse_fieldAccessorTable =
                     new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                         internal_static_google_logging_v2_ListBucketsResponse_descriptor,
            @@ -696,7 +884,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                           "Buckets", "NextPageToken",
                         });
                 internal_static_google_logging_v2_CreateBucketRequest_descriptor =
            -        getDescriptor().getMessageTypes().get(6);
            +        getDescriptor().getMessageTypes().get(9);
                 internal_static_google_logging_v2_CreateBucketRequest_fieldAccessorTable =
                     new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                         internal_static_google_logging_v2_CreateBucketRequest_descriptor,
            @@ -704,7 +892,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                           "Parent", "BucketId", "Bucket",
                         });
                 internal_static_google_logging_v2_UpdateBucketRequest_descriptor =
            -        getDescriptor().getMessageTypes().get(7);
            +        getDescriptor().getMessageTypes().get(10);
                 internal_static_google_logging_v2_UpdateBucketRequest_fieldAccessorTable =
                     new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                         internal_static_google_logging_v2_UpdateBucketRequest_descriptor,
            @@ -712,7 +900,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                           "Name", "Bucket", "UpdateMask",
                         });
                 internal_static_google_logging_v2_GetBucketRequest_descriptor =
            -        getDescriptor().getMessageTypes().get(8);
            +        getDescriptor().getMessageTypes().get(11);
                 internal_static_google_logging_v2_GetBucketRequest_fieldAccessorTable =
                     new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                         internal_static_google_logging_v2_GetBucketRequest_descriptor,
            @@ -720,7 +908,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                           "Name",
                         });
                 internal_static_google_logging_v2_DeleteBucketRequest_descriptor =
            -        getDescriptor().getMessageTypes().get(9);
            +        getDescriptor().getMessageTypes().get(12);
                 internal_static_google_logging_v2_DeleteBucketRequest_fieldAccessorTable =
                     new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                         internal_static_google_logging_v2_DeleteBucketRequest_descriptor,
            @@ -728,7 +916,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                           "Name",
                         });
                 internal_static_google_logging_v2_UndeleteBucketRequest_descriptor =
            -        getDescriptor().getMessageTypes().get(10);
            +        getDescriptor().getMessageTypes().get(13);
                 internal_static_google_logging_v2_UndeleteBucketRequest_fieldAccessorTable =
                     new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                         internal_static_google_logging_v2_UndeleteBucketRequest_descriptor,
            @@ -736,7 +924,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                           "Name",
                         });
                 internal_static_google_logging_v2_ListViewsRequest_descriptor =
            -        getDescriptor().getMessageTypes().get(11);
            +        getDescriptor().getMessageTypes().get(14);
                 internal_static_google_logging_v2_ListViewsRequest_fieldAccessorTable =
                     new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                         internal_static_google_logging_v2_ListViewsRequest_descriptor,
            @@ -744,7 +932,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                           "Parent", "PageToken", "PageSize",
                         });
                 internal_static_google_logging_v2_ListViewsResponse_descriptor =
            -        getDescriptor().getMessageTypes().get(12);
            +        getDescriptor().getMessageTypes().get(15);
                 internal_static_google_logging_v2_ListViewsResponse_fieldAccessorTable =
                     new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                         internal_static_google_logging_v2_ListViewsResponse_descriptor,
            @@ -752,7 +940,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                           "Views", "NextPageToken",
                         });
                 internal_static_google_logging_v2_CreateViewRequest_descriptor =
            -        getDescriptor().getMessageTypes().get(13);
            +        getDescriptor().getMessageTypes().get(16);
                 internal_static_google_logging_v2_CreateViewRequest_fieldAccessorTable =
                     new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                         internal_static_google_logging_v2_CreateViewRequest_descriptor,
            @@ -760,7 +948,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                           "Parent", "ViewId", "View",
                         });
                 internal_static_google_logging_v2_UpdateViewRequest_descriptor =
            -        getDescriptor().getMessageTypes().get(14);
            +        getDescriptor().getMessageTypes().get(17);
                 internal_static_google_logging_v2_UpdateViewRequest_fieldAccessorTable =
                     new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                         internal_static_google_logging_v2_UpdateViewRequest_descriptor,
            @@ -768,7 +956,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                           "Name", "View", "UpdateMask",
                         });
                 internal_static_google_logging_v2_GetViewRequest_descriptor =
            -        getDescriptor().getMessageTypes().get(15);
            +        getDescriptor().getMessageTypes().get(18);
                 internal_static_google_logging_v2_GetViewRequest_fieldAccessorTable =
                     new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                         internal_static_google_logging_v2_GetViewRequest_descriptor,
            @@ -776,7 +964,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                           "Name",
                         });
                 internal_static_google_logging_v2_DeleteViewRequest_descriptor =
            -        getDescriptor().getMessageTypes().get(16);
            +        getDescriptor().getMessageTypes().get(19);
                 internal_static_google_logging_v2_DeleteViewRequest_fieldAccessorTable =
                     new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                         internal_static_google_logging_v2_DeleteViewRequest_descriptor,
            @@ -784,7 +972,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                           "Name",
                         });
                 internal_static_google_logging_v2_ListSinksRequest_descriptor =
            -        getDescriptor().getMessageTypes().get(17);
            +        getDescriptor().getMessageTypes().get(20);
                 internal_static_google_logging_v2_ListSinksRequest_fieldAccessorTable =
                     new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                         internal_static_google_logging_v2_ListSinksRequest_descriptor,
            @@ -792,7 +980,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                           "Parent", "PageToken", "PageSize",
                         });
                 internal_static_google_logging_v2_ListSinksResponse_descriptor =
            -        getDescriptor().getMessageTypes().get(18);
            +        getDescriptor().getMessageTypes().get(21);
                 internal_static_google_logging_v2_ListSinksResponse_fieldAccessorTable =
                     new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                         internal_static_google_logging_v2_ListSinksResponse_descriptor,
            @@ -800,7 +988,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                           "Sinks", "NextPageToken",
                         });
                 internal_static_google_logging_v2_GetSinkRequest_descriptor =
            -        getDescriptor().getMessageTypes().get(19);
            +        getDescriptor().getMessageTypes().get(22);
                 internal_static_google_logging_v2_GetSinkRequest_fieldAccessorTable =
                     new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                         internal_static_google_logging_v2_GetSinkRequest_descriptor,
            @@ -808,7 +996,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                           "SinkName",
                         });
                 internal_static_google_logging_v2_CreateSinkRequest_descriptor =
            -        getDescriptor().getMessageTypes().get(20);
            +        getDescriptor().getMessageTypes().get(23);
                 internal_static_google_logging_v2_CreateSinkRequest_fieldAccessorTable =
                     new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                         internal_static_google_logging_v2_CreateSinkRequest_descriptor,
            @@ -816,7 +1004,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                           "Parent", "Sink", "UniqueWriterIdentity",
                         });
                 internal_static_google_logging_v2_UpdateSinkRequest_descriptor =
            -        getDescriptor().getMessageTypes().get(21);
            +        getDescriptor().getMessageTypes().get(24);
                 internal_static_google_logging_v2_UpdateSinkRequest_fieldAccessorTable =
                     new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                         internal_static_google_logging_v2_UpdateSinkRequest_descriptor,
            @@ -824,15 +1012,55 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                           "SinkName", "Sink", "UniqueWriterIdentity", "UpdateMask",
                         });
                 internal_static_google_logging_v2_DeleteSinkRequest_descriptor =
            -        getDescriptor().getMessageTypes().get(22);
            +        getDescriptor().getMessageTypes().get(25);
                 internal_static_google_logging_v2_DeleteSinkRequest_fieldAccessorTable =
                     new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                         internal_static_google_logging_v2_DeleteSinkRequest_descriptor,
                         new java.lang.String[] {
                           "SinkName",
                         });
            +    internal_static_google_logging_v2_CreateLinkRequest_descriptor =
            +        getDescriptor().getMessageTypes().get(26);
            +    internal_static_google_logging_v2_CreateLinkRequest_fieldAccessorTable =
            +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
            +            internal_static_google_logging_v2_CreateLinkRequest_descriptor,
            +            new java.lang.String[] {
            +              "Parent", "Link", "LinkId",
            +            });
            +    internal_static_google_logging_v2_DeleteLinkRequest_descriptor =
            +        getDescriptor().getMessageTypes().get(27);
            +    internal_static_google_logging_v2_DeleteLinkRequest_fieldAccessorTable =
            +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
            +            internal_static_google_logging_v2_DeleteLinkRequest_descriptor,
            +            new java.lang.String[] {
            +              "Name",
            +            });
            +    internal_static_google_logging_v2_ListLinksRequest_descriptor =
            +        getDescriptor().getMessageTypes().get(28);
            +    internal_static_google_logging_v2_ListLinksRequest_fieldAccessorTable =
            +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
            +            internal_static_google_logging_v2_ListLinksRequest_descriptor,
            +            new java.lang.String[] {
            +              "Parent", "PageToken", "PageSize",
            +            });
            +    internal_static_google_logging_v2_ListLinksResponse_descriptor =
            +        getDescriptor().getMessageTypes().get(29);
            +    internal_static_google_logging_v2_ListLinksResponse_fieldAccessorTable =
            +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
            +            internal_static_google_logging_v2_ListLinksResponse_descriptor,
            +            new java.lang.String[] {
            +              "Links", "NextPageToken",
            +            });
            +    internal_static_google_logging_v2_GetLinkRequest_descriptor =
            +        getDescriptor().getMessageTypes().get(30);
            +    internal_static_google_logging_v2_GetLinkRequest_fieldAccessorTable =
            +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
            +            internal_static_google_logging_v2_GetLinkRequest_descriptor,
            +            new java.lang.String[] {
            +              "Name",
            +            });
                 internal_static_google_logging_v2_LogExclusion_descriptor =
            -        getDescriptor().getMessageTypes().get(23);
            +        getDescriptor().getMessageTypes().get(31);
                 internal_static_google_logging_v2_LogExclusion_fieldAccessorTable =
                     new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                         internal_static_google_logging_v2_LogExclusion_descriptor,
            @@ -840,7 +1068,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                           "Name", "Description", "Filter", "Disabled", "CreateTime", "UpdateTime",
                         });
                 internal_static_google_logging_v2_ListExclusionsRequest_descriptor =
            -        getDescriptor().getMessageTypes().get(24);
            +        getDescriptor().getMessageTypes().get(32);
                 internal_static_google_logging_v2_ListExclusionsRequest_fieldAccessorTable =
                     new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                         internal_static_google_logging_v2_ListExclusionsRequest_descriptor,
            @@ -848,7 +1076,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                           "Parent", "PageToken", "PageSize",
                         });
                 internal_static_google_logging_v2_ListExclusionsResponse_descriptor =
            -        getDescriptor().getMessageTypes().get(25);
            +        getDescriptor().getMessageTypes().get(33);
                 internal_static_google_logging_v2_ListExclusionsResponse_fieldAccessorTable =
                     new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                         internal_static_google_logging_v2_ListExclusionsResponse_descriptor,
            @@ -856,7 +1084,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                           "Exclusions", "NextPageToken",
                         });
                 internal_static_google_logging_v2_GetExclusionRequest_descriptor =
            -        getDescriptor().getMessageTypes().get(26);
            +        getDescriptor().getMessageTypes().get(34);
                 internal_static_google_logging_v2_GetExclusionRequest_fieldAccessorTable =
                     new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                         internal_static_google_logging_v2_GetExclusionRequest_descriptor,
            @@ -864,7 +1092,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                           "Name",
                         });
                 internal_static_google_logging_v2_CreateExclusionRequest_descriptor =
            -        getDescriptor().getMessageTypes().get(27);
            +        getDescriptor().getMessageTypes().get(35);
                 internal_static_google_logging_v2_CreateExclusionRequest_fieldAccessorTable =
                     new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                         internal_static_google_logging_v2_CreateExclusionRequest_descriptor,
            @@ -872,7 +1100,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                           "Parent", "Exclusion",
                         });
                 internal_static_google_logging_v2_UpdateExclusionRequest_descriptor =
            -        getDescriptor().getMessageTypes().get(28);
            +        getDescriptor().getMessageTypes().get(36);
                 internal_static_google_logging_v2_UpdateExclusionRequest_fieldAccessorTable =
                     new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                         internal_static_google_logging_v2_UpdateExclusionRequest_descriptor,
            @@ -880,7 +1108,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                           "Name", "Exclusion", "UpdateMask",
                         });
                 internal_static_google_logging_v2_DeleteExclusionRequest_descriptor =
            -        getDescriptor().getMessageTypes().get(29);
            +        getDescriptor().getMessageTypes().get(37);
                 internal_static_google_logging_v2_DeleteExclusionRequest_fieldAccessorTable =
                     new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                         internal_static_google_logging_v2_DeleteExclusionRequest_descriptor,
            @@ -888,7 +1116,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                           "Name",
                         });
                 internal_static_google_logging_v2_GetCmekSettingsRequest_descriptor =
            -        getDescriptor().getMessageTypes().get(30);
            +        getDescriptor().getMessageTypes().get(38);
                 internal_static_google_logging_v2_GetCmekSettingsRequest_fieldAccessorTable =
                     new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                         internal_static_google_logging_v2_GetCmekSettingsRequest_descriptor,
            @@ -896,7 +1124,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                           "Name",
                         });
                 internal_static_google_logging_v2_UpdateCmekSettingsRequest_descriptor =
            -        getDescriptor().getMessageTypes().get(31);
            +        getDescriptor().getMessageTypes().get(39);
                 internal_static_google_logging_v2_UpdateCmekSettingsRequest_fieldAccessorTable =
                     new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                         internal_static_google_logging_v2_UpdateCmekSettingsRequest_descriptor,
            @@ -904,15 +1132,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                           "Name", "CmekSettings", "UpdateMask",
                         });
                 internal_static_google_logging_v2_CmekSettings_descriptor =
            -        getDescriptor().getMessageTypes().get(32);
            +        getDescriptor().getMessageTypes().get(40);
                 internal_static_google_logging_v2_CmekSettings_fieldAccessorTable =
                     new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                         internal_static_google_logging_v2_CmekSettings_descriptor,
                         new java.lang.String[] {
            -              "Name", "KmsKeyName", "ServiceAccountId",
            +              "Name", "KmsKeyName", "KmsKeyVersionName", "ServiceAccountId",
                         });
                 internal_static_google_logging_v2_GetSettingsRequest_descriptor =
            -        getDescriptor().getMessageTypes().get(33);
            +        getDescriptor().getMessageTypes().get(41);
                 internal_static_google_logging_v2_GetSettingsRequest_fieldAccessorTable =
                     new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                         internal_static_google_logging_v2_GetSettingsRequest_descriptor,
            @@ -920,7 +1148,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                           "Name",
                         });
                 internal_static_google_logging_v2_UpdateSettingsRequest_descriptor =
            -        getDescriptor().getMessageTypes().get(34);
            +        getDescriptor().getMessageTypes().get(42);
                 internal_static_google_logging_v2_UpdateSettingsRequest_fieldAccessorTable =
                     new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                         internal_static_google_logging_v2_UpdateSettingsRequest_descriptor,
            @@ -928,7 +1156,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                           "Name", "Settings", "UpdateMask",
                         });
                 internal_static_google_logging_v2_Settings_descriptor =
            -        getDescriptor().getMessageTypes().get(35);
            +        getDescriptor().getMessageTypes().get(43);
                 internal_static_google_logging_v2_Settings_fieldAccessorTable =
                     new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                         internal_static_google_logging_v2_Settings_descriptor,
            @@ -936,7 +1164,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                           "Name", "KmsKeyName", "KmsServiceAccountId", "StorageLocation", "DisableDefaultSink",
                         });
                 internal_static_google_logging_v2_CopyLogEntriesRequest_descriptor =
            -        getDescriptor().getMessageTypes().get(36);
            +        getDescriptor().getMessageTypes().get(44);
                 internal_static_google_logging_v2_CopyLogEntriesRequest_fieldAccessorTable =
                     new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                         internal_static_google_logging_v2_CopyLogEntriesRequest_descriptor,
            @@ -944,7 +1172,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                           "Name", "Filter", "Destination",
                         });
                 internal_static_google_logging_v2_CopyLogEntriesMetadata_descriptor =
            -        getDescriptor().getMessageTypes().get(37);
            +        getDescriptor().getMessageTypes().get(45);
                 internal_static_google_logging_v2_CopyLogEntriesMetadata_fieldAccessorTable =
                     new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                         internal_static_google_logging_v2_CopyLogEntriesMetadata_descriptor,
            @@ -958,13 +1186,42 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                           "WriterIdentity",
                         });
                 internal_static_google_logging_v2_CopyLogEntriesResponse_descriptor =
            -        getDescriptor().getMessageTypes().get(38);
            +        getDescriptor().getMessageTypes().get(46);
                 internal_static_google_logging_v2_CopyLogEntriesResponse_fieldAccessorTable =
                     new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                         internal_static_google_logging_v2_CopyLogEntriesResponse_descriptor,
                         new java.lang.String[] {
                           "LogEntriesCopiedCount",
                         });
            +    internal_static_google_logging_v2_BucketMetadata_descriptor =
            +        getDescriptor().getMessageTypes().get(47);
            +    internal_static_google_logging_v2_BucketMetadata_fieldAccessorTable =
            +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
            +            internal_static_google_logging_v2_BucketMetadata_descriptor,
            +            new java.lang.String[] {
            +              "StartTime",
            +              "EndTime",
            +              "State",
            +              "CreateBucketRequest",
            +              "UpdateBucketRequest",
            +              "Request",
            +            });
            +    internal_static_google_logging_v2_LinkMetadata_descriptor =
            +        getDescriptor().getMessageTypes().get(48);
            +    internal_static_google_logging_v2_LinkMetadata_fieldAccessorTable =
            +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
            +            internal_static_google_logging_v2_LinkMetadata_descriptor,
            +            new java.lang.String[] {
            +              "StartTime", "EndTime", "State", "CreateLinkRequest", "DeleteLinkRequest", "Request",
            +            });
            +    internal_static_google_logging_v2_LocationMetadata_descriptor =
            +        getDescriptor().getMessageTypes().get(49);
            +    internal_static_google_logging_v2_LocationMetadata_fieldAccessorTable =
            +        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
            +            internal_static_google_logging_v2_LocationMetadata_descriptor,
            +            new java.lang.String[] {
            +              "LogAnalyticsEnabled",
            +            });
                 com.google.protobuf.ExtensionRegistry registry =
                     com.google.protobuf.ExtensionRegistry.newInstance();
                 registry.add(com.google.api.ClientProto.defaultHost);
            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
            index a2209096a..c1d2edad5 100644
            --- 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
            @@ -75,73 +75,73 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                       + "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("
            +          + "mestamp.proto\"\275\005\n\tLogMetric\022\021\n\004name\030\001 \001("
                       + "\tB\003\340A\002\022\030\n\013description\030\002 \001(\tB\003\340A\001\022\023\n\006filt"
            -          + "er\030\003 \001(\tB\003\340A\002\022\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 "
            +          + "er\030\003 \001(\tB\003\340A\002\022\030\n\013bucket_name\030\r \001(\tB\003\340A\001\022"
            +          + "\025\n\010disabled\030\014 \001(\010B\003\340A\001\022<\n\021metric_descrip"
            +          + "tor\030\005 \001(\0132\034.google.api.MetricDescriptorB"
            +          + "\003\340A\001\022\034\n\017value_extractor\030\006 \001(\tB\003\340A\001\022P\n\020la"
            +          + "bel_extractors\030\007 \003(\01321.google.logging.v2"
            +          + ".LogMetric.LabelExtractorsEntryB\003\340A\001\022C\n\016"
            +          + "bucket_options\030\010 \001(\0132&.google.api.Distri"
            +          + "bution.BucketOptionsB\003\340A\001\0224\n\013create_time"
            +          + "\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022"
            +          + "4\n\013update_time\030\n \001(\0132\032.google.protobuf.T"
            +          + "imestampB\003\340A\003\022<\n\007version\030\004 \001(\0162\'.google."
            +          + "logging.v2.LogMetric.ApiVersionB\002\030\001\0326\n\024L"
            +          + "abelExtractorsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu"
            +          + "e\030\002 \001(\t:\0028\001\"\034\n\nApiVersion\022\006\n\002V2\020\000\022\006\n\002V1\020"
            +          + "\001:J\352AG\n logging.googleapis.com/LogMetric"
            +          + "\022#projects/{project}/metrics/{metric}\"\215\001"
            +          + "\n\025ListLogMetricsRequest\022C\n\006parent\030\001 \001(\tB"
            +          + "3\340A\002\372A-\n+cloudresourcemanager.googleapis"
            +          + ".com/Project\022\027\n\npage_token\030\002 \001(\tB\003\340A\001\022\026\n"
            +          + "\tpage_size\030\003 \001(\005B\003\340A\001\"`\n\026ListLogMetricsR"
            +          + "esponse\022-\n\007metrics\030\001 \003(\0132\034.google.loggin"
            +          + "g.v2.LogMetric\022\027\n\017next_page_token\030\002 \001(\t\""
            +          + "T\n\023GetLogMetricRequest\022=\n\013metric_name\030\001 "
                       + "\001(\tB(\340A\002\372A\"\n logging.googleapis.com/LogM"
            -          + "etric\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\271\001\n\025com.google.loggin"
            -          + "g.v2B\023LoggingMetricsProtoP\001Z5cloud.googl"
            -          + "e.com/go/logging/apiv2/loggingpb;logging"
            -          + "pb\370\001\001\252\002\027Google.Cloud.Logging.V2\312\002\027Google"
            -          + "\\Cloud\\Logging\\V2\352\002\032Google::Cloud::Loggi"
            -          + "ng::V2b\006proto3"
            +          + "etric\"\205\001\n\026CreateLogMetricRequest\0228\n\006pare"
            +          + "nt\030\001 \001(\tB(\340A\002\372A\"\022 logging.googleapis.com"
            +          + "/LogMetric\0221\n\006metric\030\002 \001(\0132\034.google.logg"
            +          + "ing.v2.LogMetricB\003\340A\002\"\212\001\n\026UpdateLogMetri"
            +          + "cRequest\022=\n\013metric_name\030\001 \001(\tB(\340A\002\372A\"\n l"
            +          + "ogging.googleapis.com/LogMetric\0221\n\006metri"
            +          + "c\030\002 \001(\0132\034.google.logging.v2.LogMetricB\003\340"
            +          + "A\002\"W\n\026DeleteLogMetricRequest\022=\n\013metric_n"
            +          + "ame\030\001 \001(\tB(\340A\002\372A\"\n logging.googleapis.co"
            +          + "m/LogMetric2\256\010\n\020MetricsServiceV2\022\227\001\n\016Lis"
            +          + "tLogMetrics\022(.google.logging.v2.ListLogM"
            +          + "etricsRequest\032).google.logging.v2.ListLo"
            +          + "gMetricsResponse\"0\202\323\344\223\002!\022\037/v2/{parent=pr"
            +          + "ojects/*}/metrics\332A\006parent\022\222\001\n\014GetLogMet"
            +          + "ric\022&.google.logging.v2.GetLogMetricRequ"
            +          + "est\032\034.google.logging.v2.LogMetric\"<\202\323\344\223\002"
            +          + "(\022&/v2/{metric_name=projects/*/metrics/*"
            +          + "}\332A\013metric_name\022\233\001\n\017CreateLogMetric\022).go"
            +          + "ogle.logging.v2.CreateLogMetricRequest\032\034"
            +          + ".google.logging.v2.LogMetric\"?\202\323\344\223\002)\"\037/v"
            +          + "2/{parent=projects/*}/metrics:\006metric\332A\r"
            +          + "parent,metric\022\247\001\n\017UpdateLogMetric\022).goog"
            +          + "le.logging.v2.UpdateLogMetricRequest\032\034.g"
            +          + "oogle.logging.v2.LogMetric\"K\202\323\344\223\0020\032&/v2/"
            +          + "{metric_name=projects/*/metrics/*}:\006metr"
            +          + "ic\332A\022metric_name,metric\022\222\001\n\017DeleteLogMet"
            +          + "ric\022).google.logging.v2.DeleteLogMetricR"
            +          + "equest\032\026.google.protobuf.Empty\"<\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/clou"
            +          + "d-platform,https://www.googleapis.com/au"
            +          + "th/cloud-platform.read-only,https://www."
            +          + "googleapis.com/auth/logging.admin,https:"
            +          + "//www.googleapis.com/auth/logging.read,h"
            +          + "ttps://www.googleapis.com/auth/logging.w"
            +          + "riteB\271\001\n\025com.google.logging.v2B\023LoggingM"
            +          + "etricsProtoP\001Z5cloud.google.com/go/loggi"
            +          + "ng/apiv2/loggingpb;loggingpb\370\001\001\252\002\027Google"
            +          + ".Cloud.Logging.V2\312\002\027Google\\Cloud\\Logging"
            +          + "\\V2\352\002\032Google::Cloud::Logging::V2b\006proto3"
                 };
                 descriptor =
                     com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
            @@ -165,6 +165,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                           "Name",
                           "Description",
                           "Filter",
            +              "BucketName",
                           "Disabled",
                           "MetricDescriptor",
                           "ValueExtractor",
            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
            index e9f098abb..010223833 100644
            --- 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
            @@ -135,9 +135,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                       + "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"
            +          + "pis.com/Log\022:\n\016resource_names\030\010 \003(\tB\"\340A\001"
            +          + "\372A\034\022\032logging.googleapis.com/Log\022\026\n\tpage_"
            +          + "size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001"
                       + "\">\n\020ListLogsResponse\022\021\n\tlog_names\030\003 \003(\t\022"
                       + "\027\n\017next_page_token\030\002 \001(\t\"\200\001\n\025TailLogEntr"
                       + "iesRequest\022\033\n\016resource_names\030\001 \003(\tB\003\340A\002\022"
            @@ -151,7 +151,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                       + "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"
            +          + "ATE_LIMIT\020\001\022\020\n\014NOT_CONSUMED\020\0022\351\r\n\020Loggin"
                       + "gServiceV2\022\223\002\n\tDeleteLog\022#.google.loggin"
                       + "g.v2.DeleteLogRequest\032\026.google.protobuf."
                       + "Empty\"\310\001\202\323\344\223\002\266\001* /v2/{log_name=projects/"
            @@ -172,29 +172,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                       + ".v2.ListMonitoredResourceDescriptorsRequ"
                       + "est\032;.google.logging.v2.ListMonitoredRes"
                       + "ourceDescriptorsResponse\"(\202\323\344\223\002\"\022 /v2/mo"
            -          + "nitoredResourceDescriptors\022\210\002\n\010ListLogs\022"
            +          + "nitoredResourceDescriptors\022\213\004\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"
            +          + "ogle.logging.v2.ListLogsResponse\"\265\003\202\323\344\223\002"
            +          + "\245\003\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\262\001\n\025com.google.lo"
            -          + "gging.v2B\014LoggingProtoP\001Z5cloud.google.c"
            -          + "om/go/logging/apiv2/loggingpb;loggingpb\370"
            -          + "\001\001\252\002\027Google.Cloud.Logging.V2\312\002\027Google\\Cl"
            -          + "oud\\Logging\\V2\352\002\032Google::Cloud::Logging:"
            -          + ":V2b\006proto3"
            +          + "logsZ<\022:/v2/{parent=projects/*/locations"
            +          + "/*/buckets/*/views/*}/logsZA\022?/v2/{paren"
            +          + "t=organizations/*/locations/*/buckets/*/"
            +          + "views/*}/logsZ;\0229/v2/{parent=folders/*/l"
            +          + "ocations/*/buckets/*/views/*}/logsZC\022A/v"
            +          + "2/{parent=billingAccounts/*/locations/*/"
            +          + "buckets/*/views/*}/logs\332A\006parent\022\206\001\n\016Tai"
            +          + "lLogEntries\022(.google.logging.v2.TailLogE"
            +          + "ntriesRequest\032).google.logging.v2.TailLo"
            +          + "gEntriesResponse\"\033\202\323\344\223\002\025\"\020/v2/entries:ta"
            +          + "il:\001*(\0010\001\032\215\002\312A\026logging.googleapis.com\322A\360"
            +          + "\001https://www.googleapis.com/auth/cloud-p"
            +          + "latform,https://www.googleapis.com/auth/"
            +          + "cloud-platform.read-only,https://www.goo"
            +          + "gleapis.com/auth/logging.admin,https://w"
            +          + "ww.googleapis.com/auth/logging.read,http"
            +          + "s://www.googleapis.com/auth/logging.writ"
            +          + "eB\262\001\n\025com.google.logging.v2B\014LoggingProt"
            +          + "oP\001Z5cloud.google.com/go/logging/apiv2/l"
            +          + "oggingpb;loggingpb\370\001\001\252\002\027Google.Cloud.Log"
            +          + "ging.V2\312\002\027Google\\Cloud\\Logging\\V2\352\002\032Goog"
            +          + "le::Cloud::Logging::V2b\006proto3"
                 };
                 descriptor =
                     com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
            @@ -296,7 +302,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
                     new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
                         internal_static_google_logging_v2_ListLogsRequest_descriptor,
                         new java.lang.String[] {
            -              "Parent", "PageSize", "PageToken", "ResourceNames",
            +              "Parent", "ResourceNames", "PageSize", "PageToken",
                         });
                 internal_static_google_logging_v2_ListLogsResponse_descriptor =
                     getDescriptor().getMessageTypes().get(9);
            diff --git a/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
            index 593fce648..6c87cd536 100644
            --- a/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
            @@ -243,7 +243,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType
               }
             
               public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
            -    return com.google.logging.v2.LoggingConfigProto.getDescriptor().getEnumTypes().get(1);
            +    return com.google.logging.v2.LoggingConfigProto.getDescriptor().getEnumTypes().get(0);
               }
             
               private static final OperationState[] VALUES = values();
            diff --git a/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
            index 24cba8637..fa3a6d23d 100644
            --- a/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
            @@ -212,8 +212,8 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
                *
                *
                * 
            -   * Output only. The service account that will be used by the Log Router to access your
            -   * Cloud KMS key.
            +   * 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
            @@ -244,8 +244,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.
            +   * 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
            @@ -281,8 +281,8 @@ public 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`.
            +   * 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.
                * 
            * @@ -306,8 +306,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`.
            +   * 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.
                * 
            * @@ -334,10 +334,10 @@ public 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.
            +   * 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]; @@ -1078,8 +1078,8 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { * * *
            -     * Output only. The service account that will be used by the Log Router to access your
            -     * Cloud KMS key.
            +     * 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
            @@ -1109,8 +1109,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.
            +     * 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
            @@ -1140,8 +1140,8 @@ public com.google.protobuf.ByteString getKmsServiceAccountIdBytes() {
                  *
                  *
                  * 
            -     * Output only. The service account that will be used by the Log Router to access your
            -     * Cloud KMS key.
            +     * 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
            @@ -1170,8 +1170,8 @@ public Builder setKmsServiceAccountId(java.lang.String value) {
                  *
                  *
                  * 
            -     * Output only. The service account that will be used by the Log Router to access your
            -     * Cloud KMS key.
            +     * 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
            @@ -1196,8 +1196,8 @@ public Builder clearKmsServiceAccountId() {
                  *
                  *
                  * 
            -     * Output only. The service account that will be used by the Log Router to access your
            -     * Cloud KMS key.
            +     * 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
            @@ -1229,8 +1229,8 @@ public Builder setKmsServiceAccountIdBytes(com.google.protobuf.ByteString value)
                  *
                  *
                  * 
            -     * Optional. The Cloud region that will be used for _Default and _Required log buckets
            -     * for newly created projects and folders. For example `europe-west1`.
            +     * 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.
                  * 
            * @@ -1253,8 +1253,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`.
            +     * 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.
                  * 
            * @@ -1277,8 +1277,8 @@ public com.google.protobuf.ByteString getStorageLocationBytes() { * * *
            -     * Optional. The Cloud region that will be used for _Default and _Required log buckets
            -     * for newly created projects and folders. For example `europe-west1`.
            +     * 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.
                  * 
            * @@ -1300,8 +1300,8 @@ public Builder setStorageLocation(java.lang.String value) { * * *
            -     * Optional. The Cloud region that will be used for _Default and _Required log buckets
            -     * for newly created projects and folders. For example `europe-west1`.
            +     * 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.
                  * 
            * @@ -1319,8 +1319,8 @@ public Builder clearStorageLocation() { * * *
            -     * Optional. The Cloud region that will be used for _Default and _Required log buckets
            -     * for newly created projects and folders. For example `europe-west1`.
            +     * 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.
                  * 
            * @@ -1345,10 +1345,10 @@ public Builder setStorageLocationBytes(com.google.protobuf.ByteString value) { * * *
            -     * 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.
            +     * 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]; @@ -1363,10 +1363,10 @@ public boolean getDisableDefaultSink() { * * *
            -     * 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.
            +     * 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]; @@ -1385,10 +1385,10 @@ public Builder setDisableDefaultSink(boolean value) { * * *
            -     * 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.
            +     * 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]; diff --git a/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 index a87422b43..3eafd1c28 100644 --- a/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 @@ -109,8 +109,8 @@ public interface SettingsOrBuilder * * *
            -   * Output only. The service account that will be used by the Log Router to access your
            -   * Cloud KMS key.
            +   * 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
            @@ -130,8 +130,8 @@ public interface SettingsOrBuilder
                *
                *
                * 
            -   * Output only. The service account that will be used by the Log Router to access your
            -   * Cloud KMS key.
            +   * 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
            @@ -152,8 +152,8 @@ public interface SettingsOrBuilder
                *
                *
                * 
            -   * Optional. The Cloud region that will be used for _Default and _Required log buckets
            -   * for newly created projects and folders. For example `europe-west1`.
            +   * 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.
                * 
            * @@ -166,8 +166,8 @@ public interface SettingsOrBuilder * * *
            -   * Optional. The Cloud region that will be used for _Default and _Required log buckets
            -   * for newly created projects and folders. For example `europe-west1`.
            +   * 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.
                * 
            * @@ -181,10 +181,10 @@ public interface SettingsOrBuilder * * *
            -   * 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.
            +   * 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]; diff --git a/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 index cfb935850..8a3c58b0d 100644 --- a/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 @@ -175,13 +175,11 @@ public 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).
            -   * 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 in `resource_names` will cause
            -   * the filter to return no results. The maximum length of the filter is 20000
            -   * characters.
            +   * Optional. Only log entries that match the filter are returned.  An empty
            +   * filter matches all log entries in the resources listed in `resource_names`.
            +   * Referencing a parent resource that is not listed in `resource_names` will
            +   * cause the filter to return no results. The maximum length of a filter is
            +   * 20,000 characters.
                * 
            * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -204,13 +202,11 @@ 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).
            -   * 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 in `resource_names` will cause
            -   * the filter to return no results. The maximum length of the filter is 20000
            -   * characters.
            +   * Optional. Only log entries that match the filter are returned.  An empty
            +   * filter matches all log entries in the resources listed in `resource_names`.
            +   * Referencing a parent resource that is not listed in `resource_names` will
            +   * cause the filter to return no results. The maximum length of a filter is
            +   * 20,000 characters.
                * 
            * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -963,13 +959,11 @@ public Builder addResourceNamesBytes(com.google.protobuf.ByteString value) { * * *
            -     * Optional. A filter that chooses which log entries to return.  See [Advanced
            -     * Logs Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
            -     * 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 in `resource_names` will cause
            -     * the filter to return no results. The maximum length of the filter is 20000
            -     * characters.
            +     * Optional. Only log entries that match the filter are returned.  An empty
            +     * filter matches all log entries in the resources listed in `resource_names`.
            +     * Referencing a parent resource that is not listed in `resource_names` will
            +     * cause the filter to return no results. The maximum length of a filter is
            +     * 20,000 characters.
                  * 
            * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -991,13 +985,11 @@ 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).
            -     * 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 in `resource_names` will cause
            -     * the filter to return no results. The maximum length of the filter is 20000
            -     * characters.
            +     * Optional. Only log entries that match the filter are returned.  An empty
            +     * filter matches all log entries in the resources listed in `resource_names`.
            +     * Referencing a parent resource that is not listed in `resource_names` will
            +     * cause the filter to return no results. The maximum length of a filter is
            +     * 20,000 characters.
                  * 
            * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1019,13 +1011,11 @@ 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).
            -     * 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 in `resource_names` will cause
            -     * the filter to return no results. The maximum length of the filter is 20000
            -     * characters.
            +     * Optional. Only log entries that match the filter are returned.  An empty
            +     * filter matches all log entries in the resources listed in `resource_names`.
            +     * Referencing a parent resource that is not listed in `resource_names` will
            +     * cause the filter to return no results. The maximum length of a filter is
            +     * 20,000 characters.
                  * 
            * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1046,13 +1036,11 @@ public Builder setFilter(java.lang.String value) { * * *
            -     * Optional. A filter that chooses which log entries to return.  See [Advanced
            -     * Logs Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
            -     * 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 in `resource_names` will cause
            -     * the filter to return no results. The maximum length of the filter is 20000
            -     * characters.
            +     * Optional. Only log entries that match the filter are returned.  An empty
            +     * filter matches all log entries in the resources listed in `resource_names`.
            +     * Referencing a parent resource that is not listed in `resource_names` will
            +     * cause the filter to return no results. The maximum length of a filter is
            +     * 20,000 characters.
                  * 
            * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1069,13 +1057,11 @@ public Builder clearFilter() { * * *
            -     * Optional. A filter that chooses which log entries to return.  See [Advanced
            -     * Logs Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
            -     * 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 in `resource_names` will cause
            -     * the filter to return no results. The maximum length of the filter is 20000
            -     * characters.
            +     * Optional. Only log entries that match the filter are returned.  An empty
            +     * filter matches all log entries in the resources listed in `resource_names`.
            +     * Referencing a parent resource that is not listed in `resource_names` will
            +     * cause the filter to return no results. The maximum length of a filter is
            +     * 20,000 characters.
                  * 
            * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/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 index ba08b14fb..378582fc4 100644 --- a/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 @@ -114,13 +114,11 @@ public interface TailLogEntriesRequestOrBuilder * * *
            -   * Optional. A filter that chooses which log entries to return.  See [Advanced
            -   * Logs Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
            -   * 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 in `resource_names` will cause
            -   * the filter to return no results. The maximum length of the filter is 20000
            -   * characters.
            +   * Optional. Only log entries that match the filter are returned.  An empty
            +   * filter matches all log entries in the resources listed in `resource_names`.
            +   * Referencing a parent resource that is not listed in `resource_names` will
            +   * cause the filter to return no results. The maximum length of a filter is
            +   * 20,000 characters.
                * 
            * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -132,13 +130,11 @@ public interface TailLogEntriesRequestOrBuilder * * *
            -   * Optional. A filter that chooses which log entries to return.  See [Advanced
            -   * Logs Filters](https://cloud.google.com/logging/docs/view/advanced_filters).
            -   * 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 in `resource_names` will cause
            -   * the filter to return no results. The maximum length of the filter is 20000
            -   * characters.
            +   * Optional. Only log entries that match the filter are returned.  An empty
            +   * filter matches all log entries in the resources listed in `resource_names`.
            +   * Referencing a parent resource that is not listed in `resource_names` will
            +   * cause the filter to return no results. The maximum length of a filter is
            +   * 20,000 characters.
                * 
            * * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/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 index 2bb718aed..cb4b0322d 100644 --- a/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 @@ -186,9 +186,9 @@ public 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.
            +   * 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:
                * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
                * For example: `updateMask=retention_days`
            @@ -207,9 +207,9 @@ public 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.
            +   * 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:
                * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
                * For example: `updateMask=retention_days`
            @@ -228,9 +228,9 @@ public 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.
            +   * 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:
                * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
                * For example: `updateMask=retention_days`
            @@ -991,9 +991,9 @@ public 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.
            +     * 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:
                  * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
                  * For example: `updateMask=retention_days`
            @@ -1011,9 +1011,9 @@ public 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.
            +     * 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:
                  * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
                  * For example: `updateMask=retention_days`
            @@ -1037,9 +1037,9 @@ public 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.
            +     * 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:
                  * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
                  * For example: `updateMask=retention_days`
            @@ -1065,9 +1065,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
                  *
                  *
                  * 
            -     * 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.
            +     * 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:
                  * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
                  * For example: `updateMask=retention_days`
            @@ -1090,9 +1090,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
                  *
                  *
                  * 
            -     * 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.
            +     * 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:
                  * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
                  * For example: `updateMask=retention_days`
            @@ -1121,9 +1121,9 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
                  *
                  *
                  * 
            -     * 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.
            +     * 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:
                  * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
                  * For example: `updateMask=retention_days`
            @@ -1146,9 +1146,9 @@ public Builder clearUpdateMask() {
                  *
                  *
                  * 
            -     * 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.
            +     * 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:
                  * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
                  * For example: `updateMask=retention_days`
            @@ -1166,9 +1166,9 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
                  *
                  *
                  * 
            -     * 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.
            +     * 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:
                  * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
                  * For example: `updateMask=retention_days`
            @@ -1190,9 +1190,9 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
                  *
                  *
                  * 
            -     * 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.
            +     * 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:
                  * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
                  * For example: `updateMask=retention_days`
            diff --git a/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
            index 37c7f9704..b2d09a2d5 100644
            --- a/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
            @@ -103,9 +103,9 @@ public interface UpdateBucketRequestOrBuilder
                *
                *
                * 
            -   * 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.
            +   * 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:
                * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
                * For example: `updateMask=retention_days`
            @@ -121,9 +121,9 @@ public interface UpdateBucketRequestOrBuilder
                *
                *
                * 
            -   * 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.
            +   * 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:
                * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
                * For example: `updateMask=retention_days`
            @@ -139,9 +139,9 @@ public interface UpdateBucketRequestOrBuilder
                *
                *
                * 
            -   * 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.
            +   * 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:
                * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
                * For example: `updateMask=retention_days`
            diff --git a/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
            index 0706f8d3c..93ada4a2b 100644
            --- a/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
            @@ -140,8 +140,8 @@ public com.google.protobuf.ByteString getNameBytes() {
                *
                *
                * 
            -   * Required. New values for the existing exclusion. Only the fields specified in
            -   * `update_mask` are relevant.
            +   * 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]; @@ -157,8 +157,8 @@ public boolean hasExclusion() { * * *
            -   * Required. New values for the existing exclusion. Only the fields specified in
            -   * `update_mask` are relevant.
            +   * 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]; @@ -176,8 +176,8 @@ public com.google.logging.v2.LogExclusion getExclusion() { * * *
            -   * Required. New values for the existing exclusion. Only the fields specified in
            -   * `update_mask` are relevant.
            +   * 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]; @@ -196,10 +196,11 @@ public 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
            -   * [LogExclusion][google.logging.v2.LogExclusion] included in this request. Fields not mentioned in
            -   * `update_mask` are not changed and are ignored in the request.
            +   * 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"`.
                * 
            @@ -217,10 +218,11 @@ public 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
            -   * [LogExclusion][google.logging.v2.LogExclusion] included in this request. Fields not mentioned in
            -   * `update_mask` are not changed and are ignored in the request.
            +   * 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"`.
                * 
            @@ -238,10 +240,11 @@ public 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
            -   * [LogExclusion][google.logging.v2.LogExclusion] included in this request. Fields not mentioned in
            -   * `update_mask` are not changed and are ignored in the request.
            +   * 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"`.
                * 
            @@ -813,8 +816,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
            -     * Required. New values for the existing exclusion. Only the fields specified in
            -     * `update_mask` are relevant.
            +     * Required. New values for the existing exclusion. Only the fields specified
            +     * in `update_mask` are relevant.
                  * 
            * * @@ -830,8 +833,8 @@ public boolean hasExclusion() { * * *
            -     * Required. New values for the existing exclusion. Only the fields specified in
            -     * `update_mask` are relevant.
            +     * Required. New values for the existing exclusion. Only the fields specified
            +     * in `update_mask` are relevant.
                  * 
            * * @@ -853,8 +856,8 @@ public com.google.logging.v2.LogExclusion getExclusion() { * * *
            -     * Required. New values for the existing exclusion. Only the fields specified in
            -     * `update_mask` are relevant.
            +     * Required. New values for the existing exclusion. Only the fields specified
            +     * in `update_mask` are relevant.
                  * 
            * * @@ -878,8 +881,8 @@ public Builder setExclusion(com.google.logging.v2.LogExclusion value) { * * *
            -     * Required. New values for the existing exclusion. Only the fields specified in
            -     * `update_mask` are relevant.
            +     * Required. New values for the existing exclusion. Only the fields specified
            +     * in `update_mask` are relevant.
                  * 
            * * @@ -900,8 +903,8 @@ public Builder setExclusion(com.google.logging.v2.LogExclusion.Builder builderFo * * *
            -     * Required. New values for the existing exclusion. Only the fields specified in
            -     * `update_mask` are relevant.
            +     * Required. New values for the existing exclusion. Only the fields specified
            +     * in `update_mask` are relevant.
                  * 
            * * @@ -928,8 +931,8 @@ public Builder mergeExclusion(com.google.logging.v2.LogExclusion value) { * * *
            -     * Required. New values for the existing exclusion. Only the fields specified in
            -     * `update_mask` are relevant.
            +     * Required. New values for the existing exclusion. Only the fields specified
            +     * in `update_mask` are relevant.
                  * 
            * * @@ -950,8 +953,8 @@ public Builder clearExclusion() { * * *
            -     * Required. New values for the existing exclusion. Only the fields specified in
            -     * `update_mask` are relevant.
            +     * Required. New values for the existing exclusion. Only the fields specified
            +     * in `update_mask` are relevant.
                  * 
            * * @@ -967,8 +970,8 @@ public com.google.logging.v2.LogExclusion.Builder getExclusionBuilder() { * * *
            -     * Required. New values for the existing exclusion. Only the fields specified in
            -     * `update_mask` are relevant.
            +     * Required. New values for the existing exclusion. Only the fields specified
            +     * in `update_mask` are relevant.
                  * 
            * * @@ -988,8 +991,8 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionOrBuilder() { * * *
            -     * Required. New values for the existing exclusion. Only the fields specified in
            -     * `update_mask` are relevant.
            +     * Required. New values for the existing exclusion. Only the fields specified
            +     * in `update_mask` are relevant.
                  * 
            * * @@ -1023,10 +1026,11 @@ public 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
            -     * [LogExclusion][google.logging.v2.LogExclusion] included in this request. Fields not mentioned in
            -     * `update_mask` are not changed and are ignored in the request.
            +     * 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"`.
                  * 
            @@ -1043,10 +1047,11 @@ public 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
            -     * [LogExclusion][google.logging.v2.LogExclusion] included in this request. Fields not mentioned in
            -     * `update_mask` are not changed and are ignored in the request.
            +     * 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"`.
                  * 
            @@ -1069,10 +1074,11 @@ public 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
            -     * [LogExclusion][google.logging.v2.LogExclusion] included in this request. Fields not mentioned in
            -     * `update_mask` are not changed and are ignored in the request.
            +     * 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"`.
                  * 
            @@ -1097,10 +1103,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
            -     * 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.
            +     * 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"`.
                  * 
            @@ -1122,10 +1129,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
            -     * 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.
            +     * 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"`.
                  * 
            @@ -1153,10 +1161,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
            -     * 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.
            +     * 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"`.
                  * 
            @@ -1178,10 +1187,11 @@ public Builder clearUpdateMask() { * * *
            -     * 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.
            +     * 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"`.
                  * 
            @@ -1198,10 +1208,11 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
            -     * 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.
            +     * 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"`.
                  * 
            @@ -1222,10 +1233,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
            -     * 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.
            +     * 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"`.
                  * 
            diff --git a/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 index 63a4ca06d..cadc9f1ca 100644 --- a/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 @@ -68,8 +68,8 @@ public interface UpdateExclusionRequestOrBuilder * * *
            -   * Required. New values for the existing exclusion. Only the fields specified in
            -   * `update_mask` are relevant.
            +   * 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]; @@ -82,8 +82,8 @@ public interface UpdateExclusionRequestOrBuilder * * *
            -   * Required. New values for the existing exclusion. Only the fields specified in
            -   * `update_mask` are relevant.
            +   * 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]; @@ -96,8 +96,8 @@ public interface UpdateExclusionRequestOrBuilder * * *
            -   * Required. New values for the existing exclusion. Only the fields specified in
            -   * `update_mask` are relevant.
            +   * 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]; @@ -109,10 +109,11 @@ public interface UpdateExclusionRequestOrBuilder * * *
            -   * 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.
            +   * 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"`.
                * 
            @@ -127,10 +128,11 @@ public interface UpdateExclusionRequestOrBuilder * * *
            -   * 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.
            +   * 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"`.
                * 
            @@ -145,10 +147,11 @@ public interface UpdateExclusionRequestOrBuilder * * *
            -   * 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.
            +   * 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"`.
                * 
            diff --git a/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 index 7876a6db3..ab3c65bdb 100644 --- a/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 @@ -75,8 +75,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
            -   * Required. The full resource name of the sink to update, including the parent
            -   * resource and the sink identifier:
            +   * 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]"
            @@ -107,8 +107,8 @@ public java.lang.String getSinkName() {
                *
                *
                * 
            -   * Required. The full resource name of the sink to update, including the parent
            -   * resource and the sink identifier:
            +   * 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]"
            @@ -142,8 +142,8 @@ public com.google.protobuf.ByteString getSinkNameBytes() {
                *
                *
                * 
            -   * Required. The updated sink, whose name is the same identifier that appears as part
            -   * of `sink_name`.
            +   * 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]; @@ -158,8 +158,8 @@ public boolean hasSink() { * * *
            -   * Required. The updated sink, whose name is the same identifier that appears as part
            -   * of `sink_name`.
            +   * 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]; @@ -174,8 +174,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`.
            +   * 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]; @@ -720,8 +720,8 @@ public Builder mergeFrom( * * *
            -     * Required. The full resource name of the sink to update, including the parent
            -     * resource and the sink identifier:
            +     * 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]"
            @@ -751,8 +751,8 @@ public java.lang.String getSinkName() {
                  *
                  *
                  * 
            -     * Required. The full resource name of the sink to update, including the parent
            -     * resource and the sink identifier:
            +     * 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]"
            @@ -782,8 +782,8 @@ public com.google.protobuf.ByteString getSinkNameBytes() {
                  *
                  *
                  * 
            -     * Required. The full resource name of the sink to update, including the parent
            -     * resource and the sink identifier:
            +     * 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]"
            @@ -812,8 +812,8 @@ public Builder setSinkName(java.lang.String value) {
                  *
                  *
                  * 
            -     * Required. The full resource name of the sink to update, including the parent
            -     * resource and the sink identifier:
            +     * 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]"
            @@ -838,8 +838,8 @@ public Builder clearSinkName() {
                  *
                  *
                  * 
            -     * Required. The full resource name of the sink to update, including the parent
            -     * resource and the sink identifier:
            +     * 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]"
            @@ -876,8 +876,8 @@ public Builder setSinkNameBytes(com.google.protobuf.ByteString value) {
                  *
                  *
                  * 
            -     * Required. The updated sink, whose name is the same identifier that appears as part
            -     * of `sink_name`.
            +     * 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]; @@ -891,8 +891,8 @@ public boolean hasSink() { * * *
            -     * Required. The updated sink, whose name is the same identifier that appears as part
            -     * of `sink_name`.
            +     * 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]; @@ -910,8 +910,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`.
            +     * 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]; @@ -933,8 +933,8 @@ public Builder setSink(com.google.logging.v2.LogSink value) { * * *
            -     * Required. The updated sink, whose name is the same identifier that appears as part
            -     * of `sink_name`.
            +     * 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]; @@ -953,8 +953,8 @@ public Builder setSink(com.google.logging.v2.LogSink.Builder builderForValue) { * * *
            -     * Required. The updated sink, whose name is the same identifier that appears as part
            -     * of `sink_name`.
            +     * 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]; @@ -979,8 +979,8 @@ public Builder mergeSink(com.google.logging.v2.LogSink value) { * * *
            -     * Required. The updated sink, whose name is the same identifier that appears as part
            -     * of `sink_name`.
            +     * 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]; @@ -999,8 +999,8 @@ public Builder clearSink() { * * *
            -     * Required. The updated sink, whose name is the same identifier that appears as part
            -     * of `sink_name`.
            +     * 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]; @@ -1014,8 +1014,8 @@ public com.google.logging.v2.LogSink.Builder getSinkBuilder() { * * *
            -     * Required. The updated sink, whose name is the same identifier that appears as part
            -     * of `sink_name`.
            +     * 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]; @@ -1031,8 +1031,8 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() { * * *
            -     * Required. The updated sink, whose name is the same identifier that appears as part
            -     * of `sink_name`.
            +     * 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]; diff --git a/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 index 159c2c3bf..470b15076 100644 --- a/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 @@ -27,8 +27,8 @@ public interface UpdateSinkRequestOrBuilder * * *
            -   * Required. The full resource name of the sink to update, including the parent
            -   * resource and the sink identifier:
            +   * 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]"
            @@ -48,8 +48,8 @@ public interface UpdateSinkRequestOrBuilder
                *
                *
                * 
            -   * Required. The full resource name of the sink to update, including the parent
            -   * resource and the sink identifier:
            +   * 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]"
            @@ -70,8 +70,8 @@ public interface UpdateSinkRequestOrBuilder
                *
                *
                * 
            -   * Required. The updated sink, whose name is the same identifier that appears as part
            -   * of `sink_name`.
            +   * 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]; @@ -83,8 +83,8 @@ public interface UpdateSinkRequestOrBuilder * * *
            -   * Required. The updated sink, whose name is the same identifier that appears as part
            -   * of `sink_name`.
            +   * 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]; @@ -96,8 +96,8 @@ public interface UpdateSinkRequestOrBuilder * * *
            -   * Required. The updated sink, whose name is the same identifier that appears as part
            -   * of `sink_name`.
            +   * 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]; diff --git a/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 index abefaae25..d296288ff 100644 --- a/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 @@ -523,11 +523,13 @@ public 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
            -   * entry is not written, then the response status is the error associated
            -   * with one of the failed entries and the response includes error details
            -   * keyed by the entries' zero-based index in the `entries.write` method.
            +   * Optional. Whether a batch's valid entries should be written even if some
            +   * other entry failed due to a permanent error such as INVALID_ARGUMENT or
            +   * PERMISSION_DENIED. If any entry failed, then the response status is the
            +   * response status of one of the failed entries. The response will include
            +   * error details in `WriteLogEntriesPartialErrors.log_entry_errors` keyed by
            +   * the entries' zero-based index in the `entries`. Failed requests for which
            +   * no entries are written will not include per-entry errors.
                * 
            * * bool partial_success = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2445,11 +2447,13 @@ public java.util.List getEntriesBuilderL * * *
            -     * Optional. Whether valid entries should be written even if some other
            -     * entries fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any
            -     * entry is not written, then the response status is the error associated
            -     * with one of the failed entries and the response includes error details
            -     * keyed by the entries' zero-based index in the `entries.write` method.
            +     * Optional. Whether a batch's valid entries should be written even if some
            +     * other entry failed due to a permanent error such as INVALID_ARGUMENT or
            +     * PERMISSION_DENIED. If any entry failed, then the response status is the
            +     * response status of one of the failed entries. The response will include
            +     * error details in `WriteLogEntriesPartialErrors.log_entry_errors` keyed by
            +     * the entries' zero-based index in the `entries`. Failed requests for which
            +     * no entries are written will not include per-entry errors.
                  * 
            * * bool partial_success = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2464,11 +2468,13 @@ public boolean getPartialSuccess() { * * *
            -     * Optional. Whether valid entries should be written even if some other
            -     * entries fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any
            -     * entry is not written, then the response status is the error associated
            -     * with one of the failed entries and the response includes error details
            -     * keyed by the entries' zero-based index in the `entries.write` method.
            +     * Optional. Whether a batch's valid entries should be written even if some
            +     * other entry failed due to a permanent error such as INVALID_ARGUMENT or
            +     * PERMISSION_DENIED. If any entry failed, then the response status is the
            +     * response status of one of the failed entries. The response will include
            +     * error details in `WriteLogEntriesPartialErrors.log_entry_errors` keyed by
            +     * the entries' zero-based index in the `entries`. Failed requests for which
            +     * no entries are written will not include per-entry errors.
                  * 
            * * bool partial_success = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2487,11 +2493,13 @@ public Builder setPartialSuccess(boolean value) { * * *
            -     * Optional. Whether valid entries should be written even if some other
            -     * entries fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any
            -     * entry is not written, then the response status is the error associated
            -     * with one of the failed entries and the response includes error details
            -     * keyed by the entries' zero-based index in the `entries.write` method.
            +     * Optional. Whether a batch's valid entries should be written even if some
            +     * other entry failed due to a permanent error such as INVALID_ARGUMENT or
            +     * PERMISSION_DENIED. If any entry failed, then the response status is the
            +     * response status of one of the failed entries. The response will include
            +     * error details in `WriteLogEntriesPartialErrors.log_entry_errors` keyed by
            +     * the entries' zero-based index in the `entries`. Failed requests for which
            +     * no entries are written will not include per-entry errors.
                  * 
            * * bool partial_success = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/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 index 1e9bad481..c40e3e6a4 100644 --- a/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 @@ -367,11 +367,13 @@ java.lang.String getLabelsOrDefault( * * *
            -   * Optional. Whether valid entries should be written even if some other
            -   * entries fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any
            -   * entry is not written, then the response status is the error associated
            -   * with one of the failed entries and the response includes error details
            -   * keyed by the entries' zero-based index in the `entries.write` method.
            +   * Optional. Whether a batch's valid entries should be written even if some
            +   * other entry failed due to a permanent error such as INVALID_ARGUMENT or
            +   * PERMISSION_DENIED. If any entry failed, then the response status is the
            +   * response status of one of the failed entries. The response will include
            +   * error details in `WriteLogEntriesPartialErrors.log_entry_errors` keyed by
            +   * the entries' zero-based index in the `entries`. Failed requests for which
            +   * no entries are written will not include per-entry errors.
                * 
            * * bool partial_success = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/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 index 634092a91..94c5cdff8 100644 --- a/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 @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// 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. @@ -75,7 +75,8 @@ message LogEntry { // Example: a log entry that reports a database error would be associated with // the monitored resource designating the particular database that reported // the error. - google.api.MonitoredResource resource = 8 [(google.api.field_behavior) = REQUIRED]; + google.api.MonitoredResource resource = 8 + [(google.api.field_behavior) = REQUIRED]; // The log entry payload, which can be one of multiple types. oneof payload { @@ -97,27 +98,32 @@ message LogEntry { google.protobuf.Struct json_payload = 6; } - // 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. - // If this field is omitted in a new log entry, then Logging assigns it the - // current time. Timestamps have nanosecond accuracy, but trailing zeros in - // the fractional seconds might be omitted when the timestamp is displayed. + // 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. If this field is omitted in a new log entry, then Logging assigns + // it the current time. Timestamps have nanosecond accuracy, but trailing + // zeros in the fractional seconds might be omitted when the timestamp is + // displayed. // // Incoming log entries must have timestamps that don't exceed the // [logs retention // period](https://cloud.google.com/logging/quotas#logs_retention_periods) in // the past, and that don't exceed 24 hours in the future. Log entries outside // 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]; // 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]; - // Optional. The severity of the log entry. The default value is `LogSeverity.DEFAULT`. - google.logging.type.LogSeverity severity = 10 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The severity of the log entry. The default value is + // `LogSeverity.DEFAULT`. + google.logging.type.LogSeverity severity = 10 + [(google.api.field_behavior) = OPTIONAL]; - // 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 + // 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 // `timestamp`, and with the same `insert_id` to be duplicates which are // removed in a single query result. However, there are no guarantees of // de-duplication in the export of logs. @@ -129,12 +135,13 @@ message LogEntry { // the same `log_name` and `timestamp` values. string insert_id = 4 [(google.api.field_behavior) = OPTIONAL]; - // 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]; + // 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]; - // Optional. A map of key, value pairs that provides additional information about the - // log entry. The labels can be user-defined or system-defined. + // 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. @@ -153,17 +160,47 @@ message LogEntry { // applicable. LogEntryOperation operation = 15 [(google.api.field_behavior) = OPTIONAL]; - // 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 - // `//tracing.googleapis.com`. Example: - // `projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824` + // Optional. The REST resource name of the trace being written to + // [Cloud Trace](https://cloud.google.com/trace) in + // association with this log entry. For example, if your trace data is stored + // in the Cloud project "my-trace-project" and if the service that is creating + // the log entry receives a trace header that includes the trace ID "12345", + // then the service should use "projects/my-tracing-project/traces/12345". + // + // The `trace` field provides the link between logs and traces. By using + // this field, you can navigate from a log entry to a trace. string trace = 22 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The span ID within the trace associated with the log entry. + // Optional. The ID of the [Cloud Trace](https://cloud.google.com/trace) span + // associated with the current operation in which the log is being written. + // For example, if a span has the REST resource name of + // "projects/some-project/traces/some-trace/spans/some-span-id", then the + // `span_id` field is "some-span-id". + // + // A + // [Span](https://cloud.google.com/trace/docs/reference/v2/rest/v2/projects.traces/batchWrite#Span) + // represents a single operation within a trace. Whereas a trace may involve + // multiple different microservices running on multiple different machines, + // a span generally corresponds to a single logical operation being performed + // in a single instance of a microservice on one specific machine. Spans + // are the nodes within the tree that is a trace. + // + // Applications that are [instrumented for + // tracing](https://cloud.google.com/trace/docs/setup) will generally assign a + // new, unique span ID on each incoming request. It is also common to create + // and record additional spans corresponding to internal processing elements + // as well as issuing requests to dependencies. + // + // The span ID is expected to be a 16-character, hexadecimal encoding of an + // 8-byte array and should not be zero. It should be unique within the trace + // and should, ideally, be generated in a manner that is uniformly random. + // + // Example values: // - // For Trace spans, this is the same format that the Trace API v2 uses: a - // 16-character hexadecimal encoding of an 8-byte array, such as - // `000000000000004a`. + // - `000000000000004a` + // - `7a2190356c3fc94b` + // - `0000f00300090021` + // - `d39223e101960076` string span_id = 27 [(google.api.field_behavior) = OPTIONAL]; // Optional. The sampling decision of the trace associated with the log entry. @@ -175,11 +212,13 @@ message LogEntry { // request correlation identifier. The default is False. bool trace_sampled = 30 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Source code location information associated with the log entry, if any. - LogEntrySourceLocation source_location = 23 [(google.api.field_behavior) = OPTIONAL]; + // 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. + // 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]; } diff --git a/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 index d87f6549e..92d481eac 100644 --- a/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 @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// 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. @@ -52,18 +52,10 @@ service LoggingServiceV2 { rpc DeleteLog(DeleteLogRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v2/{log_name=projects/*/logs/*}" - additional_bindings { - delete: "/v2/{log_name=*/*/logs/*}" - } - additional_bindings { - delete: "/v2/{log_name=organizations/*/logs/*}" - } - additional_bindings { - delete: "/v2/{log_name=folders/*/logs/*}" - } - additional_bindings { - delete: "/v2/{log_name=billingAccounts/*/logs/*}" - } + additional_bindings { delete: "/v2/{log_name=*/*/logs/*}" } + additional_bindings { delete: "/v2/{log_name=organizations/*/logs/*}" } + additional_bindings { delete: "/v2/{log_name=folders/*/logs/*}" } + additional_bindings { delete: "/v2/{log_name=billingAccounts/*/logs/*}" } }; option (google.api.method_signature) = "log_name"; } @@ -75,7 +67,8 @@ service LoggingServiceV2 { // A single request may contain log entries for a maximum of 1000 // different resources (projects, organizations, billing accounts or // folders) - rpc WriteLogEntries(WriteLogEntriesRequest) returns (WriteLogEntriesResponse) { + rpc WriteLogEntries(WriteLogEntriesRequest) + returns (WriteLogEntriesResponse) { option (google.api.http) = { post: "/v2/entries:write" body: "*" @@ -96,7 +89,8 @@ service LoggingServiceV2 { } // Lists the descriptors for monitored resource types used by Logging. - rpc ListMonitoredResourceDescriptors(ListMonitoredResourceDescriptorsRequest) returns (ListMonitoredResourceDescriptorsResponse) { + rpc ListMonitoredResourceDescriptors(ListMonitoredResourceDescriptorsRequest) + returns (ListMonitoredResourceDescriptorsResponse) { option (google.api.http) = { get: "/v2/monitoredResourceDescriptors" }; @@ -107,17 +101,21 @@ service LoggingServiceV2 { rpc ListLogs(ListLogsRequest) returns (ListLogsResponse) { option (google.api.http) = { get: "/v2/{parent=*/*}/logs" + additional_bindings { get: "/v2/{parent=projects/*}/logs" } + additional_bindings { get: "/v2/{parent=organizations/*}/logs" } + additional_bindings { get: "/v2/{parent=folders/*}/logs" } + additional_bindings { get: "/v2/{parent=billingAccounts/*}/logs" } additional_bindings { - get: "/v2/{parent=projects/*}/logs" + get: "/v2/{parent=projects/*/locations/*/buckets/*/views/*}/logs" } additional_bindings { - get: "/v2/{parent=organizations/*}/logs" + get: "/v2/{parent=organizations/*/locations/*/buckets/*/views/*}/logs" } additional_bindings { - get: "/v2/{parent=folders/*}/logs" + get: "/v2/{parent=folders/*/locations/*/buckets/*/views/*}/logs" } additional_bindings { - get: "/v2/{parent=billingAccounts/*}/logs" + get: "/v2/{parent=billingAccounts/*/locations/*/buckets/*/views/*}/logs" } }; option (google.api.method_signature) = "parent"; @@ -125,7 +123,8 @@ service LoggingServiceV2 { // Streaming read of log entries as they are ingested. Until the stream is // terminated, it will continue reading logs. - rpc TailLogEntries(stream TailLogEntriesRequest) returns (stream TailLogEntriesResponse) { + rpc TailLogEntries(stream TailLogEntriesRequest) + returns (stream TailLogEntriesResponse) { option (google.api.http) = { post: "/v2/entries:tail" body: "*" @@ -150,9 +149,7 @@ message DeleteLogRequest { // [LogEntry][google.logging.v2.LogEntry]. string log_name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "logging.googleapis.com/Log" - } + (google.api.resource_reference) = { type: "logging.googleapis.com/Log" } ]; } @@ -177,9 +174,7 @@ message WriteLogEntriesRequest { // individual log entry. string log_name = 1 [ (google.api.field_behavior) = OPTIONAL, - (google.api.resource_reference) = { - type: "logging.googleapis.com/Log" - } + (google.api.resource_reference) = { type: "logging.googleapis.com/Log" } ]; // Optional. A default monitored resource object that is assigned to all log @@ -190,7 +185,8 @@ message WriteLogEntriesRequest { // "zone": "us-central1-a", "instance_id": "00000000000000000000" }} // // 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]; // 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 @@ -224,11 +220,13 @@ message WriteLogEntriesRequest { // list, rather than calling this method for each individual log entry. repeated LogEntry entries = 4 [(google.api.field_behavior) = REQUIRED]; - // Optional. Whether valid entries should be written even if some other - // entries fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any - // entry is not written, then the response status is the error associated - // with one of the failed entries and the response includes error details - // keyed by the entries' zero-based index in the `entries.write` method. + // Optional. Whether a batch's valid entries should be written even if some + // other entry failed due to a permanent error such as INVALID_ARGUMENT or + // PERMISSION_DENIED. If any entry failed, then the response status is the + // response status of one of the failed entries. The response will include + // error details in `WriteLogEntriesPartialErrors.log_entry_errors` keyed by + // the entries' zero-based index in the `entries`. Failed requests for which + // no entries are written will not include per-entry errors. bool partial_success = 5 [(google.api.field_behavior) = OPTIONAL]; // Optional. If true, the request should expect normal response, but the @@ -238,9 +236,7 @@ message WriteLogEntriesRequest { } // Result returned from WriteLogEntries. -message WriteLogEntriesResponse { - -} +message WriteLogEntriesResponse {} // Error details for WriteLogEntries with partial success. message WriteLogEntriesPartialErrors { @@ -271,6 +267,7 @@ message ListLogEntriesRequest { // * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` // // Projects listed in the `project_ids` field are added to this list. + // A maximum of 100 resources may be specified in a single request. repeated string resource_names = 8 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -278,13 +275,11 @@ message ListLogEntriesRequest { } ]; - // 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`. + // Optional. Only log entries that match the filter are returned. An empty + // filter matches all log entries in the resources listed in `resource_names`. // Referencing a parent resource that is not listed in `resource_names` will - // cause the filter to return no results. The maximum length of the filter is - // 20000 characters. + // cause the filter to return no results. The maximum length of a filter is + // 20,000 characters. string filter = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. How the results should be sorted. Presently, the only permitted @@ -295,10 +290,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 @@ -355,7 +350,7 @@ message ListMonitoredResourceDescriptorsResponse { // The parameters to ListLogs. message ListLogsRequest { - // Required. The resource name that owns the logs: + // Required. The resource name to list logs for: // // * `projects/[PROJECT_ID]` // * `organizations/[ORGANIZATION_ID]` @@ -368,18 +363,7 @@ message ListLogsRequest { } ]; - // 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]; - - // 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]; - - // Optional. The resource name that owns the logs: + // Optional. List of resource names to list logs for: // // * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` // * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` @@ -392,12 +376,25 @@ message ListLogsRequest { // * `organizations/[ORGANIZATION_ID]` // * `billingAccounts/[BILLING_ACCOUNT_ID]` // * `folders/[FOLDER_ID]` + // + // The resource name in the `parent` field is added to this list. repeated string resource_names = 8 [ (google.api.field_behavior) = OPTIONAL, (google.api.resource_reference) = { child_type: "logging.googleapis.com/Log" } ]; + + // 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]; + + // 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]; } // Result returned from ListLogs. @@ -430,20 +427,19 @@ message TailLogEntriesRequest { // * `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 - // Logs Filters](https://cloud.google.com/logging/docs/view/advanced_filters). - // 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 in `resource_names` will cause - // the filter to return no results. The maximum length of the filter is 20000 - // characters. + // Optional. Only log entries that match the filter are returned. An empty + // filter matches all log entries in the resources listed in `resource_names`. + // Referencing a parent resource that is not listed in `resource_names` will + // cause the filter to return no results. The maximum length of a filter is + // 20,000 characters. string filter = 2 [(google.api.field_behavior) = OPTIONAL]; // 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 // entries. Valid values are between 0-60000 milliseconds. Defaults to 2000 // milliseconds. - google.protobuf.Duration buffer_window = 3 [(google.api.field_behavior) = OPTIONAL]; + google.protobuf.Duration buffer_window = 3 + [(google.api.field_behavior) = OPTIONAL]; } // Result returned from `TailLogEntries`. diff --git a/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 index f55ab4586..cc7677b12 100644 --- a/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 @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// 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. @@ -59,15 +59,11 @@ service ConfigServiceV2 { rpc ListBuckets(ListBucketsRequest) returns (ListBucketsResponse) { option (google.api.http) = { get: "/v2/{parent=*/*/locations/*}/buckets" - additional_bindings { - get: "/v2/{parent=projects/*/locations/*}/buckets" - } + additional_bindings { get: "/v2/{parent=projects/*/locations/*}/buckets" } additional_bindings { get: "/v2/{parent=organizations/*/locations/*}/buckets" } - additional_bindings { - get: "/v2/{parent=folders/*/locations/*}/buckets" - } + additional_bindings { get: "/v2/{parent=folders/*/locations/*}/buckets" } additional_bindings { get: "/v2/{parent=billingAccounts/*/locations/*}/buckets" } @@ -79,19 +75,80 @@ service ConfigServiceV2 { rpc GetBucket(GetBucketRequest) returns (LogBucket) { option (google.api.http) = { get: "/v2/{name=*/*/locations/*/buckets/*}" + additional_bindings { get: "/v2/{name=projects/*/locations/*/buckets/*}" } additional_bindings { - get: "/v2/{name=projects/*/locations/*/buckets/*}" + get: "/v2/{name=organizations/*/locations/*/buckets/*}" } + additional_bindings { get: "/v2/{name=folders/*/locations/*/buckets/*}" } additional_bindings { - get: "/v2/{name=organizations/*/locations/*/buckets/*}" + get: "/v2/{name=billingAccounts/*/locations/*/buckets/*}" + } + }; + } + + // 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. + rpc CreateBucketAsync(CreateBucketRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v2/{parent=*/*/locations/*}/buckets:createAsync" + body: "bucket" + additional_bindings { + post: "/v2/{parent=projects/*/locations/*}/buckets:createAsync" + body: "bucket" + } + additional_bindings { + post: "/v2/{parent=organizations/*/locations/*}/buckets:createAsync" + body: "bucket" } additional_bindings { - get: "/v2/{name=folders/*/locations/*/buckets/*}" + post: "/v2/{parent=folders/*/locations/*}/buckets:createAsync" + body: "bucket" } additional_bindings { - get: "/v2/{name=billingAccounts/*/buckets/*}" + post: "/v2/{parent=billingAccounts/*/locations/*}/buckets:createAsync" + body: "bucket" } }; + option (google.longrunning.operation_info) = { + response_type: "LogBucket" + metadata_type: "BucketMetadata" + }; + } + + // 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. + rpc UpdateBucketAsync(UpdateBucketRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v2/{name=*/*/locations/*/buckets/*}:updateAsync" + body: "bucket" + additional_bindings { + post: "/v2/{name=projects/*/locations/*/buckets/*}:updateAsync" + body: "bucket" + } + additional_bindings { + post: "/v2/{name=organizations/*/locations/*/buckets/*}:updateAsync" + body: "bucket" + } + additional_bindings { + post: "/v2/{name=folders/*/locations/*/buckets/*}:updateAsync" + body: "bucket" + } + additional_bindings { + post: "/v2/{name=billingAccounts/*/locations/*/buckets/*}:updateAsync" + body: "bucket" + } + }; + option (google.longrunning.operation_info) = { + response_type: "LogBucket" + metadata_type: "BucketMetadata" + }; } // Creates a log bucket that can be used to store log entries. After a bucket @@ -119,11 +176,7 @@ service ConfigServiceV2 { }; } - // 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. + // Updates a log bucket. // // If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then // `FAILED_PRECONDITION` will be returned. @@ -234,7 +287,7 @@ service ConfigServiceV2 { get: "/v2/{name=folders/*/locations/*/buckets/*/views/*}" } additional_bindings { - get: "/v2/{name=billingAccounts/*/buckets/*/views/*}" + get: "/v2/{name=billingAccounts/*/locations/*/buckets/*/views/*}" } }; } @@ -318,18 +371,10 @@ service ConfigServiceV2 { rpc ListSinks(ListSinksRequest) returns (ListSinksResponse) { option (google.api.http) = { get: "/v2/{parent=*/*}/sinks" - additional_bindings { - get: "/v2/{parent=projects/*}/sinks" - } - additional_bindings { - get: "/v2/{parent=organizations/*}/sinks" - } - additional_bindings { - get: "/v2/{parent=folders/*}/sinks" - } - additional_bindings { - get: "/v2/{parent=billingAccounts/*}/sinks" - } + additional_bindings { get: "/v2/{parent=projects/*}/sinks" } + additional_bindings { get: "/v2/{parent=organizations/*}/sinks" } + additional_bindings { get: "/v2/{parent=folders/*}/sinks" } + additional_bindings { get: "/v2/{parent=billingAccounts/*}/sinks" } }; option (google.api.method_signature) = "parent"; } @@ -338,18 +383,10 @@ service ConfigServiceV2 { rpc GetSink(GetSinkRequest) returns (LogSink) { option (google.api.http) = { get: "/v2/{sink_name=*/*/sinks/*}" - additional_bindings { - get: "/v2/{sink_name=projects/*/sinks/*}" - } - additional_bindings { - get: "/v2/{sink_name=organizations/*/sinks/*}" - } - additional_bindings { - get: "/v2/{sink_name=folders/*/sinks/*}" - } - additional_bindings { - get: "/v2/{sink_name=billingAccounts/*/sinks/*}" - } + additional_bindings { get: "/v2/{sink_name=projects/*/sinks/*}" } + additional_bindings { get: "/v2/{sink_name=organizations/*/sinks/*}" } + additional_bindings { get: "/v2/{sink_name=folders/*/sinks/*}" } + additional_bindings { get: "/v2/{sink_name=billingAccounts/*/sinks/*}" } }; option (google.api.method_signature) = "sink_name"; } @@ -362,18 +399,12 @@ service ConfigServiceV2 { option (google.api.http) = { post: "/v2/{parent=*/*}/sinks" body: "sink" - additional_bindings { - post: "/v2/{parent=projects/*}/sinks" - body: "sink" - } + additional_bindings { post: "/v2/{parent=projects/*}/sinks" body: "sink" } additional_bindings { post: "/v2/{parent=organizations/*}/sinks" body: "sink" } - additional_bindings { - post: "/v2/{parent=folders/*}/sinks" - body: "sink" - } + additional_bindings { post: "/v2/{parent=folders/*}/sinks" body: "sink" } additional_bindings { post: "/v2/{parent=billingAccounts/*}/sinks" body: "sink" @@ -433,62 +464,136 @@ service ConfigServiceV2 { rpc DeleteSink(DeleteSinkRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v2/{sink_name=*/*/sinks/*}" + additional_bindings { delete: "/v2/{sink_name=projects/*/sinks/*}" } + additional_bindings { delete: "/v2/{sink_name=organizations/*/sinks/*}" } + additional_bindings { delete: "/v2/{sink_name=folders/*/sinks/*}" } + additional_bindings { + delete: "/v2/{sink_name=billingAccounts/*/sinks/*}" + } + }; + option (google.api.method_signature) = "sink_name"; + } + + // 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. + rpc CreateLink(CreateLinkRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v2/{parent=*/*/locations/*/buckets/*}/links" + body: "link" additional_bindings { - delete: "/v2/{sink_name=projects/*/sinks/*}" + post: "/v2/{parent=projects/*/locations/*/buckets/*}/links" + body: "link" } additional_bindings { - delete: "/v2/{sink_name=organizations/*/sinks/*}" + post: "/v2/{parent=organizations/*/locations/*/buckets/*}/links" + body: "link" } additional_bindings { - delete: "/v2/{sink_name=folders/*/sinks/*}" + post: "/v2/{parent=folders/*/locations/*/buckets/*}/links" + body: "link" } additional_bindings { - delete: "/v2/{sink_name=billingAccounts/*/sinks/*}" + post: "/v2/{parent=billingAccounts/*/locations/*/buckets/*}/links" + body: "link" } }; - option (google.api.method_signature) = "sink_name"; + option (google.api.method_signature) = "parent,link,link_id"; + option (google.longrunning.operation_info) = { + response_type: "Link" + metadata_type: "LinkMetadata" + }; } - // Lists all the exclusions on the _Default sink in a parent resource. - rpc ListExclusions(ListExclusionsRequest) returns (ListExclusionsResponse) { + // Deletes a link. This will also delete the corresponding BigQuery linked + // dataset. + rpc DeleteLink(DeleteLinkRequest) returns (google.longrunning.Operation) { option (google.api.http) = { - get: "/v2/{parent=*/*}/exclusions" + delete: "/v2/{name=*/*/locations/*/buckets/*/links/*}" + additional_bindings { + delete: "/v2/{name=projects/*/locations/*/buckets/*/links/*}" + } + additional_bindings { + delete: "/v2/{name=organizations/*/locations/*/buckets/*/links/*}" + } + additional_bindings { + delete: "/v2/{name=folders/*/locations/*/buckets/*/links/*}" + } + additional_bindings { + delete: "/v2/{name=billingAccounts/*/locations/*/buckets/*/links/*}" + } + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "LinkMetadata" + }; + } + + // Lists links. + rpc ListLinks(ListLinksRequest) returns (ListLinksResponse) { + option (google.api.http) = { + get: "/v2/{parent=*/*/locations/*/buckets/*}/links" additional_bindings { - get: "/v2/{parent=projects/*}/exclusions" + get: "/v2/{parent=projects/*/locations/*/buckets/*}/links" } additional_bindings { - get: "/v2/{parent=organizations/*}/exclusions" + get: "/v2/{parent=organizations/*/locations/*/buckets/*}/links" } additional_bindings { - get: "/v2/{parent=folders/*}/exclusions" + get: "/v2/{parent=folders/*/locations/*/buckets/*}/links" } additional_bindings { - get: "/v2/{parent=billingAccounts/*}/exclusions" + get: "/v2/{parent=billingAccounts/*/locations/*/buckets/*}/links" } }; option (google.api.method_signature) = "parent"; } - // Gets the description of an exclusion in the _Default sink. - rpc GetExclusion(GetExclusionRequest) returns (LogExclusion) { + // Gets a link. + rpc GetLink(GetLinkRequest) returns (Link) { option (google.api.http) = { - get: "/v2/{name=*/*/exclusions/*}" + get: "/v2/{name=*/*/locations/*/buckets/*/links/*}" additional_bindings { - get: "/v2/{name=projects/*/exclusions/*}" + get: "/v2/{name=projects/*/locations/*/buckets/*/links/*}" } additional_bindings { - get: "/v2/{name=organizations/*/exclusions/*}" + get: "/v2/{name=organizations/*/locations/*/buckets/*/links/*}" } additional_bindings { - get: "/v2/{name=folders/*/exclusions/*}" + get: "/v2/{name=folders/*/locations/*/buckets/*/links/*}" } additional_bindings { - get: "/v2/{name=billingAccounts/*/exclusions/*}" + get: "/v2/{name=billingAccounts/*/locations/*/buckets/*/links/*}" } }; option (google.api.method_signature) = "name"; } + // 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" + additional_bindings { get: "/v2/{parent=projects/*}/exclusions" } + additional_bindings { get: "/v2/{parent=organizations/*}/exclusions" } + additional_bindings { get: "/v2/{parent=folders/*}/exclusions" } + additional_bindings { get: "/v2/{parent=billingAccounts/*}/exclusions" } + }; + option (google.api.method_signature) = "parent"; + } + + // Gets the description of an exclusion in the _Default sink. + rpc GetExclusion(GetExclusionRequest) returns (LogExclusion) { + option (google.api.http) = { + get: "/v2/{name=*/*/exclusions/*}" + additional_bindings { get: "/v2/{name=projects/*/exclusions/*}" } + additional_bindings { get: "/v2/{name=organizations/*/exclusions/*}" } + additional_bindings { get: "/v2/{name=folders/*/exclusions/*}" } + additional_bindings { get: "/v2/{name=billingAccounts/*/exclusions/*}" } + }; + option (google.api.method_signature) = "name"; + } + // 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. @@ -546,15 +651,9 @@ service ConfigServiceV2 { rpc DeleteExclusion(DeleteExclusionRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v2/{name=*/*/exclusions/*}" - additional_bindings { - delete: "/v2/{name=projects/*/exclusions/*}" - } - additional_bindings { - delete: "/v2/{name=organizations/*/exclusions/*}" - } - additional_bindings { - delete: "/v2/{name=folders/*/exclusions/*}" - } + additional_bindings { delete: "/v2/{name=projects/*/exclusions/*}" } + additional_bindings { delete: "/v2/{name=organizations/*/exclusions/*}" } + additional_bindings { delete: "/v2/{name=folders/*/exclusions/*}" } additional_bindings { delete: "/v2/{name=billingAccounts/*/exclusions/*}" } @@ -575,18 +674,10 @@ service ConfigServiceV2 { 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" - } + 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" } }; } @@ -629,18 +720,10 @@ service ConfigServiceV2 { 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" - } + 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"; } @@ -678,7 +761,8 @@ service ConfigServiceV2 { } // Copies a set of log entries from a log bucket to a Cloud Storage bucket. - rpc CopyLogEntries(CopyLogEntriesRequest) returns (google.longrunning.Operation) { + rpc CopyLogEntries(CopyLogEntriesRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v2/entries:copy" body: "*" @@ -690,6 +774,29 @@ service ConfigServiceV2 { } } +// Configuration for an indexed field. +message IndexConfig { + // Required. The LogEntry field path to index. + // + // Note that some paths are automatically indexed, and other paths are not + // eligible for indexing. See [indexing documentation]( + // https://cloud.google.com/logging/docs/view/advanced-queries#indexed-fields) + // for details. + // + // For example: `jsonPayload.request.status` + string field_path = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The type of data in this index. + IndexType type = 2 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The timestamp when the index was last modified. + // + // This is used to return the timestamp, and will be ignored if supplied + // during update. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // Describes a repository in which log entries are stored. message LogBucket { option (google.api.resource) = { @@ -718,12 +825,14 @@ message LogBucket { // Describes this bucket. string description = 3; - // 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]; + // 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]; // 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]; // 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 @@ -738,7 +847,13 @@ message LogBucket { bool locked = 9; // Output only. The bucket lifecycle state. - LifecycleState lifecycle_state = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + LifecycleState lifecycle_state = 12 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Whether log analytics is enabled for this bucket. + // + // Once enabled, log analytics features cannot be disabled. + bool analytics_enabled = 14; // Log entry field paths that are denied access in this bucket. // @@ -749,6 +864,9 @@ message LogBucket { // block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`) repeated string restricted_fields = 15; + // A list of indexed fields and related configuration data. + repeated IndexConfig index_configs = 17; + // 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 @@ -778,10 +896,12 @@ message LogView { string description = 3; // 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]; // 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]; // Filter that restricts which log entries in a bucket are visible in this // view. @@ -847,9 +967,7 @@ message LogSink { // Sinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). string destination = 3 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "*" - } + (google.api.resource_reference) = { type: "*" } ]; // Optional. An [advanced logs @@ -867,22 +985,25 @@ message LogSink { // 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 these 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]; + repeated LogExclusion exclusions = 16 + [(google.api.field_behavior) = OPTIONAL]; // Deprecated. This field is unused. VersionFormat output_version_format = 6 [deprecated = true]; - // 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 + // 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 either set by specifying + // `custom_writer_identity` or set automatically 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. @@ -895,17 +1016,17 @@ message LogSink { // 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 + // the sink cannot 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 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. + // 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 // `resource.type=gce_instance` would export all Compute Engine VM instance @@ -921,18 +1042,77 @@ message LogSink { // Destination dependent options. oneof options { // Optional. Options that affect sinks exporting data to BigQuery. - BigQueryOptions bigquery_options = 12 [(google.api.field_behavior) = OPTIONAL]; + BigQueryOptions bigquery_options = 12 + [(google.api.field_behavior) = OPTIONAL]; } // 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]; // 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]; +} + +// Describes a BigQuery dataset that was created by a link. +message BigQueryDataset { + // Output only. The full resource name of the BigQuery dataset. The DATASET_ID + // will match the ID of the link, so the link must match the naming + // restrictions of BigQuery datasets (alphanumeric characters and underscores + // only). + // + // The dataset will have a resource path of + // "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET_ID]" + string dataset_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Describes a link connected to an analytics enabled bucket. +message Link { + option (google.api.resource) = { + type: "logging.googleapis.com/Link" + pattern: "projects/{project}/locations/{location}/buckets/{bucket}/links/{link}" + pattern: "organizations/{organization}/locations/{location}/buckets/{bucket}/links/{link}" + pattern: "folders/{folder}/locations/{location}/buckets/{bucket}/links/{link}" + pattern: "billingAccounts/{billing_account}/locations/{location}/buckets/{bucket}/links/{link}" + }; + + // The resource name of the link. The name can have up to 100 characters. + // A valid link id (at the end of the link name) must only have alphanumeric + // characters and underscores within it. + // + // "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + // "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + // "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + // "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + // + // For example: + // + // `projects/my-project/locations/global/buckets/my-bucket/links/my_link + string name = 1; + + // Describes this link. + // + // The maximum length of the description is 8000 characters. + string description = 2; + + // Output only. The creation timestamp of the link. + google.protobuf.Timestamp create_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The resource lifecycle state. + LifecycleState lifecycle_state = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The information of a BigQuery Dataset. When a link is created, a BigQuery + // dataset is created along with it, in the same project as the LogBucket it's + // linked to. This dataset will also have BigQuery Views corresponding to the + // LogViews in the bucket. + BigQueryDataset bigquery_dataset = 5; } // Options that change functionality of a sink exporting data to BigQuery. @@ -947,14 +1127,15 @@ message BigQueryOptions { // 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 // 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]; } // The parameters to `ListBuckets`. @@ -976,15 +1157,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]; } @@ -1015,14 +1196,14 @@ 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 - // with any Location Restriction Org Policy. The name field in the bucket is - // ignored. + // 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. LogBucket bucket = 3 [(google.api.field_behavior) = REQUIRED]; } @@ -1048,15 +1229,16 @@ message UpdateBucketRequest { // Required. The updated bucket. 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. + // 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: // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask // // 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]; } // The parameters to `GetBucket`. @@ -1126,10 +1308,10 @@ 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. @@ -1161,7 +1343,9 @@ message CreateViewRequest { // `"projects/my-project/locations/global/buckets/my-bucket"` string parent = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. The id to use for this view. + // Required. A client-assigned identifier such as `"my-view"`. Identifiers are + // limited to 100 characters and can include only letters, digits, + // underscores, hyphens, and periods. string view_id = 2 [(google.api.field_behavior) = REQUIRED]; // Required. The new view. @@ -1190,7 +1374,8 @@ message UpdateViewRequest { // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask // // 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]; } // The parameters to `GetView`. @@ -1204,9 +1389,7 @@ message GetViewRequest { // `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"` string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "logging.googleapis.com/LogView" - } + (google.api.resource_reference) = { type: "logging.googleapis.com/LogView" } ]; } @@ -1221,9 +1404,7 @@ message DeleteViewRequest { // `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"` string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "logging.googleapis.com/LogView" - } + (google.api.resource_reference) = { type: "logging.googleapis.com/LogView" } ]; } @@ -1279,9 +1460,7 @@ message GetSinkRequest { // `"projects/my-project/sinks/my-sink"` string sink_name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "logging.googleapis.com/LogSink" - } + (google.api.resource_reference) = { type: "logging.googleapis.com/LogSink" } ]; } @@ -1319,14 +1498,15 @@ message CreateSinkRequest { // 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 - // more information, see `writer_identity` in [LogSink][google.logging.v2.LogSink]. + // more information, see `writer_identity` in + // [LogSink][google.logging.v2.LogSink]. bool unique_writer_identity = 3 [(google.api.field_behavior) = OPTIONAL]; } // The parameters to `UpdateSink`. message UpdateSinkRequest { - // Required. The full resource name of the sink to update, including the parent - // resource and the sink identifier: + // 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]" @@ -1338,13 +1518,11 @@ message UpdateSinkRequest { // `"projects/my-project/sinks/my-sink"` string sink_name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "logging.googleapis.com/LogSink" - } + (google.api.resource_reference) = { type: "logging.googleapis.com/LogSink" } ]; - // Required. The updated sink, whose name is the same identifier that appears as part - // of `sink_name`. + // Required. The updated sink, whose name is the same identifier that appears + // as part of `sink_name`. LogSink sink = 2 [(google.api.field_behavior) = REQUIRED]; // Optional. See [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] @@ -1376,13 +1554,14 @@ message UpdateSinkRequest { // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask // // 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]; } // The parameters to `DeleteSink`. message DeleteSinkRequest { - // Required. The full resource name of the sink to delete, including the parent - // resource and the sink identifier: + // 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]" @@ -1393,11 +1572,96 @@ message DeleteSinkRequest { // // `"projects/my-project/sinks/my-sink"` string sink_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "logging.googleapis.com/LogSink" } + ]; +} + +// The parameters to CreateLink. +message CreateLinkRequest { + // Required. The full resource name of the bucket to create a link for. + // + // "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + // "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + // "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + // "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { - type: "logging.googleapis.com/LogSink" + child_type: "logging.googleapis.com/Link" } ]; + + // Required. The new link. + Link link = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The ID to use for the link. The link_id can have up to 100 + // characters. A valid link_id must only have alphanumeric characters and + // underscores within it. + string link_id = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// The parameters to DeleteLink. +message DeleteLinkRequest { + // Required. The full resource name of the link to delete. + // + // "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + // "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + // "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + // "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "logging.googleapis.com/Link" } + ]; +} + +// The parameters to ListLinks. +message ListLinksRequest { + // Required. The parent resource whose links are to be listed: + // + // "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/" + // "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/" + // "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/" + // "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/ + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "logging.googleapis.com/Link" + } + ]; + + // 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. + string page_token = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The maximum number of results to return from this request. + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// The response from ListLinks. +message ListLinksResponse { + // A list of links. + repeated Link links = 1; + + // If there might be more results than those appearing in this response, then + // `nextPageToken` is included. To get the next set of results, call the same + // method again using the value of `nextPageToken` as `pageToken`. + string next_page_token = 2; +} + +// The parameters to GetLink. +message GetLinkRequest { + // Required. The resource name of the link: + // + // "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + // "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + // "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" + // "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID] + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "logging.googleapis.com/Link" } + ]; } // Specifies a set of log entries that are filtered out by a sink. If @@ -1414,10 +1678,10 @@ message LogExclusion { pattern: "billingAccounts/{billing_account}/exclusions/{exclusion}" }; - // Required. A client-assigned identifier, such as `"load-balancer-exclusion"`. - // Identifiers are limited to 100 characters and can include only letters, - // digits, underscores, hyphens, and periods. First character has to be - // alphanumeric. + // Required. A client-assigned identifier, such as + // `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and + // can include only letters, digits, underscores, hyphens, and periods. First + // character has to be alphanumeric. string name = 1 [(google.api.field_behavior) = REQUIRED]; // Optional. A description of this exclusion. @@ -1444,12 +1708,14 @@ message LogExclusion { // 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]; // 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]; } // The parameters to `ListExclusions`. @@ -1554,18 +1820,20 @@ message UpdateExclusionRequest { } ]; - // Required. New values for the existing exclusion. Only the fields specified in - // `update_mask` are relevant. + // Required. New values for the existing exclusion. Only the fields specified + // in `update_mask` are relevant. LogExclusion exclusion = 2 [(google.api.field_behavior) = REQUIRED]; - // 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. + // 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"`. - google.protobuf.FieldMask update_mask = 3 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.FieldMask update_mask = 3 + [(google.api.field_behavior) = REQUIRED]; } // The parameters to `DeleteExclusion`. @@ -1655,7 +1923,8 @@ message UpdateCmekSettingsRequest { // See [FieldMask][google.protobuf.FieldMask] for more information. // // 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]; } // Describes the customer-managed encryption key (CMEK) settings associated with @@ -1710,8 +1979,27 @@ message CmekSettings { // for more information. string kms_key_name = 2; - // Output only. The service account that will be used by the Log Router to access your - // Cloud KMS key. + // The CryptoKeyVersion resource name for the configured Cloud KMS key. + // + // KMS key name format: + // + // "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]/cryptoKeyVersions/[VERSION]" + // + // For example: + // + // `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key/cryptoKeyVersions/1"` + // + // This is a read-only field used to convey the specific configured + // CryptoKeyVersion of `kms_key` that has been configured. It will be + // populated in cases where the CMEK settings are bound to a single key + // version. + // + // If this field is populated, the `kms_key` is tied to a specific + // CryptoKeyVersion. + string kms_key_version_name = 4; + + // 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 // cloudkms.cryptoKeyEncrypterDecrypter role to the service account that @@ -1789,7 +2077,8 @@ message UpdateSettingsRequest { // See [FieldMask][google.protobuf.FieldMask] for more information. // // 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]; } // Describes the settings associated with a project, folder, organization, @@ -1835,8 +2124,8 @@ message Settings { // for more information. string kms_key_name = 2 [(google.api.field_behavior) = OPTIONAL]; - // Output only. The service account that will be used by the Log Router to access your - // Cloud KMS key. + // 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 @@ -1849,15 +2138,15 @@ message Settings { // for more information. string kms_service_account_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Optional. The Cloud region that will be used for _Default and _Required log buckets - // for newly created projects and folders. For example `europe-west1`. + // 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]; - // 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. + // 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]; } @@ -1870,8 +2159,8 @@ message CopyLogEntriesRequest { // `"projects/my-project/locations/global/buckets/my-source-bucket"` string name = 1 [(google.api.field_behavior) = REQUIRED]; - // 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. + // 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]; // Required. Destination to which to copy log entries. @@ -1914,18 +2203,44 @@ message CopyLogEntriesResponse { int64 log_entries_copied_count = 1; } -// LogBucket lifecycle states. -enum LifecycleState { - // Unspecified state. This is only used/useful for distinguishing unset - // values. - LIFECYCLE_STATE_UNSPECIFIED = 0; +// Metadata for LongRunningUpdateBucket Operations. +message BucketMetadata { + // The create time of an operation. + google.protobuf.Timestamp start_time = 1; - // The normal and active state. - ACTIVE = 1; + // The end time of an operation. + google.protobuf.Timestamp end_time = 2; - // 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; + // State of an operation. + OperationState state = 3; + + oneof request { + // LongRunningCreateBucket RPC request. + CreateBucketRequest create_bucket_request = 4; + + // LongRunningUpdateBucket RPC request. + UpdateBucketRequest update_bucket_request = 5; + } +} + +// Metadata for long running Link operations. +message LinkMetadata { + // The start time of an operation. + google.protobuf.Timestamp start_time = 1; + + // The end time of an operation. + google.protobuf.Timestamp end_time = 2; + + // State of an operation. + OperationState state = 3; + + oneof request { + // CreateLink RPC request. + CreateLinkRequest create_link_request = 4; + + // DeleteLink RPC request. + DeleteLinkRequest delete_link_request = 5; + } } // List of different operation states. @@ -1955,3 +2270,48 @@ enum OperationState { // The operation was cancelled by the user. OPERATION_STATE_CANCELLED = 6; } + +// 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; + + // 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; + + // The resource has been marked for an update by the user. It will remain in + // this state until the update is complete. + UPDATING = 3; + + // The resource has been marked for creation by the user. It will remain in + // this state until the creation is complete. + CREATING = 4; + + // The resource is in an INTERNAL error state. + FAILED = 5; +} + +// IndexType is used for custom indexing. It describes the type of an indexed +// field. +enum IndexType { + // The index's type is unspecified. + INDEX_TYPE_UNSPECIFIED = 0; + + // The index is a string-type index. + INDEX_TYPE_STRING = 1; + + // The index is a integer-type index. + INDEX_TYPE_INTEGER = 2; +} + +// Cloud Logging specific location metadata. +message LocationMetadata { + // Indicates whether or not Log Analytics features are supported in the given + // location. + bool log_analytics_enabled = 1; +} diff --git a/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 index 2952c875f..852ba14ce 100644 --- a/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 @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// 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. @@ -137,6 +137,17 @@ message LogMetric { // The maximum length of the filter is 20000 characters. string filter = 3 [(google.api.field_behavior) = REQUIRED]; + // Optional. The resource name of the Log Bucket that owns the Log Metric. + // Only Log Buckets in projects are supported. The bucket has to be in the + // same project as the metric. + // + // For example: + // + // `projects/my-project/locations/global/buckets/my-bucket` + // + // If empty, then the Log Metric is considered a non-Bucket Log Metric. + string bucket_name = 13 [(google.api.field_behavior) = OPTIONAL]; + // 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]; @@ -162,12 +173,14 @@ message LogMetric { // be updated once initially configured. New labels can be added in the // `metric_descriptor`, but existing labels cannot be modified except for // their description. - google.api.MetricDescriptor metric_descriptor = 5 [(google.api.field_behavior) = OPTIONAL]; + google.api.MetricDescriptor metric_descriptor = 5 + [(google.api.field_behavior) = OPTIONAL]; // Optional. A `value_extractor` is required when using a distribution // logs-based metric to extract the values to record from a log entry. // Two functions are supported for value extraction: `EXTRACT(field)` or - // `REGEXP_EXTRACT(field, regex)`. The argument are: + // `REGEXP_EXTRACT(field, regex)`. The arguments are: + // // 1. field: The name of the log entry field from which the value is to be // extracted. // 2. regex: A regular expression using the Google RE2 syntax @@ -192,29 +205,33 @@ message LogMetric { // is the same as for the `value_extractor` field. // // The extracted value is converted to the type defined in the label - // descriptor. If the either the extraction or the type conversion fails, + // descriptor. If either the extraction or the type conversion fails, // the label will have a default value. The default value for a string // label is an empty string, for an integer label its 0, and for a boolean // label its `false`. // // Note that there are upper bounds on the maximum number of labels and the // number of active time series that are allowed in a project. - map label_extractors = 7 [(google.api.field_behavior) = OPTIONAL]; + map label_extractors = 7 + [(google.api.field_behavior) = OPTIONAL]; // 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]; // 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]; // 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]; // Deprecated. The API version that created or updated this metric. // The v2 format is used by default and cannot be changed.