diff --git a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigClient.java b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigClient.java index cf5b1db53..cf3f9a201 100644 --- a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigClient.java +++ b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigClient.java @@ -20,9 +20,11 @@ import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.longrunning.OperationFuture; import com.google.api.gax.paging.AbstractFixedSizeCollection; import com.google.api.gax.paging.AbstractPage; import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.logging.v2.stub.ConfigServiceV2Stub; @@ -31,6 +33,9 @@ import com.google.logging.v2.BillingAccountLocationName; import com.google.logging.v2.BillingAccountName; import com.google.logging.v2.CmekSettings; +import com.google.logging.v2.CopyLogEntriesMetadata; +import com.google.logging.v2.CopyLogEntriesRequest; +import com.google.logging.v2.CopyLogEntriesResponse; import com.google.logging.v2.CreateBucketRequest; import com.google.logging.v2.CreateExclusionRequest; import com.google.logging.v2.CreateSinkRequest; @@ -44,6 +49,7 @@ import com.google.logging.v2.GetBucketRequest; import com.google.logging.v2.GetCmekSettingsRequest; import com.google.logging.v2.GetExclusionRequest; +import com.google.logging.v2.GetSettingsRequest; import com.google.logging.v2.GetSinkRequest; import com.google.logging.v2.GetViewRequest; import com.google.logging.v2.ListBucketsRequest; @@ -64,12 +70,17 @@ import com.google.logging.v2.OrganizationLocationName; import com.google.logging.v2.OrganizationName; import com.google.logging.v2.ProjectName; +import com.google.logging.v2.Settings; +import com.google.logging.v2.SettingsName; import com.google.logging.v2.UndeleteBucketRequest; import com.google.logging.v2.UpdateBucketRequest; import com.google.logging.v2.UpdateCmekSettingsRequest; import com.google.logging.v2.UpdateExclusionRequest; +import com.google.logging.v2.UpdateSettingsRequest; import com.google.logging.v2.UpdateSinkRequest; import com.google.logging.v2.UpdateViewRequest; +import com.google.longrunning.Operation; +import com.google.longrunning.OperationsClient; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import java.io.IOException; @@ -145,6 +156,7 @@ public class ConfigClient implements BackgroundResource { private final ConfigSettings settings; private final ConfigServiceV2Stub stub; + private final OperationsClient operationsClient; /** Constructs an instance of ConfigClient with default settings. */ public static final ConfigClient create() throws IOException { @@ -175,12 +187,14 @@ public static final ConfigClient create(ConfigServiceV2Stub stub) { protected ConfigClient(ConfigSettings settings) throws IOException { this.settings = settings; this.stub = ((ConfigServiceV2StubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected ConfigClient(ConfigServiceV2Stub stub) { this.settings = null; this.stub = stub; + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } public final ConfigSettings getSettings() { @@ -192,9 +206,17 @@ public ConfigServiceV2Stub getStub() { return stub; } + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists buckets. + * Lists log buckets. * *
Sample code: * @@ -227,7 +249,7 @@ public final ListBucketsPagedResponse listBuckets(BillingAccountLocationName par // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists buckets. + * Lists log buckets. * *
Sample code: * @@ -259,7 +281,7 @@ public final ListBucketsPagedResponse listBuckets(FolderLocationName parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists buckets. + * Lists log buckets. * *
Sample code: * @@ -291,7 +313,7 @@ public final ListBucketsPagedResponse listBuckets(LocationName parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists buckets. + * Lists log buckets. * *
Sample code: * @@ -323,7 +345,7 @@ public final ListBucketsPagedResponse listBuckets(OrganizationLocationName paren // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists buckets. + * Lists log buckets. * *
Sample code: * @@ -352,7 +374,7 @@ public final ListBucketsPagedResponse listBuckets(String parent) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists buckets. + * Lists log buckets. * *
Sample code: * @@ -379,7 +401,7 @@ public final ListBucketsPagedResponse listBuckets(ListBucketsRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists buckets. + * Lists log buckets. * *
Sample code: * @@ -406,7 +428,7 @@ public final ListBucketsPagedResponse listBuckets(ListBucketsRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists buckets. + * Lists log buckets. * *
Sample code:
*
@@ -439,7 +461,7 @@ public final UnaryCallable Sample code:
*
@@ -464,7 +486,7 @@ public final LogBucket getBucket(GetBucketRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Gets a bucket.
+ * Gets a log bucket.
*
* Sample code:
*
@@ -488,8 +510,8 @@ public final UnaryCallable Sample code:
*
@@ -514,8 +536,8 @@ public final LogBucket createBucket(CreateBucketRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Creates a bucket that can be used to store log entries. Once a bucket has been created, the
- * region cannot be changed.
+ * Creates a log bucket that can be used to store log entries. After a bucket has been created,
+ * the bucket's location cannot be changed.
*
* Sample code:
*
@@ -539,16 +561,16 @@ public final UnaryCallable If the retention period is decreased and the bucket is locked, FAILED_PRECONDITION will be
+ * If the retention period is decreased and the bucket is locked, `FAILED_PRECONDITION` will be
* returned.
*
- * If the bucket has a LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION will be
- * returned.
+ * If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then `FAILED_PRECONDITION` will
+ * be returned.
*
- * A buckets region may not be modified after it is created.
+ * After a bucket has been created, the bucket's location cannot be changed.
*
* Sample code:
*
@@ -575,16 +597,16 @@ public final LogBucket updateBucket(UpdateBucketRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Updates a bucket. This method replaces the following fields in the existing bucket with values
- * from the new bucket: `retention_period`
+ * Updates a log bucket. This method replaces the following fields in the existing bucket with
+ * values from the new bucket: `retention_period`
*
- * If the retention period is decreased and the bucket is locked, FAILED_PRECONDITION will be
+ * If the retention period is decreased and the bucket is locked, `FAILED_PRECONDITION` will be
* returned.
*
- * If the bucket has a LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION will be
- * returned.
+ * If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then `FAILED_PRECONDITION` will
+ * be returned.
*
- * A buckets region may not be modified after it is created.
+ * After a bucket has been created, the bucket's location cannot be changed.
*
* Sample code:
*
@@ -610,8 +632,10 @@ public final UnaryCallable Changes the bucket's `lifecycle_state` to the `DELETE_REQUESTED` state. After 7 days, the
+ * bucket will be purged and all log entries in the bucket will be permanently deleted.
*
* Sample code:
*
@@ -636,8 +660,10 @@ public final void deleteBucket(DeleteBucketRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Deletes a bucket. Moves the bucket to the DELETE_REQUESTED state. After 7 days, the bucket will
- * be purged and all logs in the bucket will be permanently deleted.
+ * Deletes a log bucket.
+ *
+ * Changes the bucket's `lifecycle_state` to the `DELETE_REQUESTED` state. After 7 days, the
+ * bucket will be purged and all log entries in the bucket will be permanently deleted.
*
* Sample code:
*
@@ -661,8 +687,8 @@ public final UnaryCallable Sample code:
*
@@ -687,8 +713,8 @@ public final void undeleteBucket(UndeleteBucketRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Undeletes a bucket. A bucket that has been deleted may be undeleted within the grace period of
- * 7 days.
+ * Undeletes a log bucket. A bucket that has been deleted can be undeleted within the grace period
+ * of 7 days.
*
* Sample code:
*
@@ -712,7 +738,7 @@ public final UnaryCallable Sample code:
*
@@ -736,7 +762,7 @@ public final ListViewsPagedResponse listViews(String parent) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists views on a bucket.
+ * Lists views on a log bucket.
*
* Sample code:
*
@@ -763,7 +789,7 @@ public final ListViewsPagedResponse listViews(ListViewsRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists views on a bucket.
+ * Lists views on a log bucket.
*
* Sample code:
*
@@ -789,7 +815,7 @@ public final UnaryCallable Sample code:
*
@@ -822,7 +848,7 @@ public final UnaryCallable Sample code:
*
@@ -848,7 +874,7 @@ public final LogView getView(GetViewRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Gets a view.
+ * Gets a view on a log bucket..
*
* Sample code:
*
@@ -873,7 +899,7 @@ public final UnaryCallable Sample code:
*
@@ -898,7 +924,7 @@ public final LogView createView(CreateViewRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Creates a view over logs in a bucket. A bucket may contain a maximum of 50 views.
+ * Creates a view over log entries in a log bucket. A bucket may contain a maximum of 30 views.
*
* Sample code:
*
@@ -922,8 +948,10 @@ public final UnaryCallable Sample code:
*
@@ -948,8 +976,10 @@ public final LogView updateView(UpdateViewRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Updates a view. This method replaces the following fields in the existing view with values from
- * the new view: `filter`.
+ * Updates a view on a log bucket. This method replaces the following fields in the existing view
+ * with values from the new view: `filter`. If an `UNAVAILABLE` error is returned, this indicates
+ * that system is not in a state where it can update the view. If this occurs, please try again in
+ * a few minutes.
*
* Sample code:
*
@@ -973,7 +1003,9 @@ public final UnaryCallable Sample code:
*
@@ -999,7 +1031,9 @@ public final void deleteView(DeleteViewRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Deletes a view from a bucket.
+ * Deletes a view on a log bucket. If an `UNAVAILABLE` error is returned, this indicates that
+ * system is not in a state where it can delete the view. If this occurs, please try again in a
+ * few minutes.
*
* Sample code:
*
@@ -1255,7 +1289,8 @@ public final UnaryCallable Example: `"projects/my-project-id/sinks/my-sink-id"`.
+ * For example:
+ * `"projects/my-project/sinks/my-sink"`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final LogSink getSink(LogSinkName sinkName) {
@@ -1284,7 +1319,8 @@ public final LogSink getSink(LogSinkName sinkName) {
* "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
* "folders/[FOLDER_ID]/sinks/[SINK_ID]"
- * Example: `"projects/my-project-id/sinks/my-sink-id"`.
+ * For example:
+ * `"projects/my-project/sinks/my-sink"`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final LogSink getSink(String sinkName) {
@@ -1357,7 +1393,8 @@ public final UnaryCallable "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
- * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
+ * For examples:
+ * `"projects/my-project"` `"organizations/123456789"`
* @param sink Required. The new sink, whose `name` parameter is a sink identifier that is not
* already in use.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -1391,7 +1428,8 @@ public final LogSink createSink(BillingAccountName parent, LogSink sink) {
* @param parent Required. The resource in which to create the sink:
* "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
- * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
+ * For examples:
+ * `"projects/my-project"` `"organizations/123456789"`
* @param sink Required. The new sink, whose `name` parameter is a sink identifier that is not
* already in use.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -1425,7 +1463,8 @@ public final LogSink createSink(FolderName parent, LogSink sink) {
* @param parent Required. The resource in which to create the sink:
* "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
- * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
+ * For examples:
+ * `"projects/my-project"` `"organizations/123456789"`
* @param sink Required. The new sink, whose `name` parameter is a sink identifier that is not
* already in use.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -1459,7 +1498,8 @@ public final LogSink createSink(OrganizationName parent, LogSink sink) {
* @param parent Required. The resource in which to create the sink:
* "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
- * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
+ * For examples:
+ * `"projects/my-project"` `"organizations/123456789"`
* @param sink Required. The new sink, whose `name` parameter is a sink identifier that is not
* already in use.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -1493,7 +1533,8 @@ public final LogSink createSink(ProjectName parent, LogSink sink) {
* @param parent Required. The resource in which to create the sink:
* "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
- * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
+ * For examples:
+ * `"projects/my-project"` `"organizations/123456789"`
* @param sink Required. The new sink, whose `name` parameter is a sink identifier that is not
* already in use.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -1583,7 +1624,8 @@ public final UnaryCallable Example: `"projects/my-project-id/sinks/my-sink-id"`.
+ * For example:
+ * `"projects/my-project/sinks/my-sink"`
* @param sink Required. The updated sink, whose name is the same identifier that appears as part
* of `sink_name`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -1621,7 +1663,8 @@ public final LogSink updateSink(LogSinkName sinkName, LogSink sink) {
* "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
* "folders/[FOLDER_ID]/sinks/[SINK_ID]"
- * Example: `"projects/my-project-id/sinks/my-sink-id"`.
+ * For example:
+ * `"projects/my-project/sinks/my-sink"`
* @param sink Required. The updated sink, whose name is the same identifier that appears as part
* of `sink_name`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -1657,18 +1700,21 @@ public final LogSink updateSink(String sinkName, LogSink sink) {
* "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
* "folders/[FOLDER_ID]/sinks/[SINK_ID]"
- * Example: `"projects/my-project-id/sinks/my-sink-id"`.
+ * For example:
+ * `"projects/my-project/sinks/my-sink"`
* @param sink Required. The updated sink, whose name is the same identifier that appears as part
* of `sink_name`.
* @param updateMask Optional. Field mask that specifies the fields in `sink` that need an update.
* A sink field will be overwritten if, and only if, it is in the update mask. `name` and
* output only fields cannot be updated.
- * An empty updateMask is temporarily treated as using the following mask for backwards
- * compatibility purposes: destination,filter,includeChildren At some point in the future,
- * behavior will be removed and specifying an empty updateMask will be an error.
+ * An empty `updateMask` is temporarily treated as using the following mask for backwards
+ * compatibility purposes:
+ * `destination,filter,includeChildren`
+ * At some point in the future, behavior will be removed and specifying an empty
+ * `updateMask` will be an error.
* For a detailed `FieldMask` definition, see
* https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
- * Example: `updateMask=filter`.
+ * For example: `updateMask=filter`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final LogSink updateSink(LogSinkName sinkName, LogSink sink, FieldMask updateMask) {
@@ -1706,18 +1752,21 @@ public final LogSink updateSink(LogSinkName sinkName, LogSink sink, FieldMask up
* "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
* "folders/[FOLDER_ID]/sinks/[SINK_ID]"
- * Example: `"projects/my-project-id/sinks/my-sink-id"`.
+ * For example:
+ * `"projects/my-project/sinks/my-sink"`
* @param sink Required. The updated sink, whose name is the same identifier that appears as part
* of `sink_name`.
* @param updateMask Optional. Field mask that specifies the fields in `sink` that need an update.
* A sink field will be overwritten if, and only if, it is in the update mask. `name` and
* output only fields cannot be updated.
- * An empty updateMask is temporarily treated as using the following mask for backwards
- * compatibility purposes: destination,filter,includeChildren At some point in the future,
- * behavior will be removed and specifying an empty updateMask will be an error.
+ * An empty `updateMask` is temporarily treated as using the following mask for backwards
+ * compatibility purposes:
+ * `destination,filter,includeChildren`
+ * At some point in the future, behavior will be removed and specifying an empty
+ * `updateMask` will be an error.
* For a detailed `FieldMask` definition, see
* https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
- * Example: `updateMask=filter`.
+ * For example: `updateMask=filter`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final LogSink updateSink(String sinkName, LogSink sink, FieldMask updateMask) {
@@ -1809,7 +1858,8 @@ public final UnaryCallable Example: `"projects/my-project-id/sinks/my-sink-id"`.
+ * For example:
+ * `"projects/my-project/sinks/my-sink"`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final void deleteSink(LogSinkName sinkName) {
@@ -1840,7 +1890,8 @@ public final void deleteSink(LogSinkName sinkName) {
* "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
* "folders/[FOLDER_ID]/sinks/[SINK_ID]"
- * Example: `"projects/my-project-id/sinks/my-sink-id"`.
+ * For example:
+ * `"projects/my-project/sinks/my-sink"`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final void deleteSink(String sinkName) {
@@ -1897,7 +1948,7 @@ public final UnaryCallable Sample code:
*
@@ -1925,7 +1976,7 @@ public final ListExclusionsPagedResponse listExclusions(BillingAccountName paren
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists all the exclusions in a parent resource.
+ * Lists all the exclusions on the _Default sink in a parent resource.
*
* Sample code:
*
@@ -1953,7 +2004,7 @@ public final ListExclusionsPagedResponse listExclusions(FolderName parent) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists all the exclusions in a parent resource.
+ * Lists all the exclusions on the _Default sink in a parent resource.
*
* Sample code:
*
@@ -1981,7 +2032,7 @@ public final ListExclusionsPagedResponse listExclusions(OrganizationName parent)
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists all the exclusions in a parent resource.
+ * Lists all the exclusions on the _Default sink in a parent resource.
*
* Sample code:
*
@@ -2009,7 +2060,7 @@ public final ListExclusionsPagedResponse listExclusions(ProjectName parent) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists all the exclusions in a parent resource.
+ * Lists all the exclusions on the _Default sink in a parent resource.
*
* Sample code:
*
@@ -2034,7 +2085,7 @@ public final ListExclusionsPagedResponse listExclusions(String parent) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists all the exclusions in a parent resource.
+ * Lists all the exclusions on the _Default sink in a parent resource.
*
* Sample code:
*
@@ -2061,7 +2112,7 @@ public final ListExclusionsPagedResponse listExclusions(ListExclusionsRequest re
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists all the exclusions in a parent resource.
+ * Lists all the exclusions on the _Default sink in a parent resource.
*
* Sample code:
*
@@ -2089,7 +2140,7 @@ public final ListExclusionsPagedResponse listExclusions(ListExclusionsRequest re
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Lists all the exclusions in a parent resource.
+ * Lists all the exclusions on the _Default sink in a parent resource.
*
* Sample code:
*
@@ -2123,7 +2174,7 @@ public final ListExclusionsPagedResponse listExclusions(ListExclusionsRequest re
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Gets the description of an exclusion.
+ * Gets the description of an exclusion in the _Default sink.
*
* Sample code:
*
@@ -2139,7 +2190,8 @@ public final ListExclusionsPagedResponse listExclusions(ListExclusionsRequest re
* "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
* "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
- * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
+ * For example:
+ * `"projects/my-project/exclusions/my-exclusion"`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final LogExclusion getExclusion(LogExclusionName name) {
@@ -2150,7 +2202,7 @@ public final LogExclusion getExclusion(LogExclusionName name) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Gets the description of an exclusion.
+ * Gets the description of an exclusion in the _Default sink.
*
* Sample code:
*
@@ -2166,7 +2218,8 @@ public final LogExclusion getExclusion(LogExclusionName name) {
* "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
* "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
- * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
+ * For example:
+ * `"projects/my-project/exclusions/my-exclusion"`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final LogExclusion getExclusion(String name) {
@@ -2176,7 +2229,7 @@ public final LogExclusion getExclusion(String name) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Gets the description of an exclusion.
+ * Gets the description of an exclusion in the _Default sink.
*
* Sample code:
*
@@ -2200,7 +2253,7 @@ public final LogExclusion getExclusion(GetExclusionRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Gets the description of an exclusion.
+ * Gets the description of an exclusion in the _Default sink.
*
* Sample code:
*
@@ -2223,8 +2276,8 @@ public final UnaryCallable Sample code:
*
@@ -2239,7 +2292,8 @@ public final UnaryCallable "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
- * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
+ * For examples:
+ * `"projects/my-logging-project"` `"organizations/123456789"`
* @param exclusion Required. The new exclusion, whose `name` parameter is an exclusion name that
* is not already used in the parent resource.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -2255,8 +2309,8 @@ public final LogExclusion createExclusion(BillingAccountName parent, LogExclusio
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Creates a new exclusion in a specified parent resource. Only log entries belonging to that
- * resource can be excluded. You can have up to 10 exclusions in a resource.
+ * Creates a new exclusion in the _Default sink in a specified parent resource. Only log entries
+ * belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.
*
* Sample code:
*
@@ -2271,7 +2325,8 @@ public final LogExclusion createExclusion(BillingAccountName parent, LogExclusio
* @param parent Required. The parent resource in which to create the exclusion:
* "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
- * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
+ * For examples:
+ * `"projects/my-logging-project"` `"organizations/123456789"`
* @param exclusion Required. The new exclusion, whose `name` parameter is an exclusion name that
* is not already used in the parent resource.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -2287,8 +2342,8 @@ public final LogExclusion createExclusion(FolderName parent, LogExclusion exclus
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Creates a new exclusion in a specified parent resource. Only log entries belonging to that
- * resource can be excluded. You can have up to 10 exclusions in a resource.
+ * Creates a new exclusion in the _Default sink in a specified parent resource. Only log entries
+ * belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.
*
* Sample code:
*
@@ -2303,7 +2358,8 @@ public final LogExclusion createExclusion(FolderName parent, LogExclusion exclus
* @param parent Required. The parent resource in which to create the exclusion:
* "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
- * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
+ * For examples:
+ * `"projects/my-logging-project"` `"organizations/123456789"`
* @param exclusion Required. The new exclusion, whose `name` parameter is an exclusion name that
* is not already used in the parent resource.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -2319,8 +2375,8 @@ public final LogExclusion createExclusion(OrganizationName parent, LogExclusion
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Creates a new exclusion in a specified parent resource. Only log entries belonging to that
- * resource can be excluded. You can have up to 10 exclusions in a resource.
+ * Creates a new exclusion in the _Default sink in a specified parent resource. Only log entries
+ * belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.
*
* Sample code:
*
@@ -2335,7 +2391,8 @@ public final LogExclusion createExclusion(OrganizationName parent, LogExclusion
* @param parent Required. The parent resource in which to create the exclusion:
* "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
- * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
+ * For examples:
+ * `"projects/my-logging-project"` `"organizations/123456789"`
* @param exclusion Required. The new exclusion, whose `name` parameter is an exclusion name that
* is not already used in the parent resource.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -2351,8 +2408,8 @@ public final LogExclusion createExclusion(ProjectName parent, LogExclusion exclu
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Creates a new exclusion in a specified parent resource. Only log entries belonging to that
- * resource can be excluded. You can have up to 10 exclusions in a resource.
+ * Creates a new exclusion in the _Default sink in a specified parent resource. Only log entries
+ * belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.
*
* Sample code:
*
@@ -2367,7 +2424,8 @@ public final LogExclusion createExclusion(ProjectName parent, LogExclusion exclu
* @param parent Required. The parent resource in which to create the exclusion:
* "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
- * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
+ * For examples:
+ * `"projects/my-logging-project"` `"organizations/123456789"`
* @param exclusion Required. The new exclusion, whose `name` parameter is an exclusion name that
* is not already used in the parent resource.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -2380,8 +2438,8 @@ public final LogExclusion createExclusion(String parent, LogExclusion exclusion)
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Creates a new exclusion in a specified parent resource. Only log entries belonging to that
- * resource can be excluded. You can have up to 10 exclusions in a resource.
+ * Creates a new exclusion in the _Default sink in a specified parent resource. Only log entries
+ * belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.
*
* Sample code:
*
@@ -2405,8 +2463,8 @@ public final LogExclusion createExclusion(CreateExclusionRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Creates a new exclusion in a specified parent resource. Only log entries belonging to that
- * resource can be excluded. You can have up to 10 exclusions in a resource.
+ * Creates a new exclusion in the _Default sink in a specified parent resource. Only log entries
+ * belonging to that resource can be excluded. You can have up to 10 exclusions in a resource.
*
* Sample code:
*
@@ -2429,7 +2487,7 @@ public final UnaryCallable Sample code:
*
@@ -2447,7 +2505,8 @@ public final UnaryCallable Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
+ * For example:
+ * `"projects/my-project/exclusions/my-exclusion"`
* @param exclusion Required. New values for the existing exclusion. Only the fields specified in
* `update_mask` are relevant.
* @param updateMask Required. A non-empty list of fields to change in the existing exclusion. New
@@ -2471,7 +2530,7 @@ public final LogExclusion updateExclusion(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Changes one or more properties of an existing exclusion.
+ * Changes one or more properties of an existing exclusion in the _Default sink.
*
* Sample code:
*
@@ -2489,7 +2548,8 @@ public final LogExclusion updateExclusion(
* "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
* "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
- * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
+ * For example:
+ * `"projects/my-project/exclusions/my-exclusion"`
* @param exclusion Required. New values for the existing exclusion. Only the fields specified in
* `update_mask` are relevant.
* @param updateMask Required. A non-empty list of fields to change in the existing exclusion. New
@@ -2513,7 +2573,7 @@ public final LogExclusion updateExclusion(
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Changes one or more properties of an existing exclusion.
+ * Changes one or more properties of an existing exclusion in the _Default sink.
*
* Sample code:
*
@@ -2539,7 +2599,7 @@ public final LogExclusion updateExclusion(UpdateExclusionRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Changes one or more properties of an existing exclusion.
+ * Changes one or more properties of an existing exclusion in the _Default sink.
*
* Sample code:
*
@@ -2564,7 +2624,7 @@ public final UnaryCallable Sample code:
*
@@ -2580,7 +2640,8 @@ public final UnaryCallable Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
+ * For example:
+ * `"projects/my-project/exclusions/my-exclusion"`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final void deleteExclusion(LogExclusionName name) {
@@ -2591,7 +2652,7 @@ public final void deleteExclusion(LogExclusionName name) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Deletes an exclusion.
+ * Deletes an exclusion in the _Default sink.
*
* Sample code:
*
@@ -2607,7 +2668,8 @@ public final void deleteExclusion(LogExclusionName name) {
* "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
* "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
- * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
+ * For example:
+ * `"projects/my-project/exclusions/my-exclusion"`
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final void deleteExclusion(String name) {
@@ -2617,7 +2679,7 @@ public final void deleteExclusion(String name) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Deletes an exclusion.
+ * Deletes an exclusion in the _Default sink.
*
* Sample code:
*
@@ -2641,7 +2703,7 @@ public final void deleteExclusion(DeleteExclusionRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Deletes an exclusion.
+ * Deletes an exclusion in the _Default sink.
*
* Sample code:
*
@@ -2664,12 +2726,13 @@ public final UnaryCallable Note: CMEK for the Logs Router can currently only be configured for GCP organizations. Once
- * configured, it applies to all projects and folders in the GCP organization.
+ * Note: CMEK for the Log Router can be configured for Google Cloud projects, folders,
+ * organizations and billing accounts. Once configured for an organization, it applies to all
+ * projects and folders in the Google Cloud organization.
*
- * See [Enabling CMEK for Logs
+ * See [Enabling CMEK for Log
* Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.
*
* Sample code:
@@ -2693,12 +2756,13 @@ public final CmekSettings getCmekSettings(GetCmekSettingsRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Gets the Logs Router CMEK settings for the given resource.
+ * Gets the Logging CMEK settings for the given resource.
*
- * Note: CMEK for the Logs Router can currently only be configured for GCP organizations. Once
- * configured, it applies to all projects and folders in the GCP organization.
+ * Note: CMEK for the Log Router can be configured for Google Cloud projects, folders,
+ * organizations and billing accounts. Once configured for an organization, it applies to all
+ * projects and folders in the Google Cloud organization.
*
- * See [Enabling CMEK for Logs
+ * See [Enabling CMEK for Log
* Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.
*
* Sample code:
@@ -2721,17 +2785,18 @@ public final UnaryCallable Note: CMEK for the Logs Router can currently only be configured for GCP organizations. Once
- * configured, it applies to all projects and folders in the GCP organization.
+ * Note: CMEK for the Log Router can currently only be configured for Google Cloud
+ * organizations. Once configured, it applies to all projects and folders in the Google Cloud
+ * organization.
*
* [UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings] will fail if 1)
* `kms_key_name` is invalid, or 2) the associated service account does not have the required
* `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or 3) access to the key
* is disabled.
*
- * See [Enabling CMEK for Logs
+ * See [Enabling CMEK for Log
* Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.
*
* Sample code:
@@ -2757,17 +2822,18 @@ public final CmekSettings updateCmekSettings(UpdateCmekSettingsRequest request)
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Updates the Logs Router CMEK settings for the given resource.
+ * Updates the Log Router CMEK settings for the given resource.
*
- * Note: CMEK for the Logs Router can currently only be configured for GCP organizations. Once
- * configured, it applies to all projects and folders in the GCP organization.
+ * Note: CMEK for the Log Router can currently only be configured for Google Cloud
+ * organizations. Once configured, it applies to all projects and folders in the Google Cloud
+ * organization.
*
* [UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings] will fail if 1)
* `kms_key_name` is invalid, or 2) the associated service account does not have the required
* `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or 3) access to the key
* is disabled.
*
- * See [Enabling CMEK for Logs
+ * See [Enabling CMEK for Log
* Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.
*
* Sample code:
@@ -2791,6 +2857,335 @@ public final UnaryCallable Note: Settings for the Log Router can be get for Google Cloud projects, folders,
+ * organizations and billing accounts. Currently it can only be configured for organizations. Once
+ * configured for an organization, it applies to all projects and folders in the Google Cloud
+ * organization.
+ *
+ * See [Enabling CMEK for Log
+ * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.
+ *
+ * Sample code:
+ *
+ * "projects/[PROJECT_ID]/settings" "organizations/[ORGANIZATION_ID]/settings"
+ * "billingAccounts/[BILLING_ACCOUNT_ID]/settings" "folders/[FOLDER_ID]/settings"
+ * For example:
+ * `"organizations/12345/settings"`
+ * Note: Settings for the Log Router can be get for Google Cloud projects, folders,
+ * organizations and billing accounts. Currently it can only be configured for organizations.
+ * Once configured for an organization, it applies to all projects and folders in the Google
+ * Cloud organization.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Settings getSettings(SettingsName name) {
+ GetSettingsRequest request =
+ GetSettingsRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getSettings(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the Log Router settings for the given resource.
+ *
+ * Note: Settings for the Log Router can be get for Google Cloud projects, folders,
+ * organizations and billing accounts. Currently it can only be configured for organizations. Once
+ * configured for an organization, it applies to all projects and folders in the Google Cloud
+ * organization.
+ *
+ * See [Enabling CMEK for Log
+ * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.
+ *
+ * Sample code:
+ *
+ * "projects/[PROJECT_ID]/settings" "organizations/[ORGANIZATION_ID]/settings"
+ * "billingAccounts/[BILLING_ACCOUNT_ID]/settings" "folders/[FOLDER_ID]/settings"
+ * For example:
+ * `"organizations/12345/settings"`
+ * Note: Settings for the Log Router can be get for Google Cloud projects, folders,
+ * organizations and billing accounts. Currently it can only be configured for organizations.
+ * Once configured for an organization, it applies to all projects and folders in the Google
+ * Cloud organization.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Settings getSettings(String name) {
+ GetSettingsRequest request = GetSettingsRequest.newBuilder().setName(name).build();
+ return getSettings(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the Log Router settings for the given resource.
+ *
+ * Note: Settings for the Log Router can be get for Google Cloud projects, folders,
+ * organizations and billing accounts. Currently it can only be configured for organizations. Once
+ * configured for an organization, it applies to all projects and folders in the Google Cloud
+ * organization.
+ *
+ * See [Enabling CMEK for Log
+ * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.
+ *
+ * Sample code:
+ *
+ * Note: Settings for the Log Router can be get for Google Cloud projects, folders,
+ * organizations and billing accounts. Currently it can only be configured for organizations. Once
+ * configured for an organization, it applies to all projects and folders in the Google Cloud
+ * organization.
+ *
+ * See [Enabling CMEK for Log
+ * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.
+ *
+ * Sample code:
+ *
+ * Note: Settings for the Log Router can currently only be configured for Google Cloud
+ * organizations. Once configured, it applies to all projects and folders in the Google Cloud
+ * organization.
+ *
+ * [UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings] will fail if 1)
+ * `kms_key_name` is invalid, or 2) the associated service account does not have the required
+ * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or 3) access to the key
+ * is disabled. 4) `location_id` is not supported by Logging. 5) `location_id` violate OrgPolicy.
+ *
+ * See [Enabling CMEK for Log
+ * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.
+ *
+ * Sample code:
+ *
+ * See [Enabling CMEK for Log
+ * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more
+ * information.
+ * @param updateMask Optional. Field mask identifying which fields from `settings` should be
+ * updated. A field will be overwritten if and only if it is in the update mask. Output only
+ * fields cannot be updated.
+ * See [FieldMask][google.protobuf.FieldMask] for more information.
+ * For example: `"updateMask=kmsKeyName"`
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Settings updateSettings(Settings settings, FieldMask updateMask) {
+ UpdateSettingsRequest request =
+ UpdateSettingsRequest.newBuilder().setSettings(settings).setUpdateMask(updateMask).build();
+ return updateSettings(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the Log Router settings for the given resource.
+ *
+ * Note: Settings for the Log Router can currently only be configured for Google Cloud
+ * organizations. Once configured, it applies to all projects and folders in the Google Cloud
+ * organization.
+ *
+ * [UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings] will fail if 1)
+ * `kms_key_name` is invalid, or 2) the associated service account does not have the required
+ * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or 3) access to the key
+ * is disabled. 4) `location_id` is not supported by Logging. 5) `location_id` violate OrgPolicy.
+ *
+ * See [Enabling CMEK for Log
+ * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.
+ *
+ * Sample code:
+ *
+ * Note: Settings for the Log Router can currently only be configured for Google Cloud
+ * organizations. Once configured, it applies to all projects and folders in the Google Cloud
+ * organization.
+ *
+ * [UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings] will fail if 1)
+ * `kms_key_name` is invalid, or 2) the associated service account does not have the required
+ * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or 3) access to the key
+ * is disabled. 4) `location_id` is not supported by Logging. 5) `location_id` violate OrgPolicy.
+ *
+ * See [Enabling CMEK for Log
+ * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more information.
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
+ *
+ * Sample code:
*
@@ -181,11 +182,15 @@ public LoggingServiceV2Stub getStub() {
* }
*
* @param logName Required. The resource name of the log to delete:
- * "projects/[PROJECT_ID]/logs/[LOG_ID]" "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
- * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" "folders/[FOLDER_ID]/logs/[LOG_ID]"
+ * `[LOG_ID]` must be URL-encoded. For example, `"projects/my-project-id/logs/syslog"`,
- * `"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`. For more
- * information about log names, see [LogEntry][google.logging.v2.LogEntry].
+ * `"organizations/123/logs/cloudaudit.googleapis.com%2Factivity"`.
+ * For more information about log names, see [LogEntry][google.logging.v2.LogEntry].
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final void deleteLog(LogName logName) {
@@ -198,9 +203,10 @@ public final void deleteLog(LogName logName) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Deletes all the log entries in a log. The log reappears if it receives new entries. Log entries
- * written shortly before the delete operation might not be deleted. Entries received after the
- * delete operation with a timestamp before the operation will be deleted.
+ * Deletes all the log entries in a log for the _Default Log Bucket. The log reappears if it
+ * receives new entries. Log entries written shortly before the delete operation might not be
+ * deleted. Entries received after the delete operation with a timestamp before the operation will
+ * be deleted.
*
* Sample code:
*
@@ -212,11 +218,15 @@ public final void deleteLog(LogName logName) {
* }
*
* @param logName Required. The resource name of the log to delete:
- * "projects/[PROJECT_ID]/logs/[LOG_ID]" "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
- * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" "folders/[FOLDER_ID]/logs/[LOG_ID]"
+ * `[LOG_ID]` must be URL-encoded. For example, `"projects/my-project-id/logs/syslog"`,
- * `"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`. For more
- * information about log names, see [LogEntry][google.logging.v2.LogEntry].
+ * `"organizations/123/logs/cloudaudit.googleapis.com%2Factivity"`.
+ * For more information about log names, see [LogEntry][google.logging.v2.LogEntry].
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final void deleteLog(String logName) {
@@ -226,9 +236,10 @@ public final void deleteLog(String logName) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Deletes all the log entries in a log. The log reappears if it receives new entries. Log entries
- * written shortly before the delete operation might not be deleted. Entries received after the
- * delete operation with a timestamp before the operation will be deleted.
+ * Deletes all the log entries in a log for the _Default Log Bucket. The log reappears if it
+ * receives new entries. Log entries written shortly before the delete operation might not be
+ * deleted. Entries received after the delete operation with a timestamp before the operation will
+ * be deleted.
*
* Sample code:
*
@@ -251,9 +262,10 @@ public final void deleteLog(DeleteLogRequest request) {
// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
- * Deletes all the log entries in a log. The log reappears if it receives new entries. Log entries
- * written shortly before the delete operation might not be deleted. Entries received after the
- * delete operation with a timestamp before the operation will be deleted.
+ * Deletes all the log entries in a log for the _Default Log Bucket. The log reappears if it
+ * receives new entries. Log entries written shortly before the delete operation might not be
+ * deleted. Entries received after the delete operation with a timestamp before the operation will
+ * be deleted.
*
* Sample code:
*
@@ -295,11 +307,15 @@ public final UnaryCallable "projects/[PROJECT_ID]/logs/[LOG_ID]" "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
- * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" "folders/[FOLDER_ID]/logs/[LOG_ID]"
+ * `[LOG_ID]` must be URL-encoded. For example:
* "projects/my-project-id/logs/syslog"
- * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"
+ * "organizations/123/logs/cloudaudit.googleapis.com%2Factivity"
* The permission `logging.logEntries.create` is needed on each project, organization,
* billing account, or folder that is receiving new log entries, whether the resource is
* specified in `logName` or in an individual log entry.
@@ -323,14 +339,14 @@ public final UnaryCallable Log entries with timestamps that are more than the [logs retention
- * period](https://cloud.google.com/logging/quota-policy) in the past or more than 24 hours in
- * the future will not be available when calling `entries.list`. However, those log entries
- * can still be [exported with
+ * period](https://cloud.google.com/logging/quotas) in the past or more than 24 hours in the
+ * future will not be available when calling `entries.list`. However, those log entries can
+ * still be [exported with
* LogSinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs).
* To improve throughput and to avoid exceeding the [quota
- * limit](https://cloud.google.com/logging/quota-policy) for calls to `entries.write`, you
- * should try to include several log entries in this list, rather than calling this method for
- * each individual log entry.
+ * limit](https://cloud.google.com/logging/quotas) for calls to `entries.write`, you should
+ * try to include several log entries in this list, rather than calling this method for each
+ * individual log entry.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final WriteLogEntriesResponse writeLogEntries(
@@ -370,11 +386,15 @@ public final WriteLogEntriesResponse writeLogEntries(
*
* @param logName Optional. A default log resource name that is assigned to all log entries in
* `entries` that do not specify a value for `log_name`:
- * "projects/[PROJECT_ID]/logs/[LOG_ID]" "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
- * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" "folders/[FOLDER_ID]/logs/[LOG_ID]"
+ * `[LOG_ID]` must be URL-encoded. For example:
* "projects/my-project-id/logs/syslog"
- * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"
+ * "organizations/123/logs/cloudaudit.googleapis.com%2Factivity"
* The permission `logging.logEntries.create` is needed on each project, organization,
* billing account, or folder that is receiving new log entries, whether the resource is
* specified in `logName` or in an individual log entry.
@@ -398,14 +418,14 @@ public final WriteLogEntriesResponse writeLogEntries(
* earlier in the list will sort before the entries later in the list. See the `entries.list`
* method.
* Log entries with timestamps that are more than the [logs retention
- * period](https://cloud.google.com/logging/quota-policy) in the past or more than 24 hours in
- * the future will not be available when calling `entries.list`. However, those log entries
- * can still be [exported with
+ * period](https://cloud.google.com/logging/quotas) in the past or more than 24 hours in the
+ * future will not be available when calling `entries.list`. However, those log entries can
+ * still be [exported with
* LogSinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs).
* To improve throughput and to avoid exceeding the [quota
- * limit](https://cloud.google.com/logging/quota-policy) for calls to `entries.write`, you
- * should try to include several log entries in this list, rather than calling this method for
- * each individual log entry.
+ * limit](https://cloud.google.com/logging/quotas) for calls to `entries.write`, you should
+ * try to include several log entries in this list, rather than calling this method for each
+ * individual log entry.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final WriteLogEntriesResponse writeLogEntries(
@@ -508,13 +528,19 @@ public final WriteLogEntriesResponse writeLogEntries(WriteLogEntriesRequest requ
*
* @param resourceNames Required. Names of one or more parent resources from which to retrieve log
* entries:
- * "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
- * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
- * May alternatively be one or more views
- * projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
- * organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
- * billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
- * folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
+ * May alternatively be one or more views:
+ * *
+ * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` *
+ * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+ * *
+ * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+ * * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
* Projects listed in the `project_ids` field are added to this list.
* @param filter Optional. A filter that chooses which log entries to return. See [Advanced Logs
* Queries](https://cloud.google.com/logging/docs/view/advanced-queries). Only log entries
@@ -748,8 +774,13 @@ public final ListMonitoredResourceDescriptorsPagedResponse listMonitoredResource
* }
*
* @param parent Required. The resource name that owns the logs:
- * "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
- * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
+ * "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
- * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
+ * "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
- * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
+ * "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
- * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
+ * "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
- * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
+ * The interfaces provided are listed below, along with usage samples.
*
* ======================= LoggingClient =======================
*
diff --git a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2Stub.java b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2Stub.java
index 5091901f6..9372aeb54 100644
--- a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2Stub.java
+++ b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2Stub.java
@@ -22,8 +22,12 @@
import static com.google.cloud.logging.v2.ConfigClient.ListViewsPagedResponse;
import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.logging.v2.CmekSettings;
+import com.google.logging.v2.CopyLogEntriesMetadata;
+import com.google.logging.v2.CopyLogEntriesRequest;
+import com.google.logging.v2.CopyLogEntriesResponse;
import com.google.logging.v2.CreateBucketRequest;
import com.google.logging.v2.CreateExclusionRequest;
import com.google.logging.v2.CreateSinkRequest;
@@ -35,6 +39,7 @@
import com.google.logging.v2.GetBucketRequest;
import com.google.logging.v2.GetCmekSettingsRequest;
import com.google.logging.v2.GetExclusionRequest;
+import com.google.logging.v2.GetSettingsRequest;
import com.google.logging.v2.GetSinkRequest;
import com.google.logging.v2.GetViewRequest;
import com.google.logging.v2.ListBucketsRequest;
@@ -49,12 +54,16 @@
import com.google.logging.v2.LogExclusion;
import com.google.logging.v2.LogSink;
import com.google.logging.v2.LogView;
+import com.google.logging.v2.Settings;
import com.google.logging.v2.UndeleteBucketRequest;
import com.google.logging.v2.UpdateBucketRequest;
import com.google.logging.v2.UpdateCmekSettingsRequest;
import com.google.logging.v2.UpdateExclusionRequest;
+import com.google.logging.v2.UpdateSettingsRequest;
import com.google.logging.v2.UpdateSinkRequest;
import com.google.logging.v2.UpdateViewRequest;
+import com.google.longrunning.Operation;
+import com.google.longrunning.stub.OperationsStub;
import com.google.protobuf.Empty;
import javax.annotation.Generated;
@@ -67,6 +76,10 @@
@Generated("by gapic-generator-java")
public abstract class ConfigServiceV2Stub implements BackgroundResource {
+ public OperationsStub getOperationsStub() {
+ throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
+ }
+
public UnaryCallable{@code
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * SettingsName name = SettingsName.ofProjectName("[PROJECT]");
+ * Settings response = configClient.getSettings(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource for which to retrieve settings.
+ * {@code
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * String name = SettingsName.ofProjectName("[PROJECT]").toString();
+ * Settings response = configClient.getSettings(name);
+ * }
+ * }
+ *
+ * @param name Required. The resource for which to retrieve settings.
+ * {@code
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * GetSettingsRequest request =
+ * GetSettingsRequest.newBuilder()
+ * .setName(SettingsName.ofProjectName("[PROJECT]").toString())
+ * .build();
+ * Settings response = configClient.getSettings(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Settings getSettings(GetSettingsRequest request) {
+ return getSettingsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Gets the Log Router settings for the given resource.
+ *
+ * {@code
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * GetSettingsRequest request =
+ * GetSettingsRequest.newBuilder()
+ * .setName(SettingsName.ofProjectName("[PROJECT]").toString())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * Settings settings = Settings.newBuilder().build();
+ * FieldMask updateMask = FieldMask.newBuilder().build();
+ * Settings response = configClient.updateSettings(settings, updateMask);
+ * }
+ * }
+ *
+ * @param settings Required. The settings to update.
+ * {@code
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * UpdateSettingsRequest request =
+ * UpdateSettingsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setSettings(Settings.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * Settings response = configClient.updateSettings(request);
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Settings updateSettings(UpdateSettingsRequest request) {
+ return updateSettingsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Updates the Log Router settings for the given resource.
+ *
+ * {@code
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * UpdateSettingsRequest request =
+ * UpdateSettingsRequest.newBuilder()
+ * .setName("name3373707")
+ * .setSettings(Settings.newBuilder().build())
+ * .setUpdateMask(FieldMask.newBuilder().build())
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable{@code
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * CopyLogEntriesRequest request =
+ * CopyLogEntriesRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setDestination("destination-1429847026")
+ * .build();
+ * CopyLogEntriesResponse response = configClient.copyLogEntriesAsync(request).get();
+ * }
+ * }
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final OperationFuture{@code
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * CopyLogEntriesRequest request =
+ * CopyLogEntriesRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setDestination("destination-1429847026")
+ * .build();
+ * OperationFuture
+ */
+ public final OperationCallable<
+ CopyLogEntriesRequest, CopyLogEntriesResponse, CopyLogEntriesMetadata>
+ copyLogEntriesOperationCallable() {
+ return stub.copyLogEntriesOperationCallable();
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Copies a set of log entries from a log bucket to a Cloud Storage bucket.
+ *
+ * {@code
+ * try (ConfigClient configClient = ConfigClient.create()) {
+ * CopyLogEntriesRequest request =
+ * CopyLogEntriesRequest.newBuilder()
+ * .setName("name3373707")
+ * .setFilter("filter-1274492040")
+ * .setDestination("destination-1429847026")
+ * .build();
+ * ApiFuture
+ */
+ public final UnaryCallable
+ *
*
+ *
*
+ *
*
+ *
*
+ *
+ *
+ *
+ *
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListLogsPagedResponse listLogs(BillingAccountName parent) {
@@ -775,8 +806,13 @@ public final ListLogsPagedResponse listLogs(BillingAccountName parent) {
* }
*
* @param parent Required. The resource name that owns the logs:
- *
+ *
+ *
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListLogsPagedResponse listLogs(FolderName parent) {
@@ -802,8 +838,13 @@ public final ListLogsPagedResponse listLogs(FolderName parent) {
* }
*
* @param parent Required. The resource name that owns the logs:
- *
+ *
+ *
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListLogsPagedResponse listLogs(OrganizationName parent) {
@@ -829,8 +870,13 @@ public final ListLogsPagedResponse listLogs(OrganizationName parent) {
* }
*
* @param parent Required. The resource name that owns the logs:
- *
+ *
+ *
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListLogsPagedResponse listLogs(ProjectName parent) {
@@ -856,8 +902,13 @@ public final ListLogsPagedResponse listLogs(ProjectName parent) {
* }
*
* @param parent Required. The resource name that owns the logs:
- *
+ *
+ *
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ListLogsPagedResponse listLogs(String parent) {
diff --git a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/gapic_metadata.json b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/gapic_metadata.json
index 19d23c676..3f7d36cb8 100644
--- a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/gapic_metadata.json
+++ b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/gapic_metadata.json
@@ -37,6 +37,9 @@
"grpc": {
"libraryClient": "ConfigClient",
"rpcs": {
+ "CopyLogEntries": {
+ "methods": ["copyLogEntriesAsync", "copyLogEntriesOperationCallable", "copyLogEntriesCallable"]
+ },
"CreateBucket": {
"methods": ["createBucket", "createBucketCallable"]
},
@@ -70,6 +73,9 @@
"GetExclusion": {
"methods": ["getExclusion", "getExclusion", "getExclusion", "getExclusionCallable"]
},
+ "GetSettings": {
+ "methods": ["getSettings", "getSettings", "getSettings", "getSettingsCallable"]
+ },
"GetSink": {
"methods": ["getSink", "getSink", "getSink", "getSinkCallable"]
},
@@ -100,6 +106,9 @@
"UpdateExclusion": {
"methods": ["updateExclusion", "updateExclusion", "updateExclusion", "updateExclusionCallable"]
},
+ "UpdateSettings": {
+ "methods": ["updateSettings", "updateSettings", "updateSettingsCallable"]
+ },
"UpdateSink": {
"methods": ["updateSink", "updateSink", "updateSink", "updateSink", "updateSink", "updateSinkCallable"]
},
diff --git a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/package-info.java b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/package-info.java
index c9561f16e..0e2f30ef0 100644
--- a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/package-info.java
+++ b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/package-info.java
@@ -15,7 +15,9 @@
*/
/**
- * The interfaces provided are listed below, along with usage samples.
+ * A client to Cloud Logging API
+ *
+ *
- * Lists buckets.
+ * Lists log buckets.
*
*/
public void listBuckets(
@@ -1042,7 +1166,7 @@ public void listBuckets(
*
*
*
- * Gets a bucket.
+ * Gets a log bucket.
*
*/
public void getBucket(
@@ -1055,8 +1179,8 @@ public void getBucket(
*
*
*
- * Creates a bucket that can be used to store log entries. Once a bucket has
- * been created, the region cannot be changed.
+ * Creates a log bucket that can be used to store log entries. After a bucket
+ * has been created, the bucket's location cannot be changed.
*
*/
public void createBucket(
@@ -1070,13 +1194,13 @@ public void createBucket(
*
*
*
- * Updates a bucket. This method replaces the following fields in the
+ * Updates a log bucket. This method replaces the following fields in the
* existing bucket with values from the new bucket: `retention_period`
* If the retention period is decreased and the bucket is locked,
- * FAILED_PRECONDITION will be returned.
- * If the bucket has a LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION
- * will be returned.
- * A buckets region may not be modified after it is created.
+ * `FAILED_PRECONDITION` will be returned.
+ * If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then
+ * `FAILED_PRECONDITION` will be returned.
+ * After a bucket has been created, the bucket's location cannot be changed.
*
*/
public void updateBucket(
@@ -1090,10 +1214,10 @@ public void updateBucket(
*
*
*
- * Deletes a bucket.
- * Moves the bucket to the DELETE_REQUESTED state. After 7 days, the
- * bucket will be purged and all logs in the bucket will be permanently
- * deleted.
+ * Deletes a log bucket.
+ * Changes the bucket's `lifecycle_state` to the `DELETE_REQUESTED` state.
+ * After 7 days, the bucket will be purged and all log entries in the bucket
+ * will be permanently deleted.
*
*/
public void deleteBucket(
@@ -1107,8 +1231,8 @@ public void deleteBucket(
*
*
*
- * Undeletes a bucket. A bucket that has been deleted may be undeleted within
- * the grace period of 7 days.
+ * Undeletes a log bucket. A bucket that has been deleted can be undeleted
+ * within the grace period of 7 days.
*
*/
public void undeleteBucket(
@@ -1122,7 +1246,7 @@ public void undeleteBucket(
*
*
*
- * Lists views on a bucket.
+ * Lists views on a log bucket.
*
*/
public void listViews(
@@ -1135,7 +1259,7 @@ public void listViews(
*
*
*
- * Gets a view.
+ * Gets a view on a log bucket..
*
*/
public void getView(
@@ -1148,8 +1272,8 @@ public void getView(
*
*
*
- * Creates a view over logs in a bucket. A bucket may contain a maximum of
- * 50 views.
+ * Creates a view over log entries in a log bucket. A bucket may contain a
+ * maximum of 30 views.
*
*/
public void createView(
@@ -1162,8 +1286,11 @@ public void createView(
*
*
*
- * Updates a view. This method replaces the following fields in the existing
- * view with values from the new view: `filter`.
+ * Updates a view on a log bucket. This method replaces the following fields
+ * in the existing view with values from the new view: `filter`.
+ * If an `UNAVAILABLE` error is returned, this indicates that system is not in
+ * a state where it can update the view. If this occurs, please try again in a
+ * few minutes.
*
*/
public void updateView(
@@ -1176,7 +1303,10 @@ public void updateView(
*
*
*
- * Deletes a view from a bucket.
+ * Deletes a view on a log bucket.
+ * If an `UNAVAILABLE` error is returned, this indicates that system is not in
+ * a state where it can delete the view. If this occurs, please try again in a
+ * few minutes.
*
*/
public void deleteView(
@@ -1261,7 +1391,7 @@ public void deleteSink(
*
*
*
- * Lists all the exclusions in a parent resource.
+ * Lists all the exclusions on the _Default sink in a parent resource.
*
*/
public void listExclusions(
@@ -1276,7 +1406,7 @@ public void listExclusions(
*
*
*
- * Gets the description of an exclusion.
+ * Gets the description of an exclusion in the _Default sink.
*
*/
public void getExclusion(
@@ -1290,9 +1420,9 @@ public void getExclusion(
*
*
*
- * Creates a new exclusion in a specified parent resource.
- * Only log entries belonging to that resource can be excluded.
- * You can have up to 10 exclusions in a resource.
+ * Creates a new exclusion in the _Default sink in a specified parent
+ * resource. Only log entries belonging to that resource can be excluded. You
+ * can have up to 10 exclusions in a resource.
*
*/
public void createExclusion(
@@ -1306,7 +1436,8 @@ public void createExclusion(
*
*
*
- * Changes one or more properties of an existing exclusion.
+ * Changes one or more properties of an existing exclusion in the _Default
+ * sink.
*
*/
public void updateExclusion(
@@ -1320,7 +1451,7 @@ public void updateExclusion(
*
*
*
- * Deletes an exclusion.
+ * Deletes an exclusion in the _Default sink.
*
*/
public void deleteExclusion(
@@ -1334,11 +1465,12 @@ public void deleteExclusion(
*
*
*
- * Gets the Logs Router CMEK settings for the given resource.
- * Note: CMEK for the Logs Router can currently only be configured for GCP
- * organizations. Once configured, it applies to all projects and folders in
- * the GCP organization.
- * See [Enabling CMEK for Logs
+ * Gets the Logging CMEK settings for the given resource.
+ * Note: CMEK for the Log Router can be configured for Google Cloud projects,
+ * folders, organizations and billing accounts. Once configured for an
+ * organization, it applies to all projects and folders in the Google Cloud
+ * organization.
+ * See [Enabling CMEK for Log
* Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
* for more information.
*
@@ -1354,16 +1486,16 @@ public void getCmekSettings(
*
*
*
- * Updates the Logs Router CMEK settings for the given resource.
- * Note: CMEK for the Logs Router can currently only be configured for GCP
- * organizations. Once configured, it applies to all projects and folders in
- * the GCP organization.
+ * Updates the Log Router CMEK settings for the given resource.
+ * Note: CMEK for the Log Router can currently only be configured for Google
+ * Cloud organizations. Once configured, it applies to all projects and
+ * folders in the Google Cloud organization.
* [UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings]
* will fail if 1) `kms_key_name` is invalid, or 2) the associated service
* account does not have the required
* `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or
* 3) access to the key is disabled.
- * See [Enabling CMEK for Logs
+ * See [Enabling CMEK for Log
* Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
* for more information.
*
@@ -1375,6 +1507,67 @@ public void updateCmekSettings(
getUpdateCmekSettingsMethod(), responseObserver);
}
+ /**
+ *
+ *
+ *
+ * Gets the Log Router settings for the given resource.
+ * Note: Settings for the Log Router can be get for Google Cloud projects,
+ * folders, organizations and billing accounts. Currently it can only be
+ * configured for organizations. Once configured for an organization, it
+ * applies to all projects and folders in the Google Cloud organization.
+ * See [Enabling CMEK for Log
+ * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+ * for more information.
+ *
+ */
+ public void getSettings(
+ com.google.logging.v2.GetSettingsRequest request,
+ io.grpc.stub.StreamObserver
+ * Updates the Log Router settings for the given resource.
+ * Note: Settings for the Log Router can currently only be configured for
+ * Google Cloud organizations. Once configured, it applies to all projects and
+ * folders in the Google Cloud organization.
+ * [UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings]
+ * will fail if 1) `kms_key_name` is invalid, or 2) the associated service
+ * account does not have the required
+ * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or
+ * 3) access to the key is disabled. 4) `location_id` is not supported by
+ * Logging. 5) `location_id` violate OrgPolicy.
+ * See [Enabling CMEK for Log
+ * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+ * for more information.
+ *
+ */
+ public void updateSettings(
+ com.google.logging.v2.UpdateSettingsRequest request,
+ io.grpc.stub.StreamObserver
+ * Copies a set of log entries from a log bucket to a Cloud Storage bucket.
+ *
+ */
+ public void copyLogEntries(
+ com.google.logging.v2.CopyLogEntriesRequest request,
+ io.grpc.stub.StreamObserver
- * Lists buckets.
+ * Lists log buckets.
*
*/
public void listBuckets(
@@ -1559,7 +1770,7 @@ public void listBuckets(
*
*
*
- * Gets a bucket.
+ * Gets a log bucket.
*
*/
public void getBucket(
@@ -1573,8 +1784,8 @@ public void getBucket(
*
*
*
- * Creates a bucket that can be used to store log entries. Once a bucket has
- * been created, the region cannot be changed.
+ * Creates a log bucket that can be used to store log entries. After a bucket
+ * has been created, the bucket's location cannot be changed.
*
*/
public void createBucket(
@@ -1590,13 +1801,13 @@ public void createBucket(
*
*
*
- * Updates a bucket. This method replaces the following fields in the
+ * Updates a log bucket. This method replaces the following fields in the
* existing bucket with values from the new bucket: `retention_period`
* If the retention period is decreased and the bucket is locked,
- * FAILED_PRECONDITION will be returned.
- * If the bucket has a LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION
- * will be returned.
- * A buckets region may not be modified after it is created.
+ * `FAILED_PRECONDITION` will be returned.
+ * If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then
+ * `FAILED_PRECONDITION` will be returned.
+ * After a bucket has been created, the bucket's location cannot be changed.
*
*/
public void updateBucket(
@@ -1612,10 +1823,10 @@ public void updateBucket(
*
*
*
- * Deletes a bucket.
- * Moves the bucket to the DELETE_REQUESTED state. After 7 days, the
- * bucket will be purged and all logs in the bucket will be permanently
- * deleted.
+ * Deletes a log bucket.
+ * Changes the bucket's `lifecycle_state` to the `DELETE_REQUESTED` state.
+ * After 7 days, the bucket will be purged and all log entries in the bucket
+ * will be permanently deleted.
*
*/
public void deleteBucket(
@@ -1631,8 +1842,8 @@ public void deleteBucket(
*
*
*
- * Undeletes a bucket. A bucket that has been deleted may be undeleted within
- * the grace period of 7 days.
+ * Undeletes a log bucket. A bucket that has been deleted can be undeleted
+ * within the grace period of 7 days.
*
*/
public void undeleteBucket(
@@ -1648,7 +1859,7 @@ public void undeleteBucket(
*
*
*
- * Lists views on a bucket.
+ * Lists views on a log bucket.
*
*/
public void listViews(
@@ -1662,7 +1873,7 @@ public void listViews(
*
*
*
- * Gets a view.
+ * Gets a view on a log bucket..
*
*/
public void getView(
@@ -1676,8 +1887,8 @@ public void getView(
*
*
*
- * Creates a view over logs in a bucket. A bucket may contain a maximum of
- * 50 views.
+ * Creates a view over log entries in a log bucket. A bucket may contain a
+ * maximum of 30 views.
*
*/
public void createView(
@@ -1691,8 +1902,11 @@ public void createView(
*
*
*
- * Updates a view. This method replaces the following fields in the existing
- * view with values from the new view: `filter`.
+ * Updates a view on a log bucket. This method replaces the following fields
+ * in the existing view with values from the new view: `filter`.
+ * If an `UNAVAILABLE` error is returned, this indicates that system is not in
+ * a state where it can update the view. If this occurs, please try again in a
+ * few minutes.
*
*/
public void updateView(
@@ -1706,7 +1920,10 @@ public void updateView(
*
*
*
- * Deletes a view from a bucket.
+ * Deletes a view on a log bucket.
+ * If an `UNAVAILABLE` error is returned, this indicates that system is not in
+ * a state where it can delete the view. If this occurs, please try again in a
+ * few minutes.
*
*/
public void deleteView(
@@ -1797,7 +2014,7 @@ public void deleteSink(
*
*
*
- * Lists all the exclusions in a parent resource.
+ * Lists all the exclusions on the _Default sink in a parent resource.
*
*/
public void listExclusions(
@@ -1814,7 +2031,7 @@ public void listExclusions(
*
*
*
- * Gets the description of an exclusion.
+ * Gets the description of an exclusion in the _Default sink.
*
*/
public void getExclusion(
@@ -1830,9 +2047,9 @@ public void getExclusion(
*
*
*
- * Creates a new exclusion in a specified parent resource.
- * Only log entries belonging to that resource can be excluded.
- * You can have up to 10 exclusions in a resource.
+ * Creates a new exclusion in the _Default sink in a specified parent
+ * resource. Only log entries belonging to that resource can be excluded. You
+ * can have up to 10 exclusions in a resource.
*
*/
public void createExclusion(
@@ -1848,7 +2065,8 @@ public void createExclusion(
*
*
*
- * Changes one or more properties of an existing exclusion.
+ * Changes one or more properties of an existing exclusion in the _Default
+ * sink.
*
*/
public void updateExclusion(
@@ -1864,7 +2082,7 @@ public void updateExclusion(
*
*
*
- * Deletes an exclusion.
+ * Deletes an exclusion in the _Default sink.
*
*/
public void deleteExclusion(
@@ -1880,11 +2098,12 @@ public void deleteExclusion(
*
*
*
- * Gets the Logs Router CMEK settings for the given resource.
- * Note: CMEK for the Logs Router can currently only be configured for GCP
- * organizations. Once configured, it applies to all projects and folders in
- * the GCP organization.
- * See [Enabling CMEK for Logs
+ * Gets the Logging CMEK settings for the given resource.
+ * Note: CMEK for the Log Router can be configured for Google Cloud projects,
+ * folders, organizations and billing accounts. Once configured for an
+ * organization, it applies to all projects and folders in the Google Cloud
+ * organization.
+ * See [Enabling CMEK for Log
* Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
* for more information.
*
@@ -1902,16 +2121,16 @@ public void getCmekSettings(
*
*
*
- * Updates the Logs Router CMEK settings for the given resource.
- * Note: CMEK for the Logs Router can currently only be configured for GCP
- * organizations. Once configured, it applies to all projects and folders in
- * the GCP organization.
+ * Updates the Log Router CMEK settings for the given resource.
+ * Note: CMEK for the Log Router can currently only be configured for Google
+ * Cloud organizations. Once configured, it applies to all projects and
+ * folders in the Google Cloud organization.
* [UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings]
* will fail if 1) `kms_key_name` is invalid, or 2) the associated service
* account does not have the required
* `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or
* 3) access to the key is disabled.
- * See [Enabling CMEK for Logs
+ * See [Enabling CMEK for Log
* Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
* for more information.
*
@@ -1924,6 +2143,73 @@ public void updateCmekSettings(
request,
responseObserver);
}
+
+ /**
+ *
+ *
+ *
+ * Gets the Log Router settings for the given resource.
+ * Note: Settings for the Log Router can be get for Google Cloud projects,
+ * folders, organizations and billing accounts. Currently it can only be
+ * configured for organizations. Once configured for an organization, it
+ * applies to all projects and folders in the Google Cloud organization.
+ * See [Enabling CMEK for Log
+ * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+ * for more information.
+ *
+ */
+ public void getSettings(
+ com.google.logging.v2.GetSettingsRequest request,
+ io.grpc.stub.StreamObserver
+ * Updates the Log Router settings for the given resource.
+ * Note: Settings for the Log Router can currently only be configured for
+ * Google Cloud organizations. Once configured, it applies to all projects and
+ * folders in the Google Cloud organization.
+ * [UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings]
+ * will fail if 1) `kms_key_name` is invalid, or 2) the associated service
+ * account does not have the required
+ * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or
+ * 3) access to the key is disabled. 4) `location_id` is not supported by
+ * Logging. 5) `location_id` violate OrgPolicy.
+ * See [Enabling CMEK for Log
+ * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+ * for more information.
+ *
+ */
+ public void updateSettings(
+ com.google.logging.v2.UpdateSettingsRequest request,
+ io.grpc.stub.StreamObserver
+ * Copies a set of log entries from a log bucket to a Cloud Storage bucket.
+ *
+ */
+ public void copyLogEntries(
+ com.google.logging.v2.CopyLogEntriesRequest request,
+ io.grpc.stub.StreamObserver
- * Lists buckets.
+ * Lists log buckets.
*
*/
public com.google.logging.v2.ListBucketsResponse listBuckets(
@@ -1962,7 +2248,7 @@ public com.google.logging.v2.ListBucketsResponse listBuckets(
*
*
*
- * Gets a bucket.
+ * Gets a log bucket.
*
*/
public com.google.logging.v2.LogBucket getBucket(
@@ -1975,8 +2261,8 @@ public com.google.logging.v2.LogBucket getBucket(
*
*
*
- * Creates a bucket that can be used to store log entries. Once a bucket has
- * been created, the region cannot be changed.
+ * Creates a log bucket that can be used to store log entries. After a bucket
+ * has been created, the bucket's location cannot be changed.
*
*/
public com.google.logging.v2.LogBucket createBucket(
@@ -1989,13 +2275,13 @@ public com.google.logging.v2.LogBucket createBucket(
*
*
*
- * Updates a bucket. This method replaces the following fields in the
+ * Updates a log bucket. This method replaces the following fields in the
* existing bucket with values from the new bucket: `retention_period`
* If the retention period is decreased and the bucket is locked,
- * FAILED_PRECONDITION will be returned.
- * If the bucket has a LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION
- * will be returned.
- * A buckets region may not be modified after it is created.
+ * `FAILED_PRECONDITION` will be returned.
+ * If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then
+ * `FAILED_PRECONDITION` will be returned.
+ * After a bucket has been created, the bucket's location cannot be changed.
*
*/
public com.google.logging.v2.LogBucket updateBucket(
@@ -2008,10 +2294,10 @@ public com.google.logging.v2.LogBucket updateBucket(
*
*
*
- * Deletes a bucket.
- * Moves the bucket to the DELETE_REQUESTED state. After 7 days, the
- * bucket will be purged and all logs in the bucket will be permanently
- * deleted.
+ * Deletes a log bucket.
+ * Changes the bucket's `lifecycle_state` to the `DELETE_REQUESTED` state.
+ * After 7 days, the bucket will be purged and all log entries in the bucket
+ * will be permanently deleted.
*
*/
public com.google.protobuf.Empty deleteBucket(
@@ -2024,8 +2310,8 @@ public com.google.protobuf.Empty deleteBucket(
*
*
*
- * Undeletes a bucket. A bucket that has been deleted may be undeleted within
- * the grace period of 7 days.
+ * Undeletes a log bucket. A bucket that has been deleted can be undeleted
+ * within the grace period of 7 days.
*
*/
public com.google.protobuf.Empty undeleteBucket(
@@ -2038,7 +2324,7 @@ public com.google.protobuf.Empty undeleteBucket(
*
*
*
- * Lists views on a bucket.
+ * Lists views on a log bucket.
*
*/
public com.google.logging.v2.ListViewsResponse listViews(
@@ -2051,7 +2337,7 @@ public com.google.logging.v2.ListViewsResponse listViews(
*
*
*
- * Gets a view.
+ * Gets a view on a log bucket..
*
*/
public com.google.logging.v2.LogView getView(com.google.logging.v2.GetViewRequest request) {
@@ -2063,8 +2349,8 @@ public com.google.logging.v2.LogView getView(com.google.logging.v2.GetViewReques
*
*
*
- * Creates a view over logs in a bucket. A bucket may contain a maximum of
- * 50 views.
+ * Creates a view over log entries in a log bucket. A bucket may contain a
+ * maximum of 30 views.
*
*/
public com.google.logging.v2.LogView createView(
@@ -2077,8 +2363,11 @@ public com.google.logging.v2.LogView createView(
*
*
*
- * Updates a view. This method replaces the following fields in the existing
- * view with values from the new view: `filter`.
+ * Updates a view on a log bucket. This method replaces the following fields
+ * in the existing view with values from the new view: `filter`.
+ * If an `UNAVAILABLE` error is returned, this indicates that system is not in
+ * a state where it can update the view. If this occurs, please try again in a
+ * few minutes.
*
*/
public com.google.logging.v2.LogView updateView(
@@ -2091,7 +2380,10 @@ public com.google.logging.v2.LogView updateView(
*
*
*
- * Deletes a view from a bucket.
+ * Deletes a view on a log bucket.
+ * If an `UNAVAILABLE` error is returned, this indicates that system is not in
+ * a state where it can delete the view. If this occurs, please try again in a
+ * few minutes.
*
*/
public com.google.protobuf.Empty deleteView(com.google.logging.v2.DeleteViewRequest request) {
@@ -2173,7 +2465,7 @@ public com.google.protobuf.Empty deleteSink(com.google.logging.v2.DeleteSinkRequ
*
*
*
- * Lists all the exclusions in a parent resource.
+ * Lists all the exclusions on the _Default sink in a parent resource.
*
*/
public com.google.logging.v2.ListExclusionsResponse listExclusions(
@@ -2186,7 +2478,7 @@ public com.google.logging.v2.ListExclusionsResponse listExclusions(
*
*
*
- * Gets the description of an exclusion.
+ * Gets the description of an exclusion in the _Default sink.
*
*/
public com.google.logging.v2.LogExclusion getExclusion(
@@ -2199,9 +2491,9 @@ public com.google.logging.v2.LogExclusion getExclusion(
*
*
*
- * Creates a new exclusion in a specified parent resource.
- * Only log entries belonging to that resource can be excluded.
- * You can have up to 10 exclusions in a resource.
+ * Creates a new exclusion in the _Default sink in a specified parent
+ * resource. Only log entries belonging to that resource can be excluded. You
+ * can have up to 10 exclusions in a resource.
*
*/
public com.google.logging.v2.LogExclusion createExclusion(
@@ -2214,7 +2506,8 @@ public com.google.logging.v2.LogExclusion createExclusion(
*
*
*
- * Changes one or more properties of an existing exclusion.
+ * Changes one or more properties of an existing exclusion in the _Default
+ * sink.
*
*/
public com.google.logging.v2.LogExclusion updateExclusion(
@@ -2227,7 +2520,7 @@ public com.google.logging.v2.LogExclusion updateExclusion(
*
*
*
- * Deletes an exclusion.
+ * Deletes an exclusion in the _Default sink.
*
*/
public com.google.protobuf.Empty deleteExclusion(
@@ -2240,11 +2533,12 @@ public com.google.protobuf.Empty deleteExclusion(
*
*
*
- * Gets the Logs Router CMEK settings for the given resource.
- * Note: CMEK for the Logs Router can currently only be configured for GCP
- * organizations. Once configured, it applies to all projects and folders in
- * the GCP organization.
- * See [Enabling CMEK for Logs
+ * Gets the Logging CMEK settings for the given resource.
+ * Note: CMEK for the Log Router can be configured for Google Cloud projects,
+ * folders, organizations and billing accounts. Once configured for an
+ * organization, it applies to all projects and folders in the Google Cloud
+ * organization.
+ * See [Enabling CMEK for Log
* Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
* for more information.
*
@@ -2259,16 +2553,16 @@ public com.google.logging.v2.CmekSettings getCmekSettings(
*
*
*
- * Updates the Logs Router CMEK settings for the given resource.
- * Note: CMEK for the Logs Router can currently only be configured for GCP
- * organizations. Once configured, it applies to all projects and folders in
- * the GCP organization.
+ * Updates the Log Router CMEK settings for the given resource.
+ * Note: CMEK for the Log Router can currently only be configured for Google
+ * Cloud organizations. Once configured, it applies to all projects and
+ * folders in the Google Cloud organization.
* [UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings]
* will fail if 1) `kms_key_name` is invalid, or 2) the associated service
* account does not have the required
* `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or
* 3) access to the key is disabled.
- * See [Enabling CMEK for Logs
+ * See [Enabling CMEK for Log
* Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
* for more information.
*
@@ -2278,6 +2572,64 @@ public com.google.logging.v2.CmekSettings updateCmekSettings(
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateCmekSettingsMethod(), getCallOptions(), request);
}
+
+ /**
+ *
+ *
+ *
+ * Gets the Log Router settings for the given resource.
+ * Note: Settings for the Log Router can be get for Google Cloud projects,
+ * folders, organizations and billing accounts. Currently it can only be
+ * configured for organizations. Once configured for an organization, it
+ * applies to all projects and folders in the Google Cloud organization.
+ * See [Enabling CMEK for Log
+ * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+ * for more information.
+ *
+ */
+ public com.google.logging.v2.Settings getSettings(
+ com.google.logging.v2.GetSettingsRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getGetSettingsMethod(), getCallOptions(), request);
+ }
+
+ /**
+ *
+ *
+ *
+ * Updates the Log Router settings for the given resource.
+ * Note: Settings for the Log Router can currently only be configured for
+ * Google Cloud organizations. Once configured, it applies to all projects and
+ * folders in the Google Cloud organization.
+ * [UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings]
+ * will fail if 1) `kms_key_name` is invalid, or 2) the associated service
+ * account does not have the required
+ * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or
+ * 3) access to the key is disabled. 4) `location_id` is not supported by
+ * Logging. 5) `location_id` violate OrgPolicy.
+ * See [Enabling CMEK for Log
+ * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+ * for more information.
+ *
+ */
+ public com.google.logging.v2.Settings updateSettings(
+ com.google.logging.v2.UpdateSettingsRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getUpdateSettingsMethod(), getCallOptions(), request);
+ }
+
+ /**
+ *
+ *
+ *
+ * Copies a set of log entries from a log bucket to a Cloud Storage bucket.
+ *
+ */
+ public com.google.longrunning.Operation copyLogEntries(
+ com.google.logging.v2.CopyLogEntriesRequest request) {
+ return io.grpc.stub.ClientCalls.blockingUnaryCall(
+ getChannel(), getCopyLogEntriesMethod(), getCallOptions(), request);
+ }
}
/**
@@ -2303,7 +2655,7 @@ protected ConfigServiceV2FutureStub build(
*
*
*
- * Lists buckets.
+ * Lists log buckets.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
@@ -2317,7 +2669,7 @@ protected ConfigServiceV2FutureStub build(
*
*
*
- * Gets a bucket.
+ * Gets a log bucket.
*
*/
public com.google.common.util.concurrent.ListenableFuture
- * Creates a bucket that can be used to store log entries. Once a bucket has
- * been created, the region cannot be changed.
+ * Creates a log bucket that can be used to store log entries. After a bucket
+ * has been created, the bucket's location cannot be changed.
*
*/
public com.google.common.util.concurrent.ListenableFuture
- * Updates a bucket. This method replaces the following fields in the
+ * Updates a log bucket. This method replaces the following fields in the
* existing bucket with values from the new bucket: `retention_period`
* If the retention period is decreased and the bucket is locked,
- * FAILED_PRECONDITION will be returned.
- * If the bucket has a LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION
- * will be returned.
- * A buckets region may not be modified after it is created.
+ * `FAILED_PRECONDITION` will be returned.
+ * If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then
+ * `FAILED_PRECONDITION` will be returned.
+ * After a bucket has been created, the bucket's location cannot be changed.
*
*/
public com.google.common.util.concurrent.ListenableFuture
- * Deletes a bucket.
- * Moves the bucket to the DELETE_REQUESTED state. After 7 days, the
- * bucket will be purged and all logs in the bucket will be permanently
- * deleted.
+ * Deletes a log bucket.
+ * Changes the bucket's `lifecycle_state` to the `DELETE_REQUESTED` state.
+ * After 7 days, the bucket will be purged and all log entries in the bucket
+ * will be permanently deleted.
*
*/
public com.google.common.util.concurrent.ListenableFuture
- * Undeletes a bucket. A bucket that has been deleted may be undeleted within
- * the grace period of 7 days.
+ * Undeletes a log bucket. A bucket that has been deleted can be undeleted
+ * within the grace period of 7 days.
*
*/
public com.google.common.util.concurrent.ListenableFuture
- * Lists views on a bucket.
+ * Lists views on a log bucket.
*
*/
public com.google.common.util.concurrent.ListenableFuture<
@@ -2407,7 +2759,7 @@ protected ConfigServiceV2FutureStub build(
*
*
*
- * Gets a view.
+ * Gets a view on a log bucket..
*
*/
public com.google.common.util.concurrent.ListenableFuture
- * Creates a view over logs in a bucket. A bucket may contain a maximum of
- * 50 views.
+ * Creates a view over log entries in a log bucket. A bucket may contain a
+ * maximum of 30 views.
*
*/
public com.google.common.util.concurrent.ListenableFuture
- * Updates a view. This method replaces the following fields in the existing
- * view with values from the new view: `filter`.
+ * Updates a view on a log bucket. This method replaces the following fields
+ * in the existing view with values from the new view: `filter`.
+ * If an `UNAVAILABLE` error is returned, this indicates that system is not in
+ * a state where it can update the view. If this occurs, please try again in a
+ * few minutes.
*
*/
public com.google.common.util.concurrent.ListenableFuture
- * Deletes a view from a bucket.
+ * Deletes a view on a log bucket.
+ * If an `UNAVAILABLE` error is returned, this indicates that system is not in
+ * a state where it can delete the view. If this occurs, please try again in a
+ * few minutes.
*
*/
public com.google.common.util.concurrent.ListenableFuture
+ * Updates the Log Router settings for the given resource.
+ * Note: Settings for the Log Router can currently only be configured for
+ * Google Cloud organizations. Once configured, it applies to all projects and
+ * folders in the Google Cloud organization.
+ * [UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings]
+ * will fail if 1) `kms_key_name` is invalid, or 2) the associated service
+ * account does not have the required
+ * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or
+ * 3) access to the key is disabled. 4) `location_id` is not supported by
+ * Logging. 5) `location_id` violate OrgPolicy.
+ * See [Enabling CMEK for Log
+ * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+ * for more information.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture
+ * Copies a set of log entries from a log bucket to a Cloud Storage bucket.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture
- * Deletes all the log entries in a log. The log reappears if it receives new
- * entries. Log entries written shortly before the delete operation might not
- * be deleted. Entries received after the delete operation with a timestamp
- * before the operation will be deleted.
+ * Deletes all the log entries in a log for the _Default Log Bucket. The log
+ * reappears if it receives new entries. Log entries written shortly before
+ * the delete operation might not be deleted. Entries received after the
+ * delete operation with a timestamp before the operation will be deleted.
*
*/
public void deleteLog(
@@ -518,10 +518,10 @@ protected LoggingServiceV2Stub build(io.grpc.Channel channel, io.grpc.CallOption
*
*
*
- * Deletes all the log entries in a log. The log reappears if it receives new
- * entries. Log entries written shortly before the delete operation might not
- * be deleted. Entries received after the delete operation with a timestamp
- * before the operation will be deleted.
+ * Deletes all the log entries in a log for the _Default Log Bucket. The log
+ * reappears if it receives new entries. Log entries written shortly before
+ * the delete operation might not be deleted. Entries received after the
+ * delete operation with a timestamp before the operation will be deleted.
*
*/
public void deleteLog(
@@ -645,10 +645,10 @@ protected LoggingServiceV2BlockingStub build(
*
*
*
- * Deletes all the log entries in a log. The log reappears if it receives new
- * entries. Log entries written shortly before the delete operation might not
- * be deleted. Entries received after the delete operation with a timestamp
- * before the operation will be deleted.
+ * Deletes all the log entries in a log for the _Default Log Bucket. The log
+ * reappears if it receives new entries. Log entries written shortly before
+ * the delete operation might not be deleted. Entries received after the
+ * delete operation with a timestamp before the operation will be deleted.
*
*/
public com.google.protobuf.Empty deleteLog(com.google.logging.v2.DeleteLogRequest request) {
@@ -743,10 +743,10 @@ protected LoggingServiceV2FutureStub build(
*
*
*
- * Deletes all the log entries in a log. The log reappears if it receives new
- * entries. Log entries written shortly before the delete operation might not
- * be deleted. Entries received after the delete operation with a timestamp
- * before the operation will be deleted.
+ * Deletes all the log entries in a log for the _Default Log Bucket. The log
+ * reappears if it receives new entries. Log entries written shortly before
+ * the delete operation might not be deleted. Entries received after the
+ * delete operation with a timestamp before the operation will be deleted.
*
*/
public com.google.common.util.concurrent.ListenableFuture
* Optional. Whether to use [BigQuery's partition
* tables](https://cloud.google.com/bigquery/docs/partitioned-tables). By
- * default, Logging creates dated tables based on the log entries' timestamps,
- * e.g. syslog_20170523. With partitioned tables the date suffix is no longer
- * present and [special query
+ * default, Cloud Logging creates dated tables based on the log entries'
+ * timestamps, e.g. syslog_20170523. With partitioned tables the date suffix
+ * is no longer present and [special query
* syntax](https://cloud.google.com/bigquery/docs/querying-partitioned-tables)
* has to be used instead. In both cases, tables are sharded based on UTC
* timezone.
@@ -143,8 +143,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
@@ -501,9 +501,9 @@ public Builder mergeFrom(
*
@@ -109,14 +111,14 @@ public interface CmekSettingsOrBuilder
*
*
*
* Optional. Whether to use [BigQuery's partition
* tables](https://cloud.google.com/bigquery/docs/partitioned-tables). By
- * default, Logging creates dated tables based on the log entries' timestamps,
- * e.g. syslog_20170523. With partitioned tables the date suffix is no longer
- * present and [special query
+ * default, Cloud Logging creates dated tables based on the log entries'
+ * timestamps, e.g. syslog_20170523. With partitioned tables the date suffix
+ * is no longer present and [special query
* syntax](https://cloud.google.com/bigquery/docs/querying-partitioned-tables)
* has to be used instead. In both cases, tables are sharded based on UTC
* timezone.
@@ -523,9 +523,9 @@ public boolean getUsePartitionedTables() {
*
@@ -84,17 +85,18 @@ public interface CmekSettingsOrBuilder
* KMS key name format:
* "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
* For example:
- * `"projects/my-project-id/locations/my-region/keyRings/key-ring-name/cryptoKeys/key-name"`
- * To enable CMEK for the Logs Router, set this field to a valid
+ * `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key"`
+ * To enable CMEK for the Log Router, set this field to a valid
* `kms_key_name` for which the associated service account has the required
- * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key.
+ * cloudkms.cryptoKeyEncrypterDecrypter roles assigned for the key.
* The Cloud KMS key used by the Log Router can be updated by changing the
- * `kms_key_name` to a new valid key name. Encryption operations that are in
- * progress will be completed with the key that was in use when they started.
- * Decryption operations will be completed using the key that was used at the
- * time of encryption unless access to that key has been revoked.
- * To disable CMEK for the Logs Router, set this field to an empty string.
- * See [Enabling CMEK for Logs
+ * `kms_key_name` to a new valid key name or disabled by setting the key name
+ * to an empty string. Encryption operations that are in progress will be
+ * completed with the key that was in use when they started. Decryption
+ * operations will be completed using the key that was used at the time of
+ * encryption unless access to that key has been revoked.
+ * To disable CMEK for the Log Router, set this field to an empty string.
+ * See [Enabling CMEK for Log
* Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
* for more information.
*
* Optional. Whether to use [BigQuery's partition
* tables](https://cloud.google.com/bigquery/docs/partitioned-tables). By
- * default, Logging creates dated tables based on the log entries' timestamps,
- * e.g. syslog_20170523. With partitioned tables the date suffix is no longer
- * present and [special query
+ * default, Cloud Logging creates dated tables based on the log entries'
+ * timestamps, e.g. syslog_20170523. With partitioned tables the date suffix
+ * is no longer present and [special query
* syntax](https://cloud.google.com/bigquery/docs/querying-partitioned-tables)
* has to be used instead. In both cases, tables are sharded based on UTC
* timezone.
@@ -548,9 +548,9 @@ public Builder setUsePartitionedTables(boolean value) {
*
@@ -980,14 +987,14 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) {
*
*
*
* Optional. Whether to use [BigQuery's partition
* tables](https://cloud.google.com/bigquery/docs/partitioned-tables). By
- * default, Logging creates dated tables based on the log entries' timestamps,
- * e.g. syslog_20170523. With partitioned tables the date suffix is no longer
- * present and [special query
+ * default, Cloud Logging creates dated tables based on the log entries'
+ * timestamps, e.g. syslog_20170523. With partitioned tables the date suffix
+ * is no longer present and [special query
* syntax](https://cloud.google.com/bigquery/docs/querying-partitioned-tables)
* has to be used instead. In both cases, tables are sharded based on UTC
* timezone.
@@ -572,8 +572,8 @@ public Builder clearUsePartitionedTables() {
*
*
*
@@ -944,17 +950,18 @@ public Builder clearKmsKeyName() {
* KMS key name format:
* "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
* For example:
- * `"projects/my-project-id/locations/my-region/keyRings/key-ring-name/cryptoKeys/key-name"`
- * To enable CMEK for the Logs Router, set this field to a valid
+ * `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key"`
+ * To enable CMEK for the Log Router, set this field to a valid
* `kms_key_name` for which the associated service account has the required
- * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key.
+ * cloudkms.cryptoKeyEncrypterDecrypter roles assigned for the key.
* The Cloud KMS key used by the Log Router can be updated by changing the
- * `kms_key_name` to a new valid key name. Encryption operations that are in
- * progress will be completed with the key that was in use when they started.
- * Decryption operations will be completed using the key that was used at the
- * time of encryption unless access to that key has been revoked.
- * To disable CMEK for the Logs Router, set this field to an empty string.
- * See [Enabling CMEK for Logs
+ * `kms_key_name` to a new valid key name or disabled by setting the key name
+ * to an empty string. Encryption operations that are in progress will be
+ * completed with the key that was in use when they started. Decryption
+ * operations will be completed using the key that was used at the time of
+ * encryption unless access to that key has been revoked.
+ * To disable CMEK for the Log Router, set this field to an empty string.
+ * See [Enabling CMEK for Log
* Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
* for more information.
*
- * 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
@@ -594,8 +594,8 @@ public boolean getUsesTimestampColumnPartitioning() {
*
*
*
@@ -911,17 +916,18 @@ public Builder setKmsKeyName(java.lang.String value) {
* KMS key name format:
* "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
* For example:
- * `"projects/my-project-id/locations/my-region/keyRings/key-ring-name/cryptoKeys/key-name"`
- * To enable CMEK for the Logs Router, set this field to a valid
+ * `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key"`
+ * To enable CMEK for the Log Router, set this field to a valid
* `kms_key_name` for which the associated service account has the required
- * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key.
+ * cloudkms.cryptoKeyEncrypterDecrypter roles assigned for the key.
* The Cloud KMS key used by the Log Router can be updated by changing the
- * `kms_key_name` to a new valid key name. Encryption operations that are in
- * progress will be completed with the key that was in use when they started.
- * Decryption operations will be completed using the key that was used at the
- * time of encryption unless access to that key has been revoked.
- * To disable CMEK for the Logs Router, set this field to an empty string.
- * See [Enabling CMEK for Logs
+ * `kms_key_name` to a new valid key name or disabled by setting the key name
+ * to an empty string. Encryption operations that are in progress will be
+ * completed with the key that was in use when they started. Decryption
+ * operations will be completed using the key that was used at the time of
+ * encryption unless access to that key has been revoked.
+ * To disable CMEK for the Log Router, set this field to an empty string.
+ * See [Enabling CMEK for Log
* Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
* for more information.
*
- * 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
@@ -619,8 +619,8 @@ public Builder setUsesTimestampColumnPartitioning(boolean value) {
*
*
*
@@ -874,17 +878,18 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
* KMS key name format:
* "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
* For example:
- * `"projects/my-project-id/locations/my-region/keyRings/key-ring-name/cryptoKeys/key-name"`
- * To enable CMEK for the Logs Router, set this field to a valid
+ * `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key"`
+ * To enable CMEK for the Log Router, set this field to a valid
* `kms_key_name` for which the associated service account has the required
- * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key.
+ * cloudkms.cryptoKeyEncrypterDecrypter roles assigned for the key.
* The Cloud KMS key used by the Log Router can be updated by changing the
- * `kms_key_name` to a new valid key name. Encryption operations that are in
- * progress will be completed with the key that was in use when they started.
- * Decryption operations will be completed using the key that was used at the
- * time of encryption unless access to that key has been revoked.
- * To disable CMEK for the Logs Router, set this field to an empty string.
- * See [Enabling CMEK for Logs
+ * `kms_key_name` to a new valid key name or disabled by setting the key name
+ * to an empty string. Encryption operations that are in progress will be
+ * completed with the key that was in use when they started. Decryption
+ * operations will be completed using the key that was used at the time of
+ * encryption unless access to that key has been revoked.
+ * To disable CMEK for the Log Router, set this field to an empty string.
+ * See [Enabling CMEK for Log
* Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
* for more information.
*
- * 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 87143a591..65f52f765 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
@@ -29,9 +29,9 @@ public interface BigQueryOptionsOrBuilder
*
@@ -836,17 +839,18 @@ public java.lang.String getKmsKeyName() {
* KMS key name format:
* "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
* For example:
- * `"projects/my-project-id/locations/my-region/keyRings/key-ring-name/cryptoKeys/key-name"`
- * To enable CMEK for the Logs Router, set this field to a valid
+ * `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key"`
+ * To enable CMEK for the Log Router, set this field to a valid
* `kms_key_name` for which the associated service account has the required
- * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key.
+ * cloudkms.cryptoKeyEncrypterDecrypter roles assigned for the key.
* The Cloud KMS key used by the Log Router can be updated by changing the
- * `kms_key_name` to a new valid key name. Encryption operations that are in
- * progress will be completed with the key that was in use when they started.
- * Decryption operations will be completed using the key that was used at the
- * time of encryption unless access to that key has been revoked.
- * To disable CMEK for the Logs Router, set this field to an empty string.
- * See [Enabling CMEK for Logs
+ * `kms_key_name` to a new valid key name or disabled by setting the key name
+ * to an empty string. Encryption operations that are in progress will be
+ * completed with the key that was in use when they started. Decryption
+ * operations will be completed using the key that was used at the time of
+ * encryption unless access to that key has been revoked.
+ * To disable CMEK for the Log Router, set this field to an empty string.
+ * See [Enabling CMEK for Log
* Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
* for more information.
*
* Optional. Whether to use [BigQuery's partition
* tables](https://cloud.google.com/bigquery/docs/partitioned-tables). By
- * default, Logging creates dated tables based on the log entries' timestamps,
- * e.g. syslog_20170523. With partitioned tables the date suffix is no longer
- * present and [special query
+ * default, Cloud Logging creates dated tables based on the log entries'
+ * timestamps, e.g. syslog_20170523. With partitioned tables the date suffix
+ * is no longer present and [special query
* syntax](https://cloud.google.com/bigquery/docs/querying-partitioned-tables)
* has to be used instead. In both cases, tables are sharded based on UTC
* timezone.
@@ -47,8 +47,8 @@ public interface BigQueryOptionsOrBuilder
*
*
*
@@ -270,14 +272,14 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() {
*
*
*
- * 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/CmekSettings.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettings.java
index e5667b6ab..f385e76ed 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
@@ -24,10 +24,10 @@
*
@@ -232,17 +233,18 @@ public java.lang.String getKmsKeyName() {
* KMS key name format:
* "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
* For example:
- * `"projects/my-project-id/locations/my-region/keyRings/key-ring-name/cryptoKeys/key-name"`
- * To enable CMEK for the Logs Router, set this field to a valid
+ * `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key"`
+ * To enable CMEK for the Log Router, set this field to a valid
* `kms_key_name` for which the associated service account has the required
- * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key.
+ * cloudkms.cryptoKeyEncrypterDecrypter roles assigned for the key.
* The Cloud KMS key used by the Log Router can be updated by changing the
- * `kms_key_name` to a new valid key name. Encryption operations that are in
- * progress will be completed with the key that was in use when they started.
- * Decryption operations will be completed using the key that was used at the
- * time of encryption unless access to that key has been revoked.
- * To disable CMEK for the Logs Router, set this field to an empty string.
- * See [Enabling CMEK for Logs
+ * `kms_key_name` to a new valid key name or disabled by setting the key name
+ * to an empty string. Encryption operations that are in progress will be
+ * completed with the key that was in use when they started. Decryption
+ * operations will be completed using the key that was used at the time of
+ * encryption unless access to that key has been revoked.
+ * To disable CMEK for the Log Router, set this field to an empty string.
+ * See [Enabling CMEK for Log
* Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
* for more information.
*
* Describes the customer-managed encryption key (CMEK) settings associated with
* a project, folder, organization, billing account, or flexible resource.
- * Note: CMEK for the Logs Router can currently only be configured for GCP
- * organizations. Once configured, it applies to all projects and folders in the
- * GCP organization.
- * See [Enabling CMEK for Logs
+ * Note: CMEK for the Log Router can currently only be configured for Google
+ * Cloud organizations. Once configured, it applies to all projects and folders
+ * in the Google Cloud organization.
+ * See [Enabling CMEK for Log
* Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for
* more information.
*
@@ -193,17 +193,18 @@ public com.google.protobuf.ByteString getNameBytes() {
* KMS key name format:
* "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
* For example:
- * `"projects/my-project-id/locations/my-region/keyRings/key-ring-name/cryptoKeys/key-name"`
- * To enable CMEK for the Logs Router, set this field to a valid
+ * `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key"`
+ * To enable CMEK for the Log Router, set this field to a valid
* `kms_key_name` for which the associated service account has the required
- * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key.
+ * cloudkms.cryptoKeyEncrypterDecrypter roles assigned for the key.
* The Cloud KMS key used by the Log Router can be updated by changing the
- * `kms_key_name` to a new valid key name. Encryption operations that are in
- * progress will be completed with the key that was in use when they started.
- * Decryption operations will be completed using the key that was used at the
- * time of encryption unless access to that key has been revoked.
- * To disable CMEK for the Logs Router, set this field to an empty string.
- * See [Enabling CMEK for Logs
+ * `kms_key_name` to a new valid key name or disabled by setting the key name
+ * to an empty string. Encryption operations that are in progress will be
+ * completed with the key that was in use when they started. Decryption
+ * operations will be completed using the key that was used at the time of
+ * encryption unless access to that key has been revoked.
+ * To disable CMEK for the Log Router, set this field to an empty string.
+ * See [Enabling CMEK for Log
* Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
* for more information.
*
- * Output only. The service account that will be used by the Logs Router to access your
+ * Output only. The service account that will be used by the Log Router to access your
* Cloud KMS key.
- * Before enabling CMEK for Logs Router, you must first assign the role
- * `roles/cloudkms.cryptoKeyEncrypterDecrypter` to the service account that
- * the Logs Router will use to access your Cloud KMS key. Use
+ * Before enabling CMEK for Log Router, you must first assign the
+ * cloudkms.cryptoKeyEncrypterDecrypter role to the service account that
+ * the Log Router will use to access your Cloud KMS key. Use
* [GetCmekSettings][google.logging.v2.ConfigServiceV2.GetCmekSettings] to
* obtain the service account ID.
- * See [Enabling CMEK for Logs
+ * See [Enabling CMEK for Log
* Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
* for more information.
*
@@ -302,14 +304,14 @@ public java.lang.String getServiceAccountId() {
*
*
*
- * Output only. The service account that will be used by the Logs Router to access your
+ * Output only. The service account that will be used by the Log Router to access your
* Cloud KMS key.
- * Before enabling CMEK for Logs Router, you must first assign the role
- * `roles/cloudkms.cryptoKeyEncrypterDecrypter` to the service account that
- * the Logs Router will use to access your Cloud KMS key. Use
+ * Before enabling CMEK for Log Router, you must first assign the
+ * cloudkms.cryptoKeyEncrypterDecrypter role to the service account that
+ * the Log Router will use to access your Cloud KMS key. Use
* [GetCmekSettings][google.logging.v2.ConfigServiceV2.GetCmekSettings] to
* obtain the service account ID.
- * See [Enabling CMEK for Logs
+ * See [Enabling CMEK for Log
* Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
* for more information.
*
@@ -512,10 +514,10 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
* Describes the customer-managed encryption key (CMEK) settings associated with
* a project, folder, organization, billing account, or flexible resource.
- * Note: CMEK for the Logs Router can currently only be configured for GCP
- * organizations. Once configured, it applies to all projects and folders in the
- * GCP organization.
- * See [Enabling CMEK for Logs
+ * Note: CMEK for the Log Router can currently only be configured for Google
+ * Cloud organizations. Once configured, it applies to all projects and folders
+ * in the Google Cloud organization.
+ * See [Enabling CMEK for Log
* Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for
* more information.
*
@@ -798,17 +800,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
* KMS key name format:
* "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
* For example:
- * `"projects/my-project-id/locations/my-region/keyRings/key-ring-name/cryptoKeys/key-name"`
- * To enable CMEK for the Logs Router, set this field to a valid
+ * `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key"`
+ * To enable CMEK for the Log Router, set this field to a valid
* `kms_key_name` for which the associated service account has the required
- * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key.
+ * cloudkms.cryptoKeyEncrypterDecrypter roles assigned for the key.
* The Cloud KMS key used by the Log Router can be updated by changing the
- * `kms_key_name` to a new valid key name. Encryption operations that are in
- * progress will be completed with the key that was in use when they started.
- * Decryption operations will be completed using the key that was used at the
- * time of encryption unless access to that key has been revoked.
- * To disable CMEK for the Logs Router, set this field to an empty string.
- * See [Enabling CMEK for Logs
+ * `kms_key_name` to a new valid key name or disabled by setting the key name
+ * to an empty string. Encryption operations that are in progress will be
+ * completed with the key that was in use when they started. Decryption
+ * operations will be completed using the key that was used at the time of
+ * encryption unless access to that key has been revoked.
+ * To disable CMEK for the Log Router, set this field to an empty string.
+ * See [Enabling CMEK for Log
* Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
* for more information.
*
- * Output only. The service account that will be used by the Logs Router to access your
+ * Output only. The service account that will be used by the Log Router to access your
* Cloud KMS key.
- * Before enabling CMEK for Logs Router, you must first assign the role
- * `roles/cloudkms.cryptoKeyEncrypterDecrypter` to the service account that
- * the Logs Router will use to access your Cloud KMS key. Use
+ * Before enabling CMEK for Log Router, you must first assign the
+ * cloudkms.cryptoKeyEncrypterDecrypter role to the service account that
+ * the Log Router will use to access your Cloud KMS key. Use
* [GetCmekSettings][google.logging.v2.ConfigServiceV2.GetCmekSettings] to
* obtain the service account ID.
- * See [Enabling CMEK for Logs
+ * See [Enabling CMEK for Log
* Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
* for more information.
*
@@ -1011,14 +1018,14 @@ public java.lang.String getServiceAccountId() {
*
*
*
- * Output only. The service account that will be used by the Logs Router to access your
+ * Output only. The service account that will be used by the Log Router to access your
* Cloud KMS key.
- * Before enabling CMEK for Logs Router, you must first assign the role
- * `roles/cloudkms.cryptoKeyEncrypterDecrypter` to the service account that
- * the Logs Router will use to access your Cloud KMS key. Use
+ * Before enabling CMEK for Log Router, you must first assign the
+ * cloudkms.cryptoKeyEncrypterDecrypter role to the service account that
+ * the Log Router will use to access your Cloud KMS key. Use
* [GetCmekSettings][google.logging.v2.ConfigServiceV2.GetCmekSettings] to
* obtain the service account ID.
- * See [Enabling CMEK for Logs
+ * See [Enabling CMEK for Log
* Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
* for more information.
*
@@ -1042,14 +1049,14 @@ public com.google.protobuf.ByteString getServiceAccountIdBytes() {
*
*
*
- * Output only. The service account that will be used by the Logs Router to access your
+ * Output only. The service account that will be used by the Log Router to access your
* Cloud KMS key.
- * Before enabling CMEK for Logs Router, you must first assign the role
- * `roles/cloudkms.cryptoKeyEncrypterDecrypter` to the service account that
- * the Logs Router will use to access your Cloud KMS key. Use
+ * Before enabling CMEK for Log Router, you must first assign the
+ * cloudkms.cryptoKeyEncrypterDecrypter role to the service account that
+ * the Log Router will use to access your Cloud KMS key. Use
* [GetCmekSettings][google.logging.v2.ConfigServiceV2.GetCmekSettings] to
* obtain the service account ID.
- * See [Enabling CMEK for Logs
+ * See [Enabling CMEK for Log
* Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
* for more information.
*
@@ -1072,14 +1079,14 @@ public Builder setServiceAccountId(java.lang.String value) {
*
*
*
- * Output only. The service account that will be used by the Logs Router to access your
+ * Output only. The service account that will be used by the Log Router to access your
* Cloud KMS key.
- * Before enabling CMEK for Logs Router, you must first assign the role
- * `roles/cloudkms.cryptoKeyEncrypterDecrypter` to the service account that
- * the Logs Router will use to access your Cloud KMS key. Use
+ * Before enabling CMEK for Log Router, you must first assign the
+ * cloudkms.cryptoKeyEncrypterDecrypter role to the service account that
+ * the Log Router will use to access your Cloud KMS key. Use
* [GetCmekSettings][google.logging.v2.ConfigServiceV2.GetCmekSettings] to
* obtain the service account ID.
- * See [Enabling CMEK for Logs
+ * See [Enabling CMEK for Log
* Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
* for more information.
*
@@ -1098,14 +1105,14 @@ public Builder clearServiceAccountId() {
*
*
*
- * Output only. The service account that will be used by the Logs Router to access your
+ * Output only. The service account that will be used by the Log Router to access your
* Cloud KMS key.
- * Before enabling CMEK for Logs Router, you must first assign the role
- * `roles/cloudkms.cryptoKeyEncrypterDecrypter` to the service account that
- * the Logs Router will use to access your Cloud KMS key. Use
+ * Before enabling CMEK for Log Router, you must first assign the
+ * cloudkms.cryptoKeyEncrypterDecrypter role to the service account that
+ * the Log Router will use to access your Cloud KMS key. Use
* [GetCmekSettings][google.logging.v2.ConfigServiceV2.GetCmekSettings] to
* obtain the service account ID.
- * See [Enabling CMEK for Logs
+ * See [Enabling CMEK for Log
* Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
* for more information.
*
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 19d657c53..d485be213 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
@@ -56,17 +56,18 @@ public interface CmekSettingsOrBuilder
* KMS key name format:
* "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
* For example:
- * `"projects/my-project-id/locations/my-region/keyRings/key-ring-name/cryptoKeys/key-name"`
- * To enable CMEK for the Logs Router, set this field to a valid
+ * `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key"`
+ * To enable CMEK for the Log Router, set this field to a valid
* `kms_key_name` for which the associated service account has the required
- * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key.
+ * cloudkms.cryptoKeyEncrypterDecrypter roles assigned for the key.
* The Cloud KMS key used by the Log Router can be updated by changing the
- * `kms_key_name` to a new valid key name. Encryption operations that are in
- * progress will be completed with the key that was in use when they started.
- * Decryption operations will be completed using the key that was used at the
- * time of encryption unless access to that key has been revoked.
- * To disable CMEK for the Logs Router, set this field to an empty string.
- * See [Enabling CMEK for Logs
+ * `kms_key_name` to a new valid key name or disabled by setting the key name
+ * to an empty string. Encryption operations that are in progress will be
+ * completed with the key that was in use when they started. Decryption
+ * operations will be completed using the key that was used at the time of
+ * encryption unless access to that key has been revoked.
+ * To disable CMEK for the Log Router, set this field to an empty string.
+ * See [Enabling CMEK for Log
* Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
* for more information.
*
- * Output only. The service account that will be used by the Logs Router to access your
+ * Output only. The service account that will be used by the Log Router to access your
* Cloud KMS key.
- * Before enabling CMEK for Logs Router, you must first assign the role
- * `roles/cloudkms.cryptoKeyEncrypterDecrypter` to the service account that
- * the Logs Router will use to access your Cloud KMS key. Use
+ * Before enabling CMEK for Log Router, you must first assign the
+ * cloudkms.cryptoKeyEncrypterDecrypter role to the service account that
+ * the Log Router will use to access your Cloud KMS key. Use
* [GetCmekSettings][google.logging.v2.ConfigServiceV2.GetCmekSettings] to
* obtain the service account ID.
- * See [Enabling CMEK for Logs
+ * See [Enabling CMEK for Log
* Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
* for more information.
*
@@ -130,14 +132,14 @@ public interface CmekSettingsOrBuilder
*
*
*
- * Output only. The service account that will be used by the Logs Router to access your
+ * Output only. The service account that will be used by the Log Router to access your
* Cloud KMS key.
- * Before enabling CMEK for Logs Router, you must first assign the role
- * `roles/cloudkms.cryptoKeyEncrypterDecrypter` to the service account that
- * the Logs Router will use to access your Cloud KMS key. Use
+ * Before enabling CMEK for Log Router, you must first assign the
+ * cloudkms.cryptoKeyEncrypterDecrypter role to the service account that
+ * the Log Router will use to access your Cloud KMS key. Use
* [GetCmekSettings][google.logging.v2.ConfigServiceV2.GetCmekSettings] to
* obtain the service account ID.
- * See [Enabling CMEK for Logs
+ * See [Enabling CMEK for Log
* Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
* for more information.
*
diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadata.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadata.java
new file mode 100644
index 000000000..83d5fad9c
--- /dev/null
+++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadata.java
@@ -0,0 +1,1805 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/logging/v2/logging_config.proto
+
+package com.google.logging.v2;
+
+/**
+ *
+ *
+ *
+ * Metadata for CopyLogEntries long running operations.
+ *
+ *
+ * Protobuf type {@code google.logging.v2.CopyLogEntriesMetadata}
+ */
+public final class CopyLogEntriesMetadata extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.logging.v2.CopyLogEntriesMetadata)
+ CopyLogEntriesMetadataOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use CopyLogEntriesMetadata.newBuilder() to construct.
+ private CopyLogEntriesMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private CopyLogEntriesMetadata() {
+ state_ = 0;
+ writerIdentity_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new CopyLogEntriesMetadata();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private CopyLogEntriesMetadata(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ com.google.protobuf.Timestamp.Builder subBuilder = null;
+ if (startTime_ != null) {
+ subBuilder = startTime_.toBuilder();
+ }
+ startTime_ =
+ input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(startTime_);
+ startTime_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 18:
+ {
+ com.google.protobuf.Timestamp.Builder subBuilder = null;
+ if (endTime_ != null) {
+ subBuilder = endTime_.toBuilder();
+ }
+ endTime_ =
+ input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(endTime_);
+ endTime_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 24:
+ {
+ int rawValue = input.readEnum();
+
+ state_ = rawValue;
+ break;
+ }
+ case 32:
+ {
+ cancellationRequested_ = input.readBool();
+ break;
+ }
+ case 42:
+ {
+ com.google.logging.v2.CopyLogEntriesRequest.Builder subBuilder = null;
+ if (request_ != null) {
+ subBuilder = request_.toBuilder();
+ }
+ request_ =
+ input.readMessage(
+ com.google.logging.v2.CopyLogEntriesRequest.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(request_);
+ request_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 48:
+ {
+ progress_ = input.readInt32();
+ break;
+ }
+ case 58:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ writerIdentity_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.logging.v2.LoggingConfigProto
+ .internal_static_google_logging_v2_CopyLogEntriesMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.logging.v2.LoggingConfigProto
+ .internal_static_google_logging_v2_CopyLogEntriesMetadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.logging.v2.CopyLogEntriesMetadata.class,
+ com.google.logging.v2.CopyLogEntriesMetadata.Builder.class);
+ }
+
+ public static final int START_TIME_FIELD_NUMBER = 1;
+ private com.google.protobuf.Timestamp startTime_;
+ /**
+ *
+ *
+ *
+ * The create time of an operation.
+ *
+ *
+ * .google.protobuf.Timestamp start_time = 1;
+ *
+ * @return Whether the startTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasStartTime() {
+ return startTime_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The create time of an operation.
+ *
+ *
+ * .google.protobuf.Timestamp start_time = 1;
+ *
+ * @return The startTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getStartTime() {
+ return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+ }
+ /**
+ *
+ *
+ *
+ * The create time of an operation.
+ *
+ *
+ * .google.protobuf.Timestamp start_time = 1;
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
+ return getStartTime();
+ }
+
+ public static final int END_TIME_FIELD_NUMBER = 2;
+ private com.google.protobuf.Timestamp endTime_;
+ /**
+ *
+ *
+ *
+ * The end time of an operation.
+ *
+ *
+ * .google.protobuf.Timestamp end_time = 2;
+ *
+ * @return Whether the endTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasEndTime() {
+ return endTime_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The end time of an operation.
+ *
+ *
+ * .google.protobuf.Timestamp end_time = 2;
+ *
+ * @return The endTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getEndTime() {
+ return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+ }
+ /**
+ *
+ *
+ *
+ * The end time of an operation.
+ *
+ *
+ * .google.protobuf.Timestamp end_time = 2;
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
+ return getEndTime();
+ }
+
+ public static final int STATE_FIELD_NUMBER = 3;
+ private int state_;
+ /**
+ *
+ *
+ *
+ * State of an operation.
+ *
+ *
+ * .google.logging.v2.OperationState state = 3;
+ *
+ * @return The enum numeric value on the wire for state.
+ */
+ @java.lang.Override
+ public int getStateValue() {
+ return state_;
+ }
+ /**
+ *
+ *
+ *
+ * State of an operation.
+ *
+ *
+ * .google.logging.v2.OperationState state = 3;
+ *
+ * @return The state.
+ */
+ @java.lang.Override
+ public com.google.logging.v2.OperationState getState() {
+ @SuppressWarnings("deprecation")
+ com.google.logging.v2.OperationState result =
+ com.google.logging.v2.OperationState.valueOf(state_);
+ return result == null ? com.google.logging.v2.OperationState.UNRECOGNIZED : result;
+ }
+
+ public static final int CANCELLATION_REQUESTED_FIELD_NUMBER = 4;
+ private boolean cancellationRequested_;
+ /**
+ *
+ *
+ *
+ * Identifies whether the user has requested cancellation of the operation.
+ *
+ *
+ * bool cancellation_requested = 4;
+ *
+ * @return The cancellationRequested.
+ */
+ @java.lang.Override
+ public boolean getCancellationRequested() {
+ return cancellationRequested_;
+ }
+
+ public static final int REQUEST_FIELD_NUMBER = 5;
+ private com.google.logging.v2.CopyLogEntriesRequest request_;
+ /**
+ *
+ *
+ *
+ * CopyLogEntries RPC request.
+ *
+ *
+ * .google.logging.v2.CopyLogEntriesRequest request = 5;
+ *
+ * @return Whether the request field is set.
+ */
+ @java.lang.Override
+ public boolean hasRequest() {
+ return request_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * CopyLogEntries RPC request.
+ *
+ *
+ * .google.logging.v2.CopyLogEntriesRequest request = 5;
+ *
+ * @return The request.
+ */
+ @java.lang.Override
+ public com.google.logging.v2.CopyLogEntriesRequest getRequest() {
+ return request_ == null
+ ? com.google.logging.v2.CopyLogEntriesRequest.getDefaultInstance()
+ : request_;
+ }
+ /**
+ *
+ *
+ *
+ * CopyLogEntries RPC request.
+ *
+ *
+ * .google.logging.v2.CopyLogEntriesRequest request = 5;
+ */
+ @java.lang.Override
+ public com.google.logging.v2.CopyLogEntriesRequestOrBuilder getRequestOrBuilder() {
+ return getRequest();
+ }
+
+ public static final int PROGRESS_FIELD_NUMBER = 6;
+ private int progress_;
+ /**
+ *
+ *
+ *
+ * Estimated progress of the operation (0 - 100%).
+ *
+ *
+ * int32 progress = 6;
+ *
+ * @return The progress.
+ */
+ @java.lang.Override
+ public int getProgress() {
+ return progress_;
+ }
+
+ public static final int WRITER_IDENTITY_FIELD_NUMBER = 7;
+ private volatile java.lang.Object writerIdentity_;
+ /**
+ *
+ *
+ *
+ * The IAM identity of a service account that must be granted access to the
+ * destination.
+ * If the service account is not granted permission to the destination within
+ * an hour, the operation will be cancelled.
+ * For example: `"serviceAccount:foo@bar.com"`
+ *
+ *
+ * string writer_identity = 7;
+ *
+ * @return The writerIdentity.
+ */
+ @java.lang.Override
+ public java.lang.String getWriterIdentity() {
+ java.lang.Object ref = writerIdentity_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ writerIdentity_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The IAM identity of a service account that must be granted access to the
+ * destination.
+ * If the service account is not granted permission to the destination within
+ * an hour, the operation will be cancelled.
+ * For example: `"serviceAccount:foo@bar.com"`
+ *
+ *
+ * string writer_identity = 7;
+ *
+ * @return The bytes for writerIdentity.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getWriterIdentityBytes() {
+ java.lang.Object ref = writerIdentity_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ writerIdentity_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (startTime_ != null) {
+ output.writeMessage(1, getStartTime());
+ }
+ if (endTime_ != null) {
+ output.writeMessage(2, getEndTime());
+ }
+ if (state_ != com.google.logging.v2.OperationState.OPERATION_STATE_UNSPECIFIED.getNumber()) {
+ output.writeEnum(3, state_);
+ }
+ if (cancellationRequested_ != false) {
+ output.writeBool(4, cancellationRequested_);
+ }
+ if (request_ != null) {
+ output.writeMessage(5, getRequest());
+ }
+ if (progress_ != 0) {
+ output.writeInt32(6, progress_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(writerIdentity_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 7, writerIdentity_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (startTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime());
+ }
+ if (endTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime());
+ }
+ if (state_ != com.google.logging.v2.OperationState.OPERATION_STATE_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_);
+ }
+ if (cancellationRequested_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, cancellationRequested_);
+ }
+ if (request_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getRequest());
+ }
+ if (progress_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, progress_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(writerIdentity_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, writerIdentity_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.logging.v2.CopyLogEntriesMetadata)) {
+ return super.equals(obj);
+ }
+ com.google.logging.v2.CopyLogEntriesMetadata other =
+ (com.google.logging.v2.CopyLogEntriesMetadata) obj;
+
+ if (hasStartTime() != other.hasStartTime()) return false;
+ if (hasStartTime()) {
+ if (!getStartTime().equals(other.getStartTime())) return false;
+ }
+ if (hasEndTime() != other.hasEndTime()) return false;
+ if (hasEndTime()) {
+ if (!getEndTime().equals(other.getEndTime())) return false;
+ }
+ if (state_ != other.state_) return false;
+ if (getCancellationRequested() != other.getCancellationRequested()) return false;
+ if (hasRequest() != other.hasRequest()) return false;
+ if (hasRequest()) {
+ if (!getRequest().equals(other.getRequest())) return false;
+ }
+ if (getProgress() != other.getProgress()) return false;
+ if (!getWriterIdentity().equals(other.getWriterIdentity())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasStartTime()) {
+ hash = (37 * hash) + START_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getStartTime().hashCode();
+ }
+ if (hasEndTime()) {
+ hash = (37 * hash) + END_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getEndTime().hashCode();
+ }
+ hash = (37 * hash) + STATE_FIELD_NUMBER;
+ hash = (53 * hash) + state_;
+ hash = (37 * hash) + CANCELLATION_REQUESTED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCancellationRequested());
+ if (hasRequest()) {
+ hash = (37 * hash) + REQUEST_FIELD_NUMBER;
+ hash = (53 * hash) + getRequest().hashCode();
+ }
+ hash = (37 * hash) + PROGRESS_FIELD_NUMBER;
+ hash = (53 * hash) + getProgress();
+ hash = (37 * hash) + WRITER_IDENTITY_FIELD_NUMBER;
+ hash = (53 * hash) + getWriterIdentity().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.logging.v2.CopyLogEntriesMetadata parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.logging.v2.CopyLogEntriesMetadata parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.logging.v2.CopyLogEntriesMetadata parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.logging.v2.CopyLogEntriesMetadata parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.logging.v2.CopyLogEntriesMetadata parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.logging.v2.CopyLogEntriesMetadata parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.logging.v2.CopyLogEntriesMetadata parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.logging.v2.CopyLogEntriesMetadata parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.logging.v2.CopyLogEntriesMetadata parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.logging.v2.CopyLogEntriesMetadata parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.logging.v2.CopyLogEntriesMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.logging.v2.CopyLogEntriesMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.logging.v2.CopyLogEntriesMetadata prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * Metadata for CopyLogEntries long running operations.
+ *
+ *
+ * Protobuf type {@code google.logging.v2.CopyLogEntriesMetadata}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The create time of an operation.
+ *
+ *
+ * .google.protobuf.Timestamp start_time = 1;
+ *
+ * @return Whether the startTime field is set.
+ */
+ public boolean hasStartTime() {
+ return startTimeBuilder_ != null || startTime_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The create time of an operation.
+ *
+ *
+ * .google.protobuf.Timestamp start_time = 1;
+ *
+ * @return The startTime.
+ */
+ public com.google.protobuf.Timestamp getStartTime() {
+ if (startTimeBuilder_ == null) {
+ return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+ } else {
+ return startTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The create time of an operation.
+ *
+ *
+ * .google.protobuf.Timestamp start_time = 1;
+ */
+ public Builder setStartTime(com.google.protobuf.Timestamp value) {
+ if (startTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ startTime_ = value;
+ onChanged();
+ } else {
+ startTimeBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The create time of an operation.
+ *
+ *
+ * .google.protobuf.Timestamp start_time = 1;
+ */
+ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (startTimeBuilder_ == null) {
+ startTime_ = builderForValue.build();
+ onChanged();
+ } else {
+ startTimeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The create time of an operation.
+ *
+ *
+ * .google.protobuf.Timestamp start_time = 1;
+ */
+ public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
+ if (startTimeBuilder_ == null) {
+ if (startTime_ != null) {
+ startTime_ =
+ com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial();
+ } else {
+ startTime_ = value;
+ }
+ onChanged();
+ } else {
+ startTimeBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The create time of an operation.
+ *
+ *
+ * .google.protobuf.Timestamp start_time = 1;
+ */
+ public Builder clearStartTime() {
+ if (startTimeBuilder_ == null) {
+ startTime_ = null;
+ onChanged();
+ } else {
+ startTime_ = null;
+ startTimeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The create time of an operation.
+ *
+ *
+ * .google.protobuf.Timestamp start_time = 1;
+ */
+ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
+
+ onChanged();
+ return getStartTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * The create time of an operation.
+ *
+ *
+ * .google.protobuf.Timestamp start_time = 1;
+ */
+ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
+ if (startTimeBuilder_ != null) {
+ return startTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The create time of an operation.
+ *
+ *
+ * .google.protobuf.Timestamp start_time = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getStartTimeFieldBuilder() {
+ if (startTimeBuilder_ == null) {
+ startTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getStartTime(), getParentForChildren(), isClean());
+ startTime_ = null;
+ }
+ return startTimeBuilder_;
+ }
+
+ private com.google.protobuf.Timestamp endTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ endTimeBuilder_;
+ /**
+ *
+ *
+ *
+ * The end time of an operation.
+ *
+ *
+ * .google.protobuf.Timestamp end_time = 2;
+ *
+ * @return Whether the endTime field is set.
+ */
+ public boolean hasEndTime() {
+ return endTimeBuilder_ != null || endTime_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * The end time of an operation.
+ *
+ *
+ * .google.protobuf.Timestamp end_time = 2;
+ *
+ * @return The endTime.
+ */
+ public com.google.protobuf.Timestamp getEndTime() {
+ if (endTimeBuilder_ == null) {
+ return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+ } else {
+ return endTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The end time of an operation.
+ *
+ *
+ * .google.protobuf.Timestamp end_time = 2;
+ */
+ public Builder setEndTime(com.google.protobuf.Timestamp value) {
+ if (endTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ endTime_ = value;
+ onChanged();
+ } else {
+ endTimeBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The end time of an operation.
+ *
+ *
+ * .google.protobuf.Timestamp end_time = 2;
+ */
+ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (endTimeBuilder_ == null) {
+ endTime_ = builderForValue.build();
+ onChanged();
+ } else {
+ endTimeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The end time of an operation.
+ *
+ *
+ * .google.protobuf.Timestamp end_time = 2;
+ */
+ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
+ if (endTimeBuilder_ == null) {
+ if (endTime_ != null) {
+ endTime_ =
+ com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
+ } else {
+ endTime_ = value;
+ }
+ onChanged();
+ } else {
+ endTimeBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The end time of an operation.
+ *
+ *
+ * .google.protobuf.Timestamp end_time = 2;
+ */
+ public Builder clearEndTime() {
+ if (endTimeBuilder_ == null) {
+ endTime_ = null;
+ onChanged();
+ } else {
+ endTime_ = null;
+ endTimeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The end time of an operation.
+ *
+ *
+ * .google.protobuf.Timestamp end_time = 2;
+ */
+ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
+
+ onChanged();
+ return getEndTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * The end time of an operation.
+ *
+ *
+ * .google.protobuf.Timestamp end_time = 2;
+ */
+ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
+ if (endTimeBuilder_ != null) {
+ return endTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The end time of an operation.
+ *
+ *
+ * .google.protobuf.Timestamp end_time = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getEndTimeFieldBuilder() {
+ if (endTimeBuilder_ == null) {
+ endTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getEndTime(), getParentForChildren(), isClean());
+ endTime_ = null;
+ }
+ return endTimeBuilder_;
+ }
+
+ private int state_ = 0;
+ /**
+ *
+ *
+ *
+ * State of an operation.
+ *
+ *
+ * .google.logging.v2.OperationState state = 3;
+ *
+ * @return The enum numeric value on the wire for state.
+ */
+ @java.lang.Override
+ public int getStateValue() {
+ return state_;
+ }
+ /**
+ *
+ *
+ *
+ * State of an operation.
+ *
+ *
+ * .google.logging.v2.OperationState state = 3;
+ *
+ * @param value The enum numeric value on the wire for state to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStateValue(int value) {
+
+ state_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * State of an operation.
+ *
+ *
+ * .google.logging.v2.OperationState state = 3;
+ *
+ * @return The state.
+ */
+ @java.lang.Override
+ public com.google.logging.v2.OperationState getState() {
+ @SuppressWarnings("deprecation")
+ com.google.logging.v2.OperationState result =
+ com.google.logging.v2.OperationState.valueOf(state_);
+ return result == null ? com.google.logging.v2.OperationState.UNRECOGNIZED : result;
+ }
+ /**
+ *
+ *
+ *
+ * State of an operation.
+ *
+ *
+ * .google.logging.v2.OperationState state = 3;
+ *
+ * @param value The state to set.
+ * @return This builder for chaining.
+ */
+ public Builder setState(com.google.logging.v2.OperationState value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ state_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * State of an operation.
+ *
+ *
+ * .google.logging.v2.OperationState state = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearState() {
+
+ state_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private boolean cancellationRequested_;
+ /**
+ *
+ *
+ *
+ * Identifies whether the user has requested cancellation of the operation.
+ *
+ *
+ * bool cancellation_requested = 4;
+ *
+ * @return The cancellationRequested.
+ */
+ @java.lang.Override
+ public boolean getCancellationRequested() {
+ return cancellationRequested_;
+ }
+ /**
+ *
+ *
+ *
+ * Identifies whether the user has requested cancellation of the operation.
+ *
+ *
+ * bool cancellation_requested = 4;
+ *
+ * @param value The cancellationRequested to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCancellationRequested(boolean value) {
+
+ cancellationRequested_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Identifies whether the user has requested cancellation of the operation.
+ *
+ *
+ * bool cancellation_requested = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearCancellationRequested() {
+
+ cancellationRequested_ = false;
+ onChanged();
+ return this;
+ }
+
+ private com.google.logging.v2.CopyLogEntriesRequest request_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.logging.v2.CopyLogEntriesRequest,
+ com.google.logging.v2.CopyLogEntriesRequest.Builder,
+ com.google.logging.v2.CopyLogEntriesRequestOrBuilder>
+ requestBuilder_;
+ /**
+ *
+ *
+ *
+ * CopyLogEntries RPC request.
+ *
+ *
+ * .google.logging.v2.CopyLogEntriesRequest request = 5;
+ *
+ * @return Whether the request field is set.
+ */
+ public boolean hasRequest() {
+ return requestBuilder_ != null || request_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * CopyLogEntries RPC request.
+ *
+ *
+ * .google.logging.v2.CopyLogEntriesRequest request = 5;
+ *
+ * @return The request.
+ */
+ public com.google.logging.v2.CopyLogEntriesRequest getRequest() {
+ if (requestBuilder_ == null) {
+ return request_ == null
+ ? com.google.logging.v2.CopyLogEntriesRequest.getDefaultInstance()
+ : request_;
+ } else {
+ return requestBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * CopyLogEntries RPC request.
+ *
+ *
+ * .google.logging.v2.CopyLogEntriesRequest request = 5;
+ */
+ public Builder setRequest(com.google.logging.v2.CopyLogEntriesRequest value) {
+ if (requestBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ request_ = value;
+ onChanged();
+ } else {
+ requestBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * CopyLogEntries RPC request.
+ *
+ *
+ * .google.logging.v2.CopyLogEntriesRequest request = 5;
+ */
+ public Builder setRequest(com.google.logging.v2.CopyLogEntriesRequest.Builder builderForValue) {
+ if (requestBuilder_ == null) {
+ request_ = builderForValue.build();
+ onChanged();
+ } else {
+ requestBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * CopyLogEntries RPC request.
+ *
+ *
+ * .google.logging.v2.CopyLogEntriesRequest request = 5;
+ */
+ public Builder mergeRequest(com.google.logging.v2.CopyLogEntriesRequest value) {
+ if (requestBuilder_ == null) {
+ if (request_ != null) {
+ request_ =
+ com.google.logging.v2.CopyLogEntriesRequest.newBuilder(request_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ request_ = value;
+ }
+ onChanged();
+ } else {
+ requestBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * CopyLogEntries RPC request.
+ *
+ *
+ * .google.logging.v2.CopyLogEntriesRequest request = 5;
+ */
+ public Builder clearRequest() {
+ if (requestBuilder_ == null) {
+ request_ = null;
+ onChanged();
+ } else {
+ request_ = null;
+ requestBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * CopyLogEntries RPC request.
+ *
+ *
+ * .google.logging.v2.CopyLogEntriesRequest request = 5;
+ */
+ public com.google.logging.v2.CopyLogEntriesRequest.Builder getRequestBuilder() {
+
+ onChanged();
+ return getRequestFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * CopyLogEntries RPC request.
+ *
+ *
+ * .google.logging.v2.CopyLogEntriesRequest request = 5;
+ */
+ public com.google.logging.v2.CopyLogEntriesRequestOrBuilder getRequestOrBuilder() {
+ if (requestBuilder_ != null) {
+ return requestBuilder_.getMessageOrBuilder();
+ } else {
+ return request_ == null
+ ? com.google.logging.v2.CopyLogEntriesRequest.getDefaultInstance()
+ : request_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * CopyLogEntries RPC request.
+ *
+ *
+ * .google.logging.v2.CopyLogEntriesRequest request = 5;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.logging.v2.CopyLogEntriesRequest,
+ com.google.logging.v2.CopyLogEntriesRequest.Builder,
+ com.google.logging.v2.CopyLogEntriesRequestOrBuilder>
+ getRequestFieldBuilder() {
+ if (requestBuilder_ == null) {
+ requestBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.logging.v2.CopyLogEntriesRequest,
+ com.google.logging.v2.CopyLogEntriesRequest.Builder,
+ com.google.logging.v2.CopyLogEntriesRequestOrBuilder>(
+ getRequest(), getParentForChildren(), isClean());
+ request_ = null;
+ }
+ return requestBuilder_;
+ }
+
+ private int progress_;
+ /**
+ *
+ *
+ *
+ * Estimated progress of the operation (0 - 100%).
+ *
+ *
+ * int32 progress = 6;
+ *
+ * @return The progress.
+ */
+ @java.lang.Override
+ public int getProgress() {
+ return progress_;
+ }
+ /**
+ *
+ *
+ *
+ * Estimated progress of the operation (0 - 100%).
+ *
+ *
+ * int32 progress = 6;
+ *
+ * @param value The progress to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProgress(int value) {
+
+ progress_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Estimated progress of the operation (0 - 100%).
+ *
+ *
+ * int32 progress = 6;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearProgress() {
+
+ progress_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object writerIdentity_ = "";
+ /**
+ *
+ *
+ *
+ * The IAM identity of a service account that must be granted access to the
+ * destination.
+ * If the service account is not granted permission to the destination within
+ * an hour, the operation will be cancelled.
+ * For example: `"serviceAccount:foo@bar.com"`
+ *
+ *
+ * string writer_identity = 7;
+ *
+ * @return The writerIdentity.
+ */
+ public java.lang.String getWriterIdentity() {
+ java.lang.Object ref = writerIdentity_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ writerIdentity_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The IAM identity of a service account that must be granted access to the
+ * destination.
+ * If the service account is not granted permission to the destination within
+ * an hour, the operation will be cancelled.
+ * For example: `"serviceAccount:foo@bar.com"`
+ *
+ *
+ * string writer_identity = 7;
+ *
+ * @return The bytes for writerIdentity.
+ */
+ public com.google.protobuf.ByteString getWriterIdentityBytes() {
+ java.lang.Object ref = writerIdentity_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ writerIdentity_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * The IAM identity of a service account that must be granted access to the
+ * destination.
+ * If the service account is not granted permission to the destination within
+ * an hour, the operation will be cancelled.
+ * For example: `"serviceAccount:foo@bar.com"`
+ *
+ *
+ * string writer_identity = 7;
+ *
+ * @param value The writerIdentity to set.
+ * @return This builder for chaining.
+ */
+ public Builder setWriterIdentity(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ writerIdentity_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The IAM identity of a service account that must be granted access to the
+ * destination.
+ * If the service account is not granted permission to the destination within
+ * an hour, the operation will be cancelled.
+ * For example: `"serviceAccount:foo@bar.com"`
+ *
+ *
+ * string writer_identity = 7;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearWriterIdentity() {
+
+ writerIdentity_ = getDefaultInstance().getWriterIdentity();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * The IAM identity of a service account that must be granted access to the
+ * destination.
+ * If the service account is not granted permission to the destination within
+ * an hour, the operation will be cancelled.
+ * For example: `"serviceAccount:foo@bar.com"`
+ *
+ *
+ * string writer_identity = 7;
+ *
+ * @param value The bytes for writerIdentity to set.
+ * @return This builder for chaining.
+ */
+ public Builder setWriterIdentityBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ writerIdentity_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.logging.v2.CopyLogEntriesMetadata)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.logging.v2.CopyLogEntriesMetadata)
+ private static final com.google.logging.v2.CopyLogEntriesMetadata DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.logging.v2.CopyLogEntriesMetadata();
+ }
+
+ public static com.google.logging.v2.CopyLogEntriesMetadata getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * The create time of an operation.
+ *
+ *
+ * .google.protobuf.Timestamp start_time = 1;
+ *
+ * @return Whether the startTime field is set.
+ */
+ boolean hasStartTime();
+ /**
+ *
+ *
+ *
+ * The create time of an operation.
+ *
+ *
+ * .google.protobuf.Timestamp start_time = 1;
+ *
+ * @return The startTime.
+ */
+ com.google.protobuf.Timestamp getStartTime();
+ /**
+ *
+ *
+ *
+ * The create time of an operation.
+ *
+ *
+ * .google.protobuf.Timestamp start_time = 1;
+ */
+ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * The end time of an operation.
+ *
+ *
+ * .google.protobuf.Timestamp end_time = 2;
+ *
+ * @return Whether the endTime field is set.
+ */
+ boolean hasEndTime();
+ /**
+ *
+ *
+ *
+ * The end time of an operation.
+ *
+ *
+ * .google.protobuf.Timestamp end_time = 2;
+ *
+ * @return The endTime.
+ */
+ com.google.protobuf.Timestamp getEndTime();
+ /**
+ *
+ *
+ *
+ * The end time of an operation.
+ *
+ *
+ * .google.protobuf.Timestamp end_time = 2;
+ */
+ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * State of an operation.
+ *
+ *
+ * .google.logging.v2.OperationState state = 3;
+ *
+ * @return The enum numeric value on the wire for state.
+ */
+ int getStateValue();
+ /**
+ *
+ *
+ *
+ * State of an operation.
+ *
+ *
+ * .google.logging.v2.OperationState state = 3;
+ *
+ * @return The state.
+ */
+ com.google.logging.v2.OperationState getState();
+
+ /**
+ *
+ *
+ *
+ * Identifies whether the user has requested cancellation of the operation.
+ *
+ *
+ * bool cancellation_requested = 4;
+ *
+ * @return The cancellationRequested.
+ */
+ boolean getCancellationRequested();
+
+ /**
+ *
+ *
+ *
+ * CopyLogEntries RPC request.
+ *
+ *
+ * .google.logging.v2.CopyLogEntriesRequest request = 5;
+ *
+ * @return Whether the request field is set.
+ */
+ boolean hasRequest();
+ /**
+ *
+ *
+ *
+ * CopyLogEntries RPC request.
+ *
+ *
+ * .google.logging.v2.CopyLogEntriesRequest request = 5;
+ *
+ * @return The request.
+ */
+ com.google.logging.v2.CopyLogEntriesRequest getRequest();
+ /**
+ *
+ *
+ *
+ * CopyLogEntries RPC request.
+ *
+ *
+ * .google.logging.v2.CopyLogEntriesRequest request = 5;
+ */
+ com.google.logging.v2.CopyLogEntriesRequestOrBuilder getRequestOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Estimated progress of the operation (0 - 100%).
+ *
+ *
+ * int32 progress = 6;
+ *
+ * @return The progress.
+ */
+ int getProgress();
+
+ /**
+ *
+ *
+ *
+ * The IAM identity of a service account that must be granted access to the
+ * destination.
+ * If the service account is not granted permission to the destination within
+ * an hour, the operation will be cancelled.
+ * For example: `"serviceAccount:foo@bar.com"`
+ *
+ *
+ * string writer_identity = 7;
+ *
+ * @return The writerIdentity.
+ */
+ java.lang.String getWriterIdentity();
+ /**
+ *
+ *
+ *
+ * The IAM identity of a service account that must be granted access to the
+ * destination.
+ * If the service account is not granted permission to the destination within
+ * an hour, the operation will be cancelled.
+ * For example: `"serviceAccount:foo@bar.com"`
+ *
+ *
+ * string writer_identity = 7;
+ *
+ * @return The bytes for writerIdentity.
+ */
+ com.google.protobuf.ByteString getWriterIdentityBytes();
+}
diff --git a/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
new file mode 100644
index 000000000..ac1a8d86f
--- /dev/null
+++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequest.java
@@ -0,0 +1,1013 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/logging/v2/logging_config.proto
+
+package com.google.logging.v2;
+
+/**
+ *
+ *
+ *
+ * The parameters to CopyLogEntries.
+ *
+ *
+ * Protobuf type {@code google.logging.v2.CopyLogEntriesRequest}
+ */
+public final class CopyLogEntriesRequest extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.logging.v2.CopyLogEntriesRequest)
+ CopyLogEntriesRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use CopyLogEntriesRequest.newBuilder() to construct.
+ private CopyLogEntriesRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private CopyLogEntriesRequest() {
+ name_ = "";
+ filter_ = "";
+ destination_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new CopyLogEntriesRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private CopyLogEntriesRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ name_ = s;
+ break;
+ }
+ case 26:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ filter_ = s;
+ break;
+ }
+ case 34:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ destination_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.logging.v2.LoggingConfigProto
+ .internal_static_google_logging_v2_CopyLogEntriesRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.logging.v2.LoggingConfigProto
+ .internal_static_google_logging_v2_CopyLogEntriesRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.logging.v2.CopyLogEntriesRequest.class,
+ com.google.logging.v2.CopyLogEntriesRequest.Builder.class);
+ }
+
+ public static final int NAME_FIELD_NUMBER = 1;
+ private volatile java.lang.Object name_;
+ /**
+ *
+ *
+ *
+ * Required. Log bucket from which to copy log entries.
+ * For example:
+ * `"projects/my-project/locations/global/buckets/my-source-bucket"`
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. Log bucket from which to copy log entries.
+ * For example:
+ * `"projects/my-project/locations/global/buckets/my-source-bucket"`
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int FILTER_FIELD_NUMBER = 3;
+ private volatile java.lang.Object filter_;
+ /**
+ *
+ *
+ *
+ * Optional. A filter specifying which log entries to copy. The filter must be no more
+ * than 20k characters. An empty filter matches all log entries.
+ *
+ *
+ * string filter = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The filter.
+ */
+ @java.lang.Override
+ public java.lang.String getFilter() {
+ java.lang.Object ref = filter_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ filter_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. A filter specifying which log entries to copy. The filter must be no more
+ * than 20k characters. An empty filter matches all log entries.
+ *
+ *
+ * string filter = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for filter.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getFilterBytes() {
+ java.lang.Object ref = filter_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ filter_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DESTINATION_FIELD_NUMBER = 4;
+ private volatile java.lang.Object destination_;
+ /**
+ *
+ *
+ *
+ * Required. Destination to which to copy log entries.
+ *
+ *
+ * string destination = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The destination.
+ */
+ @java.lang.Override
+ public java.lang.String getDestination() {
+ java.lang.Object ref = destination_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ destination_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. Destination to which to copy log entries.
+ *
+ *
+ * string destination = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for destination.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDestinationBytes() {
+ java.lang.Object ref = destination_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ destination_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, filter_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destination_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, destination_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filter_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destination_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, destination_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.logging.v2.CopyLogEntriesRequest)) {
+ return super.equals(obj);
+ }
+ com.google.logging.v2.CopyLogEntriesRequest other =
+ (com.google.logging.v2.CopyLogEntriesRequest) obj;
+
+ if (!getName().equals(other.getName())) return false;
+ if (!getFilter().equals(other.getFilter())) return false;
+ if (!getDestination().equals(other.getDestination())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (37 * hash) + FILTER_FIELD_NUMBER;
+ hash = (53 * hash) + getFilter().hashCode();
+ hash = (37 * hash) + DESTINATION_FIELD_NUMBER;
+ hash = (53 * hash) + getDestination().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.logging.v2.CopyLogEntriesRequest parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.logging.v2.CopyLogEntriesRequest parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.logging.v2.CopyLogEntriesRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.logging.v2.CopyLogEntriesRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.logging.v2.CopyLogEntriesRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.logging.v2.CopyLogEntriesRequest parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.logging.v2.CopyLogEntriesRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.logging.v2.CopyLogEntriesRequest parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.logging.v2.CopyLogEntriesRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.logging.v2.CopyLogEntriesRequest parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.logging.v2.CopyLogEntriesRequest parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.logging.v2.CopyLogEntriesRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.logging.v2.CopyLogEntriesRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * The parameters to CopyLogEntries.
+ *
+ *
+ * Protobuf type {@code google.logging.v2.CopyLogEntriesRequest}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. Log bucket from which to copy log entries.
+ * For example:
+ * `"projects/my-project/locations/global/buckets/my-source-bucket"`
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. Log bucket from which to copy log entries.
+ * For example:
+ * `"projects/my-project/locations/global/buckets/my-source-bucket"`
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. Log bucket from which to copy log entries.
+ * For example:
+ * `"projects/my-project/locations/global/buckets/my-source-bucket"`
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Log bucket from which to copy log entries.
+ * For example:
+ * `"projects/my-project/locations/global/buckets/my-source-bucket"`
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Log bucket from which to copy log entries.
+ * For example:
+ * `"projects/my-project/locations/global/buckets/my-source-bucket"`
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object filter_ = "";
+ /**
+ *
+ *
+ *
+ * Optional. A filter specifying which log entries to copy. The filter must be no more
+ * than 20k characters. An empty filter matches all log entries.
+ *
+ *
+ * string filter = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The filter.
+ */
+ public java.lang.String getFilter() {
+ java.lang.Object ref = filter_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ filter_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. A filter specifying which log entries to copy. The filter must be no more
+ * than 20k characters. An empty filter matches all log entries.
+ *
+ *
+ * string filter = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for filter.
+ */
+ public com.google.protobuf.ByteString getFilterBytes() {
+ java.lang.Object ref = filter_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ filter_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. A filter specifying which log entries to copy. The filter must be no more
+ * than 20k characters. An empty filter matches all log entries.
+ *
+ *
+ * string filter = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The filter to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFilter(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ filter_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. A filter specifying which log entries to copy. The filter must be no more
+ * than 20k characters. An empty filter matches all log entries.
+ *
+ *
+ * string filter = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearFilter() {
+
+ filter_ = getDefaultInstance().getFilter();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. A filter specifying which log entries to copy. The filter must be no more
+ * than 20k characters. An empty filter matches all log entries.
+ *
+ *
+ * string filter = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for filter to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFilterBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ filter_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object destination_ = "";
+ /**
+ *
+ *
+ *
+ * Required. Destination to which to copy log entries.
+ *
+ *
+ * string destination = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The destination.
+ */
+ public java.lang.String getDestination() {
+ java.lang.Object ref = destination_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ destination_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. Destination to which to copy log entries.
+ *
+ *
+ * string destination = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for destination.
+ */
+ public com.google.protobuf.ByteString getDestinationBytes() {
+ java.lang.Object ref = destination_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ destination_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. Destination to which to copy log entries.
+ *
+ *
+ * string destination = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The destination to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDestination(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ destination_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Destination to which to copy log entries.
+ *
+ *
+ * string destination = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDestination() {
+
+ destination_ = getDefaultInstance().getDestination();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. Destination to which to copy log entries.
+ *
+ *
+ * string destination = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @param value The bytes for destination to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDestinationBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ destination_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.logging.v2.CopyLogEntriesRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.logging.v2.CopyLogEntriesRequest)
+ private static final com.google.logging.v2.CopyLogEntriesRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.logging.v2.CopyLogEntriesRequest();
+ }
+
+ public static com.google.logging.v2.CopyLogEntriesRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Required. Log bucket from which to copy log entries.
+ * For example:
+ * `"projects/my-project/locations/global/buckets/my-source-bucket"`
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ *
+ * Required. Log bucket from which to copy log entries.
+ * For example:
+ * `"projects/my-project/locations/global/buckets/my-source-bucket"`
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString getNameBytes();
+
+ /**
+ *
+ *
+ *
+ * Optional. A filter specifying which log entries to copy. The filter must be no more
+ * than 20k characters. An empty filter matches all log entries.
+ *
+ *
+ * string filter = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The filter.
+ */
+ java.lang.String getFilter();
+ /**
+ *
+ *
+ *
+ * Optional. A filter specifying which log entries to copy. The filter must be no more
+ * than 20k characters. An empty filter matches all log entries.
+ *
+ *
+ * string filter = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for filter.
+ */
+ com.google.protobuf.ByteString getFilterBytes();
+
+ /**
+ *
+ *
+ *
+ * Required. Destination to which to copy log entries.
+ *
+ *
+ * string destination = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The destination.
+ */
+ java.lang.String getDestination();
+ /**
+ *
+ *
+ *
+ * Required. Destination to which to copy log entries.
+ *
+ *
+ * string destination = 4 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * @return The bytes for destination.
+ */
+ com.google.protobuf.ByteString getDestinationBytes();
+}
diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponse.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponse.java
new file mode 100644
index 000000000..e0bfeac7a
--- /dev/null
+++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponse.java
@@ -0,0 +1,544 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/logging/v2/logging_config.proto
+
+package com.google.logging.v2;
+
+/**
+ *
+ *
+ *
+ * Response type for CopyLogEntries long running operations.
+ *
+ *
+ * Protobuf type {@code google.logging.v2.CopyLogEntriesResponse}
+ */
+public final class CopyLogEntriesResponse extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.logging.v2.CopyLogEntriesResponse)
+ CopyLogEntriesResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use CopyLogEntriesResponse.newBuilder() to construct.
+ private CopyLogEntriesResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private CopyLogEntriesResponse() {}
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new CopyLogEntriesResponse();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private CopyLogEntriesResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8:
+ {
+ logEntriesCopiedCount_ = input.readInt64();
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.logging.v2.LoggingConfigProto
+ .internal_static_google_logging_v2_CopyLogEntriesResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.logging.v2.LoggingConfigProto
+ .internal_static_google_logging_v2_CopyLogEntriesResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.logging.v2.CopyLogEntriesResponse.class,
+ com.google.logging.v2.CopyLogEntriesResponse.Builder.class);
+ }
+
+ public static final int LOG_ENTRIES_COPIED_COUNT_FIELD_NUMBER = 1;
+ private long logEntriesCopiedCount_;
+ /**
+ *
+ *
+ *
+ * Number of log entries copied.
+ *
+ *
+ * int64 log_entries_copied_count = 1;
+ *
+ * @return The logEntriesCopiedCount.
+ */
+ @java.lang.Override
+ public long getLogEntriesCopiedCount() {
+ return logEntriesCopiedCount_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (logEntriesCopiedCount_ != 0L) {
+ output.writeInt64(1, logEntriesCopiedCount_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (logEntriesCopiedCount_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, logEntriesCopiedCount_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.logging.v2.CopyLogEntriesResponse)) {
+ return super.equals(obj);
+ }
+ com.google.logging.v2.CopyLogEntriesResponse other =
+ (com.google.logging.v2.CopyLogEntriesResponse) obj;
+
+ if (getLogEntriesCopiedCount() != other.getLogEntriesCopiedCount()) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + LOG_ENTRIES_COPIED_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLogEntriesCopiedCount());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.logging.v2.CopyLogEntriesResponse parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.logging.v2.CopyLogEntriesResponse parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.logging.v2.CopyLogEntriesResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.logging.v2.CopyLogEntriesResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.logging.v2.CopyLogEntriesResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.logging.v2.CopyLogEntriesResponse parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.logging.v2.CopyLogEntriesResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.logging.v2.CopyLogEntriesResponse parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.logging.v2.CopyLogEntriesResponse parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.logging.v2.CopyLogEntriesResponse parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.logging.v2.CopyLogEntriesResponse parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.logging.v2.CopyLogEntriesResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.logging.v2.CopyLogEntriesResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * Response type for CopyLogEntries long running operations.
+ *
+ *
+ * Protobuf type {@code google.logging.v2.CopyLogEntriesResponse}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Number of log entries copied.
+ *
+ *
+ * int64 log_entries_copied_count = 1;
+ *
+ * @return The logEntriesCopiedCount.
+ */
+ @java.lang.Override
+ public long getLogEntriesCopiedCount() {
+ return logEntriesCopiedCount_;
+ }
+ /**
+ *
+ *
+ *
+ * Number of log entries copied.
+ *
+ *
+ * int64 log_entries_copied_count = 1;
+ *
+ * @param value The logEntriesCopiedCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLogEntriesCopiedCount(long value) {
+
+ logEntriesCopiedCount_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Number of log entries copied.
+ *
+ *
+ * int64 log_entries_copied_count = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearLogEntriesCopiedCount() {
+
+ logEntriesCopiedCount_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.logging.v2.CopyLogEntriesResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.logging.v2.CopyLogEntriesResponse)
+ private static final com.google.logging.v2.CopyLogEntriesResponse DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.logging.v2.CopyLogEntriesResponse();
+ }
+
+ public static com.google.logging.v2.CopyLogEntriesResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Number of log entries copied.
+ *
+ *
+ * int64 log_entries_copied_count = 1;
+ *
+ * @return The logEntriesCopiedCount.
+ */
+ long getLogEntriesCopiedCount();
+}
diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateBucketRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateBucketRequest.java
index bcd8df515..9bf1b12cf 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
@@ -140,9 +140,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * Required. The resource in which to create the bucket:
+ * Required. The resource in which to create the log bucket:
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
- * Example: `"projects/my-logging-project/locations/global"`
+ * For example:
+ * `"projects/my-project/locations/global"`
*
*
*
@@ -167,9 +168,10 @@ public java.lang.String getParent() {
*
*
*
- * Required. The resource in which to create the bucket:
+ * Required. The resource in which to create the log bucket:
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
- * Example: `"projects/my-logging-project/locations/global"`
+ * For example:
+ * `"projects/my-project/locations/global"`
*
*
*
@@ -197,9 +199,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];
@@ -222,9 +224,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];
@@ -661,9 +663,10 @@ public Builder mergeFrom(
*
*
*
- * Required. The resource in which to create the bucket:
+ * Required. The resource in which to create the log bucket:
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
- * Example: `"projects/my-logging-project/locations/global"`
+ * For example:
+ * `"projects/my-project/locations/global"`
*
*
*
@@ -687,9 +690,10 @@ public java.lang.String getParent() {
*
*
*
- * Required. The resource in which to create the bucket:
+ * Required. The resource in which to create the log bucket:
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
- * Example: `"projects/my-logging-project/locations/global"`
+ * For example:
+ * `"projects/my-project/locations/global"`
*
*
*
@@ -713,9 +717,10 @@ public com.google.protobuf.ByteString getParentBytes() {
*
*
*
- * Required. The resource in which to create the bucket:
+ * Required. The resource in which to create the log bucket:
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
- * Example: `"projects/my-logging-project/locations/global"`
+ * For example:
+ * `"projects/my-project/locations/global"`
*
*
*
@@ -738,9 +743,10 @@ public Builder setParent(java.lang.String value) {
*
*
*
- * Required. The resource in which to create the bucket:
+ * Required. The resource in which to create the log bucket:
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
- * Example: `"projects/my-logging-project/locations/global"`
+ * For example:
+ * `"projects/my-project/locations/global"`
*
*
*
@@ -759,9 +765,10 @@ public Builder clearParent() {
*
*
*
- * Required. The resource in which to create the bucket:
+ * Required. The resource in which to create the log bucket:
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
- * Example: `"projects/my-logging-project/locations/global"`
+ * For example:
+ * `"projects/my-project/locations/global"`
*
*
*
@@ -787,9 +794,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];
@@ -811,9 +818,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];
@@ -835,9 +842,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];
@@ -858,9 +865,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];
@@ -877,9 +884,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];
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 f57d83413..c11f6c828 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
@@ -27,9 +27,10 @@ public interface CreateBucketRequestOrBuilder
*
*
*
- * Required. The resource in which to create the bucket:
+ * Required. The resource in which to create the log bucket:
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
- * Example: `"projects/my-logging-project/locations/global"`
+ * For example:
+ * `"projects/my-project/locations/global"`
*
*
*
@@ -43,9 +44,10 @@ public interface CreateBucketRequestOrBuilder
*
*
*
- * Required. The resource in which to create the bucket:
+ * Required. The resource in which to create the log bucket:
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
- * Example: `"projects/my-logging-project/locations/global"`
+ * For example:
+ * `"projects/my-project/locations/global"`
*
*
*
@@ -60,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];
@@ -74,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];
diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateExclusionRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateExclusionRequest.java
index bd56bbb13..5f55149ff 100644
--- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateExclusionRequest.java
+++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateExclusionRequest.java
@@ -137,7 +137,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]"
* "folders/[FOLDER_ID]"
- * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
+ * For examples:
+ * `"projects/my-logging-project"`
+ * `"organizations/123456789"`
*
@@ -167,7 +169,9 @@ public java.lang.String getParent() {
* "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]"
* "folders/[FOLDER_ID]"
- * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
+ * For examples:
+ * `"projects/my-logging-project"`
+ * `"organizations/123456789"`
*
*
*
@@ -597,7 +601,9 @@ public Builder mergeFrom(
* "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]"
* "folders/[FOLDER_ID]"
- * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
+ * For examples:
+ * `"projects/my-logging-project"`
+ * `"organizations/123456789"`
*
*
*
@@ -626,7 +632,9 @@ public java.lang.String getParent() {
* "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]"
* "folders/[FOLDER_ID]"
- * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
+ * For examples:
+ * `"projects/my-logging-project"`
+ * `"organizations/123456789"`
*
*
*
@@ -655,7 +663,9 @@ public com.google.protobuf.ByteString getParentBytes() {
* "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]"
* "folders/[FOLDER_ID]"
- * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
+ * For examples:
+ * `"projects/my-logging-project"`
+ * `"organizations/123456789"`
*
*
*
@@ -683,7 +693,9 @@ public Builder setParent(java.lang.String value) {
* "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]"
* "folders/[FOLDER_ID]"
- * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
+ * For examples:
+ * `"projects/my-logging-project"`
+ * `"organizations/123456789"`
*
*
*
@@ -707,7 +719,9 @@ public Builder clearParent() {
* "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]"
* "folders/[FOLDER_ID]"
- * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
+ * For examples:
+ * `"projects/my-logging-project"`
+ * `"organizations/123456789"`
*
*
*
diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateExclusionRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateExclusionRequestOrBuilder.java
index c9f581052..c46164936 100644
--- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateExclusionRequestOrBuilder.java
+++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateExclusionRequestOrBuilder.java
@@ -32,7 +32,9 @@ public interface CreateExclusionRequestOrBuilder
* "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]"
* "folders/[FOLDER_ID]"
- * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
+ * For examples:
+ * `"projects/my-logging-project"`
+ * `"organizations/123456789"`
*
*
*
@@ -51,7 +53,9 @@ public interface CreateExclusionRequestOrBuilder
* "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]"
* "folders/[FOLDER_ID]"
- * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
+ * For examples:
+ * `"projects/my-logging-project"`
+ * `"organizations/123456789"`
*
*
*
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 ed85736b9..7bd9b54bf 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
@@ -141,7 +141,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]"
* "folders/[FOLDER_ID]"
- * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
+ * For examples:
+ * `"projects/my-project"`
+ * `"organizations/123456789"`
*
*
*
@@ -171,7 +173,9 @@ public java.lang.String getParent() {
* "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]"
* "folders/[FOLDER_ID]"
- * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
+ * For examples:
+ * `"projects/my-project"`
+ * `"organizations/123456789"`
*
*
*
@@ -251,9 +255,9 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() {
* Optional. Determines the kind of IAM identity returned as `writer_identity`
* in the new sink. If this value is omitted or set to false, and if the
* sink's parent is a project, then the value returned as `writer_identity` is
- * the same group or service account used by Logging before the addition of
- * writer identities to this API. The sink's destination must be in the same
- * project as the sink itself.
+ * the same group or service account used by Cloud Logging before the addition
+ * of writer identities to this API. The sink's destination must be in the
+ * same project as the sink itself.
* If this field is set to true, or if the sink is owned by a non-project
* resource such as an organization, then the value of `writer_identity` will
* be a unique service account used only for exports from the new sink. For
@@ -637,7 +641,9 @@ public Builder mergeFrom(
* "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]"
* "folders/[FOLDER_ID]"
- * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
+ * For examples:
+ * `"projects/my-project"`
+ * `"organizations/123456789"`
*
*
*
@@ -666,7 +672,9 @@ public java.lang.String getParent() {
* "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]"
* "folders/[FOLDER_ID]"
- * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
+ * For examples:
+ * `"projects/my-project"`
+ * `"organizations/123456789"`
*
*
*
@@ -695,7 +703,9 @@ public com.google.protobuf.ByteString getParentBytes() {
* "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]"
* "folders/[FOLDER_ID]"
- * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
+ * For examples:
+ * `"projects/my-project"`
+ * `"organizations/123456789"`
*
*
*
@@ -723,7 +733,9 @@ public Builder setParent(java.lang.String value) {
* "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]"
* "folders/[FOLDER_ID]"
- * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
+ * For examples:
+ * `"projects/my-project"`
+ * `"organizations/123456789"`
*
*
*
@@ -747,7 +759,9 @@ public Builder clearParent() {
* "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]"
* "folders/[FOLDER_ID]"
- * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
+ * For examples:
+ * `"projects/my-project"`
+ * `"organizations/123456789"`
*
*
*
@@ -963,9 +977,9 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() {
* Optional. Determines the kind of IAM identity returned as `writer_identity`
* in the new sink. If this value is omitted or set to false, and if the
* sink's parent is a project, then the value returned as `writer_identity` is
- * the same group or service account used by Logging before the addition of
- * writer identities to this API. The sink's destination must be in the same
- * project as the sink itself.
+ * the same group or service account used by Cloud Logging before the addition
+ * of writer identities to this API. The sink's destination must be in the
+ * same project as the sink itself.
* If this field is set to true, or if the sink is owned by a non-project
* resource such as an organization, then the value of `writer_identity` will
* be a unique service account used only for exports from the new sink. For
@@ -987,9 +1001,9 @@ public boolean getUniqueWriterIdentity() {
* Optional. Determines the kind of IAM identity returned as `writer_identity`
* in the new sink. If this value is omitted or set to false, and if the
* sink's parent is a project, then the value returned as `writer_identity` is
- * the same group or service account used by Logging before the addition of
- * writer identities to this API. The sink's destination must be in the same
- * project as the sink itself.
+ * the same group or service account used by Cloud Logging before the addition
+ * of writer identities to this API. The sink's destination must be in the
+ * same project as the sink itself.
* If this field is set to true, or if the sink is owned by a non-project
* resource such as an organization, then the value of `writer_identity` will
* be a unique service account used only for exports from the new sink. For
@@ -1014,9 +1028,9 @@ public Builder setUniqueWriterIdentity(boolean value) {
* Optional. Determines the kind of IAM identity returned as `writer_identity`
* in the new sink. If this value is omitted or set to false, and if the
* sink's parent is a project, then the value returned as `writer_identity` is
- * the same group or service account used by Logging before the addition of
- * writer identities to this API. The sink's destination must be in the same
- * project as the sink itself.
+ * the same group or service account used by Cloud Logging before the addition
+ * of writer identities to this API. The sink's destination must be in the
+ * same project as the sink itself.
* If this field is set to true, or if the sink is owned by a non-project
* resource such as an organization, then the value of `writer_identity` will
* be a unique service account used only for exports from the new sink. For
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 360545587..775ef0c17 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
@@ -32,7 +32,9 @@ public interface CreateSinkRequestOrBuilder
* "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]"
* "folders/[FOLDER_ID]"
- * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
+ * For examples:
+ * `"projects/my-project"`
+ * `"organizations/123456789"`
*
*
*
@@ -51,7 +53,9 @@ public interface CreateSinkRequestOrBuilder
* "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]"
* "folders/[FOLDER_ID]"
- * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
+ * For examples:
+ * `"projects/my-project"`
+ * `"organizations/123456789"`
*
*
*
@@ -107,9 +111,9 @@ public interface CreateSinkRequestOrBuilder
* Optional. Determines the kind of IAM identity returned as `writer_identity`
* in the new sink. If this value is omitted or set to false, and if the
* sink's parent is a project, then the value returned as `writer_identity` is
- * the same group or service account used by Logging before the addition of
- * writer identities to this API. The sink's destination must be in the same
- * project as the sink itself.
+ * the same group or service account used by Cloud Logging before the addition
+ * of writer identities to this API. The sink's destination must be in the
+ * same project as the sink itself.
* If this field is set to true, or if the sink is owned by a non-project
* resource such as an organization, then the value of `writer_identity` will
* be a unique service account used only for exports from the new sink. For
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 d1c315098..4ae5983da 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
@@ -140,9 +140,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* Required. The bucket in which to create the view
- * "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
- * Example:
- * `"projects/my-logging-project/locations/my-location/buckets/my-bucket"`
+ * `"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"`
+ * For example:
+ * `"projects/my-project/locations/global/buckets/my-bucket"`
*
*
* string parent = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -166,9 +166,9 @@ public java.lang.String getParent() {
*
*
* Required. The bucket in which to create the view
- * "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
- * Example:
- * `"projects/my-logging-project/locations/my-location/buckets/my-bucket"`
+ * `"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"`
+ * For example:
+ * `"projects/my-project/locations/global/buckets/my-bucket"`
*
*
* string parent = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -648,9 +648,9 @@ public Builder mergeFrom(
*
*
* Required. The bucket in which to create the view
- * "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
- * Example:
- * `"projects/my-logging-project/locations/my-location/buckets/my-bucket"`
+ * `"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"`
+ * For example:
+ * `"projects/my-project/locations/global/buckets/my-bucket"`
*
*
* string parent = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -673,9 +673,9 @@ public java.lang.String getParent() {
*
*
* Required. The bucket in which to create the view
- * "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
- * Example:
- * `"projects/my-logging-project/locations/my-location/buckets/my-bucket"`
+ * `"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"`
+ * For example:
+ * `"projects/my-project/locations/global/buckets/my-bucket"`
*
*
* string parent = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -698,9 +698,9 @@ public com.google.protobuf.ByteString getParentBytes() {
*
*
* Required. The bucket in which to create the view
- * "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
- * Example:
- * `"projects/my-logging-project/locations/my-location/buckets/my-bucket"`
+ * `"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"`
+ * For example:
+ * `"projects/my-project/locations/global/buckets/my-bucket"`
*
*
* string parent = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -722,9 +722,9 @@ public Builder setParent(java.lang.String value) {
*
*
* Required. The bucket in which to create the view
- * "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
- * Example:
- * `"projects/my-logging-project/locations/my-location/buckets/my-bucket"`
+ * `"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"`
+ * For example:
+ * `"projects/my-project/locations/global/buckets/my-bucket"`
*
*
* string parent = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -742,9 +742,9 @@ public Builder clearParent() {
*
*
* Required. The bucket in which to create the view
- * "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
- * Example:
- * `"projects/my-logging-project/locations/my-location/buckets/my-bucket"`
+ * `"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"`
+ * For example:
+ * `"projects/my-project/locations/global/buckets/my-bucket"`
*
*
* string parent = 1 [(.google.api.field_behavior) = REQUIRED];
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 3258e6659..2cdbdb4b0 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
@@ -28,9 +28,9 @@ public interface CreateViewRequestOrBuilder
*
*
* Required. The bucket in which to create the view
- * "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
- * Example:
- * `"projects/my-logging-project/locations/my-location/buckets/my-bucket"`
+ * `"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"`
+ * For example:
+ * `"projects/my-project/locations/global/buckets/my-bucket"`
*
*
* string parent = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -43,9 +43,9 @@ public interface CreateViewRequestOrBuilder
*
*
* Required. The bucket in which to create the view
- * "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
- * Example:
- * `"projects/my-logging-project/locations/my-location/buckets/my-bucket"`
+ * `"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"`
+ * For example:
+ * `"projects/my-project/locations/global/buckets/my-bucket"`
*
*
* string parent = 1 [(.google.api.field_behavior) = REQUIRED];
diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteBucketRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteBucketRequest.java
index 03b5fd903..033e7bac5 100644
--- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteBucketRequest.java
+++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteBucketRequest.java
@@ -122,8 +122,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
- * Example:
- * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`.
+ * For example:
+ * `"projects/my-project/locations/global/buckets/my-bucket"`
*
*
*
@@ -153,8 +153,8 @@ public java.lang.String getName() {
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
- * Example:
- * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`.
+ * For example:
+ * `"projects/my-project/locations/global/buckets/my-bucket"`
*
*
*
@@ -502,8 +502,8 @@ public Builder mergeFrom(
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
- * Example:
- * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`.
+ * For example:
+ * `"projects/my-project/locations/global/buckets/my-bucket"`
*
*
*
@@ -532,8 +532,8 @@ public java.lang.String getName() {
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
- * Example:
- * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`.
+ * For example:
+ * `"projects/my-project/locations/global/buckets/my-bucket"`
*
*
*
@@ -562,8 +562,8 @@ public com.google.protobuf.ByteString getNameBytes() {
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
- * Example:
- * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`.
+ * For example:
+ * `"projects/my-project/locations/global/buckets/my-bucket"`
*
*
*
@@ -591,8 +591,8 @@ public Builder setName(java.lang.String value) {
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
- * Example:
- * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`.
+ * For example:
+ * `"projects/my-project/locations/global/buckets/my-bucket"`
*
*
*
@@ -616,8 +616,8 @@ public Builder clearName() {
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
- * Example:
- * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`.
+ * For example:
+ * `"projects/my-project/locations/global/buckets/my-bucket"`
*
*
*
diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteBucketRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteBucketRequestOrBuilder.java
index ed0af6f2e..d52ae463c 100644
--- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteBucketRequestOrBuilder.java
+++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteBucketRequestOrBuilder.java
@@ -32,8 +32,8 @@ public interface DeleteBucketRequestOrBuilder
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
- * Example:
- * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`.
+ * For example:
+ * `"projects/my-project/locations/global/buckets/my-bucket"`
*
*
*
@@ -52,8 +52,8 @@ public interface DeleteBucketRequestOrBuilder
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
- * Example:
- * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`.
+ * For example:
+ * `"projects/my-project/locations/global/buckets/my-bucket"`
*
*
*
diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequest.java
index 7f19f57b6..81414b227 100644
--- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequest.java
+++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequest.java
@@ -122,7 +122,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
* "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
- * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
+ * For example:
+ * `"projects/my-project/exclusions/my-exclusion"`
*
*
*
@@ -152,7 +153,8 @@ public java.lang.String getName() {
* "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
* "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
- * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
+ * For example:
+ * `"projects/my-project/exclusions/my-exclusion"`
*
*
*
@@ -500,7 +502,8 @@ public Builder mergeFrom(
* "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
* "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
- * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
+ * For example:
+ * `"projects/my-project/exclusions/my-exclusion"`
*
*
*
@@ -529,7 +532,8 @@ public java.lang.String getName() {
* "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
* "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
- * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
+ * For example:
+ * `"projects/my-project/exclusions/my-exclusion"`
*
*
*
@@ -558,7 +562,8 @@ public com.google.protobuf.ByteString getNameBytes() {
* "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
* "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
- * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
+ * For example:
+ * `"projects/my-project/exclusions/my-exclusion"`
*
*
*
@@ -586,7 +591,8 @@ public Builder setName(java.lang.String value) {
* "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
* "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
- * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
+ * For example:
+ * `"projects/my-project/exclusions/my-exclusion"`
*
*
*
@@ -610,7 +616,8 @@ public Builder clearName() {
* "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
* "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
- * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
+ * For example:
+ * `"projects/my-project/exclusions/my-exclusion"`
*
*
*
diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequestOrBuilder.java
index de911d656..7e863687a 100644
--- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequestOrBuilder.java
+++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteExclusionRequestOrBuilder.java
@@ -32,7 +32,8 @@ public interface DeleteExclusionRequestOrBuilder
* "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
* "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
- * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
+ * For example:
+ * `"projects/my-project/exclusions/my-exclusion"`
*
*
*
@@ -51,7 +52,8 @@ public interface DeleteExclusionRequestOrBuilder
* "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
* "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
- * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
+ * For example:
+ * `"projects/my-project/exclusions/my-exclusion"`
*
*
*
diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequest.java
index ae29efc7b..edb9f5f75 100644
--- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequest.java
+++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequest.java
@@ -118,13 +118,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* Required. The resource name of the log to delete:
- * "projects/[PROJECT_ID]/logs/[LOG_ID]"
- * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
- * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
- * "folders/[FOLDER_ID]/logs/[LOG_ID]"
+ * * `projects/[PROJECT_ID]/logs/[LOG_ID]`
+ * * `organizations/[ORGANIZATION_ID]/logs/[LOG_ID]`
+ * * `billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]`
+ * * `folders/[FOLDER_ID]/logs/[LOG_ID]`
* `[LOG_ID]` must be URL-encoded. For example,
* `"projects/my-project-id/logs/syslog"`,
- * `"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
+ * `"organizations/123/logs/cloudaudit.googleapis.com%2Factivity"`.
* For more information about log names, see
* [LogEntry][google.logging.v2.LogEntry].
*
@@ -152,13 +152,13 @@ public java.lang.String getLogName() {
*
*
* Required. The resource name of the log to delete:
- * "projects/[PROJECT_ID]/logs/[LOG_ID]"
- * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
- * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
- * "folders/[FOLDER_ID]/logs/[LOG_ID]"
+ * * `projects/[PROJECT_ID]/logs/[LOG_ID]`
+ * * `organizations/[ORGANIZATION_ID]/logs/[LOG_ID]`
+ * * `billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]`
+ * * `folders/[FOLDER_ID]/logs/[LOG_ID]`
* `[LOG_ID]` must be URL-encoded. For example,
* `"projects/my-project-id/logs/syslog"`,
- * `"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
+ * `"organizations/123/logs/cloudaudit.googleapis.com%2Factivity"`.
* For more information about log names, see
* [LogEntry][google.logging.v2.LogEntry].
*
@@ -503,13 +503,13 @@ public Builder mergeFrom(
*
*
* Required. The resource name of the log to delete:
- * "projects/[PROJECT_ID]/logs/[LOG_ID]"
- * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
- * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
- * "folders/[FOLDER_ID]/logs/[LOG_ID]"
+ * * `projects/[PROJECT_ID]/logs/[LOG_ID]`
+ * * `organizations/[ORGANIZATION_ID]/logs/[LOG_ID]`
+ * * `billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]`
+ * * `folders/[FOLDER_ID]/logs/[LOG_ID]`
* `[LOG_ID]` must be URL-encoded. For example,
* `"projects/my-project-id/logs/syslog"`,
- * `"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
+ * `"organizations/123/logs/cloudaudit.googleapis.com%2Factivity"`.
* For more information about log names, see
* [LogEntry][google.logging.v2.LogEntry].
*
@@ -536,13 +536,13 @@ public java.lang.String getLogName() {
*
*
* Required. The resource name of the log to delete:
- * "projects/[PROJECT_ID]/logs/[LOG_ID]"
- * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
- * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
- * "folders/[FOLDER_ID]/logs/[LOG_ID]"
+ * * `projects/[PROJECT_ID]/logs/[LOG_ID]`
+ * * `organizations/[ORGANIZATION_ID]/logs/[LOG_ID]`
+ * * `billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]`
+ * * `folders/[FOLDER_ID]/logs/[LOG_ID]`
* `[LOG_ID]` must be URL-encoded. For example,
* `"projects/my-project-id/logs/syslog"`,
- * `"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
+ * `"organizations/123/logs/cloudaudit.googleapis.com%2Factivity"`.
* For more information about log names, see
* [LogEntry][google.logging.v2.LogEntry].
*
@@ -569,13 +569,13 @@ public com.google.protobuf.ByteString getLogNameBytes() {
*
*
* Required. The resource name of the log to delete:
- * "projects/[PROJECT_ID]/logs/[LOG_ID]"
- * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
- * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
- * "folders/[FOLDER_ID]/logs/[LOG_ID]"
+ * * `projects/[PROJECT_ID]/logs/[LOG_ID]`
+ * * `organizations/[ORGANIZATION_ID]/logs/[LOG_ID]`
+ * * `billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]`
+ * * `folders/[FOLDER_ID]/logs/[LOG_ID]`
* `[LOG_ID]` must be URL-encoded. For example,
* `"projects/my-project-id/logs/syslog"`,
- * `"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
+ * `"organizations/123/logs/cloudaudit.googleapis.com%2Factivity"`.
* For more information about log names, see
* [LogEntry][google.logging.v2.LogEntry].
*
@@ -601,13 +601,13 @@ public Builder setLogName(java.lang.String value) {
*
*
* Required. The resource name of the log to delete:
- * "projects/[PROJECT_ID]/logs/[LOG_ID]"
- * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
- * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
- * "folders/[FOLDER_ID]/logs/[LOG_ID]"
+ * * `projects/[PROJECT_ID]/logs/[LOG_ID]`
+ * * `organizations/[ORGANIZATION_ID]/logs/[LOG_ID]`
+ * * `billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]`
+ * * `folders/[FOLDER_ID]/logs/[LOG_ID]`
* `[LOG_ID]` must be URL-encoded. For example,
* `"projects/my-project-id/logs/syslog"`,
- * `"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
+ * `"organizations/123/logs/cloudaudit.googleapis.com%2Factivity"`.
* For more information about log names, see
* [LogEntry][google.logging.v2.LogEntry].
*
@@ -629,13 +629,13 @@ public Builder clearLogName() {
*
*
* Required. The resource name of the log to delete:
- * "projects/[PROJECT_ID]/logs/[LOG_ID]"
- * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
- * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
- * "folders/[FOLDER_ID]/logs/[LOG_ID]"
+ * * `projects/[PROJECT_ID]/logs/[LOG_ID]`
+ * * `organizations/[ORGANIZATION_ID]/logs/[LOG_ID]`
+ * * `billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]`
+ * * `folders/[FOLDER_ID]/logs/[LOG_ID]`
* `[LOG_ID]` must be URL-encoded. For example,
* `"projects/my-project-id/logs/syslog"`,
- * `"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
+ * `"organizations/123/logs/cloudaudit.googleapis.com%2Factivity"`.
* For more information about log names, see
* [LogEntry][google.logging.v2.LogEntry].
*
diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequestOrBuilder.java
index b7365fb14..e2ddc3230 100644
--- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequestOrBuilder.java
+++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogRequestOrBuilder.java
@@ -28,13 +28,13 @@ public interface DeleteLogRequestOrBuilder
*
*
* Required. The resource name of the log to delete:
- * "projects/[PROJECT_ID]/logs/[LOG_ID]"
- * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
- * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
- * "folders/[FOLDER_ID]/logs/[LOG_ID]"
+ * * `projects/[PROJECT_ID]/logs/[LOG_ID]`
+ * * `organizations/[ORGANIZATION_ID]/logs/[LOG_ID]`
+ * * `billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]`
+ * * `folders/[FOLDER_ID]/logs/[LOG_ID]`
* `[LOG_ID]` must be URL-encoded. For example,
* `"projects/my-project-id/logs/syslog"`,
- * `"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
+ * `"organizations/123/logs/cloudaudit.googleapis.com%2Factivity"`.
* For more information about log names, see
* [LogEntry][google.logging.v2.LogEntry].
*
@@ -51,13 +51,13 @@ public interface DeleteLogRequestOrBuilder
*
*
* Required. The resource name of the log to delete:
- * "projects/[PROJECT_ID]/logs/[LOG_ID]"
- * "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
- * "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
- * "folders/[FOLDER_ID]/logs/[LOG_ID]"
+ * * `projects/[PROJECT_ID]/logs/[LOG_ID]`
+ * * `organizations/[ORGANIZATION_ID]/logs/[LOG_ID]`
+ * * `billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]`
+ * * `folders/[FOLDER_ID]/logs/[LOG_ID]`
* `[LOG_ID]` must be URL-encoded. For example,
* `"projects/my-project-id/logs/syslog"`,
- * `"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
+ * `"organizations/123/logs/cloudaudit.googleapis.com%2Factivity"`.
* For more information about log names, see
* [LogEntry][google.logging.v2.LogEntry].
*
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 dc33d8ab0..8eb6eefb9 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
@@ -123,7 +123,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
* "folders/[FOLDER_ID]/sinks/[SINK_ID]"
- * Example: `"projects/my-project-id/sinks/my-sink-id"`.
+ * For example:
+ * `"projects/my-project/sinks/my-sink"`
*
*
*
@@ -154,7 +155,8 @@ public java.lang.String getSinkName() {
* "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
* "folders/[FOLDER_ID]/sinks/[SINK_ID]"
- * Example: `"projects/my-project-id/sinks/my-sink-id"`.
+ * For example:
+ * `"projects/my-project/sinks/my-sink"`
*
*
*
@@ -502,7 +504,8 @@ public Builder mergeFrom(
* "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
* "folders/[FOLDER_ID]/sinks/[SINK_ID]"
- * Example: `"projects/my-project-id/sinks/my-sink-id"`.
+ * For example:
+ * `"projects/my-project/sinks/my-sink"`
*
*
*
@@ -532,7 +535,8 @@ public java.lang.String getSinkName() {
* "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
* "folders/[FOLDER_ID]/sinks/[SINK_ID]"
- * Example: `"projects/my-project-id/sinks/my-sink-id"`.
+ * For example:
+ * `"projects/my-project/sinks/my-sink"`
*
*
*
@@ -562,7 +566,8 @@ public com.google.protobuf.ByteString getSinkNameBytes() {
* "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
* "folders/[FOLDER_ID]/sinks/[SINK_ID]"
- * Example: `"projects/my-project-id/sinks/my-sink-id"`.
+ * For example:
+ * `"projects/my-project/sinks/my-sink"`
*
*
*
@@ -591,7 +596,8 @@ public Builder setSinkName(java.lang.String value) {
* "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
* "folders/[FOLDER_ID]/sinks/[SINK_ID]"
- * Example: `"projects/my-project-id/sinks/my-sink-id"`.
+ * For example:
+ * `"projects/my-project/sinks/my-sink"`
*
*
*
@@ -616,7 +622,8 @@ public Builder clearSinkName() {
* "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
* "folders/[FOLDER_ID]/sinks/[SINK_ID]"
- * Example: `"projects/my-project-id/sinks/my-sink-id"`.
+ * For example:
+ * `"projects/my-project/sinks/my-sink"`
*
*
*
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 75186cb69..79667a089 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
@@ -33,7 +33,8 @@ public interface DeleteSinkRequestOrBuilder
* "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
* "folders/[FOLDER_ID]/sinks/[SINK_ID]"
- * Example: `"projects/my-project-id/sinks/my-sink-id"`.
+ * For example:
+ * `"projects/my-project/sinks/my-sink"`
*
*
*
@@ -53,7 +54,8 @@ public interface DeleteSinkRequestOrBuilder
* "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
* "folders/[FOLDER_ID]/sinks/[SINK_ID]"
- * Example: `"projects/my-project-id/sinks/my-sink-id"`.
+ * For example:
+ * `"projects/my-project/sinks/my-sink"`
*
*
*
diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequest.java
index 1752b0b17..a59ae8e23 100644
--- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequest.java
+++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequest.java
@@ -119,8 +119,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
* Required. The full resource name of the view to delete:
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
- * Example:
- * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`.
+ * For example:
+ * `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
*
*
*
@@ -147,8 +147,8 @@ public java.lang.String getName() {
*
* Required. The full resource name of the view to delete:
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
- * Example:
- * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`.
+ * For example:
+ * `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
*
*
*
@@ -492,8 +492,8 @@ public Builder mergeFrom(
*
* Required. The full resource name of the view to delete:
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
- * Example:
- * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`.
+ * For example:
+ * `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
*
*
*
@@ -519,8 +519,8 @@ public java.lang.String getName() {
*
* Required. The full resource name of the view to delete:
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
- * Example:
- * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`.
+ * For example:
+ * `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
*
*
*
@@ -546,8 +546,8 @@ public com.google.protobuf.ByteString getNameBytes() {
*
* Required. The full resource name of the view to delete:
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
- * Example:
- * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`.
+ * For example:
+ * `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
*
*
*
@@ -572,8 +572,8 @@ public Builder setName(java.lang.String value) {
*
* Required. The full resource name of the view to delete:
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
- * Example:
- * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`.
+ * For example:
+ * `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
*
*
*
@@ -594,8 +594,8 @@ public Builder clearName() {
*
* Required. The full resource name of the view to delete:
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
- * Example:
- * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`.
+ * For example:
+ * `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
*
*
*
diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequestOrBuilder.java
index 5e9385db1..ecd296107 100644
--- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequestOrBuilder.java
+++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteViewRequestOrBuilder.java
@@ -29,8 +29,8 @@ public interface DeleteViewRequestOrBuilder
*
* Required. The full resource name of the view to delete:
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
- * Example:
- * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`.
+ * For example:
+ * `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
*
*
*
@@ -46,8 +46,8 @@ public interface DeleteViewRequestOrBuilder
*
* Required. The full resource name of the view to delete:
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
- * Example:
- * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`.
+ * For example:
+ * `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
*
*
*
diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetBucketRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetBucketRequest.java
index 9b42b0a4d..afe70b4c4 100644
--- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetBucketRequest.java
+++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetBucketRequest.java
@@ -122,8 +122,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
- * Example:
- * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`.
+ * For example:
+ * `"projects/my-project/locations/global/buckets/my-bucket"`
*
*
*
@@ -153,8 +153,8 @@ public java.lang.String getName() {
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
- * Example:
- * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`.
+ * For example:
+ * `"projects/my-project/locations/global/buckets/my-bucket"`
*
*
*
@@ -501,8 +501,8 @@ public Builder mergeFrom(
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
- * Example:
- * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`.
+ * For example:
+ * `"projects/my-project/locations/global/buckets/my-bucket"`
*
*
*
@@ -531,8 +531,8 @@ public java.lang.String getName() {
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
- * Example:
- * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`.
+ * For example:
+ * `"projects/my-project/locations/global/buckets/my-bucket"`
*
*
*
@@ -561,8 +561,8 @@ public com.google.protobuf.ByteString getNameBytes() {
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
- * Example:
- * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`.
+ * For example:
+ * `"projects/my-project/locations/global/buckets/my-bucket"`
*
*
*
@@ -590,8 +590,8 @@ public Builder setName(java.lang.String value) {
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
- * Example:
- * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`.
+ * For example:
+ * `"projects/my-project/locations/global/buckets/my-bucket"`
*
*
*
@@ -615,8 +615,8 @@ public Builder clearName() {
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
- * Example:
- * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`.
+ * For example:
+ * `"projects/my-project/locations/global/buckets/my-bucket"`
*
*
*
diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetBucketRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetBucketRequestOrBuilder.java
index 41d68d9a1..3be788db4 100644
--- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetBucketRequestOrBuilder.java
+++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetBucketRequestOrBuilder.java
@@ -32,8 +32,8 @@ public interface GetBucketRequestOrBuilder
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
- * Example:
- * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`.
+ * For example:
+ * `"projects/my-project/locations/global/buckets/my-bucket"`
*
*
*
@@ -52,8 +52,8 @@ public interface GetBucketRequestOrBuilder
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
- * Example:
- * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`.
+ * For example:
+ * `"projects/my-project/locations/global/buckets/my-bucket"`
*
*
*
diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequest.java
index e7e05708a..e166ad6c4 100644
--- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequest.java
+++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequest.java
@@ -24,7 +24,7 @@
*
* The parameters to
* [GetCmekSettings][google.logging.v2.ConfigServiceV2.GetCmekSettings].
- * See [Enabling CMEK for Logs
+ * See [Enabling CMEK for Log
* Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for
* more information.
*
@@ -126,10 +126,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* "organizations/[ORGANIZATION_ID]/cmekSettings"
* "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
* "folders/[FOLDER_ID]/cmekSettings"
- * Example: `"organizations/12345/cmekSettings"`.
- * Note: CMEK for the Logs Router can currently only be configured for GCP
- * organizations. Once configured, it applies to all projects and folders in
- * the GCP organization.
+ * For example:
+ * `"organizations/12345/cmekSettings"`
+ * Note: CMEK for the Log Router can be configured for Google Cloud projects,
+ * folders, organizations and billing accounts. Once configured for an
+ * organization, it applies to all projects and folders in the Google Cloud
+ * organization.
*
*
*
@@ -159,10 +161,12 @@ public java.lang.String getName() {
* "organizations/[ORGANIZATION_ID]/cmekSettings"
* "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
* "folders/[FOLDER_ID]/cmekSettings"
- * Example: `"organizations/12345/cmekSettings"`.
- * Note: CMEK for the Logs Router can currently only be configured for GCP
- * organizations. Once configured, it applies to all projects and folders in
- * the GCP organization.
+ * For example:
+ * `"organizations/12345/cmekSettings"`
+ * Note: CMEK for the Log Router can be configured for Google Cloud projects,
+ * folders, organizations and billing accounts. Once configured for an
+ * organization, it applies to all projects and folders in the Google Cloud
+ * organization.
*
*
*
@@ -349,7 +353,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
* The parameters to
* [GetCmekSettings][google.logging.v2.ConfigServiceV2.GetCmekSettings].
- * See [Enabling CMEK for Logs
+ * See [Enabling CMEK for Log
* Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for
* more information.
*
@@ -514,10 +518,12 @@ public Builder mergeFrom(
* "organizations/[ORGANIZATION_ID]/cmekSettings"
* "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
* "folders/[FOLDER_ID]/cmekSettings"
- * Example: `"organizations/12345/cmekSettings"`.
- * Note: CMEK for the Logs Router can currently only be configured for GCP
- * organizations. Once configured, it applies to all projects and folders in
- * the GCP organization.
+ * For example:
+ * `"organizations/12345/cmekSettings"`
+ * Note: CMEK for the Log Router can be configured for Google Cloud projects,
+ * folders, organizations and billing accounts. Once configured for an
+ * organization, it applies to all projects and folders in the Google Cloud
+ * organization.
*
*
*
@@ -546,10 +552,12 @@ public java.lang.String getName() {
* "organizations/[ORGANIZATION_ID]/cmekSettings"
* "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
* "folders/[FOLDER_ID]/cmekSettings"
- * Example: `"organizations/12345/cmekSettings"`.
- * Note: CMEK for the Logs Router can currently only be configured for GCP
- * organizations. Once configured, it applies to all projects and folders in
- * the GCP organization.
+ * For example:
+ * `"organizations/12345/cmekSettings"`
+ * Note: CMEK for the Log Router can be configured for Google Cloud projects,
+ * folders, organizations and billing accounts. Once configured for an
+ * organization, it applies to all projects and folders in the Google Cloud
+ * organization.
*
*
*
@@ -578,10 +586,12 @@ public com.google.protobuf.ByteString getNameBytes() {
* "organizations/[ORGANIZATION_ID]/cmekSettings"
* "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
* "folders/[FOLDER_ID]/cmekSettings"
- * Example: `"organizations/12345/cmekSettings"`.
- * Note: CMEK for the Logs Router can currently only be configured for GCP
- * organizations. Once configured, it applies to all projects and folders in
- * the GCP organization.
+ * For example:
+ * `"organizations/12345/cmekSettings"`
+ * Note: CMEK for the Log Router can be configured for Google Cloud projects,
+ * folders, organizations and billing accounts. Once configured for an
+ * organization, it applies to all projects and folders in the Google Cloud
+ * organization.
*
*
*
@@ -609,10 +619,12 @@ public Builder setName(java.lang.String value) {
* "organizations/[ORGANIZATION_ID]/cmekSettings"
* "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
* "folders/[FOLDER_ID]/cmekSettings"
- * Example: `"organizations/12345/cmekSettings"`.
- * Note: CMEK for the Logs Router can currently only be configured for GCP
- * organizations. Once configured, it applies to all projects and folders in
- * the GCP organization.
+ * For example:
+ * `"organizations/12345/cmekSettings"`
+ * Note: CMEK for the Log Router can be configured for Google Cloud projects,
+ * folders, organizations and billing accounts. Once configured for an
+ * organization, it applies to all projects and folders in the Google Cloud
+ * organization.
*
*
*
@@ -636,10 +648,12 @@ public Builder clearName() {
* "organizations/[ORGANIZATION_ID]/cmekSettings"
* "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
* "folders/[FOLDER_ID]/cmekSettings"
- * Example: `"organizations/12345/cmekSettings"`.
- * Note: CMEK for the Logs Router can currently only be configured for GCP
- * organizations. Once configured, it applies to all projects and folders in
- * the GCP organization.
+ * For example:
+ * `"organizations/12345/cmekSettings"`
+ * Note: CMEK for the Log Router can be configured for Google Cloud projects,
+ * folders, organizations and billing accounts. Once configured for an
+ * organization, it applies to all projects and folders in the Google Cloud
+ * organization.
*
*
*
diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequestOrBuilder.java
index f1be32ee6..c59b26e69 100644
--- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequestOrBuilder.java
+++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequestOrBuilder.java
@@ -32,10 +32,12 @@ public interface GetCmekSettingsRequestOrBuilder
* "organizations/[ORGANIZATION_ID]/cmekSettings"
* "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
* "folders/[FOLDER_ID]/cmekSettings"
- * Example: `"organizations/12345/cmekSettings"`.
- * Note: CMEK for the Logs Router can currently only be configured for GCP
- * organizations. Once configured, it applies to all projects and folders in
- * the GCP organization.
+ * For example:
+ * `"organizations/12345/cmekSettings"`
+ * Note: CMEK for the Log Router can be configured for Google Cloud projects,
+ * folders, organizations and billing accounts. Once configured for an
+ * organization, it applies to all projects and folders in the Google Cloud
+ * organization.
*
*
*
@@ -54,10 +56,12 @@ public interface GetCmekSettingsRequestOrBuilder
* "organizations/[ORGANIZATION_ID]/cmekSettings"
* "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
* "folders/[FOLDER_ID]/cmekSettings"
- * Example: `"organizations/12345/cmekSettings"`.
- * Note: CMEK for the Logs Router can currently only be configured for GCP
- * organizations. Once configured, it applies to all projects and folders in
- * the GCP organization.
+ * For example:
+ * `"organizations/12345/cmekSettings"`
+ * Note: CMEK for the Log Router can be configured for Google Cloud projects,
+ * folders, organizations and billing accounts. Once configured for an
+ * organization, it applies to all projects and folders in the Google Cloud
+ * organization.
*
*
*
diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequest.java
index bd275456f..cae5c731e 100644
--- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequest.java
+++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequest.java
@@ -122,7 +122,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
* "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
- * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
+ * For example:
+ * `"projects/my-project/exclusions/my-exclusion"`
*
*
*
@@ -152,7 +153,8 @@ public java.lang.String getName() {
* "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
* "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
- * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
+ * For example:
+ * `"projects/my-project/exclusions/my-exclusion"`
*
*
*
@@ -500,7 +502,8 @@ public Builder mergeFrom(
* "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
* "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
- * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
+ * For example:
+ * `"projects/my-project/exclusions/my-exclusion"`
*
*
*