diff --git a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigClient.java b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigClient.java index cf5b1db53..cf3f9a201 100644 --- a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigClient.java +++ b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigClient.java @@ -20,9 +20,11 @@ import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.longrunning.OperationFuture; import com.google.api.gax.paging.AbstractFixedSizeCollection; import com.google.api.gax.paging.AbstractPage; import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.logging.v2.stub.ConfigServiceV2Stub; @@ -31,6 +33,9 @@ import com.google.logging.v2.BillingAccountLocationName; import com.google.logging.v2.BillingAccountName; import com.google.logging.v2.CmekSettings; +import com.google.logging.v2.CopyLogEntriesMetadata; +import com.google.logging.v2.CopyLogEntriesRequest; +import com.google.logging.v2.CopyLogEntriesResponse; import com.google.logging.v2.CreateBucketRequest; import com.google.logging.v2.CreateExclusionRequest; import com.google.logging.v2.CreateSinkRequest; @@ -44,6 +49,7 @@ import com.google.logging.v2.GetBucketRequest; import com.google.logging.v2.GetCmekSettingsRequest; import com.google.logging.v2.GetExclusionRequest; +import com.google.logging.v2.GetSettingsRequest; import com.google.logging.v2.GetSinkRequest; import com.google.logging.v2.GetViewRequest; import com.google.logging.v2.ListBucketsRequest; @@ -64,12 +70,17 @@ import com.google.logging.v2.OrganizationLocationName; import com.google.logging.v2.OrganizationName; import com.google.logging.v2.ProjectName; +import com.google.logging.v2.Settings; +import com.google.logging.v2.SettingsName; import com.google.logging.v2.UndeleteBucketRequest; import com.google.logging.v2.UpdateBucketRequest; import com.google.logging.v2.UpdateCmekSettingsRequest; import com.google.logging.v2.UpdateExclusionRequest; +import com.google.logging.v2.UpdateSettingsRequest; import com.google.logging.v2.UpdateSinkRequest; import com.google.logging.v2.UpdateViewRequest; +import com.google.longrunning.Operation; +import com.google.longrunning.OperationsClient; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import java.io.IOException; @@ -145,6 +156,7 @@ public class ConfigClient implements BackgroundResource { private final ConfigSettings settings; private final ConfigServiceV2Stub stub; + private final OperationsClient operationsClient; /** Constructs an instance of ConfigClient with default settings. */ public static final ConfigClient create() throws IOException { @@ -175,12 +187,14 @@ public static final ConfigClient create(ConfigServiceV2Stub stub) { protected ConfigClient(ConfigSettings settings) throws IOException { this.settings = settings; this.stub = ((ConfigServiceV2StubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected ConfigClient(ConfigServiceV2Stub stub) { this.settings = null; this.stub = stub; + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } public final ConfigSettings getSettings() { @@ -192,9 +206,17 @@ public ConfigServiceV2Stub getStub() { return stub; } + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists buckets. + * Lists log buckets. * *

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

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

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

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

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

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

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

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

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

Sample code: * @@ -488,8 +510,8 @@ public final UnaryCallable getBucketCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a bucket that can be used to store log entries. Once a bucket has been created, the - * region cannot be changed. + * Creates a log bucket that can be used to store log entries. After a bucket has been created, + * the bucket's location cannot be changed. * *

Sample code: * @@ -514,8 +536,8 @@ public final LogBucket createBucket(CreateBucketRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a bucket that can be used to store log entries. Once a bucket has been created, the - * region cannot be changed. + * Creates a log bucket that can be used to store log entries. After a bucket has been created, + * the bucket's location cannot be changed. * *

Sample code: * @@ -539,16 +561,16 @@ public final UnaryCallable createBucketCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a bucket. This method replaces the following fields in the existing bucket with values - * from the new bucket: `retention_period` + * Updates a log bucket. This method replaces the following fields in the existing bucket with + * values from the new bucket: `retention_period` * - *

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

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

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

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

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

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

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

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

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

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

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

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

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

Sample code: * @@ -610,8 +632,10 @@ public final UnaryCallable updateBucketCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a bucket. Moves the bucket to the DELETE_REQUESTED state. After 7 days, the bucket will - * be purged and all logs in the bucket will be permanently deleted. + * Deletes a log bucket. + * + *

Changes the bucket's `lifecycle_state` to the `DELETE_REQUESTED` state. After 7 days, the + * bucket will be purged and all log entries in the bucket will be permanently deleted. * *

Sample code: * @@ -636,8 +660,10 @@ public final void deleteBucket(DeleteBucketRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a bucket. Moves the bucket to the DELETE_REQUESTED state. After 7 days, the bucket will - * be purged and all logs in the bucket will be permanently deleted. + * Deletes a log bucket. + * + *

Changes the bucket's `lifecycle_state` to the `DELETE_REQUESTED` state. After 7 days, the + * bucket will be purged and all log entries in the bucket will be permanently deleted. * *

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

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

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

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

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

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

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

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

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

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

Sample code: * @@ -922,8 +948,10 @@ public final UnaryCallable createViewCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a view. This method replaces the following fields in the existing view with values from - * the new view: `filter`. + * Updates a view on a log bucket. This method replaces the following fields in the existing view + * with values from the new view: `filter`. If an `UNAVAILABLE` error is returned, this indicates + * that system is not in a state where it can update the view. If this occurs, please try again in + * a few minutes. * *

Sample code: * @@ -948,8 +976,10 @@ public final LogView updateView(UpdateViewRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a view. This method replaces the following fields in the existing view with values from - * the new view: `filter`. + * Updates a view on a log bucket. This method replaces the following fields in the existing view + * with values from the new view: `filter`. If an `UNAVAILABLE` error is returned, this indicates + * that system is not in a state where it can update the view. If this occurs, please try again in + * a few minutes. * *

Sample code: * @@ -973,7 +1003,9 @@ public final UnaryCallable updateViewCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a view from a bucket. + * Deletes a view on a log bucket. If an `UNAVAILABLE` error is returned, this indicates that + * system is not in a state where it can delete the view. If this occurs, please try again in a + * few minutes. * *

Sample code: * @@ -999,7 +1031,9 @@ public final void deleteView(DeleteViewRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a view from a bucket. + * Deletes a view on a log bucket. If an `UNAVAILABLE` error is returned, this indicates that + * system is not in a state where it can delete the view. If this occurs, please try again in a + * few minutes. * *

Sample code: * @@ -1255,7 +1289,8 @@ public final UnaryCallable listSinksCallabl * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" * "folders/[FOLDER_ID]/sinks/[SINK_ID]" - *

Example: `"projects/my-project-id/sinks/my-sink-id"`. + *

For example: + *

`"projects/my-project/sinks/my-sink"` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final LogSink getSink(LogSinkName sinkName) { @@ -1284,7 +1319,8 @@ public final LogSink getSink(LogSinkName sinkName) { * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" * "folders/[FOLDER_ID]/sinks/[SINK_ID]" - *

Example: `"projects/my-project-id/sinks/my-sink-id"`. + *

For example: + *

`"projects/my-project/sinks/my-sink"` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final LogSink getSink(String sinkName) { @@ -1357,7 +1393,8 @@ public final UnaryCallable getSinkCallable() { * @param parent Required. The resource in which to create the sink: *

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

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

For examples: + *

`"projects/my-project"` `"organizations/123456789"` * @param sink Required. The new sink, whose `name` parameter is a sink identifier that is not * already in use. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -1391,7 +1428,8 @@ public final LogSink createSink(BillingAccountName parent, LogSink sink) { * @param parent Required. The resource in which to create the sink: *

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

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

For examples: + *

`"projects/my-project"` `"organizations/123456789"` * @param sink Required. The new sink, whose `name` parameter is a sink identifier that is not * already in use. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -1425,7 +1463,8 @@ public final LogSink createSink(FolderName parent, LogSink sink) { * @param parent Required. The resource in which to create the sink: *

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

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

For examples: + *

`"projects/my-project"` `"organizations/123456789"` * @param sink Required. The new sink, whose `name` parameter is a sink identifier that is not * already in use. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -1459,7 +1498,8 @@ public final LogSink createSink(OrganizationName parent, LogSink sink) { * @param parent Required. The resource in which to create the sink: *

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

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

For examples: + *

`"projects/my-project"` `"organizations/123456789"` * @param sink Required. The new sink, whose `name` parameter is a sink identifier that is not * already in use. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -1493,7 +1533,8 @@ public final LogSink createSink(ProjectName parent, LogSink sink) { * @param parent Required. The resource in which to create the sink: *

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

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

For examples: + *

`"projects/my-project"` `"organizations/123456789"` * @param sink Required. The new sink, whose `name` parameter is a sink identifier that is not * already in use. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -1583,7 +1624,8 @@ public final UnaryCallable createSinkCallable() { * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" * "folders/[FOLDER_ID]/sinks/[SINK_ID]" - *

Example: `"projects/my-project-id/sinks/my-sink-id"`. + *

For example: + *

`"projects/my-project/sinks/my-sink"` * @param sink Required. The updated sink, whose name is the same identifier that appears as part * of `sink_name`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -1621,7 +1663,8 @@ public final LogSink updateSink(LogSinkName sinkName, LogSink sink) { * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" * "folders/[FOLDER_ID]/sinks/[SINK_ID]" - *

Example: `"projects/my-project-id/sinks/my-sink-id"`. + *

For example: + *

`"projects/my-project/sinks/my-sink"` * @param sink Required. The updated sink, whose name is the same identifier that appears as part * of `sink_name`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -1657,18 +1700,21 @@ public final LogSink updateSink(String sinkName, LogSink sink) { * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" * "folders/[FOLDER_ID]/sinks/[SINK_ID]" - *

Example: `"projects/my-project-id/sinks/my-sink-id"`. + *

For example: + *

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

An empty updateMask is temporarily treated as using the following mask for backwards - * compatibility purposes: destination,filter,includeChildren At some point in the future, - * behavior will be removed and specifying an empty updateMask will be an error. + *

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

`destination,filter,includeChildren` + *

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

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

Example: `updateMask=filter`. + *

For example: `updateMask=filter` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final LogSink updateSink(LogSinkName sinkName, LogSink sink, FieldMask updateMask) { @@ -1706,18 +1752,21 @@ public final LogSink updateSink(LogSinkName sinkName, LogSink sink, FieldMask up * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" * "folders/[FOLDER_ID]/sinks/[SINK_ID]" - *

Example: `"projects/my-project-id/sinks/my-sink-id"`. + *

For example: + *

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

An empty updateMask is temporarily treated as using the following mask for backwards - * compatibility purposes: destination,filter,includeChildren At some point in the future, - * behavior will be removed and specifying an empty updateMask will be an error. + *

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

`destination,filter,includeChildren` + *

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

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

Example: `updateMask=filter`. + *

For example: `updateMask=filter` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final LogSink updateSink(String sinkName, LogSink sink, FieldMask updateMask) { @@ -1809,7 +1858,8 @@ public final UnaryCallable updateSinkCallable() { * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" * "folders/[FOLDER_ID]/sinks/[SINK_ID]" - *

Example: `"projects/my-project-id/sinks/my-sink-id"`. + *

For example: + *

`"projects/my-project/sinks/my-sink"` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteSink(LogSinkName sinkName) { @@ -1840,7 +1890,8 @@ public final void deleteSink(LogSinkName sinkName) { * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" * "folders/[FOLDER_ID]/sinks/[SINK_ID]" - *

Example: `"projects/my-project-id/sinks/my-sink-id"`. + *

For example: + *

`"projects/my-project/sinks/my-sink"` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteSink(String sinkName) { @@ -1897,7 +1948,7 @@ public final UnaryCallable deleteSinkCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists all the exclusions in a parent resource. + * Lists all the exclusions on the _Default sink in a parent resource. * *

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

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

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

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

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

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

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

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

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

Example: `"projects/my-project-id/exclusions/my-exclusion-id"`. + *

For example: + *

`"projects/my-project/exclusions/my-exclusion"` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final LogExclusion getExclusion(LogExclusionName name) { @@ -2150,7 +2202,7 @@ public final LogExclusion getExclusion(LogExclusionName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the description of an exclusion. + * Gets the description of an exclusion in the _Default sink. * *

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

Example: `"projects/my-project-id/exclusions/my-exclusion-id"`. + *

For example: + *

`"projects/my-project/exclusions/my-exclusion"` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final LogExclusion getExclusion(String name) { @@ -2176,7 +2229,7 @@ public final LogExclusion getExclusion(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets the description of an exclusion. + * Gets the description of an exclusion in the _Default sink. * *

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

Sample code: * @@ -2223,8 +2276,8 @@ public final UnaryCallable getExclusionCallab // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new exclusion in a specified parent resource. Only log entries belonging to that - * resource can be excluded. You can have up to 10 exclusions in a resource. + * Creates a new exclusion in the _Default sink in a specified parent resource. Only log entries + * belonging to that resource can be excluded. You can have up to 10 exclusions in a resource. * *

Sample code: * @@ -2239,7 +2292,8 @@ public final UnaryCallable getExclusionCallab * @param parent Required. The parent resource in which to create the exclusion: *

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

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

For examples: + *

`"projects/my-logging-project"` `"organizations/123456789"` * @param exclusion Required. The new exclusion, whose `name` parameter is an exclusion name that * is not already used in the parent resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -2255,8 +2309,8 @@ public final LogExclusion createExclusion(BillingAccountName parent, LogExclusio // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new exclusion in a specified parent resource. Only log entries belonging to that - * resource can be excluded. You can have up to 10 exclusions in a resource. + * Creates a new exclusion in the _Default sink in a specified parent resource. Only log entries + * belonging to that resource can be excluded. You can have up to 10 exclusions in a resource. * *

Sample code: * @@ -2271,7 +2325,8 @@ public final LogExclusion createExclusion(BillingAccountName parent, LogExclusio * @param parent Required. The parent resource in which to create the exclusion: *

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

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

For examples: + *

`"projects/my-logging-project"` `"organizations/123456789"` * @param exclusion Required. The new exclusion, whose `name` parameter is an exclusion name that * is not already used in the parent resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -2287,8 +2342,8 @@ public final LogExclusion createExclusion(FolderName parent, LogExclusion exclus // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new exclusion in a specified parent resource. Only log entries belonging to that - * resource can be excluded. You can have up to 10 exclusions in a resource. + * Creates a new exclusion in the _Default sink in a specified parent resource. Only log entries + * belonging to that resource can be excluded. You can have up to 10 exclusions in a resource. * *

Sample code: * @@ -2303,7 +2358,8 @@ public final LogExclusion createExclusion(FolderName parent, LogExclusion exclus * @param parent Required. The parent resource in which to create the exclusion: *

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

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

For examples: + *

`"projects/my-logging-project"` `"organizations/123456789"` * @param exclusion Required. The new exclusion, whose `name` parameter is an exclusion name that * is not already used in the parent resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -2319,8 +2375,8 @@ public final LogExclusion createExclusion(OrganizationName parent, LogExclusion // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new exclusion in a specified parent resource. Only log entries belonging to that - * resource can be excluded. You can have up to 10 exclusions in a resource. + * Creates a new exclusion in the _Default sink in a specified parent resource. Only log entries + * belonging to that resource can be excluded. You can have up to 10 exclusions in a resource. * *

Sample code: * @@ -2335,7 +2391,8 @@ public final LogExclusion createExclusion(OrganizationName parent, LogExclusion * @param parent Required. The parent resource in which to create the exclusion: *

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

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

For examples: + *

`"projects/my-logging-project"` `"organizations/123456789"` * @param exclusion Required. The new exclusion, whose `name` parameter is an exclusion name that * is not already used in the parent resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -2351,8 +2408,8 @@ public final LogExclusion createExclusion(ProjectName parent, LogExclusion exclu // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new exclusion in a specified parent resource. Only log entries belonging to that - * resource can be excluded. You can have up to 10 exclusions in a resource. + * Creates a new exclusion in the _Default sink in a specified parent resource. Only log entries + * belonging to that resource can be excluded. You can have up to 10 exclusions in a resource. * *

Sample code: * @@ -2367,7 +2424,8 @@ public final LogExclusion createExclusion(ProjectName parent, LogExclusion exclu * @param parent Required. The parent resource in which to create the exclusion: *

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

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

For examples: + *

`"projects/my-logging-project"` `"organizations/123456789"` * @param exclusion Required. The new exclusion, whose `name` parameter is an exclusion name that * is not already used in the parent resource. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -2380,8 +2438,8 @@ public final LogExclusion createExclusion(String parent, LogExclusion exclusion) // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new exclusion in a specified parent resource. Only log entries belonging to that - * resource can be excluded. You can have up to 10 exclusions in a resource. + * Creates a new exclusion in the _Default sink in a specified parent resource. Only log entries + * belonging to that resource can be excluded. You can have up to 10 exclusions in a resource. * *

Sample code: * @@ -2405,8 +2463,8 @@ public final LogExclusion createExclusion(CreateExclusionRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new exclusion in a specified parent resource. Only log entries belonging to that - * resource can be excluded. You can have up to 10 exclusions in a resource. + * Creates a new exclusion in the _Default sink in a specified parent resource. Only log entries + * belonging to that resource can be excluded. You can have up to 10 exclusions in a resource. * *

Sample code: * @@ -2429,7 +2487,7 @@ public final UnaryCallable createExclusion // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Changes one or more properties of an existing exclusion. + * Changes one or more properties of an existing exclusion in the _Default sink. * *

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

Example: `"projects/my-project-id/exclusions/my-exclusion-id"`. + *

For example: + *

`"projects/my-project/exclusions/my-exclusion"` * @param exclusion Required. New values for the existing exclusion. Only the fields specified in * `update_mask` are relevant. * @param updateMask Required. A non-empty list of fields to change in the existing exclusion. New @@ -2471,7 +2530,7 @@ public final LogExclusion updateExclusion( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Changes one or more properties of an existing exclusion. + * Changes one or more properties of an existing exclusion in the _Default sink. * *

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

Example: `"projects/my-project-id/exclusions/my-exclusion-id"`. + *

For example: + *

`"projects/my-project/exclusions/my-exclusion"` * @param exclusion Required. New values for the existing exclusion. Only the fields specified in * `update_mask` are relevant. * @param updateMask Required. A non-empty list of fields to change in the existing exclusion. New @@ -2513,7 +2573,7 @@ public final LogExclusion updateExclusion( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Changes one or more properties of an existing exclusion. + * Changes one or more properties of an existing exclusion in the _Default sink. * *

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

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

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

Example: `"projects/my-project-id/exclusions/my-exclusion-id"`. + *

For example: + *

`"projects/my-project/exclusions/my-exclusion"` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteExclusion(LogExclusionName name) { @@ -2591,7 +2652,7 @@ public final void deleteExclusion(LogExclusionName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes an exclusion. + * Deletes an exclusion in the _Default sink. * *

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

Example: `"projects/my-project-id/exclusions/my-exclusion-id"`. + *

For example: + *

`"projects/my-project/exclusions/my-exclusion"` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteExclusion(String name) { @@ -2617,7 +2679,7 @@ public final void deleteExclusion(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes an exclusion. + * Deletes an exclusion in the _Default sink. * *

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

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

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

Note: CMEK for the Log Router can be configured for Google Cloud projects, folders, + * organizations and billing accounts. Once configured for an organization, it applies to all + * projects and folders in the Google Cloud organization. * - *

See [Enabling CMEK for Logs + *

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

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

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

Note: CMEK for the Log Router can be configured for Google Cloud projects, folders, + * organizations and billing accounts. Once configured for an organization, it applies to all + * projects and folders in the Google Cloud organization. * - *

See [Enabling CMEK for Logs + *

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

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

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

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

[UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings] will fail if 1) * `kms_key_name` is invalid, or 2) the associated service account does not have the required * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or 3) access to the key * is disabled. * - *

See [Enabling CMEK for Logs + *

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

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

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

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

[UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings] will fail if 1) * `kms_key_name` is invalid, or 2) the associated service account does not have the required * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or 3) access to the key * is disabled. * - *

See [Enabling CMEK for Logs + *

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

Sample code: @@ -2791,6 +2857,335 @@ public final UnaryCallable updateCmekSe return stub.updateCmekSettingsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the Log Router settings for the given resource. + * + *

Note: Settings for the Log Router can be get for Google Cloud projects, folders, + * organizations and billing accounts. Currently it can only be configured for organizations. Once + * configured for an organization, it applies to all projects and folders in the Google Cloud + * organization. + * + *

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

Sample code: + * + *

{@code
+   * try (ConfigClient configClient = ConfigClient.create()) {
+   *   SettingsName name = SettingsName.ofProjectName("[PROJECT]");
+   *   Settings response = configClient.getSettings(name);
+   * }
+   * }
+ * + * @param name Required. The resource for which to retrieve settings. + *

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

For example: + *

`"organizations/12345/settings"` + *

Note: Settings for the Log Router can be get for Google Cloud projects, folders, + * organizations and billing accounts. Currently it can only be configured for organizations. + * Once configured for an organization, it applies to all projects and folders in the Google + * Cloud organization. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Settings getSettings(SettingsName name) { + GetSettingsRequest request = + GetSettingsRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getSettings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the Log Router settings for the given resource. + * + *

Note: Settings for the Log Router can be get for Google Cloud projects, folders, + * organizations and billing accounts. Currently it can only be configured for organizations. Once + * configured for an organization, it applies to all projects and folders in the Google Cloud + * organization. + * + *

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

Sample code: + * + *

{@code
+   * try (ConfigClient configClient = ConfigClient.create()) {
+   *   String name = SettingsName.ofProjectName("[PROJECT]").toString();
+   *   Settings response = configClient.getSettings(name);
+   * }
+   * }
+ * + * @param name Required. The resource for which to retrieve settings. + *

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

For example: + *

`"organizations/12345/settings"` + *

Note: Settings for the Log Router can be get for Google Cloud projects, folders, + * organizations and billing accounts. Currently it can only be configured for organizations. + * Once configured for an organization, it applies to all projects and folders in the Google + * Cloud organization. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Settings getSettings(String name) { + GetSettingsRequest request = GetSettingsRequest.newBuilder().setName(name).build(); + return getSettings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the Log Router settings for the given resource. + * + *

Note: Settings for the Log Router can be get for Google Cloud projects, folders, + * organizations and billing accounts. Currently it can only be configured for organizations. Once + * configured for an organization, it applies to all projects and folders in the Google Cloud + * organization. + * + *

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

Sample code: + * + *

{@code
+   * try (ConfigClient configClient = ConfigClient.create()) {
+   *   GetSettingsRequest request =
+   *       GetSettingsRequest.newBuilder()
+   *           .setName(SettingsName.ofProjectName("[PROJECT]").toString())
+   *           .build();
+   *   Settings response = configClient.getSettings(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Settings getSettings(GetSettingsRequest request) { + return getSettingsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the Log Router settings for the given resource. + * + *

Note: Settings for the Log Router can be get for Google Cloud projects, folders, + * organizations and billing accounts. Currently it can only be configured for organizations. Once + * configured for an organization, it applies to all projects and folders in the Google Cloud + * organization. + * + *

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

Sample code: + * + *

{@code
+   * try (ConfigClient configClient = ConfigClient.create()) {
+   *   GetSettingsRequest request =
+   *       GetSettingsRequest.newBuilder()
+   *           .setName(SettingsName.ofProjectName("[PROJECT]").toString())
+   *           .build();
+   *   ApiFuture future = configClient.getSettingsCallable().futureCall(request);
+   *   // Do something.
+   *   Settings response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getSettingsCallable() { + return stub.getSettingsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the Log Router settings for the given resource. + * + *

Note: Settings for the Log Router can currently only be configured for Google Cloud + * organizations. Once configured, it applies to all projects and folders in the Google Cloud + * organization. + * + *

[UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings] will fail if 1) + * `kms_key_name` is invalid, or 2) the associated service account does not have the required + * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or 3) access to the key + * is disabled. 4) `location_id` is not supported by Logging. 5) `location_id` violate OrgPolicy. + * + *

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

Sample code: + * + *

{@code
+   * try (ConfigClient configClient = ConfigClient.create()) {
+   *   Settings settings = Settings.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Settings response = configClient.updateSettings(settings, updateMask);
+   * }
+   * }
+ * + * @param settings Required. The settings to update. + *

See [Enabling CMEK for Log + * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for more + * information. + * @param updateMask Optional. Field mask identifying which fields from `settings` should be + * updated. A field will be overwritten if and only if it is in the update mask. Output only + * fields cannot be updated. + *

See [FieldMask][google.protobuf.FieldMask] for more information. + *

For example: `"updateMask=kmsKeyName"` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Settings updateSettings(Settings settings, FieldMask updateMask) { + UpdateSettingsRequest request = + UpdateSettingsRequest.newBuilder().setSettings(settings).setUpdateMask(updateMask).build(); + return updateSettings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the Log Router settings for the given resource. + * + *

Note: Settings for the Log Router can currently only be configured for Google Cloud + * organizations. Once configured, it applies to all projects and folders in the Google Cloud + * organization. + * + *

[UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings] will fail if 1) + * `kms_key_name` is invalid, or 2) the associated service account does not have the required + * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or 3) access to the key + * is disabled. 4) `location_id` is not supported by Logging. 5) `location_id` violate OrgPolicy. + * + *

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

Sample code: + * + *

{@code
+   * try (ConfigClient configClient = ConfigClient.create()) {
+   *   UpdateSettingsRequest request =
+   *       UpdateSettingsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setSettings(Settings.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Settings response = configClient.updateSettings(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Settings updateSettings(UpdateSettingsRequest request) { + return updateSettingsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the Log Router settings for the given resource. + * + *

Note: Settings for the Log Router can currently only be configured for Google Cloud + * organizations. Once configured, it applies to all projects and folders in the Google Cloud + * organization. + * + *

[UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings] will fail if 1) + * `kms_key_name` is invalid, or 2) the associated service account does not have the required + * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or 3) access to the key + * is disabled. 4) `location_id` is not supported by Logging. 5) `location_id` violate OrgPolicy. + * + *

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

Sample code: + * + *

{@code
+   * try (ConfigClient configClient = ConfigClient.create()) {
+   *   UpdateSettingsRequest request =
+   *       UpdateSettingsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setSettings(Settings.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = configClient.updateSettingsCallable().futureCall(request);
+   *   // Do something.
+   *   Settings response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateSettingsCallable() { + return stub.updateSettingsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Copies a set of log entries from a log bucket to a Cloud Storage bucket. + * + *

Sample code: + * + *

{@code
+   * try (ConfigClient configClient = ConfigClient.create()) {
+   *   CopyLogEntriesRequest request =
+   *       CopyLogEntriesRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setDestination("destination-1429847026")
+   *           .build();
+   *   CopyLogEntriesResponse response = configClient.copyLogEntriesAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture copyLogEntriesAsync( + CopyLogEntriesRequest request) { + return copyLogEntriesOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Copies a set of log entries from a log bucket to a Cloud Storage bucket. + * + *

Sample code: + * + *

{@code
+   * try (ConfigClient configClient = ConfigClient.create()) {
+   *   CopyLogEntriesRequest request =
+   *       CopyLogEntriesRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setDestination("destination-1429847026")
+   *           .build();
+   *   OperationFuture future =
+   *       configClient.copyLogEntriesOperationCallable().futureCall(request);
+   *   // Do something.
+   *   CopyLogEntriesResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + CopyLogEntriesRequest, CopyLogEntriesResponse, CopyLogEntriesMetadata> + copyLogEntriesOperationCallable() { + return stub.copyLogEntriesOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Copies a set of log entries from a log bucket to a Cloud Storage bucket. + * + *

Sample code: + * + *

{@code
+   * try (ConfigClient configClient = ConfigClient.create()) {
+   *   CopyLogEntriesRequest request =
+   *       CopyLogEntriesRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setDestination("destination-1429847026")
+   *           .build();
+   *   ApiFuture future = configClient.copyLogEntriesCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable copyLogEntriesCallable() { + return stub.copyLogEntriesCallable(); + } + @Override public final void close() { stub.close(); diff --git a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigSettings.java b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigSettings.java index 49d551d7b..c99c394cc 100644 --- a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigSettings.java +++ b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/ConfigSettings.java @@ -29,11 +29,15 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.logging.v2.stub.ConfigServiceV2StubSettings; import com.google.logging.v2.CmekSettings; +import com.google.logging.v2.CopyLogEntriesMetadata; +import com.google.logging.v2.CopyLogEntriesRequest; +import com.google.logging.v2.CopyLogEntriesResponse; import com.google.logging.v2.CreateBucketRequest; import com.google.logging.v2.CreateExclusionRequest; import com.google.logging.v2.CreateSinkRequest; @@ -45,6 +49,7 @@ import com.google.logging.v2.GetBucketRequest; import com.google.logging.v2.GetCmekSettingsRequest; import com.google.logging.v2.GetExclusionRequest; +import com.google.logging.v2.GetSettingsRequest; import com.google.logging.v2.GetSinkRequest; import com.google.logging.v2.GetViewRequest; import com.google.logging.v2.ListBucketsRequest; @@ -59,12 +64,15 @@ import com.google.logging.v2.LogExclusion; import com.google.logging.v2.LogSink; import com.google.logging.v2.LogView; +import com.google.logging.v2.Settings; import com.google.logging.v2.UndeleteBucketRequest; import com.google.logging.v2.UpdateBucketRequest; import com.google.logging.v2.UpdateCmekSettingsRequest; import com.google.logging.v2.UpdateExclusionRequest; +import com.google.logging.v2.UpdateSettingsRequest; import com.google.logging.v2.UpdateSinkRequest; import com.google.logging.v2.UpdateViewRequest; +import com.google.longrunning.Operation; import com.google.protobuf.Empty; import java.io.IOException; import java.util.List; @@ -224,6 +232,28 @@ public UnaryCallSettings updateCmekSett return ((ConfigServiceV2StubSettings) getStubSettings()).updateCmekSettingsSettings(); } + /** Returns the object with the settings used for calls to getSettings. */ + public UnaryCallSettings getSettingsSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).getSettingsSettings(); + } + + /** Returns the object with the settings used for calls to updateSettings. */ + public UnaryCallSettings updateSettingsSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).updateSettingsSettings(); + } + + /** Returns the object with the settings used for calls to copyLogEntries. */ + public UnaryCallSettings copyLogEntriesSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).copyLogEntriesSettings(); + } + + /** Returns the object with the settings used for calls to copyLogEntries. */ + public OperationCallSettings< + CopyLogEntriesRequest, CopyLogEntriesResponse, CopyLogEntriesMetadata> + copyLogEntriesOperationSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).copyLogEntriesOperationSettings(); + } + public static final ConfigSettings create(ConfigServiceV2StubSettings stub) throws IOException { return new ConfigSettings.Builder(stub.toBuilder()).build(); } @@ -445,6 +475,28 @@ public UnaryCallSettings.Builder deleteExclusionS return getStubSettingsBuilder().updateCmekSettingsSettings(); } + /** Returns the builder for the settings used for calls to getSettings. */ + public UnaryCallSettings.Builder getSettingsSettings() { + return getStubSettingsBuilder().getSettingsSettings(); + } + + /** Returns the builder for the settings used for calls to updateSettings. */ + public UnaryCallSettings.Builder updateSettingsSettings() { + return getStubSettingsBuilder().updateSettingsSettings(); + } + + /** Returns the builder for the settings used for calls to copyLogEntries. */ + public UnaryCallSettings.Builder copyLogEntriesSettings() { + return getStubSettingsBuilder().copyLogEntriesSettings(); + } + + /** Returns the builder for the settings used for calls to copyLogEntries. */ + public OperationCallSettings.Builder< + CopyLogEntriesRequest, CopyLogEntriesResponse, CopyLogEntriesMetadata> + copyLogEntriesOperationSettings() { + return getStubSettingsBuilder().copyLogEntriesOperationSettings(); + } + @Override public ConfigSettings build() throws IOException { return new ConfigSettings(this); diff --git a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingClient.java b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingClient.java index 01da1d3ed..479e271a2 100644 --- a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingClient.java +++ b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/LoggingClient.java @@ -167,9 +167,10 @@ public LoggingServiceV2Stub getStub() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes all the log entries in a log. The log reappears if it receives new entries. Log entries - * written shortly before the delete operation might not be deleted. Entries received after the - * delete operation with a timestamp before the operation will be deleted. + * Deletes all the log entries in a log for the _Default Log Bucket. The log reappears if it + * receives new entries. Log entries written shortly before the delete operation might not be + * deleted. Entries received after the delete operation with a timestamp before the operation will + * be deleted. * *

Sample code: * @@ -181,11 +182,15 @@ public LoggingServiceV2Stub getStub() { * } * * @param logName Required. The resource name of the log to delete: - *

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

    + *
  • `projects/[PROJECT_ID]/logs/[LOG_ID]` + *
  • `organizations/[ORGANIZATION_ID]/logs/[LOG_ID]` + *
  • `billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]` + *
  • `folders/[FOLDER_ID]/logs/[LOG_ID]` + *
*

`[LOG_ID]` must be URL-encoded. For example, `"projects/my-project-id/logs/syslog"`, - * `"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`. For more - * information about log names, see [LogEntry][google.logging.v2.LogEntry]. + * `"organizations/123/logs/cloudaudit.googleapis.com%2Factivity"`. + *

For more information about log names, see [LogEntry][google.logging.v2.LogEntry]. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteLog(LogName logName) { @@ -198,9 +203,10 @@ public final void deleteLog(LogName logName) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes all the log entries in a log. The log reappears if it receives new entries. Log entries - * written shortly before the delete operation might not be deleted. Entries received after the - * delete operation with a timestamp before the operation will be deleted. + * Deletes all the log entries in a log for the _Default Log Bucket. The log reappears if it + * receives new entries. Log entries written shortly before the delete operation might not be + * deleted. Entries received after the delete operation with a timestamp before the operation will + * be deleted. * *

Sample code: * @@ -212,11 +218,15 @@ public final void deleteLog(LogName logName) { * } * * @param logName Required. The resource name of the log to delete: - *

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

    + *
  • `projects/[PROJECT_ID]/logs/[LOG_ID]` + *
  • `organizations/[ORGANIZATION_ID]/logs/[LOG_ID]` + *
  • `billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]` + *
  • `folders/[FOLDER_ID]/logs/[LOG_ID]` + *
*

`[LOG_ID]` must be URL-encoded. For example, `"projects/my-project-id/logs/syslog"`, - * `"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`. For more - * information about log names, see [LogEntry][google.logging.v2.LogEntry]. + * `"organizations/123/logs/cloudaudit.googleapis.com%2Factivity"`. + *

For more information about log names, see [LogEntry][google.logging.v2.LogEntry]. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteLog(String logName) { @@ -226,9 +236,10 @@ public final void deleteLog(String logName) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes all the log entries in a log. The log reappears if it receives new entries. Log entries - * written shortly before the delete operation might not be deleted. Entries received after the - * delete operation with a timestamp before the operation will be deleted. + * Deletes all the log entries in a log for the _Default Log Bucket. The log reappears if it + * receives new entries. Log entries written shortly before the delete operation might not be + * deleted. Entries received after the delete operation with a timestamp before the operation will + * be deleted. * *

Sample code: * @@ -251,9 +262,10 @@ public final void deleteLog(DeleteLogRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes all the log entries in a log. The log reappears if it receives new entries. Log entries - * written shortly before the delete operation might not be deleted. Entries received after the - * delete operation with a timestamp before the operation will be deleted. + * Deletes all the log entries in a log for the _Default Log Bucket. The log reappears if it + * receives new entries. Log entries written shortly before the delete operation might not be + * deleted. Entries received after the delete operation with a timestamp before the operation will + * be deleted. * *

Sample code: * @@ -295,11 +307,15 @@ public final UnaryCallable deleteLogCallable() { * * @param logName Optional. A default log resource name that is assigned to all log entries in * `entries` that do not specify a value for `log_name`: - *

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

    + *
  • `projects/[PROJECT_ID]/logs/[LOG_ID]` + *
  • `organizations/[ORGANIZATION_ID]/logs/[LOG_ID]` + *
  • `billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]` + *
  • `folders/[FOLDER_ID]/logs/[LOG_ID]` + *
*

`[LOG_ID]` must be URL-encoded. For example: *

"projects/my-project-id/logs/syslog" - * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity" + * "organizations/123/logs/cloudaudit.googleapis.com%2Factivity" *

The permission `logging.logEntries.create` is needed on each project, organization, * billing account, or folder that is receiving new log entries, whether the resource is * specified in `logName` or in an individual log entry. @@ -323,14 +339,14 @@ public final UnaryCallable deleteLogCallable() { * earlier in the list will sort before the entries later in the list. See the `entries.list` * method. *

Log entries with timestamps that are more than the [logs retention - * period](https://cloud.google.com/logging/quota-policy) in the past or more than 24 hours in - * the future will not be available when calling `entries.list`. However, those log entries - * can still be [exported with + * period](https://cloud.google.com/logging/quotas) in the past or more than 24 hours in the + * future will not be available when calling `entries.list`. However, those log entries can + * still be [exported with * LogSinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). *

To improve throughput and to avoid exceeding the [quota - * limit](https://cloud.google.com/logging/quota-policy) for calls to `entries.write`, you - * should try to include several log entries in this list, rather than calling this method for - * each individual log entry. + * limit](https://cloud.google.com/logging/quotas) for calls to `entries.write`, you should + * try to include several log entries in this list, rather than calling this method for each + * individual log entry. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final WriteLogEntriesResponse writeLogEntries( @@ -370,11 +386,15 @@ public final WriteLogEntriesResponse writeLogEntries( * * @param logName Optional. A default log resource name that is assigned to all log entries in * `entries` that do not specify a value for `log_name`: - *

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

    + *
  • `projects/[PROJECT_ID]/logs/[LOG_ID]` + *
  • `organizations/[ORGANIZATION_ID]/logs/[LOG_ID]` + *
  • `billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]` + *
  • `folders/[FOLDER_ID]/logs/[LOG_ID]` + *
*

`[LOG_ID]` must be URL-encoded. For example: *

"projects/my-project-id/logs/syslog" - * "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity" + * "organizations/123/logs/cloudaudit.googleapis.com%2Factivity" *

The permission `logging.logEntries.create` is needed on each project, organization, * billing account, or folder that is receiving new log entries, whether the resource is * specified in `logName` or in an individual log entry. @@ -398,14 +418,14 @@ public final WriteLogEntriesResponse writeLogEntries( * earlier in the list will sort before the entries later in the list. See the `entries.list` * method. *

Log entries with timestamps that are more than the [logs retention - * period](https://cloud.google.com/logging/quota-policy) in the past or more than 24 hours in - * the future will not be available when calling `entries.list`. However, those log entries - * can still be [exported with + * period](https://cloud.google.com/logging/quotas) in the past or more than 24 hours in the + * future will not be available when calling `entries.list`. However, those log entries can + * still be [exported with * LogSinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). *

To improve throughput and to avoid exceeding the [quota - * limit](https://cloud.google.com/logging/quota-policy) for calls to `entries.write`, you - * should try to include several log entries in this list, rather than calling this method for - * each individual log entry. + * limit](https://cloud.google.com/logging/quotas) for calls to `entries.write`, you should + * try to include several log entries in this list, rather than calling this method for each + * individual log entry. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final WriteLogEntriesResponse writeLogEntries( @@ -508,13 +528,19 @@ public final WriteLogEntriesResponse writeLogEntries(WriteLogEntriesRequest requ * * @param resourceNames Required. Names of one or more parent resources from which to retrieve log * entries: - *

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

May alternatively be one or more views - * projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] - * organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] - * billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] - * folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] + *

    + *
  • `projects/[PROJECT_ID]` + *
  • `organizations/[ORGANIZATION_ID]` + *
  • `billingAccounts/[BILLING_ACCOUNT_ID]` + *
  • `folders/[FOLDER_ID]` + *
+ *

May alternatively be one or more views: + *

* + * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` * + * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` + * * + * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` + * * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` *

Projects listed in the `project_ids` field are added to this list. * @param filter Optional. A filter that chooses which log entries to return. See [Advanced Logs * Queries](https://cloud.google.com/logging/docs/view/advanced-queries). Only log entries @@ -748,8 +774,13 @@ public final ListMonitoredResourceDescriptorsPagedResponse listMonitoredResource * } * * @param parent Required. The resource name that owns the logs: - *

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

    + *
  • `projects/[PROJECT_ID]` + *
  • `organizations/[ORGANIZATION_ID]` + *
  • `billingAccounts/[BILLING_ACCOUNT_ID]` + *
  • `folders/[FOLDER_ID]` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListLogsPagedResponse listLogs(BillingAccountName parent) { @@ -775,8 +806,13 @@ public final ListLogsPagedResponse listLogs(BillingAccountName parent) { * } * * @param parent Required. The resource name that owns the logs: - *

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

    + *
  • `projects/[PROJECT_ID]` + *
  • `organizations/[ORGANIZATION_ID]` + *
  • `billingAccounts/[BILLING_ACCOUNT_ID]` + *
  • `folders/[FOLDER_ID]` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListLogsPagedResponse listLogs(FolderName parent) { @@ -802,8 +838,13 @@ public final ListLogsPagedResponse listLogs(FolderName parent) { * } * * @param parent Required. The resource name that owns the logs: - *

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

    + *
  • `projects/[PROJECT_ID]` + *
  • `organizations/[ORGANIZATION_ID]` + *
  • `billingAccounts/[BILLING_ACCOUNT_ID]` + *
  • `folders/[FOLDER_ID]` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListLogsPagedResponse listLogs(OrganizationName parent) { @@ -829,8 +870,13 @@ public final ListLogsPagedResponse listLogs(OrganizationName parent) { * } * * @param parent Required. The resource name that owns the logs: - *

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

    + *
  • `projects/[PROJECT_ID]` + *
  • `organizations/[ORGANIZATION_ID]` + *
  • `billingAccounts/[BILLING_ACCOUNT_ID]` + *
  • `folders/[FOLDER_ID]` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListLogsPagedResponse listLogs(ProjectName parent) { @@ -856,8 +902,13 @@ public final ListLogsPagedResponse listLogs(ProjectName parent) { * } * * @param parent Required. The resource name that owns the logs: - *

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

    + *
  • `projects/[PROJECT_ID]` + *
  • `organizations/[ORGANIZATION_ID]` + *
  • `billingAccounts/[BILLING_ACCOUNT_ID]` + *
  • `folders/[FOLDER_ID]` + *
+ * * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListLogsPagedResponse listLogs(String parent) { diff --git a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/gapic_metadata.json b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/gapic_metadata.json index 19d23c676..3f7d36cb8 100644 --- a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/gapic_metadata.json +++ b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/gapic_metadata.json @@ -37,6 +37,9 @@ "grpc": { "libraryClient": "ConfigClient", "rpcs": { + "CopyLogEntries": { + "methods": ["copyLogEntriesAsync", "copyLogEntriesOperationCallable", "copyLogEntriesCallable"] + }, "CreateBucket": { "methods": ["createBucket", "createBucketCallable"] }, @@ -70,6 +73,9 @@ "GetExclusion": { "methods": ["getExclusion", "getExclusion", "getExclusion", "getExclusionCallable"] }, + "GetSettings": { + "methods": ["getSettings", "getSettings", "getSettings", "getSettingsCallable"] + }, "GetSink": { "methods": ["getSink", "getSink", "getSink", "getSinkCallable"] }, @@ -100,6 +106,9 @@ "UpdateExclusion": { "methods": ["updateExclusion", "updateExclusion", "updateExclusion", "updateExclusionCallable"] }, + "UpdateSettings": { + "methods": ["updateSettings", "updateSettings", "updateSettingsCallable"] + }, "UpdateSink": { "methods": ["updateSink", "updateSink", "updateSink", "updateSink", "updateSink", "updateSinkCallable"] }, diff --git a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/package-info.java b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/package-info.java index c9561f16e..0e2f30ef0 100644 --- a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/package-info.java +++ b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/package-info.java @@ -15,7 +15,9 @@ */ /** - * The interfaces provided are listed below, along with usage samples. + * A client to Cloud Logging API + * + *

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

======================= LoggingClient ======================= * diff --git a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2Stub.java b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2Stub.java index 5091901f6..9372aeb54 100644 --- a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2Stub.java +++ b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2Stub.java @@ -22,8 +22,12 @@ import static com.google.cloud.logging.v2.ConfigClient.ListViewsPagedResponse; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.logging.v2.CmekSettings; +import com.google.logging.v2.CopyLogEntriesMetadata; +import com.google.logging.v2.CopyLogEntriesRequest; +import com.google.logging.v2.CopyLogEntriesResponse; import com.google.logging.v2.CreateBucketRequest; import com.google.logging.v2.CreateExclusionRequest; import com.google.logging.v2.CreateSinkRequest; @@ -35,6 +39,7 @@ import com.google.logging.v2.GetBucketRequest; import com.google.logging.v2.GetCmekSettingsRequest; import com.google.logging.v2.GetExclusionRequest; +import com.google.logging.v2.GetSettingsRequest; import com.google.logging.v2.GetSinkRequest; import com.google.logging.v2.GetViewRequest; import com.google.logging.v2.ListBucketsRequest; @@ -49,12 +54,16 @@ import com.google.logging.v2.LogExclusion; import com.google.logging.v2.LogSink; import com.google.logging.v2.LogView; +import com.google.logging.v2.Settings; import com.google.logging.v2.UndeleteBucketRequest; import com.google.logging.v2.UpdateBucketRequest; import com.google.logging.v2.UpdateCmekSettingsRequest; import com.google.logging.v2.UpdateExclusionRequest; +import com.google.logging.v2.UpdateSettingsRequest; import com.google.logging.v2.UpdateSinkRequest; import com.google.logging.v2.UpdateViewRequest; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; import com.google.protobuf.Empty; import javax.annotation.Generated; @@ -67,6 +76,10 @@ @Generated("by gapic-generator-java") public abstract class ConfigServiceV2Stub implements BackgroundResource { + public OperationsStub getOperationsStub() { + throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + } + public UnaryCallable listBucketsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listBucketsPagedCallable()"); } @@ -176,6 +189,23 @@ public UnaryCallable updateCmekSettings throw new UnsupportedOperationException("Not implemented: updateCmekSettingsCallable()"); } + public UnaryCallable getSettingsCallable() { + throw new UnsupportedOperationException("Not implemented: getSettingsCallable()"); + } + + public UnaryCallable updateSettingsCallable() { + throw new UnsupportedOperationException("Not implemented: updateSettingsCallable()"); + } + + public OperationCallable + copyLogEntriesOperationCallable() { + throw new UnsupportedOperationException("Not implemented: copyLogEntriesOperationCallable()"); + } + + public UnaryCallable copyLogEntriesCallable() { + throw new UnsupportedOperationException("Not implemented: copyLogEntriesCallable()"); + } + @Override public abstract void close(); } diff --git a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java index faf8137ee..5a8e8633a 100644 --- a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java +++ b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java @@ -30,10 +30,14 @@ import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.ApiCallContext; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.PagedListDescriptor; @@ -48,6 +52,9 @@ import com.google.common.collect.ImmutableSet; import com.google.common.collect.Lists; import com.google.logging.v2.CmekSettings; +import com.google.logging.v2.CopyLogEntriesMetadata; +import com.google.logging.v2.CopyLogEntriesRequest; +import com.google.logging.v2.CopyLogEntriesResponse; import com.google.logging.v2.CreateBucketRequest; import com.google.logging.v2.CreateExclusionRequest; import com.google.logging.v2.CreateSinkRequest; @@ -59,6 +66,7 @@ import com.google.logging.v2.GetBucketRequest; import com.google.logging.v2.GetCmekSettingsRequest; import com.google.logging.v2.GetExclusionRequest; +import com.google.logging.v2.GetSettingsRequest; import com.google.logging.v2.GetSinkRequest; import com.google.logging.v2.GetViewRequest; import com.google.logging.v2.ListBucketsRequest; @@ -73,12 +81,15 @@ import com.google.logging.v2.LogExclusion; import com.google.logging.v2.LogSink; import com.google.logging.v2.LogView; +import com.google.logging.v2.Settings; import com.google.logging.v2.UndeleteBucketRequest; import com.google.logging.v2.UpdateBucketRequest; import com.google.logging.v2.UpdateCmekSettingsRequest; import com.google.logging.v2.UpdateExclusionRequest; +import com.google.logging.v2.UpdateSettingsRequest; import com.google.logging.v2.UpdateSinkRequest; import com.google.logging.v2.UpdateViewRequest; +import com.google.longrunning.Operation; import com.google.protobuf.Empty; import java.io.IOException; import java.util.List; @@ -157,6 +168,12 @@ public class ConfigServiceV2StubSettings extends StubSettings getCmekSettingsSettings; private final UnaryCallSettings updateCmekSettingsSettings; + private final UnaryCallSettings getSettingsSettings; + private final UnaryCallSettings updateSettingsSettings; + private final UnaryCallSettings copyLogEntriesSettings; + private final OperationCallSettings< + CopyLogEntriesRequest, CopyLogEntriesResponse, CopyLogEntriesMetadata> + copyLogEntriesOperationSettings; private static final PagedListDescriptor LIST_BUCKETS_PAGE_STR_DESC = @@ -492,6 +509,28 @@ public UnaryCallSettings updateCmekSett return updateCmekSettingsSettings; } + /** Returns the object with the settings used for calls to getSettings. */ + public UnaryCallSettings getSettingsSettings() { + return getSettingsSettings; + } + + /** Returns the object with the settings used for calls to updateSettings. */ + public UnaryCallSettings updateSettingsSettings() { + return updateSettingsSettings; + } + + /** Returns the object with the settings used for calls to copyLogEntries. */ + public UnaryCallSettings copyLogEntriesSettings() { + return copyLogEntriesSettings; + } + + /** Returns the object with the settings used for calls to copyLogEntries. */ + public OperationCallSettings< + CopyLogEntriesRequest, CopyLogEntriesResponse, CopyLogEntriesMetadata> + copyLogEntriesOperationSettings() { + return copyLogEntriesOperationSettings; + } + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public ConfigServiceV2Stub createStub() throws IOException { if (getTransportChannelProvider() @@ -591,6 +630,10 @@ protected ConfigServiceV2StubSettings(Builder settingsBuilder) throws IOExceptio deleteExclusionSettings = settingsBuilder.deleteExclusionSettings().build(); getCmekSettingsSettings = settingsBuilder.getCmekSettingsSettings().build(); updateCmekSettingsSettings = settingsBuilder.updateCmekSettingsSettings().build(); + getSettingsSettings = settingsBuilder.getSettingsSettings().build(); + updateSettingsSettings = settingsBuilder.updateSettingsSettings().build(); + copyLogEntriesSettings = settingsBuilder.copyLogEntriesSettings().build(); + copyLogEntriesOperationSettings = settingsBuilder.copyLogEntriesOperationSettings().build(); } /** Builder for ConfigServiceV2StubSettings. */ @@ -631,6 +674,13 @@ public static class Builder extends StubSettings.Builder updateCmekSettingsSettings; + private final UnaryCallSettings.Builder getSettingsSettings; + private final UnaryCallSettings.Builder updateSettingsSettings; + private final UnaryCallSettings.Builder + copyLogEntriesSettings; + private final OperationCallSettings.Builder< + CopyLogEntriesRequest, CopyLogEntriesResponse, CopyLogEntriesMetadata> + copyLogEntriesOperationSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -709,6 +759,10 @@ protected Builder(ClientContext clientContext) { deleteExclusionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getCmekSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateCmekSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + copyLogEntriesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + copyLogEntriesOperationSettings = OperationCallSettings.newBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -734,7 +788,10 @@ protected Builder(ClientContext clientContext) { updateExclusionSettings, deleteExclusionSettings, getCmekSettingsSettings, - updateCmekSettingsSettings); + updateCmekSettingsSettings, + getSettingsSettings, + updateSettingsSettings, + copyLogEntriesSettings); initDefaults(this); } @@ -764,6 +821,10 @@ protected Builder(ConfigServiceV2StubSettings settings) { deleteExclusionSettings = settings.deleteExclusionSettings.toBuilder(); getCmekSettingsSettings = settings.getCmekSettingsSettings.toBuilder(); updateCmekSettingsSettings = settings.updateCmekSettingsSettings.toBuilder(); + getSettingsSettings = settings.getSettingsSettings.toBuilder(); + updateSettingsSettings = settings.updateSettingsSettings.toBuilder(); + copyLogEntriesSettings = settings.copyLogEntriesSettings.toBuilder(); + copyLogEntriesOperationSettings = settings.copyLogEntriesOperationSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -789,7 +850,10 @@ protected Builder(ConfigServiceV2StubSettings settings) { updateExclusionSettings, deleteExclusionSettings, getCmekSettingsSettings, - updateCmekSettingsSettings); + updateCmekSettingsSettings, + getSettingsSettings, + updateSettingsSettings, + copyLogEntriesSettings); } private static Builder createDefault() { @@ -921,6 +985,45 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .getSettingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateSettingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .copyLogEntriesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .copyLogEntriesOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(CopyLogEntriesResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(CopyLogEntriesMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + return builder; } @@ -1064,6 +1167,30 @@ public UnaryCallSettings.Builder deleteExclusionS return updateCmekSettingsSettings; } + /** Returns the builder for the settings used for calls to getSettings. */ + public UnaryCallSettings.Builder getSettingsSettings() { + return getSettingsSettings; + } + + /** Returns the builder for the settings used for calls to updateSettings. */ + public UnaryCallSettings.Builder updateSettingsSettings() { + return updateSettingsSettings; + } + + /** Returns the builder for the settings used for calls to copyLogEntries. */ + public UnaryCallSettings.Builder copyLogEntriesSettings() { + return copyLogEntriesSettings; + } + + /** Returns the builder for the settings used for calls to copyLogEntries. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + CopyLogEntriesRequest, CopyLogEntriesResponse, CopyLogEntriesMetadata> + copyLogEntriesOperationSettings() { + return copyLogEntriesOperationSettings; + } + @Override public ConfigServiceV2StubSettings build() throws IOException { return new ConfigServiceV2StubSettings(this); diff --git a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2Stub.java b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2Stub.java index e8eafac0c..0d913bfb9 100644 --- a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2Stub.java +++ b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2Stub.java @@ -26,9 +26,13 @@ import com.google.api.gax.grpc.GrpcCallSettings; import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.common.collect.ImmutableMap; import com.google.logging.v2.CmekSettings; +import com.google.logging.v2.CopyLogEntriesMetadata; +import com.google.logging.v2.CopyLogEntriesRequest; +import com.google.logging.v2.CopyLogEntriesResponse; import com.google.logging.v2.CreateBucketRequest; import com.google.logging.v2.CreateExclusionRequest; import com.google.logging.v2.CreateSinkRequest; @@ -40,6 +44,7 @@ import com.google.logging.v2.GetBucketRequest; import com.google.logging.v2.GetCmekSettingsRequest; import com.google.logging.v2.GetExclusionRequest; +import com.google.logging.v2.GetSettingsRequest; import com.google.logging.v2.GetSinkRequest; import com.google.logging.v2.GetViewRequest; import com.google.logging.v2.ListBucketsRequest; @@ -54,12 +59,15 @@ import com.google.logging.v2.LogExclusion; import com.google.logging.v2.LogSink; import com.google.logging.v2.LogView; +import com.google.logging.v2.Settings; import com.google.logging.v2.UndeleteBucketRequest; import com.google.logging.v2.UpdateBucketRequest; import com.google.logging.v2.UpdateCmekSettingsRequest; import com.google.logging.v2.UpdateExclusionRequest; +import com.google.logging.v2.UpdateSettingsRequest; import com.google.logging.v2.UpdateSinkRequest; import com.google.logging.v2.UpdateViewRequest; +import com.google.longrunning.Operation; import com.google.longrunning.stub.GrpcOperationsStub; import com.google.protobuf.Empty; import io.grpc.MethodDescriptor; @@ -282,6 +290,34 @@ public class GrpcConfigServiceV2Stub extends ConfigServiceV2Stub { .setResponseMarshaller(ProtoUtils.marshaller(CmekSettings.getDefaultInstance())) .build(); + private static final MethodDescriptor getSettingsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.ConfigServiceV2/GetSettings") + .setRequestMarshaller(ProtoUtils.marshaller(GetSettingsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Settings.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateSettingsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.ConfigServiceV2/UpdateSettings") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateSettingsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Settings.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + copyLogEntriesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.ConfigServiceV2/CopyLogEntries") + .setRequestMarshaller( + ProtoUtils.marshaller(CopyLogEntriesRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private final UnaryCallable listBucketsCallable; private final UnaryCallable listBucketsPagedCallable; @@ -311,6 +347,12 @@ public class GrpcConfigServiceV2Stub extends ConfigServiceV2Stub { private final UnaryCallable deleteExclusionCallable; private final UnaryCallable getCmekSettingsCallable; private final UnaryCallable updateCmekSettingsCallable; + private final UnaryCallable getSettingsCallable; + private final UnaryCallable updateSettingsCallable; + private final UnaryCallable copyLogEntriesCallable; + private final OperationCallable< + CopyLogEntriesRequest, CopyLogEntriesResponse, CopyLogEntriesMetadata> + copyLogEntriesOperationCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -587,6 +629,30 @@ protected GrpcConfigServiceV2Stub( return params.build(); }) .build(); + GrpcCallSettings getSettingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getSettingsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings updateSettingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateSettingsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings copyLogEntriesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(copyLogEntriesMethodDescriptor) + .build(); this.listBucketsCallable = callableFactory.createUnaryCallable( @@ -671,6 +737,21 @@ protected GrpcConfigServiceV2Stub( updateCmekSettingsTransportSettings, settings.updateCmekSettingsSettings(), clientContext); + this.getSettingsCallable = + callableFactory.createUnaryCallable( + getSettingsTransportSettings, settings.getSettingsSettings(), clientContext); + this.updateSettingsCallable = + callableFactory.createUnaryCallable( + updateSettingsTransportSettings, settings.updateSettingsSettings(), clientContext); + this.copyLogEntriesCallable = + callableFactory.createUnaryCallable( + copyLogEntriesTransportSettings, settings.copyLogEntriesSettings(), clientContext); + this.copyLogEntriesOperationCallable = + callableFactory.createOperationCallable( + copyLogEntriesTransportSettings, + settings.copyLogEntriesOperationSettings(), + clientContext, + operationsStub); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -816,6 +897,27 @@ public UnaryCallable updateCmekSettings return updateCmekSettingsCallable; } + @Override + public UnaryCallable getSettingsCallable() { + return getSettingsCallable; + } + + @Override + public UnaryCallable updateSettingsCallable() { + return updateSettingsCallable; + } + + @Override + public UnaryCallable copyLogEntriesCallable() { + return copyLogEntriesCallable; + } + + @Override + public OperationCallable + copyLogEntriesOperationCallable() { + return copyLogEntriesOperationCallable; + } + @Override public final void close() { try { diff --git a/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/ConfigClientTest.java b/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/ConfigClientTest.java index 0cb699db3..dc6381e82 100644 --- a/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/ConfigClientTest.java +++ b/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/ConfigClientTest.java @@ -28,11 +28,14 @@ import com.google.api.gax.grpc.testing.MockServiceHelper; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; import com.google.common.collect.Lists; import com.google.logging.v2.BillingAccountLocationName; import com.google.logging.v2.BillingAccountName; import com.google.logging.v2.CmekSettings; import com.google.logging.v2.CmekSettingsName; +import com.google.logging.v2.CopyLogEntriesRequest; +import com.google.logging.v2.CopyLogEntriesResponse; import com.google.logging.v2.CreateBucketRequest; import com.google.logging.v2.CreateExclusionRequest; import com.google.logging.v2.CreateSinkRequest; @@ -46,6 +49,7 @@ import com.google.logging.v2.GetBucketRequest; import com.google.logging.v2.GetCmekSettingsRequest; import com.google.logging.v2.GetExclusionRequest; +import com.google.logging.v2.GetSettingsRequest; import com.google.logging.v2.GetSinkRequest; import com.google.logging.v2.GetViewRequest; import com.google.logging.v2.LifecycleState; @@ -69,13 +73,18 @@ import com.google.logging.v2.OrganizationLocationName; import com.google.logging.v2.OrganizationName; import com.google.logging.v2.ProjectName; +import com.google.logging.v2.Settings; +import com.google.logging.v2.SettingsName; import com.google.logging.v2.UndeleteBucketRequest; import com.google.logging.v2.UpdateBucketRequest; import com.google.logging.v2.UpdateCmekSettingsRequest; import com.google.logging.v2.UpdateExclusionRequest; +import com.google.logging.v2.UpdateSettingsRequest; import com.google.logging.v2.UpdateSinkRequest; import com.google.logging.v2.UpdateViewRequest; +import com.google.longrunning.Operation; import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import com.google.protobuf.Timestamp; @@ -85,6 +94,7 @@ import java.util.Arrays; import java.util.List; import java.util.UUID; +import java.util.concurrent.ExecutionException; import javax.annotation.Generated; import org.junit.After; import org.junit.AfterClass; @@ -366,6 +376,8 @@ public void getBucketTest() throws Exception { .setRetentionDays(1544391896) .setLocked(true) .setLifecycleState(LifecycleState.forNumber(0)) + .addAllRestrictedFields(new ArrayList()) + .setCmekSettings(CmekSettings.newBuilder().build()) .build(); mockConfigServiceV2.addResponse(expectedResponse); @@ -422,6 +434,8 @@ public void createBucketTest() throws Exception { .setRetentionDays(1544391896) .setLocked(true) .setLifecycleState(LifecycleState.forNumber(0)) + .addAllRestrictedFields(new ArrayList()) + .setCmekSettings(CmekSettings.newBuilder().build()) .build(); mockConfigServiceV2.addResponse(expectedResponse); @@ -480,6 +494,8 @@ public void updateBucketTest() throws Exception { .setRetentionDays(1544391896) .setLocked(true) .setLifecycleState(LifecycleState.forNumber(0)) + .addAllRestrictedFields(new ArrayList()) + .setCmekSettings(CmekSettings.newBuilder().build()) .build(); mockConfigServiceV2.addResponse(expectedResponse); @@ -2515,4 +2531,189 @@ public void updateCmekSettingsExceptionTest() throws Exception { // Expected exception. } } + + @Test + public void getSettingsTest() throws Exception { + Settings expectedResponse = + Settings.newBuilder() + .setName(SettingsName.ofProjectName("[PROJECT]").toString()) + .setKmsKeyName("kmsKeyName412586233") + .setKmsServiceAccountId("kmsServiceAccountId662368868") + .setStorageLocation("storageLocation911842128") + .setDisableDefaultSink(true) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + SettingsName name = SettingsName.ofProjectName("[PROJECT]"); + + Settings actualResponse = client.getSettings(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSettingsRequest actualRequest = ((GetSettingsRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSettingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + SettingsName name = SettingsName.ofProjectName("[PROJECT]"); + client.getSettings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getSettingsTest2() throws Exception { + Settings expectedResponse = + Settings.newBuilder() + .setName(SettingsName.ofProjectName("[PROJECT]").toString()) + .setKmsKeyName("kmsKeyName412586233") + .setKmsServiceAccountId("kmsServiceAccountId662368868") + .setStorageLocation("storageLocation911842128") + .setDisableDefaultSink(true) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + String name = "name3373707"; + + Settings actualResponse = client.getSettings(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetSettingsRequest actualRequest = ((GetSettingsRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getSettingsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + String name = "name3373707"; + client.getSettings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateSettingsTest() throws Exception { + Settings expectedResponse = + Settings.newBuilder() + .setName(SettingsName.ofProjectName("[PROJECT]").toString()) + .setKmsKeyName("kmsKeyName412586233") + .setKmsServiceAccountId("kmsServiceAccountId662368868") + .setStorageLocation("storageLocation911842128") + .setDisableDefaultSink(true) + .build(); + mockConfigServiceV2.addResponse(expectedResponse); + + Settings settings = Settings.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Settings actualResponse = client.updateSettings(settings, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateSettingsRequest actualRequest = ((UpdateSettingsRequest) actualRequests.get(0)); + + Assert.assertEquals(settings, actualRequest.getSettings()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateSettingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + Settings settings = Settings.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateSettings(settings, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void copyLogEntriesTest() throws Exception { + CopyLogEntriesResponse expectedResponse = + CopyLogEntriesResponse.newBuilder().setLogEntriesCopiedCount(-2134326978).build(); + Operation resultOperation = + Operation.newBuilder() + .setName("copyLogEntriesTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockConfigServiceV2.addResponse(resultOperation); + + CopyLogEntriesRequest request = + CopyLogEntriesRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setDestination("destination-1429847026") + .build(); + + CopyLogEntriesResponse actualResponse = client.copyLogEntriesAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfigServiceV2.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CopyLogEntriesRequest actualRequest = ((CopyLogEntriesRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getDestination(), actualRequest.getDestination()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void copyLogEntriesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfigServiceV2.addException(exception); + + try { + CopyLogEntriesRequest request = + CopyLogEntriesRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setDestination("destination-1429847026") + .build(); + client.copyLogEntriesAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } } diff --git a/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MetricsClientTest.java b/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MetricsClientTest.java index a81e0368a..1e79775cb 100644 --- a/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MetricsClientTest.java +++ b/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MetricsClientTest.java @@ -187,6 +187,7 @@ public void getLogMetricTest() throws Exception { .setName(LogMetricName.of("[PROJECT]", "[METRIC]").toString()) .setDescription("description-1724546052") .setFilter("filter-1274492040") + .setDisabled(true) .setMetricDescriptor(MetricDescriptor.newBuilder().build()) .setValueExtractor("valueExtractor-1867420749") .putAllLabelExtractors(new HashMap()) @@ -233,6 +234,7 @@ public void getLogMetricTest2() throws Exception { .setName(LogMetricName.of("[PROJECT]", "[METRIC]").toString()) .setDescription("description-1724546052") .setFilter("filter-1274492040") + .setDisabled(true) .setMetricDescriptor(MetricDescriptor.newBuilder().build()) .setValueExtractor("valueExtractor-1867420749") .putAllLabelExtractors(new HashMap()) @@ -279,6 +281,7 @@ public void createLogMetricTest() throws Exception { .setName(LogMetricName.of("[PROJECT]", "[METRIC]").toString()) .setDescription("description-1724546052") .setFilter("filter-1274492040") + .setDisabled(true) .setMetricDescriptor(MetricDescriptor.newBuilder().build()) .setValueExtractor("valueExtractor-1867420749") .putAllLabelExtractors(new HashMap()) @@ -328,6 +331,7 @@ public void createLogMetricTest2() throws Exception { .setName(LogMetricName.of("[PROJECT]", "[METRIC]").toString()) .setDescription("description-1724546052") .setFilter("filter-1274492040") + .setDisabled(true) .setMetricDescriptor(MetricDescriptor.newBuilder().build()) .setValueExtractor("valueExtractor-1867420749") .putAllLabelExtractors(new HashMap()) @@ -377,6 +381,7 @@ public void updateLogMetricTest() throws Exception { .setName(LogMetricName.of("[PROJECT]", "[METRIC]").toString()) .setDescription("description-1724546052") .setFilter("filter-1274492040") + .setDisabled(true) .setMetricDescriptor(MetricDescriptor.newBuilder().build()) .setValueExtractor("valueExtractor-1867420749") .putAllLabelExtractors(new HashMap()) @@ -426,6 +431,7 @@ public void updateLogMetricTest2() throws Exception { .setName(LogMetricName.of("[PROJECT]", "[METRIC]").toString()) .setDescription("description-1724546052") .setFilter("filter-1274492040") + .setDisabled(true) .setMetricDescriptor(MetricDescriptor.newBuilder().build()) .setValueExtractor("valueExtractor-1867420749") .putAllLabelExtractors(new HashMap()) diff --git a/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockConfigServiceV2Impl.java b/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockConfigServiceV2Impl.java index 406467a56..255cacf1f 100644 --- a/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockConfigServiceV2Impl.java +++ b/google-cloud-logging/src/test/java/com/google/cloud/logging/v2/MockConfigServiceV2Impl.java @@ -19,6 +19,7 @@ import com.google.api.core.BetaApi; import com.google.logging.v2.CmekSettings; import com.google.logging.v2.ConfigServiceV2Grpc.ConfigServiceV2ImplBase; +import com.google.logging.v2.CopyLogEntriesRequest; import com.google.logging.v2.CreateBucketRequest; import com.google.logging.v2.CreateExclusionRequest; import com.google.logging.v2.CreateSinkRequest; @@ -30,6 +31,7 @@ import com.google.logging.v2.GetBucketRequest; import com.google.logging.v2.GetCmekSettingsRequest; import com.google.logging.v2.GetExclusionRequest; +import com.google.logging.v2.GetSettingsRequest; import com.google.logging.v2.GetSinkRequest; import com.google.logging.v2.GetViewRequest; import com.google.logging.v2.ListBucketsRequest; @@ -44,12 +46,15 @@ import com.google.logging.v2.LogExclusion; import com.google.logging.v2.LogSink; import com.google.logging.v2.LogView; +import com.google.logging.v2.Settings; import com.google.logging.v2.UndeleteBucketRequest; import com.google.logging.v2.UpdateBucketRequest; import com.google.logging.v2.UpdateCmekSettingsRequest; import com.google.logging.v2.UpdateExclusionRequest; +import com.google.logging.v2.UpdateSettingsRequest; import com.google.logging.v2.UpdateSinkRequest; import com.google.logging.v2.UpdateViewRequest; +import com.google.longrunning.Operation; import com.google.protobuf.AbstractMessage; import com.google.protobuf.Empty; import io.grpc.stub.StreamObserver; @@ -563,4 +568,66 @@ public void updateCmekSettings( Exception.class.getName()))); } } + + @Override + public void getSettings(GetSettingsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Settings) { + requests.add(request); + responseObserver.onNext(((Settings) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method GetSettings, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Settings.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateSettings( + UpdateSettingsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Settings) { + requests.add(request); + responseObserver.onNext(((Settings) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateSettings, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Settings.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void copyLogEntries( + CopyLogEntriesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method CopyLogEntries, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/grpc-google-cloud-logging-v2/pom.xml b/grpc-google-cloud-logging-v2/pom.xml index f30aa48d2..823d66ec9 100644 --- a/grpc-google-cloud-logging-v2/pom.xml +++ b/grpc-google-cloud-logging-v2/pom.xml @@ -33,6 +33,10 @@ io.grpc grpc-protobuf + + com.google.api.grpc + proto-google-common-protos + com.google.api.grpc proto-google-cloud-logging-v2 diff --git a/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ConfigServiceV2Grpc.java b/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ConfigServiceV2Grpc.java index f7a6f8d08..7345bd826 100644 --- a/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ConfigServiceV2Grpc.java +++ b/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ConfigServiceV2Grpc.java @@ -974,6 +974,130 @@ private ConfigServiceV2Grpc() {} return getUpdateCmekSettingsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.GetSettingsRequest, com.google.logging.v2.Settings> + getGetSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSettings", + requestType = com.google.logging.v2.GetSettingsRequest.class, + responseType = com.google.logging.v2.Settings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.logging.v2.GetSettingsRequest, com.google.logging.v2.Settings> + getGetSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.logging.v2.GetSettingsRequest, com.google.logging.v2.Settings> + getGetSettingsMethod; + if ((getGetSettingsMethod = ConfigServiceV2Grpc.getGetSettingsMethod) == null) { + synchronized (ConfigServiceV2Grpc.class) { + if ((getGetSettingsMethod = ConfigServiceV2Grpc.getGetSettingsMethod) == null) { + ConfigServiceV2Grpc.getGetSettingsMethod = + getGetSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.GetSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.Settings.getDefaultInstance())) + .setSchemaDescriptor( + new ConfigServiceV2MethodDescriptorSupplier("GetSettings")) + .build(); + } + } + } + return getGetSettingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.UpdateSettingsRequest, com.google.logging.v2.Settings> + getUpdateSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSettings", + requestType = com.google.logging.v2.UpdateSettingsRequest.class, + responseType = com.google.logging.v2.Settings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.logging.v2.UpdateSettingsRequest, com.google.logging.v2.Settings> + getUpdateSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.logging.v2.UpdateSettingsRequest, com.google.logging.v2.Settings> + getUpdateSettingsMethod; + if ((getUpdateSettingsMethod = ConfigServiceV2Grpc.getUpdateSettingsMethod) == null) { + synchronized (ConfigServiceV2Grpc.class) { + if ((getUpdateSettingsMethod = ConfigServiceV2Grpc.getUpdateSettingsMethod) == null) { + ConfigServiceV2Grpc.getUpdateSettingsMethod = + getUpdateSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.UpdateSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.Settings.getDefaultInstance())) + .setSchemaDescriptor( + new ConfigServiceV2MethodDescriptorSupplier("UpdateSettings")) + .build(); + } + } + } + return getUpdateSettingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.CopyLogEntriesRequest, com.google.longrunning.Operation> + getCopyLogEntriesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CopyLogEntries", + requestType = com.google.logging.v2.CopyLogEntriesRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.logging.v2.CopyLogEntriesRequest, com.google.longrunning.Operation> + getCopyLogEntriesMethod() { + io.grpc.MethodDescriptor< + com.google.logging.v2.CopyLogEntriesRequest, com.google.longrunning.Operation> + getCopyLogEntriesMethod; + if ((getCopyLogEntriesMethod = ConfigServiceV2Grpc.getCopyLogEntriesMethod) == null) { + synchronized (ConfigServiceV2Grpc.class) { + if ((getCopyLogEntriesMethod = ConfigServiceV2Grpc.getCopyLogEntriesMethod) == null) { + ConfigServiceV2Grpc.getCopyLogEntriesMethod = + getCopyLogEntriesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CopyLogEntries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.CopyLogEntriesRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ConfigServiceV2MethodDescriptorSupplier("CopyLogEntries")) + .build(); + } + } + } + return getCopyLogEntriesMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static ConfigServiceV2Stub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -1028,7 +1152,7 @@ public abstract static class ConfigServiceV2ImplBase implements io.grpc.Bindable * * *

-     * 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 responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetSettingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the Log Router settings for the given resource.
+     * Note: Settings for the Log Router can currently only be configured for
+     * Google Cloud organizations. Once configured, it applies to all projects and
+     * folders in the Google Cloud organization.
+     * [UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings]
+     * will fail if 1) `kms_key_name` is invalid, or 2) the associated service
+     * account does not have the required
+     * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or
+     * 3) access to the key is disabled. 4) `location_id` is not supported by
+     * Logging. 5) `location_id` violate OrgPolicy.
+     * See [Enabling CMEK for Log
+     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+     * for more information.
+     * 
+ */ + public void updateSettings( + com.google.logging.v2.UpdateSettingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSettingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Copies a set of log entries from a log bucket to a Cloud Storage bucket.
+     * 
+ */ + public void copyLogEntries( + com.google.logging.v2.CopyLogEntriesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCopyLogEntriesMethod(), responseObserver); + } + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) @@ -1517,6 +1710,24 @@ public final io.grpc.ServerServiceDefinition bindService() { new MethodHandlers< com.google.logging.v2.UpdateCmekSettingsRequest, com.google.logging.v2.CmekSettings>(this, METHODID_UPDATE_CMEK_SETTINGS))) + .addMethod( + getGetSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.GetSettingsRequest, com.google.logging.v2.Settings>( + this, METHODID_GET_SETTINGS))) + .addMethod( + getUpdateSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.UpdateSettingsRequest, com.google.logging.v2.Settings>( + this, METHODID_UPDATE_SETTINGS))) + .addMethod( + getCopyLogEntriesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.CopyLogEntriesRequest, + com.google.longrunning.Operation>(this, METHODID_COPY_LOG_ENTRIES))) .build(); } } @@ -1543,7 +1754,7 @@ protected ConfigServiceV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions * * *
-     * 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 responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSettingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the Log Router settings for the given resource.
+     * Note: Settings for the Log Router can currently only be configured for
+     * Google Cloud organizations. Once configured, it applies to all projects and
+     * folders in the Google Cloud organization.
+     * [UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings]
+     * will fail if 1) `kms_key_name` is invalid, or 2) the associated service
+     * account does not have the required
+     * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or
+     * 3) access to the key is disabled. 4) `location_id` is not supported by
+     * Logging. 5) `location_id` violate OrgPolicy.
+     * See [Enabling CMEK for Log
+     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+     * for more information.
+     * 
+ */ + public void updateSettings( + com.google.logging.v2.UpdateSettingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSettingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Copies a set of log entries from a log bucket to a Cloud Storage bucket.
+     * 
+ */ + public void copyLogEntries( + com.google.logging.v2.CopyLogEntriesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCopyLogEntriesMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -1949,7 +2235,7 @@ protected ConfigServiceV2BlockingStub build( * * *
-     * 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 @@ -2330,8 +2682,8 @@ protected ConfigServiceV2FutureStub build( * * *
-     * 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 @@ -2344,13 +2696,13 @@ protected ConfigServiceV2FutureStub build( * * *
-     * 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 @@ -2363,10 +2715,10 @@ protected ConfigServiceV2FutureStub build( * * *
-     * 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 @@ -2379,8 +2731,8 @@ protected ConfigServiceV2FutureStub build( * * *
-     * 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 @@ -2393,7 +2745,7 @@ protected ConfigServiceV2FutureStub build( * * *
-     * 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 @@ -2420,8 +2772,8 @@ protected ConfigServiceV2FutureStub build( * * *
-     * 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 @@ -2434,8 +2786,11 @@ protected ConfigServiceV2FutureStub build( * * *
-     * 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 @@ -2448,7 +2803,10 @@ protected ConfigServiceV2FutureStub build( * * *
-     * 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 deleteView( @@ -2534,7 +2892,7 @@ public com.google.common.util.concurrent.ListenableFuture - * Lists all the exclusions in a parent resource. + * Lists all the exclusions on the _Default sink in a parent resource. * */ public com.google.common.util.concurrent.ListenableFuture< @@ -2548,7 +2906,7 @@ public com.google.common.util.concurrent.ListenableFuture - * Gets the description of an exclusion. + * Gets the description of an exclusion in the _Default sink. * */ public com.google.common.util.concurrent.ListenableFuture @@ -2561,9 +2919,9 @@ public com.google.common.util.concurrent.ListenableFuture - * 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.common.util.concurrent.ListenableFuture @@ -2576,7 +2934,8 @@ public com.google.common.util.concurrent.ListenableFuture - * 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.common.util.concurrent.ListenableFuture @@ -2589,7 +2948,7 @@ public com.google.common.util.concurrent.ListenableFuture - * Deletes an exclusion. + * Deletes an exclusion in the _Default sink. * */ public com.google.common.util.concurrent.ListenableFuture @@ -2602,11 +2961,12 @@ public com.google.common.util.concurrent.ListenableFuture - * 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. * @@ -2621,16 +2981,16 @@ public com.google.common.util.concurrent.ListenableFuture - * 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. * @@ -2640,6 +3000,64 @@ public com.google.common.util.concurrent.ListenableFuture + * Gets the Log Router settings for the given resource. + * Note: Settings for the Log Router can be get for Google Cloud projects, + * folders, organizations and billing accounts. Currently it can only be + * configured for organizations. Once configured for an organization, it + * applies to all projects and folders in the Google Cloud organization. + * See [Enabling CMEK for Log + * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) + * for more information. + * + */ + public com.google.common.util.concurrent.ListenableFuture + getSettings(com.google.logging.v2.GetSettingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSettingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the Log Router settings for the given resource.
+     * Note: Settings for the Log Router can currently only be configured for
+     * Google Cloud organizations. Once configured, it applies to all projects and
+     * folders in the Google Cloud organization.
+     * [UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings]
+     * will fail if 1) `kms_key_name` is invalid, or 2) the associated service
+     * account does not have the required
+     * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or
+     * 3) access to the key is disabled. 4) `location_id` is not supported by
+     * Logging. 5) `location_id` violate OrgPolicy.
+     * See [Enabling CMEK for Log
+     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+     * for more information.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateSettings(com.google.logging.v2.UpdateSettingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSettingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Copies a set of log entries from a log bucket to a Cloud Storage bucket.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + copyLogEntries(com.google.logging.v2.CopyLogEntriesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCopyLogEntriesMethod(), getCallOptions()), request); + } } private static final int METHODID_LIST_BUCKETS = 0; @@ -2665,6 +3083,9 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -2802,6 +3223,21 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.logging.v2.UpdateCmekSettingsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GET_SETTINGS: + serviceImpl.getSettings( + (com.google.logging.v2.GetSettingsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SETTINGS: + serviceImpl.updateSettings( + (com.google.logging.v2.UpdateSettingsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_COPY_LOG_ENTRIES: + serviceImpl.copyLogEntries( + (com.google.logging.v2.CopyLogEntriesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -2889,6 +3325,9 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getDeleteExclusionMethod()) .addMethod(getGetCmekSettingsMethod()) .addMethod(getUpdateCmekSettingsMethod()) + .addMethod(getGetSettingsMethod()) + .addMethod(getUpdateSettingsMethod()) + .addMethod(getCopyLogEntriesMethod()) .build(); } } diff --git a/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingServiceV2Grpc.java b/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingServiceV2Grpc.java index e84afbaaf..dd74ab68c 100644 --- a/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingServiceV2Grpc.java +++ b/grpc-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingServiceV2Grpc.java @@ -354,10 +354,10 @@ public abstract static class LoggingServiceV2ImplBase implements io.grpc.Bindabl * * *
-     * 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 deleteLog( diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptions.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptions.java index 458e38b09..cfc05eaf7 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptions.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/BigQueryOptions.java @@ -120,9 +120,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * 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(
      * 
      * 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() {
      * 
      * 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) {
      * 
      * 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() {
      *
      *
      * 
-     * 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() {
      *
      *
      * 
-     * 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) {
      *
      *
      * 
-     * 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
    * 
    * 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
    *
    *
    * 
-   * 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 @@
  * 
  * 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. *
@@ -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. *
@@ -270,14 +272,14 @@ public com.google.protobuf.ByteString getKmsKeyNameBytes() { * * *
-   * Output only. The service account that will be used by the Logs Router to access your
+   * Output only. The service account that will be used by the Log Router to access your
    * Cloud KMS key.
-   * Before enabling CMEK for Logs Router, you must first assign the role
-   * `roles/cloudkms.cryptoKeyEncrypterDecrypter` to the service account that
-   * the Logs Router will use to access your Cloud KMS key. Use
+   * Before enabling CMEK for Log Router, you must first assign the
+   * cloudkms.cryptoKeyEncrypterDecrypter role to the service account that
+   * the Log Router will use to access your Cloud KMS key. Use
    * [GetCmekSettings][google.logging.v2.ConfigServiceV2.GetCmekSettings] to
    * obtain the service account ID.
-   * See [Enabling CMEK for Logs
+   * See [Enabling CMEK for Log
    * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
    * for more information.
    * 
@@ -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. *
@@ -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. *
@@ -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. *
@@ -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. *
@@ -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. *
@@ -980,14 +987,14 @@ public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString 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.
      * 
@@ -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. *
@@ -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. *
@@ -109,14 +111,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.
    * 
@@ -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 + implements + // @@protoc_insertion_point(builder_implements:google.logging.v2.CopyLogEntriesMetadata) + com.google.logging.v2.CopyLogEntriesMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CopyLogEntriesMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CopyLogEntriesMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.logging.v2.CopyLogEntriesMetadata.class, + com.google.logging.v2.CopyLogEntriesMetadata.Builder.class); + } + + // Construct using com.google.logging.v2.CopyLogEntriesMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (startTimeBuilder_ == null) { + startTime_ = null; + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + if (endTimeBuilder_ == null) { + endTime_ = null; + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + state_ = 0; + + cancellationRequested_ = false; + + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + progress_ = 0; + + writerIdentity_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CopyLogEntriesMetadata_descriptor; + } + + @java.lang.Override + public com.google.logging.v2.CopyLogEntriesMetadata getDefaultInstanceForType() { + return com.google.logging.v2.CopyLogEntriesMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.logging.v2.CopyLogEntriesMetadata build() { + com.google.logging.v2.CopyLogEntriesMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.logging.v2.CopyLogEntriesMetadata buildPartial() { + com.google.logging.v2.CopyLogEntriesMetadata result = + new com.google.logging.v2.CopyLogEntriesMetadata(this); + if (startTimeBuilder_ == null) { + result.startTime_ = startTime_; + } else { + result.startTime_ = startTimeBuilder_.build(); + } + if (endTimeBuilder_ == null) { + result.endTime_ = endTime_; + } else { + result.endTime_ = endTimeBuilder_.build(); + } + result.state_ = state_; + result.cancellationRequested_ = cancellationRequested_; + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.progress_ = progress_; + result.writerIdentity_ = writerIdentity_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.logging.v2.CopyLogEntriesMetadata) { + return mergeFrom((com.google.logging.v2.CopyLogEntriesMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.logging.v2.CopyLogEntriesMetadata other) { + if (other == com.google.logging.v2.CopyLogEntriesMetadata.getDefaultInstance()) return this; + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.getCancellationRequested() != false) { + setCancellationRequested(other.getCancellationRequested()); + } + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getProgress() != 0) { + setProgress(other.getProgress()); + } + if (!other.getWriterIdentity().isEmpty()) { + writerIdentity_ = other.writerIdentity_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.logging.v2.CopyLogEntriesMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.logging.v2.CopyLogEntriesMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
+     * The create time of an operation.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return startTimeBuilder_ != null || startTime_ != null; + } + /** + * + * + *
+     * The create time of an operation.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The create time of an operation.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + onChanged(); + } else { + startTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The create time of an operation.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + onChanged(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The create time of an operation.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (startTime_ != null) { + startTime_ = + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + } else { + startTime_ = value; + } + onChanged(); + } else { + startTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The create time of an operation.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder clearStartTime() { + if (startTimeBuilder_ == null) { + startTime_ = null; + onChanged(); + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The create time of an operation.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The create time of an operation.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
+     * The create time of an operation.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + /** + * + * + *
+     * The end time of an operation.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return endTimeBuilder_ != null || endTime_ != null; + } + /** + * + * + *
+     * The end time of an operation.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The end time of an operation.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + onChanged(); + } else { + endTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The end time of an operation.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + onChanged(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The end time of an operation.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (endTime_ != null) { + endTime_ = + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + } else { + endTime_ = value; + } + onChanged(); + } else { + endTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The end time of an operation.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder clearEndTime() { + if (endTimeBuilder_ == null) { + endTime_ = null; + onChanged(); + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The end time of an operation.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The end time of an operation.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
+     * The end time of an operation.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private int state_ = 0; + /** + * + * + *
+     * State of an operation.
+     * 
+ * + * .google.logging.v2.OperationState state = 3; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * State of an operation.
+     * 
+ * + * .google.logging.v2.OperationState state = 3; + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + + state_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * State of an operation.
+     * 
+ * + * .google.logging.v2.OperationState state = 3; + * + * @return The state. + */ + @java.lang.Override + public com.google.logging.v2.OperationState getState() { + @SuppressWarnings("deprecation") + com.google.logging.v2.OperationState result = + com.google.logging.v2.OperationState.valueOf(state_); + return result == null ? com.google.logging.v2.OperationState.UNRECOGNIZED : result; + } + /** + * + * + *
+     * State of an operation.
+     * 
+ * + * .google.logging.v2.OperationState state = 3; + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.logging.v2.OperationState value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * State of an operation.
+     * 
+ * + * .google.logging.v2.OperationState state = 3; + * + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private boolean cancellationRequested_; + /** + * + * + *
+     * Identifies whether the user has requested cancellation of the operation.
+     * 
+ * + * bool cancellation_requested = 4; + * + * @return The cancellationRequested. + */ + @java.lang.Override + public boolean getCancellationRequested() { + return cancellationRequested_; + } + /** + * + * + *
+     * Identifies whether the user has requested cancellation of the operation.
+     * 
+ * + * bool cancellation_requested = 4; + * + * @param value The cancellationRequested to set. + * @return This builder for chaining. + */ + public Builder setCancellationRequested(boolean value) { + + cancellationRequested_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Identifies whether the user has requested cancellation of the operation.
+     * 
+ * + * bool cancellation_requested = 4; + * + * @return This builder for chaining. + */ + public Builder clearCancellationRequested() { + + cancellationRequested_ = false; + onChanged(); + return this; + } + + private com.google.logging.v2.CopyLogEntriesRequest request_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.CopyLogEntriesRequest, + com.google.logging.v2.CopyLogEntriesRequest.Builder, + com.google.logging.v2.CopyLogEntriesRequestOrBuilder> + requestBuilder_; + /** + * + * + *
+     * CopyLogEntries RPC request.
+     * 
+ * + * .google.logging.v2.CopyLogEntriesRequest request = 5; + * + * @return Whether the request field is set. + */ + public boolean hasRequest() { + return requestBuilder_ != null || request_ != null; + } + /** + * + * + *
+     * CopyLogEntries RPC request.
+     * 
+ * + * .google.logging.v2.CopyLogEntriesRequest request = 5; + * + * @return The request. + */ + public com.google.logging.v2.CopyLogEntriesRequest getRequest() { + if (requestBuilder_ == null) { + return request_ == null + ? com.google.logging.v2.CopyLogEntriesRequest.getDefaultInstance() + : request_; + } else { + return requestBuilder_.getMessage(); + } + } + /** + * + * + *
+     * CopyLogEntries RPC request.
+     * 
+ * + * .google.logging.v2.CopyLogEntriesRequest request = 5; + */ + public Builder setRequest(com.google.logging.v2.CopyLogEntriesRequest value) { + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * CopyLogEntries RPC request.
+     * 
+ * + * .google.logging.v2.CopyLogEntriesRequest request = 5; + */ + public Builder setRequest(com.google.logging.v2.CopyLogEntriesRequest.Builder builderForValue) { + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * CopyLogEntries RPC request.
+     * 
+ * + * .google.logging.v2.CopyLogEntriesRequest request = 5; + */ + public Builder mergeRequest(com.google.logging.v2.CopyLogEntriesRequest value) { + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + com.google.logging.v2.CopyLogEntriesRequest.newBuilder(request_) + .mergeFrom(value) + .buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * CopyLogEntries RPC request.
+     * 
+ * + * .google.logging.v2.CopyLogEntriesRequest request = 5; + */ + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * CopyLogEntries RPC request.
+     * 
+ * + * .google.logging.v2.CopyLogEntriesRequest request = 5; + */ + public com.google.logging.v2.CopyLogEntriesRequest.Builder getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * CopyLogEntries RPC request.
+     * 
+ * + * .google.logging.v2.CopyLogEntriesRequest request = 5; + */ + public com.google.logging.v2.CopyLogEntriesRequestOrBuilder getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null + ? com.google.logging.v2.CopyLogEntriesRequest.getDefaultInstance() + : request_; + } + } + /** + * + * + *
+     * CopyLogEntries RPC request.
+     * 
+ * + * .google.logging.v2.CopyLogEntriesRequest request = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.CopyLogEntriesRequest, + com.google.logging.v2.CopyLogEntriesRequest.Builder, + com.google.logging.v2.CopyLogEntriesRequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.CopyLogEntriesRequest, + com.google.logging.v2.CopyLogEntriesRequest.Builder, + com.google.logging.v2.CopyLogEntriesRequestOrBuilder>( + getRequest(), getParentForChildren(), isClean()); + request_ = null; + } + return requestBuilder_; + } + + private int progress_; + /** + * + * + *
+     * Estimated progress of the operation (0 - 100%).
+     * 
+ * + * int32 progress = 6; + * + * @return The progress. + */ + @java.lang.Override + public int getProgress() { + return progress_; + } + /** + * + * + *
+     * Estimated progress of the operation (0 - 100%).
+     * 
+ * + * int32 progress = 6; + * + * @param value The progress to set. + * @return This builder for chaining. + */ + public Builder setProgress(int value) { + + progress_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Estimated progress of the operation (0 - 100%).
+     * 
+ * + * int32 progress = 6; + * + * @return This builder for chaining. + */ + public Builder clearProgress() { + + progress_ = 0; + onChanged(); + return this; + } + + private java.lang.Object writerIdentity_ = ""; + /** + * + * + *
+     * The IAM identity of a service account that must be granted access to the
+     * destination.
+     * If the service account is not granted permission to the destination within
+     * an hour, the operation will be cancelled.
+     * For example: `"serviceAccount:foo@bar.com"`
+     * 
+ * + * string writer_identity = 7; + * + * @return The writerIdentity. + */ + public java.lang.String getWriterIdentity() { + java.lang.Object ref = writerIdentity_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + writerIdentity_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The IAM identity of a service account that must be granted access to the
+     * destination.
+     * If the service account is not granted permission to the destination within
+     * an hour, the operation will be cancelled.
+     * For example: `"serviceAccount:foo@bar.com"`
+     * 
+ * + * string writer_identity = 7; + * + * @return The bytes for writerIdentity. + */ + public com.google.protobuf.ByteString getWriterIdentityBytes() { + java.lang.Object ref = writerIdentity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + writerIdentity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The IAM identity of a service account that must be granted access to the
+     * destination.
+     * If the service account is not granted permission to the destination within
+     * an hour, the operation will be cancelled.
+     * For example: `"serviceAccount:foo@bar.com"`
+     * 
+ * + * string writer_identity = 7; + * + * @param value The writerIdentity to set. + * @return This builder for chaining. + */ + public Builder setWriterIdentity(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + writerIdentity_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The IAM identity of a service account that must be granted access to the
+     * destination.
+     * If the service account is not granted permission to the destination within
+     * an hour, the operation will be cancelled.
+     * For example: `"serviceAccount:foo@bar.com"`
+     * 
+ * + * string writer_identity = 7; + * + * @return This builder for chaining. + */ + public Builder clearWriterIdentity() { + + writerIdentity_ = getDefaultInstance().getWriterIdentity(); + onChanged(); + return this; + } + /** + * + * + *
+     * The IAM identity of a service account that must be granted access to the
+     * destination.
+     * If the service account is not granted permission to the destination within
+     * an hour, the operation will be cancelled.
+     * For example: `"serviceAccount:foo@bar.com"`
+     * 
+ * + * string writer_identity = 7; + * + * @param value The bytes for writerIdentity to set. + * @return This builder for chaining. + */ + public Builder setWriterIdentityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + writerIdentity_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.logging.v2.CopyLogEntriesMetadata) + } + + // @@protoc_insertion_point(class_scope:google.logging.v2.CopyLogEntriesMetadata) + private static final com.google.logging.v2.CopyLogEntriesMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.logging.v2.CopyLogEntriesMetadata(); + } + + public static com.google.logging.v2.CopyLogEntriesMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CopyLogEntriesMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CopyLogEntriesMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.logging.v2.CopyLogEntriesMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadataOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadataOrBuilder.java new file mode 100644 index 000000000..9beff6c6a --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesMetadataOrBuilder.java @@ -0,0 +1,214 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/v2/logging_config.proto + +package com.google.logging.v2; + +public interface CopyLogEntriesMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.logging.v2.CopyLogEntriesMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The create time of an operation.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * + * + *
+   * The create time of an operation.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
+   * The create time of an operation.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+   * The end time of an operation.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + * + * + *
+   * The end time of an operation.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
+   * The end time of an operation.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
+   * State of an operation.
+   * 
+ * + * .google.logging.v2.OperationState state = 3; + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * State of an operation.
+   * 
+ * + * .google.logging.v2.OperationState state = 3; + * + * @return The state. + */ + com.google.logging.v2.OperationState getState(); + + /** + * + * + *
+   * Identifies whether the user has requested cancellation of the operation.
+   * 
+ * + * bool cancellation_requested = 4; + * + * @return The cancellationRequested. + */ + boolean getCancellationRequested(); + + /** + * + * + *
+   * CopyLogEntries RPC request.
+   * 
+ * + * .google.logging.v2.CopyLogEntriesRequest request = 5; + * + * @return Whether the request field is set. + */ + boolean hasRequest(); + /** + * + * + *
+   * CopyLogEntries RPC request.
+   * 
+ * + * .google.logging.v2.CopyLogEntriesRequest request = 5; + * + * @return The request. + */ + com.google.logging.v2.CopyLogEntriesRequest getRequest(); + /** + * + * + *
+   * CopyLogEntries RPC request.
+   * 
+ * + * .google.logging.v2.CopyLogEntriesRequest request = 5; + */ + com.google.logging.v2.CopyLogEntriesRequestOrBuilder getRequestOrBuilder(); + + /** + * + * + *
+   * Estimated progress of the operation (0 - 100%).
+   * 
+ * + * int32 progress = 6; + * + * @return The progress. + */ + int getProgress(); + + /** + * + * + *
+   * The IAM identity of a service account that must be granted access to the
+   * destination.
+   * If the service account is not granted permission to the destination within
+   * an hour, the operation will be cancelled.
+   * For example: `"serviceAccount:foo@bar.com"`
+   * 
+ * + * string writer_identity = 7; + * + * @return The writerIdentity. + */ + java.lang.String getWriterIdentity(); + /** + * + * + *
+   * The IAM identity of a service account that must be granted access to the
+   * destination.
+   * If the service account is not granted permission to the destination within
+   * an hour, the operation will be cancelled.
+   * For example: `"serviceAccount:foo@bar.com"`
+   * 
+ * + * string writer_identity = 7; + * + * @return The bytes for writerIdentity. + */ + com.google.protobuf.ByteString getWriterIdentityBytes(); +} diff --git a/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 + implements + // @@protoc_insertion_point(builder_implements:google.logging.v2.CopyLogEntriesRequest) + com.google.logging.v2.CopyLogEntriesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CopyLogEntriesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CopyLogEntriesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.logging.v2.CopyLogEntriesRequest.class, + com.google.logging.v2.CopyLogEntriesRequest.Builder.class); + } + + // Construct using com.google.logging.v2.CopyLogEntriesRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + filter_ = ""; + + destination_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CopyLogEntriesRequest_descriptor; + } + + @java.lang.Override + public com.google.logging.v2.CopyLogEntriesRequest getDefaultInstanceForType() { + return com.google.logging.v2.CopyLogEntriesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.logging.v2.CopyLogEntriesRequest build() { + com.google.logging.v2.CopyLogEntriesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.logging.v2.CopyLogEntriesRequest buildPartial() { + com.google.logging.v2.CopyLogEntriesRequest result = + new com.google.logging.v2.CopyLogEntriesRequest(this); + result.name_ = name_; + result.filter_ = filter_; + result.destination_ = destination_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.logging.v2.CopyLogEntriesRequest) { + return mergeFrom((com.google.logging.v2.CopyLogEntriesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.logging.v2.CopyLogEntriesRequest other) { + if (other == com.google.logging.v2.CopyLogEntriesRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + if (!other.getDestination().isEmpty()) { + destination_ = other.destination_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.logging.v2.CopyLogEntriesRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.logging.v2.CopyLogEntriesRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Log bucket from which to copy log entries.
+     * For example:
+     *   `"projects/my-project/locations/global/buckets/my-source-bucket"`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Log bucket from which to copy log entries.
+     * For example:
+     *   `"projects/my-project/locations/global/buckets/my-source-bucket"`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Log bucket from which to copy log entries.
+     * For example:
+     *   `"projects/my-project/locations/global/buckets/my-source-bucket"`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Log bucket from which to copy log entries.
+     * For example:
+     *   `"projects/my-project/locations/global/buckets/my-source-bucket"`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Log bucket from which to copy log entries.
+     * For example:
+     *   `"projects/my-project/locations/global/buckets/my-source-bucket"`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Optional. A filter specifying which log entries to copy. The filter must be no more
+     * than 20k characters. An empty filter matches all log entries.
+     * 
+ * + * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. A filter specifying which log entries to copy. The filter must be no more
+     * than 20k characters. An empty filter matches all log entries.
+     * 
+ * + * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A filter specifying which log entries to copy. The filter must be no more
+     * than 20k characters. An empty filter matches all log entries.
+     * 
+ * + * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + filter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A filter specifying which log entries to copy. The filter must be no more
+     * than 20k characters. An empty filter matches all log entries.
+     * 
+ * + * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A filter specifying which log entries to copy. The filter must be no more
+     * than 20k characters. An empty filter matches all log entries.
+     * 
+ * + * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + filter_ = value; + onChanged(); + return this; + } + + private java.lang.Object destination_ = ""; + /** + * + * + *
+     * Required. Destination to which to copy log entries.
+     * 
+ * + * string destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The destination. + */ + public java.lang.String getDestination() { + java.lang.Object ref = destination_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destination_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Destination to which to copy log entries.
+     * 
+ * + * string destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for destination. + */ + public com.google.protobuf.ByteString getDestinationBytes() { + java.lang.Object ref = destination_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destination_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Destination to which to copy log entries.
+     * 
+ * + * string destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The destination to set. + * @return This builder for chaining. + */ + public Builder setDestination(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + destination_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Destination to which to copy log entries.
+     * 
+ * + * string destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDestination() { + + destination_ = getDefaultInstance().getDestination(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Destination to which to copy log entries.
+     * 
+ * + * string destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for destination to set. + * @return This builder for chaining. + */ + public Builder setDestinationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + destination_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.logging.v2.CopyLogEntriesRequest) + } + + // @@protoc_insertion_point(class_scope:google.logging.v2.CopyLogEntriesRequest) + private static final com.google.logging.v2.CopyLogEntriesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.logging.v2.CopyLogEntriesRequest(); + } + + public static com.google.logging.v2.CopyLogEntriesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CopyLogEntriesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CopyLogEntriesRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.logging.v2.CopyLogEntriesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequestOrBuilder.java new file mode 100644 index 000000000..94380119c --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesRequestOrBuilder.java @@ -0,0 +1,106 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/v2/logging_config.proto + +package com.google.logging.v2; + +public interface CopyLogEntriesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.logging.v2.CopyLogEntriesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Log bucket from which to copy log entries.
+   * For example:
+   *   `"projects/my-project/locations/global/buckets/my-source-bucket"`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Log bucket from which to copy log entries.
+   * For example:
+   *   `"projects/my-project/locations/global/buckets/my-source-bucket"`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. A filter specifying which log entries to copy. The filter must be no more
+   * than 20k characters. An empty filter matches all log entries.
+   * 
+ * + * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Optional. A filter specifying which log entries to copy. The filter must be no more
+   * than 20k characters. An empty filter matches all log entries.
+   * 
+ * + * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Required. Destination to which to copy log entries.
+   * 
+ * + * string destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The destination. + */ + java.lang.String getDestination(); + /** + * + * + *
+   * Required. Destination to which to copy log entries.
+   * 
+ * + * string destination = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for destination. + */ + com.google.protobuf.ByteString getDestinationBytes(); +} diff --git a/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 + implements + // @@protoc_insertion_point(builder_implements:google.logging.v2.CopyLogEntriesResponse) + com.google.logging.v2.CopyLogEntriesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CopyLogEntriesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CopyLogEntriesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.logging.v2.CopyLogEntriesResponse.class, + com.google.logging.v2.CopyLogEntriesResponse.Builder.class); + } + + // Construct using com.google.logging.v2.CopyLogEntriesResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + logEntriesCopiedCount_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CopyLogEntriesResponse_descriptor; + } + + @java.lang.Override + public com.google.logging.v2.CopyLogEntriesResponse getDefaultInstanceForType() { + return com.google.logging.v2.CopyLogEntriesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.logging.v2.CopyLogEntriesResponse build() { + com.google.logging.v2.CopyLogEntriesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.logging.v2.CopyLogEntriesResponse buildPartial() { + com.google.logging.v2.CopyLogEntriesResponse result = + new com.google.logging.v2.CopyLogEntriesResponse(this); + result.logEntriesCopiedCount_ = logEntriesCopiedCount_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.logging.v2.CopyLogEntriesResponse) { + return mergeFrom((com.google.logging.v2.CopyLogEntriesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.logging.v2.CopyLogEntriesResponse other) { + if (other == com.google.logging.v2.CopyLogEntriesResponse.getDefaultInstance()) return this; + if (other.getLogEntriesCopiedCount() != 0L) { + setLogEntriesCopiedCount(other.getLogEntriesCopiedCount()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.logging.v2.CopyLogEntriesResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.logging.v2.CopyLogEntriesResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long logEntriesCopiedCount_; + /** + * + * + *
+     * Number of log entries copied.
+     * 
+ * + * int64 log_entries_copied_count = 1; + * + * @return The logEntriesCopiedCount. + */ + @java.lang.Override + public long getLogEntriesCopiedCount() { + return logEntriesCopiedCount_; + } + /** + * + * + *
+     * Number of log entries copied.
+     * 
+ * + * int64 log_entries_copied_count = 1; + * + * @param value The logEntriesCopiedCount to set. + * @return This builder for chaining. + */ + public Builder setLogEntriesCopiedCount(long value) { + + logEntriesCopiedCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Number of log entries copied.
+     * 
+ * + * int64 log_entries_copied_count = 1; + * + * @return This builder for chaining. + */ + public Builder clearLogEntriesCopiedCount() { + + logEntriesCopiedCount_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.logging.v2.CopyLogEntriesResponse) + } + + // @@protoc_insertion_point(class_scope:google.logging.v2.CopyLogEntriesResponse) + private static final com.google.logging.v2.CopyLogEntriesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.logging.v2.CopyLogEntriesResponse(); + } + + public static com.google.logging.v2.CopyLogEntriesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CopyLogEntriesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CopyLogEntriesResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.logging.v2.CopyLogEntriesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponseOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponseOrBuilder.java new file mode 100644 index 000000000..afd947659 --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CopyLogEntriesResponseOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/v2/logging_config.proto + +package com.google.logging.v2; + +public interface CopyLogEntriesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.logging.v2.CopyLogEntriesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Number of log entries copied.
+   * 
+ * + * int64 log_entries_copied_count = 1; + * + * @return The logEntriesCopiedCount. + */ + long getLogEntriesCopiedCount(); +} diff --git a/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"` * * * @@ -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/GetExclusionRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequestOrBuilder.java index 7feee62f5..e66eaa839 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequestOrBuilder.java @@ -32,7 +32,8 @@ public interface GetExclusionRequestOrBuilder * "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 GetExclusionRequestOrBuilder * "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/GetSettingsRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequest.java new file mode 100644 index 000000000..808678e44 --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequest.java @@ -0,0 +1,725 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/v2/logging_config.proto + +package com.google.logging.v2; + +/** + * + * + *
+ * The parameters to
+ * [GetSettings][google.logging.v2.ConfigServiceV2.GetSettings].
+ * See [Enabling CMEK for Log
+ * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for
+ * more information.
+ * 
+ * + * Protobuf type {@code google.logging.v2.GetSettingsRequest} + */ +public final class GetSettingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.logging.v2.GetSettingsRequest) + GetSettingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetSettingsRequest.newBuilder() to construct. + private GetSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetSettingsRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetSettingsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetSettingsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_GetSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_GetSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.logging.v2.GetSettingsRequest.class, + com.google.logging.v2.GetSettingsRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The resource for which to retrieve settings.
+   *     "projects/[PROJECT_ID]/settings"
+   *     "organizations/[ORGANIZATION_ID]/settings"
+   *     "billingAccounts/[BILLING_ACCOUNT_ID]/settings"
+   *     "folders/[FOLDER_ID]/settings"
+   * For example:
+   *   `"organizations/12345/settings"`
+   * Note: Settings for the Log Router can be get for Google Cloud projects,
+   * folders, organizations and billing accounts. Currently it can only be
+   * configured for organizations. Once configured for an organization, it
+   * applies to all projects and folders in the Google Cloud organization.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource for which to retrieve settings.
+   *     "projects/[PROJECT_ID]/settings"
+   *     "organizations/[ORGANIZATION_ID]/settings"
+   *     "billingAccounts/[BILLING_ACCOUNT_ID]/settings"
+   *     "folders/[FOLDER_ID]/settings"
+   * For example:
+   *   `"organizations/12345/settings"`
+   * Note: Settings for the Log Router can be get for Google Cloud projects,
+   * folders, organizations and billing accounts. Currently it can only be
+   * configured for organizations. Once configured for an organization, it
+   * applies to all projects and folders in the Google Cloud organization.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.logging.v2.GetSettingsRequest)) { + return super.equals(obj); + } + com.google.logging.v2.GetSettingsRequest other = (com.google.logging.v2.GetSettingsRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.logging.v2.GetSettingsRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.GetSettingsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.GetSettingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.GetSettingsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.GetSettingsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.GetSettingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.GetSettingsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.logging.v2.GetSettingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.logging.v2.GetSettingsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.logging.v2.GetSettingsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.logging.v2.GetSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.logging.v2.GetSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.logging.v2.GetSettingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The parameters to
+   * [GetSettings][google.logging.v2.ConfigServiceV2.GetSettings].
+   * See [Enabling CMEK for Log
+   * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for
+   * more information.
+   * 
+ * + * Protobuf type {@code google.logging.v2.GetSettingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.logging.v2.GetSettingsRequest) + com.google.logging.v2.GetSettingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_GetSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_GetSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.logging.v2.GetSettingsRequest.class, + com.google.logging.v2.GetSettingsRequest.Builder.class); + } + + // Construct using com.google.logging.v2.GetSettingsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_GetSettingsRequest_descriptor; + } + + @java.lang.Override + public com.google.logging.v2.GetSettingsRequest getDefaultInstanceForType() { + return com.google.logging.v2.GetSettingsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.logging.v2.GetSettingsRequest build() { + com.google.logging.v2.GetSettingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.logging.v2.GetSettingsRequest buildPartial() { + com.google.logging.v2.GetSettingsRequest result = + new com.google.logging.v2.GetSettingsRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.logging.v2.GetSettingsRequest) { + return mergeFrom((com.google.logging.v2.GetSettingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.logging.v2.GetSettingsRequest other) { + if (other == com.google.logging.v2.GetSettingsRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.logging.v2.GetSettingsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.logging.v2.GetSettingsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource for which to retrieve settings.
+     *     "projects/[PROJECT_ID]/settings"
+     *     "organizations/[ORGANIZATION_ID]/settings"
+     *     "billingAccounts/[BILLING_ACCOUNT_ID]/settings"
+     *     "folders/[FOLDER_ID]/settings"
+     * For example:
+     *   `"organizations/12345/settings"`
+     * Note: Settings for the Log Router can be get for Google Cloud projects,
+     * folders, organizations and billing accounts. Currently it can only be
+     * configured for organizations. Once configured for an organization, it
+     * applies to all projects and folders in the Google Cloud organization.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource for which to retrieve settings.
+     *     "projects/[PROJECT_ID]/settings"
+     *     "organizations/[ORGANIZATION_ID]/settings"
+     *     "billingAccounts/[BILLING_ACCOUNT_ID]/settings"
+     *     "folders/[FOLDER_ID]/settings"
+     * For example:
+     *   `"organizations/12345/settings"`
+     * Note: Settings for the Log Router can be get for Google Cloud projects,
+     * folders, organizations and billing accounts. Currently it can only be
+     * configured for organizations. Once configured for an organization, it
+     * applies to all projects and folders in the Google Cloud organization.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource for which to retrieve settings.
+     *     "projects/[PROJECT_ID]/settings"
+     *     "organizations/[ORGANIZATION_ID]/settings"
+     *     "billingAccounts/[BILLING_ACCOUNT_ID]/settings"
+     *     "folders/[FOLDER_ID]/settings"
+     * For example:
+     *   `"organizations/12345/settings"`
+     * Note: Settings for the Log Router can be get for Google Cloud projects,
+     * folders, organizations and billing accounts. Currently it can only be
+     * configured for organizations. Once configured for an organization, it
+     * applies to all projects and folders in the Google Cloud organization.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource for which to retrieve settings.
+     *     "projects/[PROJECT_ID]/settings"
+     *     "organizations/[ORGANIZATION_ID]/settings"
+     *     "billingAccounts/[BILLING_ACCOUNT_ID]/settings"
+     *     "folders/[FOLDER_ID]/settings"
+     * For example:
+     *   `"organizations/12345/settings"`
+     * Note: Settings for the Log Router can be get for Google Cloud projects,
+     * folders, organizations and billing accounts. Currently it can only be
+     * configured for organizations. Once configured for an organization, it
+     * applies to all projects and folders in the Google Cloud organization.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource for which to retrieve settings.
+     *     "projects/[PROJECT_ID]/settings"
+     *     "organizations/[ORGANIZATION_ID]/settings"
+     *     "billingAccounts/[BILLING_ACCOUNT_ID]/settings"
+     *     "folders/[FOLDER_ID]/settings"
+     * For example:
+     *   `"organizations/12345/settings"`
+     * Note: Settings for the Log Router can be get for Google Cloud projects,
+     * folders, organizations and billing accounts. Currently it can only be
+     * configured for organizations. Once configured for an organization, it
+     * applies to all projects and folders in the Google Cloud organization.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.logging.v2.GetSettingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.logging.v2.GetSettingsRequest) + private static final com.google.logging.v2.GetSettingsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.logging.v2.GetSettingsRequest(); + } + + public static com.google.logging.v2.GetSettingsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetSettingsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.logging.v2.GetSettingsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequestOrBuilder.java new file mode 100644 index 000000000..1acc66b3f --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSettingsRequestOrBuilder.java @@ -0,0 +1,74 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/v2/logging_config.proto + +package com.google.logging.v2; + +public interface GetSettingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.logging.v2.GetSettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource for which to retrieve settings.
+   *     "projects/[PROJECT_ID]/settings"
+   *     "organizations/[ORGANIZATION_ID]/settings"
+   *     "billingAccounts/[BILLING_ACCOUNT_ID]/settings"
+   *     "folders/[FOLDER_ID]/settings"
+   * For example:
+   *   `"organizations/12345/settings"`
+   * Note: Settings for the Log Router can be get for Google Cloud projects,
+   * folders, organizations and billing accounts. Currently it can only be
+   * configured for organizations. Once configured for an organization, it
+   * applies to all projects and folders in the Google Cloud organization.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource for which to retrieve settings.
+   *     "projects/[PROJECT_ID]/settings"
+   *     "organizations/[ORGANIZATION_ID]/settings"
+   *     "billingAccounts/[BILLING_ACCOUNT_ID]/settings"
+   *     "folders/[FOLDER_ID]/settings"
+   * For example:
+   *   `"organizations/12345/settings"`
+   * Note: Settings for the Log Router can be get for Google Cloud projects,
+   * folders, organizations and billing accounts. Currently it can only be
+   * configured for organizations. Once configured for an organization, it
+   * applies to all projects and folders in the Google Cloud organization.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequest.java index 81d05b353..7007382d5 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequest.java @@ -122,7 +122,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"` * * * @@ -152,7 +153,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"` * * * @@ -497,7 +499,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"` * * * @@ -526,7 +529,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"` * * * @@ -555,7 +559,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"` * * * @@ -583,7 +588,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"` * * * @@ -607,7 +613,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/GetSinkRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequestOrBuilder.java index 11bacc6e3..13fc21290 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetSinkRequestOrBuilder.java @@ -32,7 +32,8 @@ public interface GetSinkRequestOrBuilder * "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"` * * * @@ -51,7 +52,8 @@ public interface GetSinkRequestOrBuilder * "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/GetViewRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequest.java index 57a082f47..f2aee9fd1 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequest.java @@ -119,8 +119,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * Required. The resource name of the policy:
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-   * Example:
-   * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`.
+   * For example:
+   *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
    * 
* * @@ -147,8 +147,8 @@ public java.lang.String getName() { *
    * Required. The resource name of the policy:
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-   * 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"`
    * 
* * @@ -490,8 +490,8 @@ public Builder mergeFrom( *
      * Required. The resource name of the policy:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     * Example:
-     * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`.
+     * For example:
+     *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
      * 
* * @@ -517,8 +517,8 @@ public java.lang.String getName() { *
      * Required. The resource name of the policy:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     * 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"`
      * 
* * @@ -544,8 +544,8 @@ public com.google.protobuf.ByteString getNameBytes() { *
      * Required. The resource name of the policy:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     * Example:
-     * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`.
+     * For example:
+     *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
      * 
* * @@ -570,8 +570,8 @@ public Builder setName(java.lang.String value) { *
      * Required. The resource name of the policy:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     * Example:
-     * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`.
+     * For example:
+     *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
      * 
* * @@ -592,8 +592,8 @@ public Builder clearName() { *
      * Required. The resource name of the policy:
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     * Example:
-     * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`.
+     * For example:
+     *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
      * 
* * diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequestOrBuilder.java index 76cf02e7e..bf2724a08 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetViewRequestOrBuilder.java @@ -29,8 +29,8 @@ public interface GetViewRequestOrBuilder *
    * Required. The resource name of the policy:
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-   * Example:
-   * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`.
+   * For example:
+   *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
    * 
* * @@ -46,8 +46,8 @@ public interface GetViewRequestOrBuilder *
    * Required. The resource name of the policy:
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-   * Example:
-   * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`.
+   * For example:
+   *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
    * 
* * diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LifecycleState.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LifecycleState.java index f19d1e1ab..a915b5423 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LifecycleState.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LifecycleState.java @@ -32,8 +32,8 @@ public enum LifecycleState implements com.google.protobuf.ProtocolMessageEnum { * * *
-   * Unspecified state.  This is only used/useful for distinguishing
-   * unset values.
+   * Unspecified state. This is only used/useful for distinguishing unset
+   * values.
    * 
* * LIFECYCLE_STATE_UNSPECIFIED = 0; @@ -53,7 +53,8 @@ public enum LifecycleState implements com.google.protobuf.ProtocolMessageEnum { * * *
-   * The bucket has been marked for deletion by the user.
+   * The resource has been marked for deletion by the user. For some resources
+   * (e.g. buckets), this can be reversed by an un-delete operation.
    * 
* * DELETE_REQUESTED = 2; @@ -66,8 +67,8 @@ public enum LifecycleState implements com.google.protobuf.ProtocolMessageEnum { * * *
-   * Unspecified state.  This is only used/useful for distinguishing
-   * unset values.
+   * Unspecified state. This is only used/useful for distinguishing unset
+   * values.
    * 
* * LIFECYCLE_STATE_UNSPECIFIED = 0; @@ -87,7 +88,8 @@ public enum LifecycleState implements com.google.protobuf.ProtocolMessageEnum { * * *
-   * The bucket has been marked for deletion by the user.
+   * The resource has been marked for deletion by the user. For some resources
+   * (e.g. buckets), this can be reversed by an un-delete operation.
    * 
* * DELETE_REQUESTED = 2; diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsRequest.java index 4291254d7..5da707c0b 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsRequest.java @@ -197,10 +197,10 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * Optional. If present, then retrieve the next batch of results from the
-   * preceding call to this method. `pageToken` must be the value of
-   * `nextPageToken` from the previous response. The values of other method
-   * parameters should be identical to those in the previous call.
+   * Optional. If present, then retrieve the next batch of results from the preceding call
+   * to this method. `pageToken` must be the value of `nextPageToken` from the
+   * previous response. The values of other method parameters should be
+   * identical to those in the previous call.
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -223,10 +223,10 @@ public java.lang.String getPageToken() { * * *
-   * Optional. If present, then retrieve the next batch of results from the
-   * preceding call to this method. `pageToken` must be the value of
-   * `nextPageToken` from the previous response. The values of other method
-   * parameters should be identical to those in the previous call.
+   * Optional. If present, then retrieve the next batch of results from the preceding call
+   * to this method. `pageToken` must be the value of `nextPageToken` from the
+   * previous response. The values of other method parameters should be
+   * identical to those in the previous call.
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -252,9 +252,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-   * Optional. The maximum number of results to return from this request.
-   * Non-positive values are ignored. The presence of `nextPageToken` in the
-   * response indicates that more results might be available.
+   * Optional. The maximum number of results to return from this request. Non-positive
+   * values are ignored. The presence of `nextPageToken` in the response
+   * indicates that more results might be available.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -768,10 +768,10 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. If present, then retrieve the next batch of results from the
-     * preceding call to this method. `pageToken` must be the value of
-     * `nextPageToken` from the previous response. The values of other method
-     * parameters should be identical to those in the previous call.
+     * Optional. If present, then retrieve the next batch of results from the preceding call
+     * to this method. `pageToken` must be the value of `nextPageToken` from the
+     * previous response. The values of other method parameters should be
+     * identical to those in the previous call.
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -793,10 +793,10 @@ public java.lang.String getPageToken() { * * *
-     * Optional. If present, then retrieve the next batch of results from the
-     * preceding call to this method. `pageToken` must be the value of
-     * `nextPageToken` from the previous response. The values of other method
-     * parameters should be identical to those in the previous call.
+     * Optional. If present, then retrieve the next batch of results from the preceding call
+     * to this method. `pageToken` must be the value of `nextPageToken` from the
+     * previous response. The values of other method parameters should be
+     * identical to those in the previous call.
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -818,10 +818,10 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * Optional. If present, then retrieve the next batch of results from the
-     * preceding call to this method. `pageToken` must be the value of
-     * `nextPageToken` from the previous response. The values of other method
-     * parameters should be identical to those in the previous call.
+     * Optional. If present, then retrieve the next batch of results from the preceding call
+     * to this method. `pageToken` must be the value of `nextPageToken` from the
+     * previous response. The values of other method parameters should be
+     * identical to those in the previous call.
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -842,10 +842,10 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * Optional. If present, then retrieve the next batch of results from the
-     * preceding call to this method. `pageToken` must be the value of
-     * `nextPageToken` from the previous response. The values of other method
-     * parameters should be identical to those in the previous call.
+     * Optional. If present, then retrieve the next batch of results from the preceding call
+     * to this method. `pageToken` must be the value of `nextPageToken` from the
+     * previous response. The values of other method parameters should be
+     * identical to those in the previous call.
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -862,10 +862,10 @@ public Builder clearPageToken() { * * *
-     * Optional. If present, then retrieve the next batch of results from the
-     * preceding call to this method. `pageToken` must be the value of
-     * `nextPageToken` from the previous response. The values of other method
-     * parameters should be identical to those in the previous call.
+     * Optional. If present, then retrieve the next batch of results from the preceding call
+     * to this method. `pageToken` must be the value of `nextPageToken` from the
+     * previous response. The values of other method parameters should be
+     * identical to those in the previous call.
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -889,9 +889,9 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. The maximum number of results to return from this request.
-     * Non-positive values are ignored. The presence of `nextPageToken` in the
-     * response indicates that more results might be available.
+     * Optional. The maximum number of results to return from this request. Non-positive
+     * values are ignored. The presence of `nextPageToken` in the response
+     * indicates that more results might be available.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -906,9 +906,9 @@ public int getPageSize() { * * *
-     * Optional. The maximum number of results to return from this request.
-     * Non-positive values are ignored. The presence of `nextPageToken` in the
-     * response indicates that more results might be available.
+     * Optional. The maximum number of results to return from this request. Non-positive
+     * values are ignored. The presence of `nextPageToken` in the response
+     * indicates that more results might be available.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -926,9 +926,9 @@ public Builder setPageSize(int value) { * * *
-     * Optional. The maximum number of results to return from this request.
-     * Non-positive values are ignored. The presence of `nextPageToken` in the
-     * response indicates that more results might be available.
+     * Optional. The maximum number of results to return from this request. Non-positive
+     * values are ignored. The presence of `nextPageToken` in the response
+     * indicates that more results might be available.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsRequestOrBuilder.java index 0f895cf02..afdd84396 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListBucketsRequestOrBuilder.java @@ -70,10 +70,10 @@ public interface ListBucketsRequestOrBuilder * * *
-   * Optional. If present, then retrieve the next batch of results from the
-   * preceding call to this method. `pageToken` must be the value of
-   * `nextPageToken` from the previous response. The values of other method
-   * parameters should be identical to those in the previous call.
+   * Optional. If present, then retrieve the next batch of results from the preceding call
+   * to this method. `pageToken` must be the value of `nextPageToken` from the
+   * previous response. The values of other method parameters should be
+   * identical to those in the previous call.
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -85,10 +85,10 @@ public interface ListBucketsRequestOrBuilder * * *
-   * Optional. If present, then retrieve the next batch of results from the
-   * preceding call to this method. `pageToken` must be the value of
-   * `nextPageToken` from the previous response. The values of other method
-   * parameters should be identical to those in the previous call.
+   * Optional. If present, then retrieve the next batch of results from the preceding call
+   * to this method. `pageToken` must be the value of `nextPageToken` from the
+   * previous response. The values of other method parameters should be
+   * identical to those in the previous call.
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -101,9 +101,9 @@ public interface ListBucketsRequestOrBuilder * * *
-   * Optional. The maximum number of results to return from this request.
-   * Non-positive values are ignored. The presence of `nextPageToken` in the
-   * response indicates that more results might be available.
+   * Optional. The maximum number of results to return from this request. Non-positive
+   * values are ignored. The presence of `nextPageToken` in the response
+   * indicates that more results might be available.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequest.java index bde9e3bae..31c35801f 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequest.java @@ -155,15 +155,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * Required. Names of one or more parent resources from which to
    * retrieve log entries:
-   *     "projects/[PROJECT_ID]"
-   *     "organizations/[ORGANIZATION_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-   *     "folders/[FOLDER_ID]"
-   * May alternatively be one or more views
-   *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
+   * *  `projects/[PROJECT_ID]`
+   * *  `organizations/[ORGANIZATION_ID]`
+   * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+   * *  `folders/[FOLDER_ID]`
+   * May alternatively be one or more views:
+   *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
    * Projects listed in the `project_ids` field are added to this list.
    * 
* @@ -182,15 +182,15 @@ public com.google.protobuf.ProtocolStringList getResourceNamesList() { *
    * Required. Names of one or more parent resources from which to
    * retrieve log entries:
-   *     "projects/[PROJECT_ID]"
-   *     "organizations/[ORGANIZATION_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-   *     "folders/[FOLDER_ID]"
-   * May alternatively be one or more views
-   *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
+   * *  `projects/[PROJECT_ID]`
+   * *  `organizations/[ORGANIZATION_ID]`
+   * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+   * *  `folders/[FOLDER_ID]`
+   * May alternatively be one or more views:
+   *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
    * Projects listed in the `project_ids` field are added to this list.
    * 
* @@ -209,15 +209,15 @@ public int getResourceNamesCount() { *
    * Required. Names of one or more parent resources from which to
    * retrieve log entries:
-   *     "projects/[PROJECT_ID]"
-   *     "organizations/[ORGANIZATION_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-   *     "folders/[FOLDER_ID]"
-   * May alternatively be one or more views
-   *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
+   * *  `projects/[PROJECT_ID]`
+   * *  `organizations/[ORGANIZATION_ID]`
+   * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+   * *  `folders/[FOLDER_ID]`
+   * May alternatively be one or more views:
+   *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
    * Projects listed in the `project_ids` field are added to this list.
    * 
* @@ -237,15 +237,15 @@ public java.lang.String getResourceNames(int index) { *
    * Required. Names of one or more parent resources from which to
    * retrieve log entries:
-   *     "projects/[PROJECT_ID]"
-   *     "organizations/[ORGANIZATION_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-   *     "folders/[FOLDER_ID]"
-   * May alternatively be one or more views
-   *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
+   * *  `projects/[PROJECT_ID]`
+   * *  `organizations/[ORGANIZATION_ID]`
+   * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+   * *  `folders/[FOLDER_ID]`
+   * May alternatively be one or more views:
+   *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
    * Projects listed in the `project_ids` field are added to this list.
    * 
* @@ -386,10 +386,10 @@ public com.google.protobuf.ByteString getOrderByBytes() { * * *
-   * Optional. The maximum number of results to return from this request.
-   * Default is 50. If the value is negative or exceeds 1000,
-   * the request is rejected. The presence of `next_page_token` in the
-   * response indicates that more results might be available.
+   * Optional. The maximum number of results to return from this request. Default is 50.
+   * If the value is negative or exceeds 1000, the request is rejected. The
+   * presence of `next_page_token` in the response indicates that more results
+   * might be available.
    * 
* * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -870,15 +870,15 @@ private void ensureResourceNamesIsMutable() { *
      * Required. Names of one or more parent resources from which to
      * retrieve log entries:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
-     * May alternatively be one or more views
-     *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
+     * *  `projects/[PROJECT_ID]`
+     * *  `organizations/[ORGANIZATION_ID]`
+     * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+     * *  `folders/[FOLDER_ID]`
+     * May alternatively be one or more views:
+     *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
      * Projects listed in the `project_ids` field are added to this list.
      * 
* @@ -897,15 +897,15 @@ public com.google.protobuf.ProtocolStringList getResourceNamesList() { *
      * Required. Names of one or more parent resources from which to
      * retrieve log entries:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
-     * May alternatively be one or more views
-     *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
+     * *  `projects/[PROJECT_ID]`
+     * *  `organizations/[ORGANIZATION_ID]`
+     * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+     * *  `folders/[FOLDER_ID]`
+     * May alternatively be one or more views:
+     *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
      * Projects listed in the `project_ids` field are added to this list.
      * 
* @@ -924,15 +924,15 @@ public int getResourceNamesCount() { *
      * Required. Names of one or more parent resources from which to
      * retrieve log entries:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
-     * May alternatively be one or more views
-     *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
+     * *  `projects/[PROJECT_ID]`
+     * *  `organizations/[ORGANIZATION_ID]`
+     * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+     * *  `folders/[FOLDER_ID]`
+     * May alternatively be one or more views:
+     *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
      * Projects listed in the `project_ids` field are added to this list.
      * 
* @@ -952,15 +952,15 @@ public java.lang.String getResourceNames(int index) { *
      * Required. Names of one or more parent resources from which to
      * retrieve log entries:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
-     * May alternatively be one or more views
-     *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
+     * *  `projects/[PROJECT_ID]`
+     * *  `organizations/[ORGANIZATION_ID]`
+     * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+     * *  `folders/[FOLDER_ID]`
+     * May alternatively be one or more views:
+     *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
      * Projects listed in the `project_ids` field are added to this list.
      * 
* @@ -980,15 +980,15 @@ public com.google.protobuf.ByteString getResourceNamesBytes(int index) { *
      * Required. Names of one or more parent resources from which to
      * retrieve log entries:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
-     * May alternatively be one or more views
-     *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
+     * *  `projects/[PROJECT_ID]`
+     * *  `organizations/[ORGANIZATION_ID]`
+     * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+     * *  `folders/[FOLDER_ID]`
+     * May alternatively be one or more views:
+     *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
      * Projects listed in the `project_ids` field are added to this list.
      * 
* @@ -1015,15 +1015,15 @@ public Builder setResourceNames(int index, java.lang.String value) { *
      * Required. Names of one or more parent resources from which to
      * retrieve log entries:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
-     * May alternatively be one or more views
-     *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
+     * *  `projects/[PROJECT_ID]`
+     * *  `organizations/[ORGANIZATION_ID]`
+     * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+     * *  `folders/[FOLDER_ID]`
+     * May alternatively be one or more views:
+     *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
      * Projects listed in the `project_ids` field are added to this list.
      * 
* @@ -1049,15 +1049,15 @@ public Builder addResourceNames(java.lang.String value) { *
      * Required. Names of one or more parent resources from which to
      * retrieve log entries:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
-     * May alternatively be one or more views
-     *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
+     * *  `projects/[PROJECT_ID]`
+     * *  `organizations/[ORGANIZATION_ID]`
+     * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+     * *  `folders/[FOLDER_ID]`
+     * May alternatively be one or more views:
+     *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
      * Projects listed in the `project_ids` field are added to this list.
      * 
* @@ -1080,15 +1080,15 @@ public Builder addAllResourceNames(java.lang.Iterable values) *
      * Required. Names of one or more parent resources from which to
      * retrieve log entries:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
-     * May alternatively be one or more views
-     *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
+     * *  `projects/[PROJECT_ID]`
+     * *  `organizations/[ORGANIZATION_ID]`
+     * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+     * *  `folders/[FOLDER_ID]`
+     * May alternatively be one or more views:
+     *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
      * Projects listed in the `project_ids` field are added to this list.
      * 
* @@ -1110,15 +1110,15 @@ public Builder clearResourceNames() { *
      * Required. Names of one or more parent resources from which to
      * retrieve log entries:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
-     * May alternatively be one or more views
-     *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
+     * *  `projects/[PROJECT_ID]`
+     * *  `organizations/[ORGANIZATION_ID]`
+     * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+     * *  `folders/[FOLDER_ID]`
+     * May alternatively be one or more views:
+     *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
      * Projects listed in the `project_ids` field are added to this list.
      * 
* @@ -1412,10 +1412,10 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. The maximum number of results to return from this request.
-     * Default is 50. If the value is negative or exceeds 1000,
-     * the request is rejected. The presence of `next_page_token` in the
-     * response indicates that more results might be available.
+     * Optional. The maximum number of results to return from this request. Default is 50.
+     * If the value is negative or exceeds 1000, the request is rejected. The
+     * presence of `next_page_token` in the response indicates that more results
+     * might be available.
      * 
* * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1430,10 +1430,10 @@ public int getPageSize() { * * *
-     * Optional. The maximum number of results to return from this request.
-     * Default is 50. If the value is negative or exceeds 1000,
-     * the request is rejected. The presence of `next_page_token` in the
-     * response indicates that more results might be available.
+     * Optional. The maximum number of results to return from this request. Default is 50.
+     * If the value is negative or exceeds 1000, the request is rejected. The
+     * presence of `next_page_token` in the response indicates that more results
+     * might be available.
      * 
* * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1451,10 +1451,10 @@ public Builder setPageSize(int value) { * * *
-     * Optional. The maximum number of results to return from this request.
-     * Default is 50. If the value is negative or exceeds 1000,
-     * the request is rejected. The presence of `next_page_token` in the
-     * response indicates that more results might be available.
+     * Optional. The maximum number of results to return from this request. Default is 50.
+     * If the value is negative or exceeds 1000, the request is rejected. The
+     * presence of `next_page_token` in the response indicates that more results
+     * might be available.
      * 
* * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequestOrBuilder.java index 85e8e89b3..171732b5d 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogEntriesRequestOrBuilder.java @@ -29,15 +29,15 @@ public interface ListLogEntriesRequestOrBuilder *
    * Required. Names of one or more parent resources from which to
    * retrieve log entries:
-   *     "projects/[PROJECT_ID]"
-   *     "organizations/[ORGANIZATION_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-   *     "folders/[FOLDER_ID]"
-   * May alternatively be one or more views
-   *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
+   * *  `projects/[PROJECT_ID]`
+   * *  `organizations/[ORGANIZATION_ID]`
+   * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+   * *  `folders/[FOLDER_ID]`
+   * May alternatively be one or more views:
+   *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
    * Projects listed in the `project_ids` field are added to this list.
    * 
* @@ -54,15 +54,15 @@ public interface ListLogEntriesRequestOrBuilder *
    * Required. Names of one or more parent resources from which to
    * retrieve log entries:
-   *     "projects/[PROJECT_ID]"
-   *     "organizations/[ORGANIZATION_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-   *     "folders/[FOLDER_ID]"
-   * May alternatively be one or more views
-   *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
+   * *  `projects/[PROJECT_ID]`
+   * *  `organizations/[ORGANIZATION_ID]`
+   * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+   * *  `folders/[FOLDER_ID]`
+   * May alternatively be one or more views:
+   *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
    * Projects listed in the `project_ids` field are added to this list.
    * 
* @@ -79,15 +79,15 @@ public interface ListLogEntriesRequestOrBuilder *
    * Required. Names of one or more parent resources from which to
    * retrieve log entries:
-   *     "projects/[PROJECT_ID]"
-   *     "organizations/[ORGANIZATION_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-   *     "folders/[FOLDER_ID]"
-   * May alternatively be one or more views
-   *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
+   * *  `projects/[PROJECT_ID]`
+   * *  `organizations/[ORGANIZATION_ID]`
+   * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+   * *  `folders/[FOLDER_ID]`
+   * May alternatively be one or more views:
+   *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
    * Projects listed in the `project_ids` field are added to this list.
    * 
* @@ -105,15 +105,15 @@ public interface ListLogEntriesRequestOrBuilder *
    * Required. Names of one or more parent resources from which to
    * retrieve log entries:
-   *     "projects/[PROJECT_ID]"
-   *     "organizations/[ORGANIZATION_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-   *     "folders/[FOLDER_ID]"
-   * May alternatively be one or more views
-   *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
+   * *  `projects/[PROJECT_ID]`
+   * *  `organizations/[ORGANIZATION_ID]`
+   * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+   * *  `folders/[FOLDER_ID]`
+   * May alternatively be one or more views:
+   *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
    * Projects listed in the `project_ids` field are added to this list.
    * 
* @@ -202,10 +202,10 @@ public interface ListLogEntriesRequestOrBuilder * * *
-   * Optional. The maximum number of results to return from this request.
-   * Default is 50. If the value is negative or exceeds 1000,
-   * the request is rejected. The presence of `next_page_token` in the
-   * response indicates that more results might be available.
+   * Optional. The maximum number of results to return from this request. Default is 50.
+   * If the value is negative or exceeds 1000, the request is rejected. The
+   * presence of `next_page_token` in the response indicates that more results
+   * might be available.
    * 
* * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequest.java index 652a8eae3..585a4e7c9 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequest.java @@ -146,10 +146,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * 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]`
    * 
* * @@ -175,10 +175,10 @@ public java.lang.String getParent() { * *
    * Required. The resource name that owns the logs:
-   *     "projects/[PROJECT_ID]"
-   *     "organizations/[ORGANIZATION_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-   *     "folders/[FOLDER_ID]"
+   * *  `projects/[PROJECT_ID]`
+   * *  `organizations/[ORGANIZATION_ID]`
+   * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+   * *  `folders/[FOLDER_ID]`
    * 
* * @@ -282,18 +282,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * *
    * Optional. The resource name that owns the logs:
-   *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
+   *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
    * To support legacy queries, it could also be:
-   *     "projects/[PROJECT_ID]"
-   *     "organizations/[ORGANIZATION_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-   *     "folders/[FOLDER_ID]"
+   * *  `projects/[PROJECT_ID]`
+   * *  `organizations/[ORGANIZATION_ID]`
+   * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+   * *  `folders/[FOLDER_ID]`
    * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return A list containing the resourceNames. */ @@ -305,18 +307,20 @@ public com.google.protobuf.ProtocolStringList getResourceNamesList() { * *
    * Optional. The resource name that owns the logs:
-   *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
+   *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
    * To support legacy queries, it could also be:
-   *     "projects/[PROJECT_ID]"
-   *     "organizations/[ORGANIZATION_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-   *     "folders/[FOLDER_ID]"
+   * *  `projects/[PROJECT_ID]`
+   * *  `organizations/[ORGANIZATION_ID]`
+   * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+   * *  `folders/[FOLDER_ID]`
    * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The count of resourceNames. */ @@ -328,18 +332,20 @@ public int getResourceNamesCount() { * *
    * Optional. The resource name that owns the logs:
-   *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
+   *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
    * To support legacy queries, it could also be:
-   *     "projects/[PROJECT_ID]"
-   *     "organizations/[ORGANIZATION_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-   *     "folders/[FOLDER_ID]"
+   * *  `projects/[PROJECT_ID]`
+   * *  `organizations/[ORGANIZATION_ID]`
+   * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+   * *  `folders/[FOLDER_ID]`
    * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param index The index of the element to return. * @return The resourceNames at the given index. @@ -352,18 +358,20 @@ public java.lang.String getResourceNames(int index) { * *
    * Optional. The resource name that owns the logs:
-   *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
+   *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
    * To support legacy queries, it could also be:
-   *     "projects/[PROJECT_ID]"
-   *     "organizations/[ORGANIZATION_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-   *     "folders/[FOLDER_ID]"
+   * *  `projects/[PROJECT_ID]`
+   * *  `organizations/[ORGANIZATION_ID]`
+   * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+   * *  `folders/[FOLDER_ID]`
    * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param index The index of the value to return. * @return The bytes of the resourceNames at the given index. @@ -759,10 +767,10 @@ public Builder mergeFrom( * *
      * 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]`
      * 
* * @@ -787,10 +795,10 @@ public java.lang.String getParent() { * *
      * Required. The resource name that owns the logs:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
+     * *  `projects/[PROJECT_ID]`
+     * *  `organizations/[ORGANIZATION_ID]`
+     * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+     * *  `folders/[FOLDER_ID]`
      * 
* * @@ -815,10 +823,10 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required. The resource name that owns the logs:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
+     * *  `projects/[PROJECT_ID]`
+     * *  `organizations/[ORGANIZATION_ID]`
+     * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+     * *  `folders/[FOLDER_ID]`
      * 
* * @@ -842,10 +850,10 @@ public Builder setParent(java.lang.String value) { * *
      * 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]`
      * 
* * @@ -865,10 +873,10 @@ public Builder clearParent() { * *
      * 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]`
      * 
* * @@ -1082,18 +1090,20 @@ private void ensureResourceNamesIsMutable() { * *
      * Optional. The resource name that owns the logs:
-     *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
+     *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
      * To support legacy queries, it could also be:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
+     * *  `projects/[PROJECT_ID]`
+     * *  `organizations/[ORGANIZATION_ID]`
+     * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+     * *  `folders/[FOLDER_ID]`
      * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return A list containing the resourceNames. */ @@ -1105,18 +1115,20 @@ public com.google.protobuf.ProtocolStringList getResourceNamesList() { * *
      * Optional. The resource name that owns the logs:
-     *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
+     *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
      * To support legacy queries, it could also be:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
+     * *  `projects/[PROJECT_ID]`
+     * *  `organizations/[ORGANIZATION_ID]`
+     * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+     * *  `folders/[FOLDER_ID]`
      * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The count of resourceNames. */ @@ -1128,18 +1140,20 @@ public int getResourceNamesCount() { * *
      * Optional. The resource name that owns the logs:
-     *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
+     *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
      * To support legacy queries, it could also be:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
+     * *  `projects/[PROJECT_ID]`
+     * *  `organizations/[ORGANIZATION_ID]`
+     * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+     * *  `folders/[FOLDER_ID]`
      * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param index The index of the element to return. * @return The resourceNames at the given index. @@ -1152,18 +1166,20 @@ public java.lang.String getResourceNames(int index) { * *
      * Optional. The resource name that owns the logs:
-     *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
+     *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
      * To support legacy queries, it could also be:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
+     * *  `projects/[PROJECT_ID]`
+     * *  `organizations/[ORGANIZATION_ID]`
+     * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+     * *  `folders/[FOLDER_ID]`
      * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param index The index of the value to return. * @return The bytes of the resourceNames at the given index. @@ -1176,18 +1192,20 @@ public com.google.protobuf.ByteString getResourceNamesBytes(int index) { * *
      * Optional. The resource name that owns the logs:
-     *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
+     *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
      * To support legacy queries, it could also be:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
+     * *  `projects/[PROJECT_ID]`
+     * *  `organizations/[ORGANIZATION_ID]`
+     * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+     * *  `folders/[FOLDER_ID]`
      * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param index The index to set the value at. * @param value The resourceNames to set. @@ -1207,18 +1225,20 @@ public Builder setResourceNames(int index, java.lang.String value) { * *
      * Optional. The resource name that owns the logs:
-     *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
+     *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
      * To support legacy queries, it could also be:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
+     * *  `projects/[PROJECT_ID]`
+     * *  `organizations/[ORGANIZATION_ID]`
+     * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+     * *  `folders/[FOLDER_ID]`
      * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The resourceNames to add. * @return This builder for chaining. @@ -1237,18 +1257,20 @@ public Builder addResourceNames(java.lang.String value) { * *
      * Optional. The resource name that owns the logs:
-     *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
+     *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
      * To support legacy queries, it could also be:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
+     * *  `projects/[PROJECT_ID]`
+     * *  `organizations/[ORGANIZATION_ID]`
+     * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+     * *  `folders/[FOLDER_ID]`
      * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param values The resourceNames to add. * @return This builder for chaining. @@ -1264,18 +1286,20 @@ public Builder addAllResourceNames(java.lang.Iterable values) * *
      * Optional. The resource name that owns the logs:
-     *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
+     *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
      * To support legacy queries, it could also be:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
+     * *  `projects/[PROJECT_ID]`
+     * *  `organizations/[ORGANIZATION_ID]`
+     * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+     * *  `folders/[FOLDER_ID]`
      * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -1290,18 +1314,20 @@ public Builder clearResourceNames() { * *
      * Optional. The resource name that owns the logs:
-     *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-     *   folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
+     *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
      * To support legacy queries, it could also be:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
+     * *  `projects/[PROJECT_ID]`
+     * *  `organizations/[ORGANIZATION_ID]`
+     * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+     * *  `folders/[FOLDER_ID]`
      * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param value The bytes of the resourceNames to add. * @return This builder for chaining. diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequestOrBuilder.java index a194cf472..788b0faf9 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogsRequestOrBuilder.java @@ -28,10 +28,10 @@ public interface ListLogsRequestOrBuilder * *
    * 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]`
    * 
* * @@ -46,10 +46,10 @@ public interface ListLogsRequestOrBuilder * *
    * 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]`
    * 
* * @@ -111,18 +111,20 @@ public interface ListLogsRequestOrBuilder * *
    * Optional. The resource name that owns the logs:
-   *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
+   *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
    * To support legacy queries, it could also be:
-   *     "projects/[PROJECT_ID]"
-   *     "organizations/[ORGANIZATION_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-   *     "folders/[FOLDER_ID]"
+   * *  `projects/[PROJECT_ID]`
+   * *  `organizations/[ORGANIZATION_ID]`
+   * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+   * *  `folders/[FOLDER_ID]`
    * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return A list containing the resourceNames. */ @@ -132,18 +134,20 @@ public interface ListLogsRequestOrBuilder * *
    * Optional. The resource name that owns the logs:
-   *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
+   *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
    * To support legacy queries, it could also be:
-   *     "projects/[PROJECT_ID]"
-   *     "organizations/[ORGANIZATION_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-   *     "folders/[FOLDER_ID]"
+   * *  `projects/[PROJECT_ID]`
+   * *  `organizations/[ORGANIZATION_ID]`
+   * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+   * *  `folders/[FOLDER_ID]`
    * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @return The count of resourceNames. */ @@ -153,18 +157,20 @@ public interface ListLogsRequestOrBuilder * *
    * Optional. The resource name that owns the logs:
-   *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
+   *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
    * To support legacy queries, it could also be:
-   *     "projects/[PROJECT_ID]"
-   *     "organizations/[ORGANIZATION_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-   *     "folders/[FOLDER_ID]"
+   * *  `projects/[PROJECT_ID]`
+   * *  `organizations/[ORGANIZATION_ID]`
+   * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+   * *  `folders/[FOLDER_ID]`
    * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param index The index of the element to return. * @return The resourceNames at the given index. @@ -175,18 +181,20 @@ public interface ListLogsRequestOrBuilder * *
    * Optional. The resource name that owns the logs:
-   *   projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
-   *   folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
+   *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
    * To support legacy queries, it could also be:
-   *     "projects/[PROJECT_ID]"
-   *     "organizations/[ORGANIZATION_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-   *     "folders/[FOLDER_ID]"
+   * *  `projects/[PROJECT_ID]`
+   * *  `organizations/[ORGANIZATION_ID]`
+   * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+   * *  `folders/[FOLDER_ID]`
    * 
* - * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * * * @param index The index of the value to return. * @return The bytes of the resourceNames at the given index. diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsRequest.java index b22c10571..ab15015cb 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsRequest.java @@ -181,10 +181,10 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * Optional. If present, then retrieve the next batch of results from the
-   * preceding call to this method. `pageToken` must be the value of
-   * `nextPageToken` from the previous response. The values of other method
-   * parameters should be identical to those in the previous call.
+   * Optional. If present, then retrieve the next batch of results from the preceding call
+   * to this method. `pageToken` must be the value of `nextPageToken` from the
+   * previous response. The values of other method parameters should be
+   * identical to those in the previous call.
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -207,10 +207,10 @@ public java.lang.String getPageToken() { * * *
-   * Optional. If present, then retrieve the next batch of results from the
-   * preceding call to this method. `pageToken` must be the value of
-   * `nextPageToken` from the previous response. The values of other method
-   * parameters should be identical to those in the previous call.
+   * Optional. If present, then retrieve the next batch of results from the preceding call
+   * to this method. `pageToken` must be the value of `nextPageToken` from the
+   * previous response. The values of other method parameters should be
+   * identical to those in the previous call.
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -712,10 +712,10 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. If present, then retrieve the next batch of results from the
-     * preceding call to this method. `pageToken` must be the value of
-     * `nextPageToken` from the previous response. The values of other method
-     * parameters should be identical to those in the previous call.
+     * Optional. If present, then retrieve the next batch of results from the preceding call
+     * to this method. `pageToken` must be the value of `nextPageToken` from the
+     * previous response. The values of other method parameters should be
+     * identical to those in the previous call.
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -737,10 +737,10 @@ public java.lang.String getPageToken() { * * *
-     * Optional. If present, then retrieve the next batch of results from the
-     * preceding call to this method. `pageToken` must be the value of
-     * `nextPageToken` from the previous response. The values of other method
-     * parameters should be identical to those in the previous call.
+     * Optional. If present, then retrieve the next batch of results from the preceding call
+     * to this method. `pageToken` must be the value of `nextPageToken` from the
+     * previous response. The values of other method parameters should be
+     * identical to those in the previous call.
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -762,10 +762,10 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * Optional. If present, then retrieve the next batch of results from the
-     * preceding call to this method. `pageToken` must be the value of
-     * `nextPageToken` from the previous response. The values of other method
-     * parameters should be identical to those in the previous call.
+     * Optional. If present, then retrieve the next batch of results from the preceding call
+     * to this method. `pageToken` must be the value of `nextPageToken` from the
+     * previous response. The values of other method parameters should be
+     * identical to those in the previous call.
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -786,10 +786,10 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * Optional. If present, then retrieve the next batch of results from the
-     * preceding call to this method. `pageToken` must be the value of
-     * `nextPageToken` from the previous response. The values of other method
-     * parameters should be identical to those in the previous call.
+     * Optional. If present, then retrieve the next batch of results from the preceding call
+     * to this method. `pageToken` must be the value of `nextPageToken` from the
+     * previous response. The values of other method parameters should be
+     * identical to those in the previous call.
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -806,10 +806,10 @@ public Builder clearPageToken() { * * *
-     * Optional. If present, then retrieve the next batch of results from the
-     * preceding call to this method. `pageToken` must be the value of
-     * `nextPageToken` from the previous response. The values of other method
-     * parameters should be identical to those in the previous call.
+     * Optional. If present, then retrieve the next batch of results from the preceding call
+     * to this method. `pageToken` must be the value of `nextPageToken` from the
+     * previous response. The values of other method parameters should be
+     * identical to those in the previous call.
      * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsRequestOrBuilder.java index 101411177..4e185bd6b 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListViewsRequestOrBuilder.java @@ -54,10 +54,10 @@ public interface ListViewsRequestOrBuilder * * *
-   * Optional. If present, then retrieve the next batch of results from the
-   * preceding call to this method. `pageToken` must be the value of
-   * `nextPageToken` from the previous response. The values of other method
-   * parameters should be identical to those in the previous call.
+   * Optional. If present, then retrieve the next batch of results from the preceding call
+   * to this method. `pageToken` must be the value of `nextPageToken` from the
+   * previous response. The values of other method parameters should be
+   * identical to those in the previous call.
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -69,10 +69,10 @@ public interface ListViewsRequestOrBuilder * * *
-   * Optional. If present, then retrieve the next batch of results from the
-   * preceding call to this method. `pageToken` must be the value of
-   * `nextPageToken` from the previous response. The values of other method
-   * parameters should be identical to those in the previous call.
+   * Optional. If present, then retrieve the next batch of results from the preceding call
+   * to this method. `pageToken` must be the value of `nextPageToken` from the
+   * previous response. The values of other method parameters should be
+   * identical to those in the previous call.
    * 
* * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucket.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucket.java index 9f43c657d..c84aa0d01 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucket.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucket.java @@ -22,7 +22,7 @@ * * *
- * Describes a repository of logs.
+ * Describes a repository in which log entries are stored.
  * 
* * Protobuf type {@code google.logging.v2.LogBucket} @@ -41,6 +41,7 @@ private LogBucket() { name_ = ""; description_ = ""; lifecycleState_ = 0; + restrictedFields_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @@ -62,6 +63,7 @@ private LogBucket( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } + int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -131,6 +133,31 @@ private LogBucket( int rawValue = input.readEnum(); lifecycleState_ = rawValue; + break; + } + case 122: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + restrictedFields_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + restrictedFields_.add(s); + break; + } + case 154: + { + com.google.logging.v2.CmekSettings.Builder subBuilder = null; + if (cmekSettings_ != null) { + subBuilder = cmekSettings_.toBuilder(); + } + cmekSettings_ = + input.readMessage(com.google.logging.v2.CmekSettings.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cmekSettings_); + cmekSettings_ = subBuilder.buildPartial(); + } + break; } default: @@ -147,6 +174,9 @@ private LogBucket( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + restrictedFields_ = restrictedFields_.getUnmodifiableView(); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -172,17 +202,17 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The resource name of the bucket.
+   * Output only. The resource name of the bucket.
    * For example:
-   * "projects/my-project-id/locations/my-location/buckets/my-bucket-id The
-   * supported locations are:
-   *   "global"
-   * For the location of `global` it is unspecified where logs are actually
-   * stored.
-   * Once a bucket has been created, the location can not be changed.
+   *   `projects/my-project/locations/global/buckets/my-bucket`
+   * For a list of supported locations, see [Supported
+   * Regions](https://cloud.google.com/logging/docs/region-support)
+   * For the location of `global` it is unspecified where log entries are
+   * actually stored.
+   * After a bucket has been created, the location cannot be changed.
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The name. */ @@ -202,17 +232,17 @@ public java.lang.String getName() { * * *
-   * The resource name of the bucket.
+   * Output only. The resource name of the bucket.
    * For example:
-   * "projects/my-project-id/locations/my-location/buckets/my-bucket-id The
-   * supported locations are:
-   *   "global"
-   * For the location of `global` it is unspecified where logs are actually
-   * stored.
-   * Once a bucket has been created, the location can not be changed.
+   *   `projects/my-project/locations/global/buckets/my-bucket`
+   * For a list of supported locations, see [Supported
+   * Regions](https://cloud.google.com/logging/docs/region-support)
+   * For the location of `global` it is unspecified where log entries are
+   * actually stored.
+   * After a bucket has been created, the location cannot be changed.
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for name. */ @@ -386,9 +416,9 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * *
    * Logs will be retained by default for this amount of time, after which they
-   * will automatically be deleted. The minimum retention period is 1 day.
-   * If this value is set to zero at bucket creation time, the default time of
-   * 30 days will be used.
+   * will automatically be deleted. The minimum retention period is 1 day. If
+   * this value is set to zero at bucket creation time, the default time of 30
+   * days will be used.
    * 
* * int32 retention_days = 11; @@ -406,9 +436,9 @@ public int getRetentionDays() { * * *
-   * Whether the bucket has been locked.
-   * The retention period on a locked bucket may not be changed.
-   * Locked buckets may only be deleted if they are empty.
+   * Whether the bucket is locked.
+   * The retention period on a locked bucket cannot be changed. Locked buckets
+   * may only be deleted if they are empty.
    * 
* * bool locked = 9; @@ -460,6 +490,143 @@ public com.google.logging.v2.LifecycleState getLifecycleState() { return result == null ? com.google.logging.v2.LifecycleState.UNRECOGNIZED : result; } + public static final int RESTRICTED_FIELDS_FIELD_NUMBER = 15; + private com.google.protobuf.LazyStringList restrictedFields_; + /** + * + * + *
+   * Log entry field paths that are denied access in this bucket.
+   * The following fields and their children are eligible: `textPayload`,
+   * `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`.
+   * Restricting a repeated field will restrict all values. Adding a parent will
+   * block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`)
+   * 
+ * + * repeated string restricted_fields = 15; + * + * @return A list containing the restrictedFields. + */ + public com.google.protobuf.ProtocolStringList getRestrictedFieldsList() { + return restrictedFields_; + } + /** + * + * + *
+   * Log entry field paths that are denied access in this bucket.
+   * The following fields and their children are eligible: `textPayload`,
+   * `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`.
+   * Restricting a repeated field will restrict all values. Adding a parent will
+   * block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`)
+   * 
+ * + * repeated string restricted_fields = 15; + * + * @return The count of restrictedFields. + */ + public int getRestrictedFieldsCount() { + return restrictedFields_.size(); + } + /** + * + * + *
+   * Log entry field paths that are denied access in this bucket.
+   * The following fields and their children are eligible: `textPayload`,
+   * `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`.
+   * Restricting a repeated field will restrict all values. Adding a parent will
+   * block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`)
+   * 
+ * + * repeated string restricted_fields = 15; + * + * @param index The index of the element to return. + * @return The restrictedFields at the given index. + */ + public java.lang.String getRestrictedFields(int index) { + return restrictedFields_.get(index); + } + /** + * + * + *
+   * Log entry field paths that are denied access in this bucket.
+   * The following fields and their children are eligible: `textPayload`,
+   * `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`.
+   * Restricting a repeated field will restrict all values. Adding a parent will
+   * block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`)
+   * 
+ * + * repeated string restricted_fields = 15; + * + * @param index The index of the value to return. + * @return The bytes of the restrictedFields at the given index. + */ + public com.google.protobuf.ByteString getRestrictedFieldsBytes(int index) { + return restrictedFields_.getByteString(index); + } + + public static final int CMEK_SETTINGS_FIELD_NUMBER = 19; + private com.google.logging.v2.CmekSettings cmekSettings_; + /** + * + * + *
+   * The CMEK settings of the log bucket. If present, new log entries written to
+   * this log bucket are encrypted using the CMEK key provided in this
+   * configuration. If a log bucket has CMEK settings, the CMEK settings cannot
+   * be disabled later by updating the log bucket. Changing the KMS key is
+   * allowed.
+   * 
+ * + * .google.logging.v2.CmekSettings cmek_settings = 19; + * + * @return Whether the cmekSettings field is set. + */ + @java.lang.Override + public boolean hasCmekSettings() { + return cmekSettings_ != null; + } + /** + * + * + *
+   * The CMEK settings of the log bucket. If present, new log entries written to
+   * this log bucket are encrypted using the CMEK key provided in this
+   * configuration. If a log bucket has CMEK settings, the CMEK settings cannot
+   * be disabled later by updating the log bucket. Changing the KMS key is
+   * allowed.
+   * 
+ * + * .google.logging.v2.CmekSettings cmek_settings = 19; + * + * @return The cmekSettings. + */ + @java.lang.Override + public com.google.logging.v2.CmekSettings getCmekSettings() { + return cmekSettings_ == null + ? com.google.logging.v2.CmekSettings.getDefaultInstance() + : cmekSettings_; + } + /** + * + * + *
+   * The CMEK settings of the log bucket. If present, new log entries written to
+   * this log bucket are encrypted using the CMEK key provided in this
+   * configuration. If a log bucket has CMEK settings, the CMEK settings cannot
+   * be disabled later by updating the log bucket. Changing the KMS key is
+   * allowed.
+   * 
+ * + * .google.logging.v2.CmekSettings cmek_settings = 19; + */ + @java.lang.Override + public com.google.logging.v2.CmekSettingsOrBuilder getCmekSettingsOrBuilder() { + return getCmekSettings(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -496,6 +663,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io != com.google.logging.v2.LifecycleState.LIFECYCLE_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(12, lifecycleState_); } + for (int i = 0; i < restrictedFields_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 15, restrictedFields_.getRaw(i)); + } + if (cmekSettings_ != null) { + output.writeMessage(19, getCmekSettings()); + } unknownFields.writeTo(output); } @@ -527,6 +700,17 @@ public int getSerializedSize() { != com.google.logging.v2.LifecycleState.LIFECYCLE_STATE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, lifecycleState_); } + { + int dataSize = 0; + for (int i = 0; i < restrictedFields_.size(); i++) { + dataSize += computeStringSizeNoTag(restrictedFields_.getRaw(i)); + } + size += dataSize; + size += 1 * getRestrictedFieldsList().size(); + } + if (cmekSettings_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getCmekSettings()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -555,6 +739,11 @@ public boolean equals(final java.lang.Object obj) { if (getRetentionDays() != other.getRetentionDays()) return false; if (getLocked() != other.getLocked()) return false; if (lifecycleState_ != other.lifecycleState_) return false; + if (!getRestrictedFieldsList().equals(other.getRestrictedFieldsList())) return false; + if (hasCmekSettings() != other.hasCmekSettings()) return false; + if (hasCmekSettings()) { + if (!getCmekSettings().equals(other.getCmekSettings())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -584,6 +773,14 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLocked()); hash = (37 * hash) + LIFECYCLE_STATE_FIELD_NUMBER; hash = (53 * hash) + lifecycleState_; + if (getRestrictedFieldsCount() > 0) { + hash = (37 * hash) + RESTRICTED_FIELDS_FIELD_NUMBER; + hash = (53 * hash) + getRestrictedFieldsList().hashCode(); + } + if (hasCmekSettings()) { + hash = (37 * hash) + CMEK_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getCmekSettings().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -687,7 +884,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Describes a repository of logs.
+   * Describes a repository in which log entries are stored.
    * 
* * Protobuf type {@code google.logging.v2.LogBucket} @@ -749,6 +946,14 @@ public Builder clear() { lifecycleState_ = 0; + restrictedFields_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + if (cmekSettingsBuilder_ == null) { + cmekSettings_ = null; + } else { + cmekSettings_ = null; + cmekSettingsBuilder_ = null; + } return this; } @@ -775,6 +980,7 @@ public com.google.logging.v2.LogBucket build() { @java.lang.Override public com.google.logging.v2.LogBucket buildPartial() { com.google.logging.v2.LogBucket result = new com.google.logging.v2.LogBucket(this); + int from_bitField0_ = bitField0_; result.name_ = name_; result.description_ = description_; if (createTimeBuilder_ == null) { @@ -790,6 +996,16 @@ public com.google.logging.v2.LogBucket buildPartial() { result.retentionDays_ = retentionDays_; result.locked_ = locked_; result.lifecycleState_ = lifecycleState_; + if (((bitField0_ & 0x00000001) != 0)) { + restrictedFields_ = restrictedFields_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.restrictedFields_ = restrictedFields_; + if (cmekSettingsBuilder_ == null) { + result.cmekSettings_ = cmekSettings_; + } else { + result.cmekSettings_ = cmekSettingsBuilder_.build(); + } onBuilt(); return result; } @@ -862,6 +1078,19 @@ public Builder mergeFrom(com.google.logging.v2.LogBucket other) { if (other.lifecycleState_ != 0) { setLifecycleStateValue(other.getLifecycleStateValue()); } + if (!other.restrictedFields_.isEmpty()) { + if (restrictedFields_.isEmpty()) { + restrictedFields_ = other.restrictedFields_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRestrictedFieldsIsMutable(); + restrictedFields_.addAll(other.restrictedFields_); + } + onChanged(); + } + if (other.hasCmekSettings()) { + mergeCmekSettings(other.getCmekSettings()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -891,22 +1120,24 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * * *
-     * The resource name of the bucket.
+     * Output only. The resource name of the bucket.
      * For example:
-     * "projects/my-project-id/locations/my-location/buckets/my-bucket-id The
-     * supported locations are:
-     *   "global"
-     * For the location of `global` it is unspecified where logs are actually
-     * stored.
-     * Once a bucket has been created, the location can not be changed.
+     *   `projects/my-project/locations/global/buckets/my-bucket`
+     * For a list of supported locations, see [Supported
+     * Regions](https://cloud.google.com/logging/docs/region-support)
+     * For the location of `global` it is unspecified where log entries are
+     * actually stored.
+     * After a bucket has been created, the location cannot be changed.
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The name. */ @@ -925,17 +1156,17 @@ public java.lang.String getName() { * * *
-     * The resource name of the bucket.
+     * Output only. The resource name of the bucket.
      * For example:
-     * "projects/my-project-id/locations/my-location/buckets/my-bucket-id The
-     * supported locations are:
-     *   "global"
-     * For the location of `global` it is unspecified where logs are actually
-     * stored.
-     * Once a bucket has been created, the location can not be changed.
+     *   `projects/my-project/locations/global/buckets/my-bucket`
+     * For a list of supported locations, see [Supported
+     * Regions](https://cloud.google.com/logging/docs/region-support)
+     * For the location of `global` it is unspecified where log entries are
+     * actually stored.
+     * After a bucket has been created, the location cannot be changed.
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for name. */ @@ -954,17 +1185,17 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * The resource name of the bucket.
+     * Output only. The resource name of the bucket.
      * For example:
-     * "projects/my-project-id/locations/my-location/buckets/my-bucket-id The
-     * supported locations are:
-     *   "global"
-     * For the location of `global` it is unspecified where logs are actually
-     * stored.
-     * Once a bucket has been created, the location can not be changed.
+     *   `projects/my-project/locations/global/buckets/my-bucket`
+     * For a list of supported locations, see [Supported
+     * Regions](https://cloud.google.com/logging/docs/region-support)
+     * For the location of `global` it is unspecified where log entries are
+     * actually stored.
+     * After a bucket has been created, the location cannot be changed.
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The name to set. * @return This builder for chaining. @@ -982,17 +1213,17 @@ public Builder setName(java.lang.String value) { * * *
-     * The resource name of the bucket.
+     * Output only. The resource name of the bucket.
      * For example:
-     * "projects/my-project-id/locations/my-location/buckets/my-bucket-id The
-     * supported locations are:
-     *   "global"
-     * For the location of `global` it is unspecified where logs are actually
-     * stored.
-     * Once a bucket has been created, the location can not be changed.
+     *   `projects/my-project/locations/global/buckets/my-bucket`
+     * For a list of supported locations, see [Supported
+     * Regions](https://cloud.google.com/logging/docs/region-support)
+     * For the location of `global` it is unspecified where log entries are
+     * actually stored.
+     * After a bucket has been created, the location cannot be changed.
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -1006,17 +1237,17 @@ public Builder clearName() { * * *
-     * The resource name of the bucket.
+     * Output only. The resource name of the bucket.
      * For example:
-     * "projects/my-project-id/locations/my-location/buckets/my-bucket-id The
-     * supported locations are:
-     *   "global"
-     * For the location of `global` it is unspecified where logs are actually
-     * stored.
-     * Once a bucket has been created, the location can not be changed.
+     *   `projects/my-project/locations/global/buckets/my-bucket`
+     * For a list of supported locations, see [Supported
+     * Regions](https://cloud.google.com/logging/docs/region-support)
+     * For the location of `global` it is unspecified where log entries are
+     * actually stored.
+     * After a bucket has been created, the location cannot be changed.
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for name to set. * @return This builder for chaining. @@ -1555,9 +1786,9 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * *
      * Logs will be retained by default for this amount of time, after which they
-     * will automatically be deleted. The minimum retention period is 1 day.
-     * If this value is set to zero at bucket creation time, the default time of
-     * 30 days will be used.
+     * will automatically be deleted. The minimum retention period is 1 day. If
+     * this value is set to zero at bucket creation time, the default time of 30
+     * days will be used.
      * 
* * int32 retention_days = 11; @@ -1573,9 +1804,9 @@ public int getRetentionDays() { * *
      * Logs will be retained by default for this amount of time, after which they
-     * will automatically be deleted. The minimum retention period is 1 day.
-     * If this value is set to zero at bucket creation time, the default time of
-     * 30 days will be used.
+     * will automatically be deleted. The minimum retention period is 1 day. If
+     * this value is set to zero at bucket creation time, the default time of 30
+     * days will be used.
      * 
* * int32 retention_days = 11; @@ -1594,9 +1825,9 @@ public Builder setRetentionDays(int value) { * *
      * Logs will be retained by default for this amount of time, after which they
-     * will automatically be deleted. The minimum retention period is 1 day.
-     * If this value is set to zero at bucket creation time, the default time of
-     * 30 days will be used.
+     * will automatically be deleted. The minimum retention period is 1 day. If
+     * this value is set to zero at bucket creation time, the default time of 30
+     * days will be used.
      * 
* * int32 retention_days = 11; @@ -1615,9 +1846,9 @@ public Builder clearRetentionDays() { * * *
-     * Whether the bucket has been locked.
-     * The retention period on a locked bucket may not be changed.
-     * Locked buckets may only be deleted if they are empty.
+     * Whether the bucket is locked.
+     * The retention period on a locked bucket cannot be changed. Locked buckets
+     * may only be deleted if they are empty.
      * 
* * bool locked = 9; @@ -1632,9 +1863,9 @@ public boolean getLocked() { * * *
-     * Whether the bucket has been locked.
-     * The retention period on a locked bucket may not be changed.
-     * Locked buckets may only be deleted if they are empty.
+     * Whether the bucket is locked.
+     * The retention period on a locked bucket cannot be changed. Locked buckets
+     * may only be deleted if they are empty.
      * 
* * bool locked = 9; @@ -1652,9 +1883,9 @@ public Builder setLocked(boolean value) { * * *
-     * Whether the bucket has been locked.
-     * The retention period on a locked bucket may not be changed.
-     * Locked buckets may only be deleted if they are empty.
+     * Whether the bucket is locked.
+     * The retention period on a locked bucket cannot be changed. Locked buckets
+     * may only be deleted if they are empty.
      * 
* * bool locked = 9; @@ -1769,6 +2000,431 @@ public Builder clearLifecycleState() { return this; } + private com.google.protobuf.LazyStringList restrictedFields_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureRestrictedFieldsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + restrictedFields_ = new com.google.protobuf.LazyStringArrayList(restrictedFields_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * Log entry field paths that are denied access in this bucket.
+     * The following fields and their children are eligible: `textPayload`,
+     * `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`.
+     * Restricting a repeated field will restrict all values. Adding a parent will
+     * block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`)
+     * 
+ * + * repeated string restricted_fields = 15; + * + * @return A list containing the restrictedFields. + */ + public com.google.protobuf.ProtocolStringList getRestrictedFieldsList() { + return restrictedFields_.getUnmodifiableView(); + } + /** + * + * + *
+     * Log entry field paths that are denied access in this bucket.
+     * The following fields and their children are eligible: `textPayload`,
+     * `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`.
+     * Restricting a repeated field will restrict all values. Adding a parent will
+     * block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`)
+     * 
+ * + * repeated string restricted_fields = 15; + * + * @return The count of restrictedFields. + */ + public int getRestrictedFieldsCount() { + return restrictedFields_.size(); + } + /** + * + * + *
+     * Log entry field paths that are denied access in this bucket.
+     * The following fields and their children are eligible: `textPayload`,
+     * `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`.
+     * Restricting a repeated field will restrict all values. Adding a parent will
+     * block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`)
+     * 
+ * + * repeated string restricted_fields = 15; + * + * @param index The index of the element to return. + * @return The restrictedFields at the given index. + */ + public java.lang.String getRestrictedFields(int index) { + return restrictedFields_.get(index); + } + /** + * + * + *
+     * Log entry field paths that are denied access in this bucket.
+     * The following fields and their children are eligible: `textPayload`,
+     * `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`.
+     * Restricting a repeated field will restrict all values. Adding a parent will
+     * block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`)
+     * 
+ * + * repeated string restricted_fields = 15; + * + * @param index The index of the value to return. + * @return The bytes of the restrictedFields at the given index. + */ + public com.google.protobuf.ByteString getRestrictedFieldsBytes(int index) { + return restrictedFields_.getByteString(index); + } + /** + * + * + *
+     * Log entry field paths that are denied access in this bucket.
+     * The following fields and their children are eligible: `textPayload`,
+     * `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`.
+     * Restricting a repeated field will restrict all values. Adding a parent will
+     * block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`)
+     * 
+ * + * repeated string restricted_fields = 15; + * + * @param index The index to set the value at. + * @param value The restrictedFields to set. + * @return This builder for chaining. + */ + public Builder setRestrictedFields(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRestrictedFieldsIsMutable(); + restrictedFields_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Log entry field paths that are denied access in this bucket.
+     * The following fields and their children are eligible: `textPayload`,
+     * `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`.
+     * Restricting a repeated field will restrict all values. Adding a parent will
+     * block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`)
+     * 
+ * + * repeated string restricted_fields = 15; + * + * @param value The restrictedFields to add. + * @return This builder for chaining. + */ + public Builder addRestrictedFields(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRestrictedFieldsIsMutable(); + restrictedFields_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Log entry field paths that are denied access in this bucket.
+     * The following fields and their children are eligible: `textPayload`,
+     * `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`.
+     * Restricting a repeated field will restrict all values. Adding a parent will
+     * block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`)
+     * 
+ * + * repeated string restricted_fields = 15; + * + * @param values The restrictedFields to add. + * @return This builder for chaining. + */ + public Builder addAllRestrictedFields(java.lang.Iterable values) { + ensureRestrictedFieldsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, restrictedFields_); + onChanged(); + return this; + } + /** + * + * + *
+     * Log entry field paths that are denied access in this bucket.
+     * The following fields and their children are eligible: `textPayload`,
+     * `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`.
+     * Restricting a repeated field will restrict all values. Adding a parent will
+     * block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`)
+     * 
+ * + * repeated string restricted_fields = 15; + * + * @return This builder for chaining. + */ + public Builder clearRestrictedFields() { + restrictedFields_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Log entry field paths that are denied access in this bucket.
+     * The following fields and their children are eligible: `textPayload`,
+     * `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`.
+     * Restricting a repeated field will restrict all values. Adding a parent will
+     * block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`)
+     * 
+ * + * repeated string restricted_fields = 15; + * + * @param value The bytes of the restrictedFields to add. + * @return This builder for chaining. + */ + public Builder addRestrictedFieldsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRestrictedFieldsIsMutable(); + restrictedFields_.add(value); + onChanged(); + return this; + } + + private com.google.logging.v2.CmekSettings cmekSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.CmekSettings, + com.google.logging.v2.CmekSettings.Builder, + com.google.logging.v2.CmekSettingsOrBuilder> + cmekSettingsBuilder_; + /** + * + * + *
+     * The CMEK settings of the log bucket. If present, new log entries written to
+     * this log bucket are encrypted using the CMEK key provided in this
+     * configuration. If a log bucket has CMEK settings, the CMEK settings cannot
+     * be disabled later by updating the log bucket. Changing the KMS key is
+     * allowed.
+     * 
+ * + * .google.logging.v2.CmekSettings cmek_settings = 19; + * + * @return Whether the cmekSettings field is set. + */ + public boolean hasCmekSettings() { + return cmekSettingsBuilder_ != null || cmekSettings_ != null; + } + /** + * + * + *
+     * The CMEK settings of the log bucket. If present, new log entries written to
+     * this log bucket are encrypted using the CMEK key provided in this
+     * configuration. If a log bucket has CMEK settings, the CMEK settings cannot
+     * be disabled later by updating the log bucket. Changing the KMS key is
+     * allowed.
+     * 
+ * + * .google.logging.v2.CmekSettings cmek_settings = 19; + * + * @return The cmekSettings. + */ + public com.google.logging.v2.CmekSettings getCmekSettings() { + if (cmekSettingsBuilder_ == null) { + return cmekSettings_ == null + ? com.google.logging.v2.CmekSettings.getDefaultInstance() + : cmekSettings_; + } else { + return cmekSettingsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The CMEK settings of the log bucket. If present, new log entries written to
+     * this log bucket are encrypted using the CMEK key provided in this
+     * configuration. If a log bucket has CMEK settings, the CMEK settings cannot
+     * be disabled later by updating the log bucket. Changing the KMS key is
+     * allowed.
+     * 
+ * + * .google.logging.v2.CmekSettings cmek_settings = 19; + */ + public Builder setCmekSettings(com.google.logging.v2.CmekSettings value) { + if (cmekSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cmekSettings_ = value; + onChanged(); + } else { + cmekSettingsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The CMEK settings of the log bucket. If present, new log entries written to
+     * this log bucket are encrypted using the CMEK key provided in this
+     * configuration. If a log bucket has CMEK settings, the CMEK settings cannot
+     * be disabled later by updating the log bucket. Changing the KMS key is
+     * allowed.
+     * 
+ * + * .google.logging.v2.CmekSettings cmek_settings = 19; + */ + public Builder setCmekSettings(com.google.logging.v2.CmekSettings.Builder builderForValue) { + if (cmekSettingsBuilder_ == null) { + cmekSettings_ = builderForValue.build(); + onChanged(); + } else { + cmekSettingsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The CMEK settings of the log bucket. If present, new log entries written to
+     * this log bucket are encrypted using the CMEK key provided in this
+     * configuration. If a log bucket has CMEK settings, the CMEK settings cannot
+     * be disabled later by updating the log bucket. Changing the KMS key is
+     * allowed.
+     * 
+ * + * .google.logging.v2.CmekSettings cmek_settings = 19; + */ + public Builder mergeCmekSettings(com.google.logging.v2.CmekSettings value) { + if (cmekSettingsBuilder_ == null) { + if (cmekSettings_ != null) { + cmekSettings_ = + com.google.logging.v2.CmekSettings.newBuilder(cmekSettings_) + .mergeFrom(value) + .buildPartial(); + } else { + cmekSettings_ = value; + } + onChanged(); + } else { + cmekSettingsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The CMEK settings of the log bucket. If present, new log entries written to
+     * this log bucket are encrypted using the CMEK key provided in this
+     * configuration. If a log bucket has CMEK settings, the CMEK settings cannot
+     * be disabled later by updating the log bucket. Changing the KMS key is
+     * allowed.
+     * 
+ * + * .google.logging.v2.CmekSettings cmek_settings = 19; + */ + public Builder clearCmekSettings() { + if (cmekSettingsBuilder_ == null) { + cmekSettings_ = null; + onChanged(); + } else { + cmekSettings_ = null; + cmekSettingsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The CMEK settings of the log bucket. If present, new log entries written to
+     * this log bucket are encrypted using the CMEK key provided in this
+     * configuration. If a log bucket has CMEK settings, the CMEK settings cannot
+     * be disabled later by updating the log bucket. Changing the KMS key is
+     * allowed.
+     * 
+ * + * .google.logging.v2.CmekSettings cmek_settings = 19; + */ + public com.google.logging.v2.CmekSettings.Builder getCmekSettingsBuilder() { + + onChanged(); + return getCmekSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The CMEK settings of the log bucket. If present, new log entries written to
+     * this log bucket are encrypted using the CMEK key provided in this
+     * configuration. If a log bucket has CMEK settings, the CMEK settings cannot
+     * be disabled later by updating the log bucket. Changing the KMS key is
+     * allowed.
+     * 
+ * + * .google.logging.v2.CmekSettings cmek_settings = 19; + */ + public com.google.logging.v2.CmekSettingsOrBuilder getCmekSettingsOrBuilder() { + if (cmekSettingsBuilder_ != null) { + return cmekSettingsBuilder_.getMessageOrBuilder(); + } else { + return cmekSettings_ == null + ? com.google.logging.v2.CmekSettings.getDefaultInstance() + : cmekSettings_; + } + } + /** + * + * + *
+     * The CMEK settings of the log bucket. If present, new log entries written to
+     * this log bucket are encrypted using the CMEK key provided in this
+     * configuration. If a log bucket has CMEK settings, the CMEK settings cannot
+     * be disabled later by updating the log bucket. Changing the KMS key is
+     * allowed.
+     * 
+ * + * .google.logging.v2.CmekSettings cmek_settings = 19; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.CmekSettings, + com.google.logging.v2.CmekSettings.Builder, + com.google.logging.v2.CmekSettingsOrBuilder> + getCmekSettingsFieldBuilder() { + if (cmekSettingsBuilder_ == null) { + cmekSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.CmekSettings, + com.google.logging.v2.CmekSettings.Builder, + com.google.logging.v2.CmekSettingsOrBuilder>( + getCmekSettings(), getParentForChildren(), isClean()); + cmekSettings_ = null; + } + return cmekSettingsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucketOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucketOrBuilder.java index 74a5888d6..a6406eaf8 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucketOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogBucketOrBuilder.java @@ -27,17 +27,17 @@ public interface LogBucketOrBuilder * * *
-   * The resource name of the bucket.
+   * Output only. The resource name of the bucket.
    * For example:
-   * "projects/my-project-id/locations/my-location/buckets/my-bucket-id The
-   * supported locations are:
-   *   "global"
-   * For the location of `global` it is unspecified where logs are actually
-   * stored.
-   * Once a bucket has been created, the location can not be changed.
+   *   `projects/my-project/locations/global/buckets/my-bucket`
+   * For a list of supported locations, see [Supported
+   * Regions](https://cloud.google.com/logging/docs/region-support)
+   * For the location of `global` it is unspecified where log entries are
+   * actually stored.
+   * After a bucket has been created, the location cannot be changed.
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The name. */ @@ -46,17 +46,17 @@ public interface LogBucketOrBuilder * * *
-   * The resource name of the bucket.
+   * Output only. The resource name of the bucket.
    * For example:
-   * "projects/my-project-id/locations/my-location/buckets/my-bucket-id The
-   * supported locations are:
-   *   "global"
-   * For the location of `global` it is unspecified where logs are actually
-   * stored.
-   * Once a bucket has been created, the location can not be changed.
+   *   `projects/my-project/locations/global/buckets/my-bucket`
+   * For a list of supported locations, see [Supported
+   * Regions](https://cloud.google.com/logging/docs/region-support)
+   * For the location of `global` it is unspecified where log entries are
+   * actually stored.
+   * After a bucket has been created, the location cannot be changed.
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for name. */ @@ -171,9 +171,9 @@ public interface LogBucketOrBuilder * *
    * Logs will be retained by default for this amount of time, after which they
-   * will automatically be deleted. The minimum retention period is 1 day.
-   * If this value is set to zero at bucket creation time, the default time of
-   * 30 days will be used.
+   * will automatically be deleted. The minimum retention period is 1 day. If
+   * this value is set to zero at bucket creation time, the default time of 30
+   * days will be used.
    * 
* * int32 retention_days = 11; @@ -186,9 +186,9 @@ public interface LogBucketOrBuilder * * *
-   * Whether the bucket has been locked.
-   * The retention period on a locked bucket may not be changed.
-   * Locked buckets may only be deleted if they are empty.
+   * Whether the bucket is locked.
+   * The retention period on a locked bucket cannot be changed. Locked buckets
+   * may only be deleted if they are empty.
    * 
* * bool locked = 9; @@ -225,4 +225,118 @@ public interface LogBucketOrBuilder * @return The lifecycleState. */ com.google.logging.v2.LifecycleState getLifecycleState(); + + /** + * + * + *
+   * Log entry field paths that are denied access in this bucket.
+   * The following fields and their children are eligible: `textPayload`,
+   * `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`.
+   * Restricting a repeated field will restrict all values. Adding a parent will
+   * block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`)
+   * 
+ * + * repeated string restricted_fields = 15; + * + * @return A list containing the restrictedFields. + */ + java.util.List getRestrictedFieldsList(); + /** + * + * + *
+   * Log entry field paths that are denied access in this bucket.
+   * The following fields and their children are eligible: `textPayload`,
+   * `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`.
+   * Restricting a repeated field will restrict all values. Adding a parent will
+   * block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`)
+   * 
+ * + * repeated string restricted_fields = 15; + * + * @return The count of restrictedFields. + */ + int getRestrictedFieldsCount(); + /** + * + * + *
+   * Log entry field paths that are denied access in this bucket.
+   * The following fields and their children are eligible: `textPayload`,
+   * `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`.
+   * Restricting a repeated field will restrict all values. Adding a parent will
+   * block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`)
+   * 
+ * + * repeated string restricted_fields = 15; + * + * @param index The index of the element to return. + * @return The restrictedFields at the given index. + */ + java.lang.String getRestrictedFields(int index); + /** + * + * + *
+   * Log entry field paths that are denied access in this bucket.
+   * The following fields and their children are eligible: `textPayload`,
+   * `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`.
+   * Restricting a repeated field will restrict all values. Adding a parent will
+   * block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`)
+   * 
+ * + * repeated string restricted_fields = 15; + * + * @param index The index of the value to return. + * @return The bytes of the restrictedFields at the given index. + */ + com.google.protobuf.ByteString getRestrictedFieldsBytes(int index); + + /** + * + * + *
+   * The CMEK settings of the log bucket. If present, new log entries written to
+   * this log bucket are encrypted using the CMEK key provided in this
+   * configuration. If a log bucket has CMEK settings, the CMEK settings cannot
+   * be disabled later by updating the log bucket. Changing the KMS key is
+   * allowed.
+   * 
+ * + * .google.logging.v2.CmekSettings cmek_settings = 19; + * + * @return Whether the cmekSettings field is set. + */ + boolean hasCmekSettings(); + /** + * + * + *
+   * The CMEK settings of the log bucket. If present, new log entries written to
+   * this log bucket are encrypted using the CMEK key provided in this
+   * configuration. If a log bucket has CMEK settings, the CMEK settings cannot
+   * be disabled later by updating the log bucket. Changing the KMS key is
+   * allowed.
+   * 
+ * + * .google.logging.v2.CmekSettings cmek_settings = 19; + * + * @return The cmekSettings. + */ + com.google.logging.v2.CmekSettings getCmekSettings(); + /** + * + * + *
+   * The CMEK settings of the log bucket. If present, new log entries written to
+   * this log bucket are encrypted using the CMEK key provided in this
+   * configuration. If a log bucket has CMEK settings, the CMEK settings cannot
+   * be disabled later by updating the log bucket. Changing the KMS key is
+   * allowed.
+   * 
+ * + * .google.logging.v2.CmekSettings cmek_settings = 19; + */ + com.google.logging.v2.CmekSettingsOrBuilder getCmekSettingsOrBuilder(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntry.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntry.java index 6ef304938..e7ae8b75e 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntry.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntry.java @@ -254,6 +254,21 @@ private LogEntry( case 240: { traceSampled_ = input.readBool(); + break; + } + case 282: + { + com.google.logging.v2.LogSplit.Builder subBuilder = null; + if (split_ != null) { + subBuilder = split_.toBuilder(); + } + split_ = + input.readMessage(com.google.logging.v2.LogSplit.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(split_); + split_ = subBuilder.buildPartial(); + } + break; } default: @@ -370,7 +385,7 @@ public PayloadCase getPayloadCase() { * following characters: upper and lower case alphanumeric characters, * forward-slash, underscore, hyphen, and period. * For backward compatibility, if `log_name` begins with a forward-slash, such - * as `/projects/...`, then the log entry is ingested as usual but the + * as `/projects/...`, then the log entry is ingested as usual, but the * forward-slash is removed. Listing the log entry will not show the leading * slash and filtering for a log name with a leading slash will never return * any results. @@ -410,7 +425,7 @@ public java.lang.String getLogName() { * following characters: upper and lower case alphanumeric characters, * forward-slash, underscore, hyphen, and period. * For backward compatibility, if `log_name` begins with a forward-slash, such - * as `/projects/...`, then the log entry is ingested as usual but the + * as `/projects/...`, then the log entry is ingested as usual, but the * forward-slash is removed. Listing the log entry will not show the leading * slash and filtering for a log name with a leading slash will never return * any results. @@ -861,7 +876,7 @@ public com.google.logging.type.LogSeverity getSeverity() { * removed in a single query result. However, there are no guarantees of * de-duplication in the export of logs. * If the `insert_id` is omitted when writing a log entry, the Logging API - * assigns its own unique identifier in this field. + * assigns its own unique identifier in this field. * In queries, the `insert_id` is also used to order log entries that have * the same `log_name` and `timestamp` values. * @@ -892,7 +907,7 @@ public java.lang.String getInsertId() { * removed in a single query result. However, there are no guarantees of * de-duplication in the export of logs. * If the `insert_id` is omitted when writing a log entry, the Logging API - * assigns its own unique identifier in this field. + * assigns its own unique identifier in this field. * In queries, the `insert_id` is also used to order log entries that have * the same `log_name` and `timestamp` values. * @@ -1000,8 +1015,17 @@ public int getLabelsCount() { * * *
-   * Optional. A set of user-defined (key, value) data that provides additional
-   * information about the log entry.
+   * Optional. A map of key, value pairs that provides additional information about the
+   * log entry. The labels can be user-defined or system-defined.
+   * User-defined labels are arbitrary key, value pairs that you can use to
+   * classify logs.
+   * System-defined labels are defined by GCP services for platform logs.
+   * They have two components - a service namespace component and the
+   * attribute name. For example: `compute.googleapis.com/resource_name`.
+   * Cloud Logging truncates label keys that exceed 512 B and label
+   * values that exceed 64 KB upon their associated log entry being
+   * written. The truncation is indicated by an ellipsis at the
+   * end of the character string.
    * 
* * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; @@ -1023,8 +1047,17 @@ public java.util.Map getLabels() { * * *
-   * Optional. A set of user-defined (key, value) data that provides additional
-   * information about the log entry.
+   * Optional. A map of key, value pairs that provides additional information about the
+   * log entry. The labels can be user-defined or system-defined.
+   * User-defined labels are arbitrary key, value pairs that you can use to
+   * classify logs.
+   * System-defined labels are defined by GCP services for platform logs.
+   * They have two components - a service namespace component and the
+   * attribute name. For example: `compute.googleapis.com/resource_name`.
+   * Cloud Logging truncates label keys that exceed 512 B and label
+   * values that exceed 64 KB upon their associated log entry being
+   * written. The truncation is indicated by an ellipsis at the
+   * end of the character string.
    * 
* * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; @@ -1037,8 +1070,17 @@ public java.util.Map getLabelsMap() { * * *
-   * Optional. A set of user-defined (key, value) data that provides additional
-   * information about the log entry.
+   * Optional. A map of key, value pairs that provides additional information about the
+   * log entry. The labels can be user-defined or system-defined.
+   * User-defined labels are arbitrary key, value pairs that you can use to
+   * classify logs.
+   * System-defined labels are defined by GCP services for platform logs.
+   * They have two components - a service namespace component and the
+   * attribute name. For example: `compute.googleapis.com/resource_name`.
+   * Cloud Logging truncates label keys that exceed 512 B and label
+   * values that exceed 64 KB upon their associated log entry being
+   * written. The truncation is indicated by an ellipsis at the
+   * end of the character string.
    * 
* * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; @@ -1055,8 +1097,17 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin * * *
-   * Optional. A set of user-defined (key, value) data that provides additional
-   * information about the log entry.
+   * Optional. A map of key, value pairs that provides additional information about the
+   * log entry. The labels can be user-defined or system-defined.
+   * User-defined labels are arbitrary key, value pairs that you can use to
+   * classify logs.
+   * System-defined labels are defined by GCP services for platform logs.
+   * They have two components - a service namespace component and the
+   * attribute name. For example: `compute.googleapis.com/resource_name`.
+   * Cloud Logging truncates label keys that exceed 512 B and label
+   * values that exceed 64 KB upon their associated log entry being
+   * written. The truncation is indicated by an ellipsis at the
+   * end of the character string.
    * 
* * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; @@ -1317,6 +1368,55 @@ public com.google.logging.v2.LogEntrySourceLocationOrBuilder getSourceLocationOr return getSourceLocation(); } + public static final int SPLIT_FIELD_NUMBER = 35; + private com.google.logging.v2.LogSplit split_; + /** + * + * + *
+   * Optional. Information indicating this LogEntry is part of a sequence of multiple log
+   * entries split from a single LogEntry.
+   * 
+ * + * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the split field is set. + */ + @java.lang.Override + public boolean hasSplit() { + return split_ != null; + } + /** + * + * + *
+   * Optional. Information indicating this LogEntry is part of a sequence of multiple log
+   * entries split from a single LogEntry.
+   * 
+ * + * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The split. + */ + @java.lang.Override + public com.google.logging.v2.LogSplit getSplit() { + return split_ == null ? com.google.logging.v2.LogSplit.getDefaultInstance() : split_; + } + /** + * + * + *
+   * Optional. Information indicating this LogEntry is part of a sequence of multiple log
+   * entries split from a single LogEntry.
+   * 
+ * + * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.logging.v2.LogSplitOrBuilder getSplitOrBuilder() { + return getSplit(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1378,6 +1478,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (traceSampled_ != false) { output.writeBool(30, traceSampled_); } + if (split_ != null) { + output.writeMessage(35, getSplit()); + } unknownFields.writeTo(output); } @@ -1446,6 +1549,9 @@ public int getSerializedSize() { if (traceSampled_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(30, traceSampled_); } + if (split_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(35, getSplit()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1492,6 +1598,10 @@ public boolean equals(final java.lang.Object obj) { if (hasSourceLocation()) { if (!getSourceLocation().equals(other.getSourceLocation())) return false; } + if (hasSplit() != other.hasSplit()) return false; + if (hasSplit()) { + if (!getSplit().equals(other.getSplit())) return false; + } if (!getPayloadCase().equals(other.getPayloadCase())) return false; switch (payloadCase_) { case 2: @@ -1557,6 +1667,10 @@ public int hashCode() { hash = (37 * hash) + SOURCE_LOCATION_FIELD_NUMBER; hash = (53 * hash) + getSourceLocation().hashCode(); } + if (hasSplit()) { + hash = (37 * hash) + SPLIT_FIELD_NUMBER; + hash = (53 * hash) + getSplit().hashCode(); + } switch (payloadCase_) { case 2: hash = (37 * hash) + PROTO_PAYLOAD_FIELD_NUMBER; @@ -1785,6 +1899,12 @@ public Builder clear() { sourceLocation_ = null; sourceLocationBuilder_ = null; } + if (splitBuilder_ == null) { + split_ = null; + } else { + split_ = null; + splitBuilder_ = null; + } payloadCase_ = 0; payload_ = null; return this; @@ -1869,6 +1989,11 @@ public com.google.logging.v2.LogEntry buildPartial() { } else { result.sourceLocation_ = sourceLocationBuilder_.build(); } + if (splitBuilder_ == null) { + result.split_ = split_; + } else { + result.split_ = splitBuilder_.build(); + } result.payloadCase_ = payloadCase_; onBuilt(); return result; @@ -1960,6 +2085,9 @@ public Builder mergeFrom(com.google.logging.v2.LogEntry other) { if (other.hasSourceLocation()) { mergeSourceLocation(other.getSourceLocation()); } + if (other.hasSplit()) { + mergeSplit(other.getSplit()); + } switch (other.getPayloadCase()) { case PROTO_PAYLOAD: { @@ -2047,7 +2175,7 @@ public Builder clearPayload() { * following characters: upper and lower case alphanumeric characters, * forward-slash, underscore, hyphen, and period. * For backward compatibility, if `log_name` begins with a forward-slash, such - * as `/projects/...`, then the log entry is ingested as usual but the + * as `/projects/...`, then the log entry is ingested as usual, but the * forward-slash is removed. Listing the log entry will not show the leading * slash and filtering for a log name with a leading slash will never return * any results. @@ -2086,7 +2214,7 @@ public java.lang.String getLogName() { * following characters: upper and lower case alphanumeric characters, * forward-slash, underscore, hyphen, and period. * For backward compatibility, if `log_name` begins with a forward-slash, such - * as `/projects/...`, then the log entry is ingested as usual but the + * as `/projects/...`, then the log entry is ingested as usual, but the * forward-slash is removed. Listing the log entry will not show the leading * slash and filtering for a log name with a leading slash will never return * any results. @@ -2125,7 +2253,7 @@ public com.google.protobuf.ByteString getLogNameBytes() { * following characters: upper and lower case alphanumeric characters, * forward-slash, underscore, hyphen, and period. * For backward compatibility, if `log_name` begins with a forward-slash, such - * as `/projects/...`, then the log entry is ingested as usual but the + * as `/projects/...`, then the log entry is ingested as usual, but the * forward-slash is removed. Listing the log entry will not show the leading * slash and filtering for a log name with a leading slash will never return * any results. @@ -2163,7 +2291,7 @@ public Builder setLogName(java.lang.String value) { * following characters: upper and lower case alphanumeric characters, * forward-slash, underscore, hyphen, and period. * For backward compatibility, if `log_name` begins with a forward-slash, such - * as `/projects/...`, then the log entry is ingested as usual but the + * as `/projects/...`, then the log entry is ingested as usual, but the * forward-slash is removed. Listing the log entry will not show the leading * slash and filtering for a log name with a leading slash will never return * any results. @@ -2197,7 +2325,7 @@ public Builder clearLogName() { * following characters: upper and lower case alphanumeric characters, * forward-slash, underscore, hyphen, and period. * For backward compatibility, if `log_name` begins with a forward-slash, such - * as `/projects/...`, then the log entry is ingested as usual but the + * as `/projects/...`, then the log entry is ingested as usual, but the * forward-slash is removed. Listing the log entry will not show the leading * slash and filtering for a log name with a leading slash will never return * any results. @@ -3620,7 +3748,7 @@ public Builder clearSeverity() { * removed in a single query result. However, there are no guarantees of * de-duplication in the export of logs. * If the `insert_id` is omitted when writing a log entry, the Logging API - * assigns its own unique identifier in this field. + * assigns its own unique identifier in this field. * In queries, the `insert_id` is also used to order log entries that have * the same `log_name` and `timestamp` values. * @@ -3650,7 +3778,7 @@ public java.lang.String getInsertId() { * removed in a single query result. However, there are no guarantees of * de-duplication in the export of logs. * If the `insert_id` is omitted when writing a log entry, the Logging API - * assigns its own unique identifier in this field. + * assigns its own unique identifier in this field. * In queries, the `insert_id` is also used to order log entries that have * the same `log_name` and `timestamp` values. * @@ -3680,7 +3808,7 @@ public com.google.protobuf.ByteString getInsertIdBytes() { * removed in a single query result. However, there are no guarantees of * de-duplication in the export of logs. * If the `insert_id` is omitted when writing a log entry, the Logging API - * assigns its own unique identifier in this field. + * assigns its own unique identifier in this field. * In queries, the `insert_id` is also used to order log entries that have * the same `log_name` and `timestamp` values. * @@ -3709,7 +3837,7 @@ public Builder setInsertId(java.lang.String value) { * removed in a single query result. However, there are no guarantees of * de-duplication in the export of logs. * If the `insert_id` is omitted when writing a log entry, the Logging API - * assigns its own unique identifier in this field. + * assigns its own unique identifier in this field. * In queries, the `insert_id` is also used to order log entries that have * the same `log_name` and `timestamp` values. * @@ -3734,7 +3862,7 @@ public Builder clearInsertId() { * removed in a single query result. However, there are no guarantees of * de-duplication in the export of logs. * If the `insert_id` is omitted when writing a log entry, the Logging API - * assigns its own unique identifier in this field. + * assigns its own unique identifier in this field. * In queries, the `insert_id` is also used to order log entries that have * the same `log_name` and `timestamp` values. * @@ -3996,8 +4124,17 @@ public int getLabelsCount() { * * *
-     * Optional. A set of user-defined (key, value) data that provides additional
-     * information about the log entry.
+     * Optional. A map of key, value pairs that provides additional information about the
+     * log entry. The labels can be user-defined or system-defined.
+     * User-defined labels are arbitrary key, value pairs that you can use to
+     * classify logs.
+     * System-defined labels are defined by GCP services for platform logs.
+     * They have two components - a service namespace component and the
+     * attribute name. For example: `compute.googleapis.com/resource_name`.
+     * Cloud Logging truncates label keys that exceed 512 B and label
+     * values that exceed 64 KB upon their associated log entry being
+     * written. The truncation is indicated by an ellipsis at the
+     * end of the character string.
      * 
* * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; @@ -4019,8 +4156,17 @@ public java.util.Map getLabels() { * * *
-     * Optional. A set of user-defined (key, value) data that provides additional
-     * information about the log entry.
+     * Optional. A map of key, value pairs that provides additional information about the
+     * log entry. The labels can be user-defined or system-defined.
+     * User-defined labels are arbitrary key, value pairs that you can use to
+     * classify logs.
+     * System-defined labels are defined by GCP services for platform logs.
+     * They have two components - a service namespace component and the
+     * attribute name. For example: `compute.googleapis.com/resource_name`.
+     * Cloud Logging truncates label keys that exceed 512 B and label
+     * values that exceed 64 KB upon their associated log entry being
+     * written. The truncation is indicated by an ellipsis at the
+     * end of the character string.
      * 
* * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; @@ -4033,8 +4179,17 @@ public java.util.Map getLabelsMap() { * * *
-     * Optional. A set of user-defined (key, value) data that provides additional
-     * information about the log entry.
+     * Optional. A map of key, value pairs that provides additional information about the
+     * log entry. The labels can be user-defined or system-defined.
+     * User-defined labels are arbitrary key, value pairs that you can use to
+     * classify logs.
+     * System-defined labels are defined by GCP services for platform logs.
+     * They have two components - a service namespace component and the
+     * attribute name. For example: `compute.googleapis.com/resource_name`.
+     * Cloud Logging truncates label keys that exceed 512 B and label
+     * values that exceed 64 KB upon their associated log entry being
+     * written. The truncation is indicated by an ellipsis at the
+     * end of the character string.
      * 
* * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; @@ -4052,8 +4207,17 @@ public java.lang.String getLabelsOrDefault( * * *
-     * Optional. A set of user-defined (key, value) data that provides additional
-     * information about the log entry.
+     * Optional. A map of key, value pairs that provides additional information about the
+     * log entry. The labels can be user-defined or system-defined.
+     * User-defined labels are arbitrary key, value pairs that you can use to
+     * classify logs.
+     * System-defined labels are defined by GCP services for platform logs.
+     * They have two components - a service namespace component and the
+     * attribute name. For example: `compute.googleapis.com/resource_name`.
+     * Cloud Logging truncates label keys that exceed 512 B and label
+     * values that exceed 64 KB upon their associated log entry being
+     * written. The truncation is indicated by an ellipsis at the
+     * end of the character string.
      * 
* * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; @@ -4078,8 +4242,17 @@ public Builder clearLabels() { * * *
-     * Optional. A set of user-defined (key, value) data that provides additional
-     * information about the log entry.
+     * Optional. A map of key, value pairs that provides additional information about the
+     * log entry. The labels can be user-defined or system-defined.
+     * User-defined labels are arbitrary key, value pairs that you can use to
+     * classify logs.
+     * System-defined labels are defined by GCP services for platform logs.
+     * They have two components - a service namespace component and the
+     * attribute name. For example: `compute.googleapis.com/resource_name`.
+     * Cloud Logging truncates label keys that exceed 512 B and label
+     * values that exceed 64 KB upon their associated log entry being
+     * written. The truncation is indicated by an ellipsis at the
+     * end of the character string.
      * 
* * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; @@ -4100,8 +4273,17 @@ public java.util.Map getMutableLabels() { * * *
-     * Optional. A set of user-defined (key, value) data that provides additional
-     * information about the log entry.
+     * Optional. A map of key, value pairs that provides additional information about the
+     * log entry. The labels can be user-defined or system-defined.
+     * User-defined labels are arbitrary key, value pairs that you can use to
+     * classify logs.
+     * System-defined labels are defined by GCP services for platform logs.
+     * They have two components - a service namespace component and the
+     * attribute name. For example: `compute.googleapis.com/resource_name`.
+     * Cloud Logging truncates label keys that exceed 512 B and label
+     * values that exceed 64 KB upon their associated log entry being
+     * written. The truncation is indicated by an ellipsis at the
+     * end of the character string.
      * 
* * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; @@ -4120,8 +4302,17 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { * * *
-     * Optional. A set of user-defined (key, value) data that provides additional
-     * information about the log entry.
+     * Optional. A map of key, value pairs that provides additional information about the
+     * log entry. The labels can be user-defined or system-defined.
+     * User-defined labels are arbitrary key, value pairs that you can use to
+     * classify logs.
+     * System-defined labels are defined by GCP services for platform logs.
+     * They have two components - a service namespace component and the
+     * attribute name. For example: `compute.googleapis.com/resource_name`.
+     * Cloud Logging truncates label keys that exceed 512 B and label
+     * values that exceed 64 KB upon their associated log entry being
+     * written. The truncation is indicated by an ellipsis at the
+     * end of the character string.
      * 
* * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; @@ -4856,6 +5047,203 @@ public com.google.logging.v2.LogEntrySourceLocationOrBuilder getSourceLocationOr return sourceLocationBuilder_; } + private com.google.logging.v2.LogSplit split_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.LogSplit, + com.google.logging.v2.LogSplit.Builder, + com.google.logging.v2.LogSplitOrBuilder> + splitBuilder_; + /** + * + * + *
+     * Optional. Information indicating this LogEntry is part of a sequence of multiple log
+     * entries split from a single LogEntry.
+     * 
+ * + * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the split field is set. + */ + public boolean hasSplit() { + return splitBuilder_ != null || split_ != null; + } + /** + * + * + *
+     * Optional. Information indicating this LogEntry is part of a sequence of multiple log
+     * entries split from a single LogEntry.
+     * 
+ * + * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The split. + */ + public com.google.logging.v2.LogSplit getSplit() { + if (splitBuilder_ == null) { + return split_ == null ? com.google.logging.v2.LogSplit.getDefaultInstance() : split_; + } else { + return splitBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Information indicating this LogEntry is part of a sequence of multiple log
+     * entries split from a single LogEntry.
+     * 
+ * + * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSplit(com.google.logging.v2.LogSplit value) { + if (splitBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + split_ = value; + onChanged(); + } else { + splitBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Information indicating this LogEntry is part of a sequence of multiple log
+     * entries split from a single LogEntry.
+     * 
+ * + * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSplit(com.google.logging.v2.LogSplit.Builder builderForValue) { + if (splitBuilder_ == null) { + split_ = builderForValue.build(); + onChanged(); + } else { + splitBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. Information indicating this LogEntry is part of a sequence of multiple log
+     * entries split from a single LogEntry.
+     * 
+ * + * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSplit(com.google.logging.v2.LogSplit value) { + if (splitBuilder_ == null) { + if (split_ != null) { + split_ = + com.google.logging.v2.LogSplit.newBuilder(split_).mergeFrom(value).buildPartial(); + } else { + split_ = value; + } + onChanged(); + } else { + splitBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Information indicating this LogEntry is part of a sequence of multiple log
+     * entries split from a single LogEntry.
+     * 
+ * + * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSplit() { + if (splitBuilder_ == null) { + split_ = null; + onChanged(); + } else { + split_ = null; + splitBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. Information indicating this LogEntry is part of a sequence of multiple log
+     * entries split from a single LogEntry.
+     * 
+ * + * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.logging.v2.LogSplit.Builder getSplitBuilder() { + + onChanged(); + return getSplitFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Information indicating this LogEntry is part of a sequence of multiple log
+     * entries split from a single LogEntry.
+     * 
+ * + * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.logging.v2.LogSplitOrBuilder getSplitOrBuilder() { + if (splitBuilder_ != null) { + return splitBuilder_.getMessageOrBuilder(); + } else { + return split_ == null ? com.google.logging.v2.LogSplit.getDefaultInstance() : split_; + } + } + /** + * + * + *
+     * Optional. Information indicating this LogEntry is part of a sequence of multiple log
+     * entries split from a single LogEntry.
+     * 
+ * + * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.LogSplit, + com.google.logging.v2.LogSplit.Builder, + com.google.logging.v2.LogSplitOrBuilder> + getSplitFieldBuilder() { + if (splitBuilder_ == null) { + splitBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.LogSplit, + com.google.logging.v2.LogSplit.Builder, + com.google.logging.v2.LogSplitOrBuilder>( + getSplit(), getParentForChildren(), isClean()); + split_ = null; + } + return splitBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOrBuilder.java index 2a7e00bb9..5c34a6733 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryOrBuilder.java @@ -41,7 +41,7 @@ public interface LogEntryOrBuilder * following characters: upper and lower case alphanumeric characters, * forward-slash, underscore, hyphen, and period. * For backward compatibility, if `log_name` begins with a forward-slash, such - * as `/projects/...`, then the log entry is ingested as usual but the + * as `/projects/...`, then the log entry is ingested as usual, but the * forward-slash is removed. Listing the log entry will not show the leading * slash and filtering for a log name with a leading slash will never return * any results. @@ -70,7 +70,7 @@ public interface LogEntryOrBuilder * following characters: upper and lower case alphanumeric characters, * forward-slash, underscore, hyphen, and period. * For backward compatibility, if `log_name` begins with a forward-slash, such - * as `/projects/...`, then the log entry is ingested as usual but the + * as `/projects/...`, then the log entry is ingested as usual, but the * forward-slash is removed. Listing the log entry will not show the leading * slash and filtering for a log name with a leading slash will never return * any results. @@ -397,7 +397,7 @@ public interface LogEntryOrBuilder * removed in a single query result. However, there are no guarantees of * de-duplication in the export of logs. * If the `insert_id` is omitted when writing a log entry, the Logging API - * assigns its own unique identifier in this field. + * assigns its own unique identifier in this field. * In queries, the `insert_id` is also used to order log entries that have * the same `log_name` and `timestamp` values. * @@ -417,7 +417,7 @@ public interface LogEntryOrBuilder * removed in a single query result. However, there are no guarantees of * de-duplication in the export of logs. * If the `insert_id` is omitted when writing a log entry, the Logging API - * assigns its own unique identifier in this field. + * assigns its own unique identifier in this field. * In queries, the `insert_id` is also used to order log entries that have * the same `log_name` and `timestamp` values. * @@ -476,8 +476,17 @@ public interface LogEntryOrBuilder * * *
-   * Optional. A set of user-defined (key, value) data that provides additional
-   * information about the log entry.
+   * Optional. A map of key, value pairs that provides additional information about the
+   * log entry. The labels can be user-defined or system-defined.
+   * User-defined labels are arbitrary key, value pairs that you can use to
+   * classify logs.
+   * System-defined labels are defined by GCP services for platform logs.
+   * They have two components - a service namespace component and the
+   * attribute name. For example: `compute.googleapis.com/resource_name`.
+   * Cloud Logging truncates label keys that exceed 512 B and label
+   * values that exceed 64 KB upon their associated log entry being
+   * written. The truncation is indicated by an ellipsis at the
+   * end of the character string.
    * 
* * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; @@ -487,8 +496,17 @@ public interface LogEntryOrBuilder * * *
-   * Optional. A set of user-defined (key, value) data that provides additional
-   * information about the log entry.
+   * Optional. A map of key, value pairs that provides additional information about the
+   * log entry. The labels can be user-defined or system-defined.
+   * User-defined labels are arbitrary key, value pairs that you can use to
+   * classify logs.
+   * System-defined labels are defined by GCP services for platform logs.
+   * They have two components - a service namespace component and the
+   * attribute name. For example: `compute.googleapis.com/resource_name`.
+   * Cloud Logging truncates label keys that exceed 512 B and label
+   * values that exceed 64 KB upon their associated log entry being
+   * written. The truncation is indicated by an ellipsis at the
+   * end of the character string.
    * 
* * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; @@ -501,8 +519,17 @@ public interface LogEntryOrBuilder * * *
-   * Optional. A set of user-defined (key, value) data that provides additional
-   * information about the log entry.
+   * Optional. A map of key, value pairs that provides additional information about the
+   * log entry. The labels can be user-defined or system-defined.
+   * User-defined labels are arbitrary key, value pairs that you can use to
+   * classify logs.
+   * System-defined labels are defined by GCP services for platform logs.
+   * They have two components - a service namespace component and the
+   * attribute name. For example: `compute.googleapis.com/resource_name`.
+   * Cloud Logging truncates label keys that exceed 512 B and label
+   * values that exceed 64 KB upon their associated log entry being
+   * written. The truncation is indicated by an ellipsis at the
+   * end of the character string.
    * 
* * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; @@ -512,8 +539,17 @@ public interface LogEntryOrBuilder * * *
-   * Optional. A set of user-defined (key, value) data that provides additional
-   * information about the log entry.
+   * Optional. A map of key, value pairs that provides additional information about the
+   * log entry. The labels can be user-defined or system-defined.
+   * User-defined labels are arbitrary key, value pairs that you can use to
+   * classify logs.
+   * System-defined labels are defined by GCP services for platform logs.
+   * They have two components - a service namespace component and the
+   * attribute name. For example: `compute.googleapis.com/resource_name`.
+   * Cloud Logging truncates label keys that exceed 512 B and label
+   * values that exceed 64 KB upon their associated log entry being
+   * written. The truncation is indicated by an ellipsis at the
+   * end of the character string.
    * 
* * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; @@ -523,8 +559,17 @@ public interface LogEntryOrBuilder * * *
-   * Optional. A set of user-defined (key, value) data that provides additional
-   * information about the log entry.
+   * Optional. A map of key, value pairs that provides additional information about the
+   * log entry. The labels can be user-defined or system-defined.
+   * User-defined labels are arbitrary key, value pairs that you can use to
+   * classify logs.
+   * System-defined labels are defined by GCP services for platform logs.
+   * They have two components - a service namespace component and the
+   * attribute name. For example: `compute.googleapis.com/resource_name`.
+   * Cloud Logging truncates label keys that exceed 512 B and label
+   * values that exceed 64 KB upon their associated log entry being
+   * written. The truncation is indicated by an ellipsis at the
+   * end of the character string.
    * 
* * map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL]; @@ -696,5 +741,43 @@ public interface LogEntryOrBuilder */ com.google.logging.v2.LogEntrySourceLocationOrBuilder getSourceLocationOrBuilder(); + /** + * + * + *
+   * Optional. Information indicating this LogEntry is part of a sequence of multiple log
+   * entries split from a single LogEntry.
+   * 
+ * + * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the split field is set. + */ + boolean hasSplit(); + /** + * + * + *
+   * Optional. Information indicating this LogEntry is part of a sequence of multiple log
+   * entries split from a single LogEntry.
+   * 
+ * + * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The split. + */ + com.google.logging.v2.LogSplit getSplit(); + /** + * + * + *
+   * Optional. Information indicating this LogEntry is part of a sequence of multiple log
+   * entries split from a single LogEntry.
+   * 
+ * + * .google.logging.v2.LogSplit split = 35 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.logging.v2.LogSplitOrBuilder getSplitOrBuilder(); + public com.google.logging.v2.LogEntry.PayloadCase getPayloadCase(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryProto.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryProto.java index 6a9d60971..ad8a1c3ac 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryProto.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogEntryProto.java @@ -43,6 +43,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_logging_v2_LogEntrySourceLocation_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_logging_v2_LogEntrySourceLocation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_LogSplit_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_LogSplit_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -60,42 +64,43 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "logging/type/log_severity.proto\032\031google/" + "protobuf/any.proto\032\034google/protobuf/stru" + "ct.proto\032\037google/protobuf/timestamp.prot" - + "o\032\027google/rpc/status.proto\032\034google/api/a" - + "nnotations.proto\"\322\007\n\010LogEntry\022\025\n\010log_nam" - + "e\030\014 \001(\tB\003\340A\002\0224\n\010resource\030\010 \001(\0132\035.google." - + "api.MonitoredResourceB\003\340A\002\022-\n\rproto_payl" - + "oad\030\002 \001(\0132\024.google.protobuf.AnyH\000\022\026\n\014tex" - + "t_payload\030\003 \001(\tH\000\022/\n\014json_payload\030\006 \001(\0132" - + "\027.google.protobuf.StructH\000\0222\n\ttimestamp\030" - + "\t \001(\0132\032.google.protobuf.TimestampB\003\340A\001\022:" - + "\n\021receive_timestamp\030\030 \001(\0132\032.google.proto" - + "buf.TimestampB\003\340A\003\0227\n\010severity\030\n \001(\0162 .g" - + "oogle.logging.type.LogSeverityB\003\340A\001\022\026\n\ti" - + "nsert_id\030\004 \001(\tB\003\340A\001\022;\n\014http_request\030\007 \001(" - + "\0132 .google.logging.type.HttpRequestB\003\340A\001" - + "\022<\n\006labels\030\013 \003(\0132\'.google.logging.v2.Log" - + "Entry.LabelsEntryB\003\340A\001\022<\n\toperation\030\017 \001(" - + "\0132$.google.logging.v2.LogEntryOperationB" - + "\003\340A\001\022\022\n\005trace\030\026 \001(\tB\003\340A\001\022\024\n\007span_id\030\033 \001(" - + "\tB\003\340A\001\022\032\n\rtrace_sampled\030\036 \001(\010B\003\340A\001\022G\n\017so" - + "urce_location\030\027 \001(\0132).google.logging.v2." - + "LogEntrySourceLocationB\003\340A\001\032-\n\013LabelsEnt" - + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\275\001\352A\271" - + "\001\n\032logging.googleapis.com/Log\022\035projects/" - + "{project}/logs/{log}\022\'organizations/{org" - + "anization}/logs/{log}\022\033folders/{folder}/" - + "logs/{log}\022,billingAccounts/{billing_acc" - + "ount}/logs/{log}\032\010log_nameB\t\n\007payload\"b\n" - + "\021LogEntryOperation\022\017\n\002id\030\001 \001(\tB\003\340A\001\022\025\n\010p" - + "roducer\030\002 \001(\tB\003\340A\001\022\022\n\005first\030\003 \001(\010B\003\340A\001\022\021" - + "\n\004last\030\004 \001(\010B\003\340A\001\"U\n\026LogEntrySourceLocat" - + "ion\022\021\n\004file\030\001 \001(\tB\003\340A\001\022\021\n\004line\030\002 \001(\003B\003\340A" - + "\001\022\025\n\010function\030\003 \001(\tB\003\340A\001B\266\001\n\025com.google." - + "logging.v2B\rLogEntryProtoP\001Z8google.gola" - + "ng.org/genproto/googleapis/logging/v2;lo" - + "gging\370\001\001\252\002\027Google.Cloud.Logging.V2\312\002\027Goo" - + "gle\\Cloud\\Logging\\V2\352\002\032Google::Cloud::Lo" - + "gging::V2b\006proto3" + + "o\"\203\010\n\010LogEntry\022\025\n\010log_name\030\014 \001(\tB\003\340A\002\0224\n" + + "\010resource\030\010 \001(\0132\035.google.api.MonitoredRe" + + "sourceB\003\340A\002\022-\n\rproto_payload\030\002 \001(\0132\024.goo" + + "gle.protobuf.AnyH\000\022\026\n\014text_payload\030\003 \001(\t" + + "H\000\022/\n\014json_payload\030\006 \001(\0132\027.google.protob" + + "uf.StructH\000\0222\n\ttimestamp\030\t \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\001\022:\n\021receive_times" + + "tamp\030\030 \001(\0132\032.google.protobuf.TimestampB\003" + + "\340A\003\0227\n\010severity\030\n \001(\0162 .google.logging.t" + + "ype.LogSeverityB\003\340A\001\022\026\n\tinsert_id\030\004 \001(\tB" + + "\003\340A\001\022;\n\014http_request\030\007 \001(\0132 .google.logg" + + "ing.type.HttpRequestB\003\340A\001\022<\n\006labels\030\013 \003(" + + "\0132\'.google.logging.v2.LogEntry.LabelsEnt" + + "ryB\003\340A\001\022<\n\toperation\030\017 \001(\0132$.google.logg" + + "ing.v2.LogEntryOperationB\003\340A\001\022\022\n\005trace\030\026" + + " \001(\tB\003\340A\001\022\024\n\007span_id\030\033 \001(\tB\003\340A\001\022\032\n\rtrace" + + "_sampled\030\036 \001(\010B\003\340A\001\022G\n\017source_location\030\027" + + " \001(\0132).google.logging.v2.LogEntrySourceL" + + "ocationB\003\340A\001\022/\n\005split\030# \001(\0132\033.google.log" + + "ging.v2.LogSplitB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003" + + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:\275\001\352A\271\001\n\032log" + + "ging.googleapis.com/Log\022\035projects/{proje" + + "ct}/logs/{log}\022\'organizations/{organizat" + + "ion}/logs/{log}\022\033folders/{folder}/logs/{" + + "log}\022,billingAccounts/{billing_account}/" + + "logs/{log}\032\010log_nameB\t\n\007payload\"b\n\021LogEn" + + "tryOperation\022\017\n\002id\030\001 \001(\tB\003\340A\001\022\025\n\010produce" + + "r\030\002 \001(\tB\003\340A\001\022\022\n\005first\030\003 \001(\010B\003\340A\001\022\021\n\004last" + + "\030\004 \001(\010B\003\340A\001\"U\n\026LogEntrySourceLocation\022\021\n" + + "\004file\030\001 \001(\tB\003\340A\001\022\021\n\004line\030\002 \001(\003B\003\340A\001\022\025\n\010f" + + "unction\030\003 \001(\tB\003\340A\001\"<\n\010LogSplit\022\013\n\003uid\030\001 " + + "\001(\t\022\r\n\005index\030\002 \001(\005\022\024\n\014total_splits\030\003 \001(\005" + + "B\266\001\n\025com.google.logging.v2B\rLogEntryProt" + + "oP\001Z8google.golang.org/genproto/googleap" + + "is/logging/v2;logging\370\001\001\252\002\027Google.Cloud." + + "Logging.V2\312\002\027Google\\Cloud\\Logging\\V2\352\002\032G" + + "oogle::Cloud::Logging::V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -109,8 +114,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.AnyProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), }); internal_static_google_logging_v2_LogEntry_descriptor = getDescriptor().getMessageTypes().get(0); @@ -134,6 +137,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SpanId", "TraceSampled", "SourceLocation", + "Split", "Payload", }); internal_static_google_logging_v2_LogEntry_LabelsEntry_descriptor = @@ -160,6 +164,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "File", "Line", "Function", }); + internal_static_google_logging_v2_LogSplit_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_logging_v2_LogSplit_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_LogSplit_descriptor, + new java.lang.String[] { + "Uid", "Index", "TotalSplits", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); @@ -174,8 +186,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.AnyProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusion.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusion.java index 5735ddcb0..e49344710 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusion.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusion.java @@ -22,12 +22,11 @@ * * *
- * Specifies a set of log entries that are not to be stored in
- * Logging. If your GCP resource receives a large volume of logs, you can
- * use exclusions to reduce your chargeable logs. Exclusions are
- * processed after log sinks, so you can export log entries before they are
- * excluded. Note that organization-level and folder-level exclusions don't
- * apply to child resources, and that you can't exclude audit log entries.
+ * Specifies a set of log entries that are filtered out by a sink. If
+ * your Google Cloud resource receives a large volume of log entries, you can
+ * use exclusions to reduce your chargeable logs. Note that exclusions on
+ * organization-level and folder-level sinks don't apply to child resources.
+ * Note also that you cannot modify the _Required sink or exclude logs from it.
  * 
* * Protobuf type {@code google.logging.v2.LogExclusion} @@ -282,9 +281,9 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * matches the log entries to be excluded. By using the [sample * function](https://cloud.google.com/logging/docs/view/advanced-queries#sample), * you can exclude less than 100% of the matching log entries. - * For example, the following query matches 99% of low-severity log - * entries from Google Cloud Storage buckets: - * `"resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)"` + * For example, the following query matches 99% of low-severity log entries + * from Google Cloud Storage buckets: + * `resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)` * * * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -312,9 +311,9 @@ public java.lang.String getFilter() { * matches the log entries to be excluded. By using the [sample * function](https://cloud.google.com/logging/docs/view/advanced-queries#sample), * you can exclude less than 100% of the matching log entries. - * For example, the following query matches 99% of low-severity log - * entries from Google Cloud Storage buckets: - * `"resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)"` + * For example, the following query matches 99% of low-severity log entries + * from Google Cloud Storage buckets: + * `resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)` * * * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -675,12 +674,11 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Specifies a set of log entries that are not to be stored in
-   * Logging. If your GCP resource receives a large volume of logs, you can
-   * use exclusions to reduce your chargeable logs. Exclusions are
-   * processed after log sinks, so you can export log entries before they are
-   * excluded. Note that organization-level and folder-level exclusions don't
-   * apply to child resources, and that you can't exclude audit log entries.
+   * Specifies a set of log entries that are filtered out by a sink. If
+   * your Google Cloud resource receives a large volume of log entries, you can
+   * use exclusions to reduce your chargeable logs. Note that exclusions on
+   * organization-level and folder-level sinks don't apply to child resources.
+   * Note also that you cannot modify the _Required sink or exclude logs from it.
    * 
* * Protobuf type {@code google.logging.v2.LogExclusion} @@ -1117,9 +1115,9 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * matches the log entries to be excluded. By using the [sample * function](https://cloud.google.com/logging/docs/view/advanced-queries#sample), * you can exclude less than 100% of the matching log entries. - * For example, the following query matches 99% of low-severity log - * entries from Google Cloud Storage buckets: - * `"resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)"` + * For example, the following query matches 99% of low-severity log entries + * from Google Cloud Storage buckets: + * `resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)` * * * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1146,9 +1144,9 @@ public java.lang.String getFilter() { * matches the log entries to be excluded. By using the [sample * function](https://cloud.google.com/logging/docs/view/advanced-queries#sample), * you can exclude less than 100% of the matching log entries. - * For example, the following query matches 99% of low-severity log - * entries from Google Cloud Storage buckets: - * `"resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)"` + * For example, the following query matches 99% of low-severity log entries + * from Google Cloud Storage buckets: + * `resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)` * * * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1175,9 +1173,9 @@ public com.google.protobuf.ByteString getFilterBytes() { * matches the log entries to be excluded. By using the [sample * function](https://cloud.google.com/logging/docs/view/advanced-queries#sample), * you can exclude less than 100% of the matching log entries. - * For example, the following query matches 99% of low-severity log - * entries from Google Cloud Storage buckets: - * `"resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)"` + * For example, the following query matches 99% of low-severity log entries + * from Google Cloud Storage buckets: + * `resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)` * * * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1203,9 +1201,9 @@ public Builder setFilter(java.lang.String value) { * matches the log entries to be excluded. By using the [sample * function](https://cloud.google.com/logging/docs/view/advanced-queries#sample), * you can exclude less than 100% of the matching log entries. - * For example, the following query matches 99% of low-severity log - * entries from Google Cloud Storage buckets: - * `"resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)"` + * For example, the following query matches 99% of low-severity log entries + * from Google Cloud Storage buckets: + * `resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)` * * * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1227,9 +1225,9 @@ public Builder clearFilter() { * matches the log entries to be excluded. By using the [sample * function](https://cloud.google.com/logging/docs/view/advanced-queries#sample), * you can exclude less than 100% of the matching log entries. - * For example, the following query matches 99% of low-severity log - * entries from Google Cloud Storage buckets: - * `"resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)"` + * For example, the following query matches 99% of low-severity log entries + * from Google Cloud Storage buckets: + * `resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)` * * * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusionOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusionOrBuilder.java index 721fec26f..d220a9820 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusionOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogExclusionOrBuilder.java @@ -88,9 +88,9 @@ public interface LogExclusionOrBuilder * matches the log entries to be excluded. By using the [sample * function](https://cloud.google.com/logging/docs/view/advanced-queries#sample), * you can exclude less than 100% of the matching log entries. - * For example, the following query matches 99% of low-severity log - * entries from Google Cloud Storage buckets: - * `"resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)"` + * For example, the following query matches 99% of low-severity log entries + * from Google Cloud Storage buckets: + * `resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)` * * * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -107,9 +107,9 @@ public interface LogExclusionOrBuilder * matches the log entries to be excluded. By using the [sample * function](https://cloud.google.com/logging/docs/view/advanced-queries#sample), * you can exclude less than 100% of the matching log entries. - * For example, the following query matches 99% of low-severity log - * entries from Google Cloud Storage buckets: - * `"resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)"` + * For example, the following query matches 99% of low-severity log entries + * from Google Cloud Storage buckets: + * `resource.type=gcs_bucket severity<ERROR sample(insertId, 0.99)` * * * string filter = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetric.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetric.java index a8532face..d39bcd395 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetric.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetric.java @@ -191,6 +191,11 @@ private LogMetric( updateTime_ = subBuilder.buildPartial(); } + break; + } + case 96: + { + disabled_ = input.readBool(); break; } default: @@ -384,11 +389,11 @@ private ApiVersion(int value) { * following characters: `A-Z`, `a-z`, `0-9`, and the special characters * `_-.,+!*',()%/`. The forward-slash character (`/`) denotes a hierarchy of * name pieces, and it cannot be the first character of the name. - * The metric identifier in this field must not be - * [URL-encoded](https://en.wikipedia.org/wiki/Percent-encoding). - * However, when the metric identifier appears as the `[METRIC_ID]` part of a - * `metric_name` API parameter, then the metric identifier must be - * URL-encoded. Example: `"projects/my-project/metrics/nginx%2Frequests"`. + * This field is the `[METRIC_ID]` part of a metric resource name in the + * format "projects/[PROJECT_ID]/metrics/[METRIC_ID]". Example: If the + * resource name of a metric is + * `"projects/my-project/metrics/nginx%2Frequests"`, this field's value is + * `"nginx/requests"`. * * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -417,11 +422,11 @@ public java.lang.String getName() { * following characters: `A-Z`, `a-z`, `0-9`, and the special characters * `_-.,+!*',()%/`. The forward-slash character (`/`) denotes a hierarchy of * name pieces, and it cannot be the first character of the name. - * The metric identifier in this field must not be - * [URL-encoded](https://en.wikipedia.org/wiki/Percent-encoding). - * However, when the metric identifier appears as the `[METRIC_ID]` part of a - * `metric_name` API parameter, then the metric identifier must be - * URL-encoded. Example: `"projects/my-project/metrics/nginx%2Frequests"`. + * This field is the `[METRIC_ID]` part of a metric resource name in the + * format "projects/[PROJECT_ID]/metrics/[METRIC_ID]". Example: If the + * resource name of a metric is + * `"projects/my-project/metrics/nginx%2Frequests"`, this field's value is + * `"nginx/requests"`. * * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -549,6 +554,25 @@ public com.google.protobuf.ByteString getFilterBytes() { } } + public static final int DISABLED_FIELD_NUMBER = 12; + private boolean disabled_; + /** + * + * + *
+   * Optional. If set to True, then this metric is disabled and it does not
+   * generate any points.
+   * 
+ * + * bool disabled = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + public static final int METRIC_DESCRIPTOR_FIELD_NUMBER = 5; private com.google.api.MetricDescriptor metricDescriptor_; /** @@ -1128,6 +1152,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(10, getUpdateTime()); } + if (disabled_ != false) { + output.writeBool(12, disabled_); + } unknownFields.writeTo(output); } @@ -1174,6 +1201,9 @@ public int getSerializedSize() { if (updateTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getUpdateTime()); } + if (disabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, disabled_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1192,6 +1222,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getDescription().equals(other.getDescription())) return false; if (!getFilter().equals(other.getFilter())) return false; + if (getDisabled() != other.getDisabled()) return false; if (hasMetricDescriptor() != other.hasMetricDescriptor()) return false; if (hasMetricDescriptor()) { if (!getMetricDescriptor().equals(other.getMetricDescriptor())) return false; @@ -1228,6 +1259,8 @@ public int hashCode() { hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + FILTER_FIELD_NUMBER; hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + DISABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled()); if (hasMetricDescriptor()) { hash = (37 * hash) + METRIC_DESCRIPTOR_FIELD_NUMBER; hash = (53 * hash) + getMetricDescriptor().hashCode(); @@ -1426,6 +1459,8 @@ public Builder clear() { filter_ = ""; + disabled_ = false; + if (metricDescriptorBuilder_ == null) { metricDescriptor_ = null; } else { @@ -1485,6 +1520,7 @@ public com.google.logging.v2.LogMetric buildPartial() { result.name_ = name_; result.description_ = description_; result.filter_ = filter_; + result.disabled_ = disabled_; if (metricDescriptorBuilder_ == null) { result.metricDescriptor_ = metricDescriptor_; } else { @@ -1570,6 +1606,9 @@ public Builder mergeFrom(com.google.logging.v2.LogMetric other) { filter_ = other.filter_; onChanged(); } + if (other.getDisabled() != false) { + setDisabled(other.getDisabled()); + } if (other.hasMetricDescriptor()) { mergeMetricDescriptor(other.getMetricDescriptor()); } @@ -1632,11 +1671,11 @@ public Builder mergeFrom( * following characters: `A-Z`, `a-z`, `0-9`, and the special characters * `_-.,+!*',()%/`. The forward-slash character (`/`) denotes a hierarchy of * name pieces, and it cannot be the first character of the name. - * The metric identifier in this field must not be - * [URL-encoded](https://en.wikipedia.org/wiki/Percent-encoding). - * However, when the metric identifier appears as the `[METRIC_ID]` part of a - * `metric_name` API parameter, then the metric identifier must be - * URL-encoded. Example: `"projects/my-project/metrics/nginx%2Frequests"`. + * This field is the `[METRIC_ID]` part of a metric resource name in the + * format "projects/[PROJECT_ID]/metrics/[METRIC_ID]". Example: If the + * resource name of a metric is + * `"projects/my-project/metrics/nginx%2Frequests"`, this field's value is + * `"nginx/requests"`. * * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -1664,11 +1703,11 @@ public java.lang.String getName() { * following characters: `A-Z`, `a-z`, `0-9`, and the special characters * `_-.,+!*',()%/`. The forward-slash character (`/`) denotes a hierarchy of * name pieces, and it cannot be the first character of the name. - * The metric identifier in this field must not be - * [URL-encoded](https://en.wikipedia.org/wiki/Percent-encoding). - * However, when the metric identifier appears as the `[METRIC_ID]` part of a - * `metric_name` API parameter, then the metric identifier must be - * URL-encoded. Example: `"projects/my-project/metrics/nginx%2Frequests"`. + * This field is the `[METRIC_ID]` part of a metric resource name in the + * format "projects/[PROJECT_ID]/metrics/[METRIC_ID]". Example: If the + * resource name of a metric is + * `"projects/my-project/metrics/nginx%2Frequests"`, this field's value is + * `"nginx/requests"`. * * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -1696,11 +1735,11 @@ public com.google.protobuf.ByteString getNameBytes() { * following characters: `A-Z`, `a-z`, `0-9`, and the special characters * `_-.,+!*',()%/`. The forward-slash character (`/`) denotes a hierarchy of * name pieces, and it cannot be the first character of the name. - * The metric identifier in this field must not be - * [URL-encoded](https://en.wikipedia.org/wiki/Percent-encoding). - * However, when the metric identifier appears as the `[METRIC_ID]` part of a - * `metric_name` API parameter, then the metric identifier must be - * URL-encoded. Example: `"projects/my-project/metrics/nginx%2Frequests"`. + * This field is the `[METRIC_ID]` part of a metric resource name in the + * format "projects/[PROJECT_ID]/metrics/[METRIC_ID]". Example: If the + * resource name of a metric is + * `"projects/my-project/metrics/nginx%2Frequests"`, this field's value is + * `"nginx/requests"`. * * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -1727,11 +1766,11 @@ public Builder setName(java.lang.String value) { * following characters: `A-Z`, `a-z`, `0-9`, and the special characters * `_-.,+!*',()%/`. The forward-slash character (`/`) denotes a hierarchy of * name pieces, and it cannot be the first character of the name. - * The metric identifier in this field must not be - * [URL-encoded](https://en.wikipedia.org/wiki/Percent-encoding). - * However, when the metric identifier appears as the `[METRIC_ID]` part of a - * `metric_name` API parameter, then the metric identifier must be - * URL-encoded. Example: `"projects/my-project/metrics/nginx%2Frequests"`. + * This field is the `[METRIC_ID]` part of a metric resource name in the + * format "projects/[PROJECT_ID]/metrics/[METRIC_ID]". Example: If the + * resource name of a metric is + * `"projects/my-project/metrics/nginx%2Frequests"`, this field's value is + * `"nginx/requests"`. * * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -1754,11 +1793,11 @@ public Builder clearName() { * following characters: `A-Z`, `a-z`, `0-9`, and the special characters * `_-.,+!*',()%/`. The forward-slash character (`/`) denotes a hierarchy of * name pieces, and it cannot be the first character of the name. - * The metric identifier in this field must not be - * [URL-encoded](https://en.wikipedia.org/wiki/Percent-encoding). - * However, when the metric identifier appears as the `[METRIC_ID]` part of a - * `metric_name` API parameter, then the metric identifier must be - * URL-encoded. Example: `"projects/my-project/metrics/nginx%2Frequests"`. + * This field is the `[METRIC_ID]` part of a metric resource name in the + * format "projects/[PROJECT_ID]/metrics/[METRIC_ID]". Example: If the + * resource name of a metric is + * `"projects/my-project/metrics/nginx%2Frequests"`, this field's value is + * `"nginx/requests"`. * * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -2014,6 +2053,61 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { return this; } + private boolean disabled_; + /** + * + * + *
+     * Optional. If set to True, then this metric is disabled and it does not
+     * generate any points.
+     * 
+ * + * bool disabled = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + /** + * + * + *
+     * Optional. If set to True, then this metric is disabled and it does not
+     * generate any points.
+     * 
+ * + * bool disabled = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The disabled to set. + * @return This builder for chaining. + */ + public Builder setDisabled(boolean value) { + + disabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set to True, then this metric is disabled and it does not
+     * generate any points.
+     * 
+ * + * bool disabled = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisabled() { + + disabled_ = false; + onChanged(); + return this; + } + private com.google.api.MetricDescriptor metricDescriptor_; private com.google.protobuf.SingleFieldBuilderV3< com.google.api.MetricDescriptor, diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetricOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetricOrBuilder.java index 6af9a78ba..6d856942c 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetricOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogMetricOrBuilder.java @@ -33,11 +33,11 @@ public interface LogMetricOrBuilder * following characters: `A-Z`, `a-z`, `0-9`, and the special characters * `_-.,+!*',()%/`. The forward-slash character (`/`) denotes a hierarchy of * name pieces, and it cannot be the first character of the name. - * The metric identifier in this field must not be - * [URL-encoded](https://en.wikipedia.org/wiki/Percent-encoding). - * However, when the metric identifier appears as the `[METRIC_ID]` part of a - * `metric_name` API parameter, then the metric identifier must be - * URL-encoded. Example: `"projects/my-project/metrics/nginx%2Frequests"`. + * This field is the `[METRIC_ID]` part of a metric resource name in the + * format "projects/[PROJECT_ID]/metrics/[METRIC_ID]". Example: If the + * resource name of a metric is + * `"projects/my-project/metrics/nginx%2Frequests"`, this field's value is + * `"nginx/requests"`. * * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -55,11 +55,11 @@ public interface LogMetricOrBuilder * following characters: `A-Z`, `a-z`, `0-9`, and the special characters * `_-.,+!*',()%/`. The forward-slash character (`/`) denotes a hierarchy of * name pieces, and it cannot be the first character of the name. - * The metric identifier in this field must not be - * [URL-encoded](https://en.wikipedia.org/wiki/Percent-encoding). - * However, when the metric identifier appears as the `[METRIC_ID]` part of a - * `metric_name` API parameter, then the metric identifier must be - * URL-encoded. Example: `"projects/my-project/metrics/nginx%2Frequests"`. + * This field is the `[METRIC_ID]` part of a metric resource name in the + * format "projects/[PROJECT_ID]/metrics/[METRIC_ID]". Example: If the + * resource name of a metric is + * `"projects/my-project/metrics/nginx%2Frequests"`, this field's value is + * `"nginx/requests"`. * * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -128,6 +128,20 @@ public interface LogMetricOrBuilder */ com.google.protobuf.ByteString getFilterBytes(); + /** + * + * + *
+   * Optional. If set to True, then this metric is disabled and it does not
+   * generate any points.
+   * 
+ * + * bool disabled = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disabled. + */ + boolean getDisabled(); + /** * * diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSink.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSink.java index 86a47e078..018b527d0 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSink.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSink.java @@ -23,10 +23,10 @@ * *
  * Describes a sink used to export log entries to one of the following
- * destinations in any project: a Cloud Storage bucket, a BigQuery dataset, or a
- * Cloud Pub/Sub topic. A logs filter controls which log entries are exported.
- * The sink must be created within a project, organization, billing account, or
- * folder.
+ * destinations in any project: a Cloud Storage bucket, a BigQuery dataset, a
+ * Pub/Sub topic or a Cloud Logging log bucket. A logs filter controls which log
+ * entries are exported. The sink must be created within a project,
+ * organization, billing account, or folder.
  * 
* * Protobuf type {@code google.logging.v2.LogSink} @@ -433,9 +433,9 @@ public OptionsCase getOptionsCase() { * * *
-   * Required. The client-assigned sink identifier, unique within the project. Example:
-   * `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited to 100
-   * characters and can include only the following characters: upper and
+   * Required. The client-assigned sink identifier, unique within the project.
+   * For example: `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited
+   * to 100 characters and can include only the following characters: upper and
    * lower-case alphanumeric characters, underscores, hyphens, and periods.
    * First character has to be alphanumeric.
    * 
@@ -460,9 +460,9 @@ public java.lang.String getName() { * * *
-   * Required. The client-assigned sink identifier, unique within the project. Example:
-   * `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited to 100
-   * characters and can include only the following characters: upper and
+   * Required. The client-assigned sink identifier, unique within the project.
+   * For example: `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited
+   * to 100 characters and can include only the following characters: upper and
    * lower-case alphanumeric characters, underscores, hyphens, and periods.
    * First character has to be alphanumeric.
    * 
@@ -494,9 +494,9 @@ public com.google.protobuf.ByteString getNameBytes() { * "storage.googleapis.com/[GCS_BUCKET]" * "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]" * "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]" - * The sink's `writer_identity`, set when the sink is created, must - * have permission to write to the destination or else the log - * entries are not exported. For more information, see + * The sink's `writer_identity`, set when the sink is created, must have + * permission to write to the destination or else the log entries are not + * exported. For more information, see * [Exporting Logs with * Sinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). * @@ -527,9 +527,9 @@ public java.lang.String getDestination() { * "storage.googleapis.com/[GCS_BUCKET]" * "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]" * "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]" - * The sink's `writer_identity`, set when the sink is created, must - * have permission to write to the destination or else the log - * entries are not exported. For more information, see + * The sink's `writer_identity`, set when the sink is created, must have + * permission to write to the destination or else the log entries are not + * exported. For more information, see * [Exporting Logs with * Sinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). * @@ -562,8 +562,9 @@ public com.google.protobuf.ByteString getDestinationBytes() { * Optional. An [advanced logs * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The * only exported log entries are those that are in the resource owning the - * sink and that match the filter. For example: - * logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR + * sink and that match the filter. + * For example: + * `logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR` * * * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -589,8 +590,9 @@ public java.lang.String getFilter() { * Optional. An [advanced logs * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The * only exported log entries are those that are in the resource owning the - * sink and that match the filter. For example: - * logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR + * sink and that match the filter. + * For example: + * `logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR` * * * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -667,8 +669,8 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
-   * Optional. If set to True, then this sink is disabled and it does not
-   * export any log entries.
+   * Optional. If set to true, then this sink is disabled and it does not export any log
+   * entries.
    * 
* * bool disabled = 19 [(.google.api.field_behavior) = OPTIONAL]; @@ -686,7 +688,7 @@ public boolean getDisabled() { * * *
-   * Optional. Log entries that match any of the exclusion filters will not be exported.
+   * Optional. Log entries that match any of these exclusion filters will not be exported.
    * If a log entry is matched by both `filter` and one of `exclusion_filters`
    * it will not be exported.
    * 
@@ -703,7 +705,7 @@ public java.util.List getExclusionsList() { * * *
-   * Optional. Log entries that match any of the exclusion filters will not be exported.
+   * Optional. Log entries that match any of these exclusion filters will not be exported.
    * If a log entry is matched by both `filter` and one of `exclusion_filters`
    * it will not be exported.
    * 
@@ -721,7 +723,7 @@ public java.util.List getExclusionsList() { * * *
-   * Optional. Log entries that match any of the exclusion filters will not be exported.
+   * Optional. Log entries that match any of these exclusion filters will not be exported.
    * If a log entry is matched by both `filter` and one of `exclusion_filters`
    * it will not be exported.
    * 
@@ -738,7 +740,7 @@ public int getExclusionsCount() { * * *
-   * Optional. Log entries that match any of the exclusion filters will not be exported.
+   * Optional. Log entries that match any of these exclusion filters will not be exported.
    * If a log entry is matched by both `filter` and one of `exclusion_filters`
    * it will not be exported.
    * 
@@ -755,7 +757,7 @@ public com.google.logging.v2.LogExclusion getExclusions(int index) { * * *
-   * Optional. Log entries that match any of the exclusion filters will not be exported.
+   * Optional. Log entries that match any of these exclusion filters will not be exported.
    * If a log entry is matched by both `filter` and one of `exclusion_filters`
    * it will not be exported.
    * 
@@ -815,17 +817,21 @@ public com.google.logging.v2.LogSink.VersionFormat getOutputVersionFormat() { * * *
-   * Output only. An IAM identity&mdash;a service account or group&mdash;under which Logging
-   * writes the exported log entries to the sink's destination. This field is
-   * set by [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] and
+   * Output only. An IAM identity&mdash;a service account or group&mdash;under which Cloud
+   * Logging writes the exported log entries to the sink's destination. This
+   * field is set by
+   * [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] and
    * [sinks.update][google.logging.v2.ConfigServiceV2.UpdateSink] based on the
    * value of `unique_writer_identity` in those methods.
    * Until you grant this identity write-access to the destination, log entry
-   * exports from this sink will fail. For more information,
-   * see [Granting Access for a
+   * exports from this sink will fail. For more information, see [Granting
+   * Access for a
    * Resource](https://cloud.google.com/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource).
    * Consult the destination service's documentation to determine the
    * appropriate IAM roles to assign to the identity.
+   * Sinks that have a destination that is a log bucket in the same project as
+   * the sink do not have a writer_identity and no additional permissions are
+   * required.
    * 
* * string writer_identity = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -848,17 +854,21 @@ public java.lang.String getWriterIdentity() { * * *
-   * Output only. An IAM identity&mdash;a service account or group&mdash;under which Logging
-   * writes the exported log entries to the sink's destination. This field is
-   * set by [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] and
+   * Output only. An IAM identity&mdash;a service account or group&mdash;under which Cloud
+   * Logging writes the exported log entries to the sink's destination. This
+   * field is set by
+   * [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] and
    * [sinks.update][google.logging.v2.ConfigServiceV2.UpdateSink] based on the
    * value of `unique_writer_identity` in those methods.
    * Until you grant this identity write-access to the destination, log entry
-   * exports from this sink will fail. For more information,
-   * see [Granting Access for a
+   * exports from this sink will fail. For more information, see [Granting
+   * Access for a
    * Resource](https://cloud.google.com/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource).
    * Consult the destination service's documentation to determine the
    * appropriate IAM roles to assign to the identity.
+   * Sinks that have a destination that is a log bucket in the same project as
+   * the sink do not have a writer_identity and no additional permissions are
+   * required.
    * 
* * string writer_identity = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -884,18 +894,20 @@ public com.google.protobuf.ByteString getWriterIdentityBytes() { * * *
-   * Optional. This field applies only to sinks owned by organizations and
-   * folders. If the field is false, the default, only the logs owned by the
-   * sink's parent resource are available for export. If the field is true, then
-   * logs from all the projects, folders, and billing accounts contained in the
+   * Optional. This field applies only to sinks owned by organizations and folders. If the
+   * field is false, the default, only the logs owned by the sink's parent
+   * resource are available for export. If the field is true, then log entries
+   * from all the projects, folders, and billing accounts contained in the
    * sink's parent resource are also available for export. Whether a particular
    * log entry from the children is exported depends on the sink's filter
-   * expression. For example, if this field is true, then the filter
+   * expression.
+   * For example, if this field is true, then the filter
    * `resource.type=gce_instance` would export all Compute Engine VM instance
-   * log entries from all projects in the sink's parent. To only export entries
-   * from certain child projects, filter on the project part of the log name:
-   *     logName:("projects/test-project1/" OR "projects/test-project2/") AND
-   *     resource.type=gce_instance
+   * log entries from all projects in the sink's parent.
+   * To only export entries from certain child projects, filter on the project
+   * part of the log name:
+   *   logName:("projects/test-project1/" OR "projects/test-project2/") AND
+   *   resource.type=gce_instance
    * 
* * bool include_children = 9 [(.google.api.field_behavior) = OPTIONAL]; @@ -1358,10 +1370,10 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * Describes a sink used to export log entries to one of the following
-   * destinations in any project: a Cloud Storage bucket, a BigQuery dataset, or a
-   * Cloud Pub/Sub topic. A logs filter controls which log entries are exported.
-   * The sink must be created within a project, organization, billing account, or
-   * folder.
+   * destinations in any project: a Cloud Storage bucket, a BigQuery dataset, a
+   * Pub/Sub topic or a Cloud Logging log bucket. A logs filter controls which log
+   * entries are exported. The sink must be created within a project,
+   * organization, billing account, or folder.
    * 
* * Protobuf type {@code google.logging.v2.LogSink} @@ -1673,9 +1685,9 @@ public Builder clearOptions() { * * *
-     * Required. The client-assigned sink identifier, unique within the project. Example:
-     * `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited to 100
-     * characters and can include only the following characters: upper and
+     * Required. The client-assigned sink identifier, unique within the project.
+     * For example: `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited
+     * to 100 characters and can include only the following characters: upper and
      * lower-case alphanumeric characters, underscores, hyphens, and periods.
      * First character has to be alphanumeric.
      * 
@@ -1699,9 +1711,9 @@ public java.lang.String getName() { * * *
-     * Required. The client-assigned sink identifier, unique within the project. Example:
-     * `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited to 100
-     * characters and can include only the following characters: upper and
+     * Required. The client-assigned sink identifier, unique within the project.
+     * For example: `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited
+     * to 100 characters and can include only the following characters: upper and
      * lower-case alphanumeric characters, underscores, hyphens, and periods.
      * First character has to be alphanumeric.
      * 
@@ -1725,9 +1737,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required. The client-assigned sink identifier, unique within the project. Example:
-     * `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited to 100
-     * characters and can include only the following characters: upper and
+     * Required. The client-assigned sink identifier, unique within the project.
+     * For example: `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited
+     * to 100 characters and can include only the following characters: upper and
      * lower-case alphanumeric characters, underscores, hyphens, and periods.
      * First character has to be alphanumeric.
      * 
@@ -1750,9 +1762,9 @@ public Builder setName(java.lang.String value) { * * *
-     * Required. The client-assigned sink identifier, unique within the project. Example:
-     * `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited to 100
-     * characters and can include only the following characters: upper and
+     * Required. The client-assigned sink identifier, unique within the project.
+     * For example: `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited
+     * to 100 characters and can include only the following characters: upper and
      * lower-case alphanumeric characters, underscores, hyphens, and periods.
      * First character has to be alphanumeric.
      * 
@@ -1771,9 +1783,9 @@ public Builder clearName() { * * *
-     * Required. The client-assigned sink identifier, unique within the project. Example:
-     * `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited to 100
-     * characters and can include only the following characters: upper and
+     * Required. The client-assigned sink identifier, unique within the project.
+     * For example: `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited
+     * to 100 characters and can include only the following characters: upper and
      * lower-case alphanumeric characters, underscores, hyphens, and periods.
      * First character has to be alphanumeric.
      * 
@@ -1803,9 +1815,9 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * "storage.googleapis.com/[GCS_BUCKET]" * "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]" * "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]" - * The sink's `writer_identity`, set when the sink is created, must - * have permission to write to the destination or else the log - * entries are not exported. For more information, see + * The sink's `writer_identity`, set when the sink is created, must have + * permission to write to the destination or else the log entries are not + * exported. For more information, see * [Exporting Logs with * Sinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). * @@ -1835,9 +1847,9 @@ public java.lang.String getDestination() { * "storage.googleapis.com/[GCS_BUCKET]" * "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]" * "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]" - * The sink's `writer_identity`, set when the sink is created, must - * have permission to write to the destination or else the log - * entries are not exported. For more information, see + * The sink's `writer_identity`, set when the sink is created, must have + * permission to write to the destination or else the log entries are not + * exported. For more information, see * [Exporting Logs with * Sinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). * @@ -1867,9 +1879,9 @@ public com.google.protobuf.ByteString getDestinationBytes() { * "storage.googleapis.com/[GCS_BUCKET]" * "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]" * "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]" - * The sink's `writer_identity`, set when the sink is created, must - * have permission to write to the destination or else the log - * entries are not exported. For more information, see + * The sink's `writer_identity`, set when the sink is created, must have + * permission to write to the destination or else the log entries are not + * exported. For more information, see * [Exporting Logs with * Sinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). * @@ -1898,9 +1910,9 @@ public Builder setDestination(java.lang.String value) { * "storage.googleapis.com/[GCS_BUCKET]" * "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]" * "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]" - * The sink's `writer_identity`, set when the sink is created, must - * have permission to write to the destination or else the log - * entries are not exported. For more information, see + * The sink's `writer_identity`, set when the sink is created, must have + * permission to write to the destination or else the log entries are not + * exported. For more information, see * [Exporting Logs with * Sinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). * @@ -1925,9 +1937,9 @@ public Builder clearDestination() { * "storage.googleapis.com/[GCS_BUCKET]" * "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]" * "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]" - * The sink's `writer_identity`, set when the sink is created, must - * have permission to write to the destination or else the log - * entries are not exported. For more information, see + * The sink's `writer_identity`, set when the sink is created, must have + * permission to write to the destination or else the log entries are not + * exported. For more information, see * [Exporting Logs with * Sinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). * @@ -1958,8 +1970,9 @@ public Builder setDestinationBytes(com.google.protobuf.ByteString value) { * Optional. An [advanced logs * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The * only exported log entries are those that are in the resource owning the - * sink and that match the filter. For example: - * logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR + * sink and that match the filter. + * For example: + * `logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR` * * * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1984,8 +1997,9 @@ public java.lang.String getFilter() { * Optional. An [advanced logs * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The * only exported log entries are those that are in the resource owning the - * sink and that match the filter. For example: - * logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR + * sink and that match the filter. + * For example: + * `logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR` * * * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2010,8 +2024,9 @@ public com.google.protobuf.ByteString getFilterBytes() { * Optional. An [advanced logs * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The * only exported log entries are those that are in the resource owning the - * sink and that match the filter. For example: - * logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR + * sink and that match the filter. + * For example: + * `logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR` * * * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2035,8 +2050,9 @@ public Builder setFilter(java.lang.String value) { * Optional. An [advanced logs * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The * only exported log entries are those that are in the resource owning the - * sink and that match the filter. For example: - * logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR + * sink and that match the filter. + * For example: + * `logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR` * * * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2056,8 +2072,9 @@ public Builder clearFilter() { * Optional. An [advanced logs * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The * only exported log entries are those that are in the resource owning the - * sink and that match the filter. For example: - * logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR + * sink and that match the filter. + * For example: + * `logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR` * * * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2192,8 +2209,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. If set to True, then this sink is disabled and it does not
-     * export any log entries.
+     * Optional. If set to true, then this sink is disabled and it does not export any log
+     * entries.
      * 
* * bool disabled = 19 [(.google.api.field_behavior) = OPTIONAL]; @@ -2208,8 +2225,8 @@ public boolean getDisabled() { * * *
-     * Optional. If set to True, then this sink is disabled and it does not
-     * export any log entries.
+     * Optional. If set to true, then this sink is disabled and it does not export any log
+     * entries.
      * 
* * bool disabled = 19 [(.google.api.field_behavior) = OPTIONAL]; @@ -2227,8 +2244,8 @@ public Builder setDisabled(boolean value) { * * *
-     * Optional. If set to True, then this sink is disabled and it does not
-     * export any log entries.
+     * Optional. If set to true, then this sink is disabled and it does not export any log
+     * entries.
      * 
* * bool disabled = 19 [(.google.api.field_behavior) = OPTIONAL]; @@ -2262,7 +2279,7 @@ private void ensureExclusionsIsMutable() { * * *
-     * Optional. Log entries that match any of the exclusion filters will not be exported.
+     * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * it will not be exported.
      * 
@@ -2282,7 +2299,7 @@ public java.util.List getExclusionsList() { * * *
-     * Optional. Log entries that match any of the exclusion filters will not be exported.
+     * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * it will not be exported.
      * 
@@ -2302,7 +2319,7 @@ public int getExclusionsCount() { * * *
-     * Optional. Log entries that match any of the exclusion filters will not be exported.
+     * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * it will not be exported.
      * 
@@ -2322,7 +2339,7 @@ public com.google.logging.v2.LogExclusion getExclusions(int index) { * * *
-     * Optional. Log entries that match any of the exclusion filters will not be exported.
+     * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * it will not be exported.
      * 
@@ -2348,7 +2365,7 @@ public Builder setExclusions(int index, com.google.logging.v2.LogExclusion value * * *
-     * Optional. Log entries that match any of the exclusion filters will not be exported.
+     * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * it will not be exported.
      * 
@@ -2372,7 +2389,7 @@ public Builder setExclusions( * * *
-     * Optional. Log entries that match any of the exclusion filters will not be exported.
+     * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * it will not be exported.
      * 
@@ -2398,7 +2415,7 @@ public Builder addExclusions(com.google.logging.v2.LogExclusion value) { * * *
-     * Optional. Log entries that match any of the exclusion filters will not be exported.
+     * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * it will not be exported.
      * 
@@ -2424,7 +2441,7 @@ public Builder addExclusions(int index, com.google.logging.v2.LogExclusion value * * *
-     * Optional. Log entries that match any of the exclusion filters will not be exported.
+     * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * it will not be exported.
      * 
@@ -2447,7 +2464,7 @@ public Builder addExclusions(com.google.logging.v2.LogExclusion.Builder builderF * * *
-     * Optional. Log entries that match any of the exclusion filters will not be exported.
+     * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * it will not be exported.
      * 
@@ -2471,7 +2488,7 @@ public Builder addExclusions( * * *
-     * Optional. Log entries that match any of the exclusion filters will not be exported.
+     * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * it will not be exported.
      * 
@@ -2495,7 +2512,7 @@ public Builder addAllExclusions( * * *
-     * Optional. Log entries that match any of the exclusion filters will not be exported.
+     * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * it will not be exported.
      * 
@@ -2518,7 +2535,7 @@ public Builder clearExclusions() { * * *
-     * Optional. Log entries that match any of the exclusion filters will not be exported.
+     * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * it will not be exported.
      * 
@@ -2541,7 +2558,7 @@ public Builder removeExclusions(int index) { * * *
-     * Optional. Log entries that match any of the exclusion filters will not be exported.
+     * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * it will not be exported.
      * 
@@ -2557,7 +2574,7 @@ public com.google.logging.v2.LogExclusion.Builder getExclusionsBuilder(int index * * *
-     * Optional. Log entries that match any of the exclusion filters will not be exported.
+     * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * it will not be exported.
      * 
@@ -2577,7 +2594,7 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder(int in * * *
-     * Optional. Log entries that match any of the exclusion filters will not be exported.
+     * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * it will not be exported.
      * 
@@ -2598,7 +2615,7 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionsOrBuilder(int in * * *
-     * Optional. Log entries that match any of the exclusion filters will not be exported.
+     * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * it will not be exported.
      * 
@@ -2615,7 +2632,7 @@ public com.google.logging.v2.LogExclusion.Builder addExclusionsBuilder() { * * *
-     * Optional. Log entries that match any of the exclusion filters will not be exported.
+     * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * it will not be exported.
      * 
@@ -2632,7 +2649,7 @@ public com.google.logging.v2.LogExclusion.Builder addExclusionsBuilder(int index * * *
-     * Optional. Log entries that match any of the exclusion filters will not be exported.
+     * Optional. Log entries that match any of these exclusion filters will not be exported.
      * If a log entry is matched by both `filter` and one of `exclusion_filters`
      * it will not be exported.
      * 
@@ -2768,17 +2785,21 @@ public Builder clearOutputVersionFormat() { * * *
-     * Output only. An IAM identity&mdash;a service account or group&mdash;under which Logging
-     * writes the exported log entries to the sink's destination. This field is
-     * set by [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] and
+     * Output only. An IAM identity&mdash;a service account or group&mdash;under which Cloud
+     * Logging writes the exported log entries to the sink's destination. This
+     * field is set by
+     * [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] and
      * [sinks.update][google.logging.v2.ConfigServiceV2.UpdateSink] based on the
      * value of `unique_writer_identity` in those methods.
      * Until you grant this identity write-access to the destination, log entry
-     * exports from this sink will fail. For more information,
-     * see [Granting Access for a
+     * exports from this sink will fail. For more information, see [Granting
+     * Access for a
      * Resource](https://cloud.google.com/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource).
      * Consult the destination service's documentation to determine the
      * appropriate IAM roles to assign to the identity.
+     * Sinks that have a destination that is a log bucket in the same project as
+     * the sink do not have a writer_identity and no additional permissions are
+     * required.
      * 
* * string writer_identity = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2800,17 +2821,21 @@ public java.lang.String getWriterIdentity() { * * *
-     * Output only. An IAM identity&mdash;a service account or group&mdash;under which Logging
-     * writes the exported log entries to the sink's destination. This field is
-     * set by [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] and
+     * Output only. An IAM identity&mdash;a service account or group&mdash;under which Cloud
+     * Logging writes the exported log entries to the sink's destination. This
+     * field is set by
+     * [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] and
      * [sinks.update][google.logging.v2.ConfigServiceV2.UpdateSink] based on the
      * value of `unique_writer_identity` in those methods.
      * Until you grant this identity write-access to the destination, log entry
-     * exports from this sink will fail. For more information,
-     * see [Granting Access for a
+     * exports from this sink will fail. For more information, see [Granting
+     * Access for a
      * Resource](https://cloud.google.com/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource).
      * Consult the destination service's documentation to determine the
      * appropriate IAM roles to assign to the identity.
+     * Sinks that have a destination that is a log bucket in the same project as
+     * the sink do not have a writer_identity and no additional permissions are
+     * required.
      * 
* * string writer_identity = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2832,17 +2857,21 @@ public com.google.protobuf.ByteString getWriterIdentityBytes() { * * *
-     * Output only. An IAM identity&mdash;a service account or group&mdash;under which Logging
-     * writes the exported log entries to the sink's destination. This field is
-     * set by [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] and
+     * Output only. An IAM identity&mdash;a service account or group&mdash;under which Cloud
+     * Logging writes the exported log entries to the sink's destination. This
+     * field is set by
+     * [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] and
      * [sinks.update][google.logging.v2.ConfigServiceV2.UpdateSink] based on the
      * value of `unique_writer_identity` in those methods.
      * Until you grant this identity write-access to the destination, log entry
-     * exports from this sink will fail. For more information,
-     * see [Granting Access for a
+     * exports from this sink will fail. For more information, see [Granting
+     * Access for a
      * Resource](https://cloud.google.com/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource).
      * Consult the destination service's documentation to determine the
      * appropriate IAM roles to assign to the identity.
+     * Sinks that have a destination that is a log bucket in the same project as
+     * the sink do not have a writer_identity and no additional permissions are
+     * required.
      * 
* * string writer_identity = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2863,17 +2892,21 @@ public Builder setWriterIdentity(java.lang.String value) { * * *
-     * Output only. An IAM identity&mdash;a service account or group&mdash;under which Logging
-     * writes the exported log entries to the sink's destination. This field is
-     * set by [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] and
+     * Output only. An IAM identity&mdash;a service account or group&mdash;under which Cloud
+     * Logging writes the exported log entries to the sink's destination. This
+     * field is set by
+     * [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] and
      * [sinks.update][google.logging.v2.ConfigServiceV2.UpdateSink] based on the
      * value of `unique_writer_identity` in those methods.
      * Until you grant this identity write-access to the destination, log entry
-     * exports from this sink will fail. For more information,
-     * see [Granting Access for a
+     * exports from this sink will fail. For more information, see [Granting
+     * Access for a
      * Resource](https://cloud.google.com/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource).
      * Consult the destination service's documentation to determine the
      * appropriate IAM roles to assign to the identity.
+     * Sinks that have a destination that is a log bucket in the same project as
+     * the sink do not have a writer_identity and no additional permissions are
+     * required.
      * 
* * string writer_identity = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2890,17 +2923,21 @@ public Builder clearWriterIdentity() { * * *
-     * Output only. An IAM identity&mdash;a service account or group&mdash;under which Logging
-     * writes the exported log entries to the sink's destination. This field is
-     * set by [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] and
+     * Output only. An IAM identity&mdash;a service account or group&mdash;under which Cloud
+     * Logging writes the exported log entries to the sink's destination. This
+     * field is set by
+     * [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] and
      * [sinks.update][google.logging.v2.ConfigServiceV2.UpdateSink] based on the
      * value of `unique_writer_identity` in those methods.
      * Until you grant this identity write-access to the destination, log entry
-     * exports from this sink will fail. For more information,
-     * see [Granting Access for a
+     * exports from this sink will fail. For more information, see [Granting
+     * Access for a
      * Resource](https://cloud.google.com/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource).
      * Consult the destination service's documentation to determine the
      * appropriate IAM roles to assign to the identity.
+     * Sinks that have a destination that is a log bucket in the same project as
+     * the sink do not have a writer_identity and no additional permissions are
+     * required.
      * 
* * string writer_identity = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2924,18 +2961,20 @@ public Builder setWriterIdentityBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. This field applies only to sinks owned by organizations and
-     * folders. If the field is false, the default, only the logs owned by the
-     * sink's parent resource are available for export. If the field is true, then
-     * logs from all the projects, folders, and billing accounts contained in the
+     * Optional. This field applies only to sinks owned by organizations and folders. If the
+     * field is false, the default, only the logs owned by the sink's parent
+     * resource are available for export. If the field is true, then log entries
+     * from all the projects, folders, and billing accounts contained in the
      * sink's parent resource are also available for export. Whether a particular
      * log entry from the children is exported depends on the sink's filter
-     * expression. For example, if this field is true, then the filter
+     * expression.
+     * For example, if this field is true, then the filter
      * `resource.type=gce_instance` would export all Compute Engine VM instance
-     * log entries from all projects in the sink's parent. To only export entries
-     * from certain child projects, filter on the project part of the log name:
-     *     logName:("projects/test-project1/" OR "projects/test-project2/") AND
-     *     resource.type=gce_instance
+     * log entries from all projects in the sink's parent.
+     * To only export entries from certain child projects, filter on the project
+     * part of the log name:
+     *   logName:("projects/test-project1/" OR "projects/test-project2/") AND
+     *   resource.type=gce_instance
      * 
* * bool include_children = 9 [(.google.api.field_behavior) = OPTIONAL]; @@ -2950,18 +2989,20 @@ public boolean getIncludeChildren() { * * *
-     * Optional. This field applies only to sinks owned by organizations and
-     * folders. If the field is false, the default, only the logs owned by the
-     * sink's parent resource are available for export. If the field is true, then
-     * logs from all the projects, folders, and billing accounts contained in the
+     * Optional. This field applies only to sinks owned by organizations and folders. If the
+     * field is false, the default, only the logs owned by the sink's parent
+     * resource are available for export. If the field is true, then log entries
+     * from all the projects, folders, and billing accounts contained in the
      * sink's parent resource are also available for export. Whether a particular
      * log entry from the children is exported depends on the sink's filter
-     * expression. For example, if this field is true, then the filter
+     * expression.
+     * For example, if this field is true, then the filter
      * `resource.type=gce_instance` would export all Compute Engine VM instance
-     * log entries from all projects in the sink's parent. To only export entries
-     * from certain child projects, filter on the project part of the log name:
-     *     logName:("projects/test-project1/" OR "projects/test-project2/") AND
-     *     resource.type=gce_instance
+     * log entries from all projects in the sink's parent.
+     * To only export entries from certain child projects, filter on the project
+     * part of the log name:
+     *   logName:("projects/test-project1/" OR "projects/test-project2/") AND
+     *   resource.type=gce_instance
      * 
* * bool include_children = 9 [(.google.api.field_behavior) = OPTIONAL]; @@ -2979,18 +3020,20 @@ public Builder setIncludeChildren(boolean value) { * * *
-     * Optional. This field applies only to sinks owned by organizations and
-     * folders. If the field is false, the default, only the logs owned by the
-     * sink's parent resource are available for export. If the field is true, then
-     * logs from all the projects, folders, and billing accounts contained in the
+     * Optional. This field applies only to sinks owned by organizations and folders. If the
+     * field is false, the default, only the logs owned by the sink's parent
+     * resource are available for export. If the field is true, then log entries
+     * from all the projects, folders, and billing accounts contained in the
      * sink's parent resource are also available for export. Whether a particular
      * log entry from the children is exported depends on the sink's filter
-     * expression. For example, if this field is true, then the filter
+     * expression.
+     * For example, if this field is true, then the filter
      * `resource.type=gce_instance` would export all Compute Engine VM instance
-     * log entries from all projects in the sink's parent. To only export entries
-     * from certain child projects, filter on the project part of the log name:
-     *     logName:("projects/test-project1/" OR "projects/test-project2/") AND
-     *     resource.type=gce_instance
+     * log entries from all projects in the sink's parent.
+     * To only export entries from certain child projects, filter on the project
+     * part of the log name:
+     *   logName:("projects/test-project1/" OR "projects/test-project2/") AND
+     *   resource.type=gce_instance
      * 
* * bool include_children = 9 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSinkOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSinkOrBuilder.java index 081eab350..3982231a6 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSinkOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSinkOrBuilder.java @@ -27,9 +27,9 @@ public interface LogSinkOrBuilder * * *
-   * Required. The client-assigned sink identifier, unique within the project. Example:
-   * `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited to 100
-   * characters and can include only the following characters: upper and
+   * Required. The client-assigned sink identifier, unique within the project.
+   * For example: `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited
+   * to 100 characters and can include only the following characters: upper and
    * lower-case alphanumeric characters, underscores, hyphens, and periods.
    * First character has to be alphanumeric.
    * 
@@ -43,9 +43,9 @@ public interface LogSinkOrBuilder * * *
-   * Required. The client-assigned sink identifier, unique within the project. Example:
-   * `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited to 100
-   * characters and can include only the following characters: upper and
+   * Required. The client-assigned sink identifier, unique within the project.
+   * For example: `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited
+   * to 100 characters and can include only the following characters: upper and
    * lower-case alphanumeric characters, underscores, hyphens, and periods.
    * First character has to be alphanumeric.
    * 
@@ -64,9 +64,9 @@ public interface LogSinkOrBuilder * "storage.googleapis.com/[GCS_BUCKET]" * "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]" * "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]" - * The sink's `writer_identity`, set when the sink is created, must - * have permission to write to the destination or else the log - * entries are not exported. For more information, see + * The sink's `writer_identity`, set when the sink is created, must have + * permission to write to the destination or else the log entries are not + * exported. For more information, see * [Exporting Logs with * Sinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). * @@ -86,9 +86,9 @@ public interface LogSinkOrBuilder * "storage.googleapis.com/[GCS_BUCKET]" * "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]" * "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]" - * The sink's `writer_identity`, set when the sink is created, must - * have permission to write to the destination or else the log - * entries are not exported. For more information, see + * The sink's `writer_identity`, set when the sink is created, must have + * permission to write to the destination or else the log entries are not + * exported. For more information, see * [Exporting Logs with * Sinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). * @@ -108,8 +108,9 @@ public interface LogSinkOrBuilder * Optional. An [advanced logs * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The * only exported log entries are those that are in the resource owning the - * sink and that match the filter. For example: - * logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR + * sink and that match the filter. + * For example: + * `logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR` * * * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -124,8 +125,9 @@ public interface LogSinkOrBuilder * Optional. An [advanced logs * filter](https://cloud.google.com/logging/docs/view/advanced-queries). The * only exported log entries are those that are in the resource owning the - * sink and that match the filter. For example: - * logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR + * sink and that match the filter. + * For example: + * `logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR` * * * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -165,8 +167,8 @@ public interface LogSinkOrBuilder * * *
-   * Optional. If set to True, then this sink is disabled and it does not
-   * export any log entries.
+   * Optional. If set to true, then this sink is disabled and it does not export any log
+   * entries.
    * 
* * bool disabled = 19 [(.google.api.field_behavior) = OPTIONAL]; @@ -179,7 +181,7 @@ public interface LogSinkOrBuilder * * *
-   * Optional. Log entries that match any of the exclusion filters will not be exported.
+   * Optional. Log entries that match any of these exclusion filters will not be exported.
    * If a log entry is matched by both `filter` and one of `exclusion_filters`
    * it will not be exported.
    * 
@@ -193,7 +195,7 @@ public interface LogSinkOrBuilder * * *
-   * Optional. Log entries that match any of the exclusion filters will not be exported.
+   * Optional. Log entries that match any of these exclusion filters will not be exported.
    * If a log entry is matched by both `filter` and one of `exclusion_filters`
    * it will not be exported.
    * 
@@ -207,7 +209,7 @@ public interface LogSinkOrBuilder * * *
-   * Optional. Log entries that match any of the exclusion filters will not be exported.
+   * Optional. Log entries that match any of these exclusion filters will not be exported.
    * If a log entry is matched by both `filter` and one of `exclusion_filters`
    * it will not be exported.
    * 
@@ -221,7 +223,7 @@ public interface LogSinkOrBuilder * * *
-   * Optional. Log entries that match any of the exclusion filters will not be exported.
+   * Optional. Log entries that match any of these exclusion filters will not be exported.
    * If a log entry is matched by both `filter` and one of `exclusion_filters`
    * it will not be exported.
    * 
@@ -236,7 +238,7 @@ public interface LogSinkOrBuilder * * *
-   * Optional. Log entries that match any of the exclusion filters will not be exported.
+   * Optional. Log entries that match any of these exclusion filters will not be exported.
    * If a log entry is matched by both `filter` and one of `exclusion_filters`
    * it will not be exported.
    * 
@@ -280,17 +282,21 @@ public interface LogSinkOrBuilder * * *
-   * Output only. An IAM identity&mdash;a service account or group&mdash;under which Logging
-   * writes the exported log entries to the sink's destination. This field is
-   * set by [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] and
+   * Output only. An IAM identity&mdash;a service account or group&mdash;under which Cloud
+   * Logging writes the exported log entries to the sink's destination. This
+   * field is set by
+   * [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] and
    * [sinks.update][google.logging.v2.ConfigServiceV2.UpdateSink] based on the
    * value of `unique_writer_identity` in those methods.
    * Until you grant this identity write-access to the destination, log entry
-   * exports from this sink will fail. For more information,
-   * see [Granting Access for a
+   * exports from this sink will fail. For more information, see [Granting
+   * Access for a
    * Resource](https://cloud.google.com/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource).
    * Consult the destination service's documentation to determine the
    * appropriate IAM roles to assign to the identity.
+   * Sinks that have a destination that is a log bucket in the same project as
+   * the sink do not have a writer_identity and no additional permissions are
+   * required.
    * 
* * string writer_identity = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -302,17 +308,21 @@ public interface LogSinkOrBuilder * * *
-   * Output only. An IAM identity&mdash;a service account or group&mdash;under which Logging
-   * writes the exported log entries to the sink's destination. This field is
-   * set by [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] and
+   * Output only. An IAM identity&mdash;a service account or group&mdash;under which Cloud
+   * Logging writes the exported log entries to the sink's destination. This
+   * field is set by
+   * [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] and
    * [sinks.update][google.logging.v2.ConfigServiceV2.UpdateSink] based on the
    * value of `unique_writer_identity` in those methods.
    * Until you grant this identity write-access to the destination, log entry
-   * exports from this sink will fail. For more information,
-   * see [Granting Access for a
+   * exports from this sink will fail. For more information, see [Granting
+   * Access for a
    * Resource](https://cloud.google.com/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource).
    * Consult the destination service's documentation to determine the
    * appropriate IAM roles to assign to the identity.
+   * Sinks that have a destination that is a log bucket in the same project as
+   * the sink do not have a writer_identity and no additional permissions are
+   * required.
    * 
* * string writer_identity = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -325,18 +335,20 @@ public interface LogSinkOrBuilder * * *
-   * Optional. This field applies only to sinks owned by organizations and
-   * folders. If the field is false, the default, only the logs owned by the
-   * sink's parent resource are available for export. If the field is true, then
-   * logs from all the projects, folders, and billing accounts contained in the
+   * Optional. This field applies only to sinks owned by organizations and folders. If the
+   * field is false, the default, only the logs owned by the sink's parent
+   * resource are available for export. If the field is true, then log entries
+   * from all the projects, folders, and billing accounts contained in the
    * sink's parent resource are also available for export. Whether a particular
    * log entry from the children is exported depends on the sink's filter
-   * expression. For example, if this field is true, then the filter
+   * expression.
+   * For example, if this field is true, then the filter
    * `resource.type=gce_instance` would export all Compute Engine VM instance
-   * log entries from all projects in the sink's parent. To only export entries
-   * from certain child projects, filter on the project part of the log name:
-   *     logName:("projects/test-project1/" OR "projects/test-project2/") AND
-   *     resource.type=gce_instance
+   * log entries from all projects in the sink's parent.
+   * To only export entries from certain child projects, filter on the project
+   * part of the log name:
+   *   logName:("projects/test-project1/" OR "projects/test-project2/") AND
+   *   resource.type=gce_instance
    * 
* * bool include_children = 9 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplit.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplit.java new file mode 100644 index 000000000..8892965de --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplit.java @@ -0,0 +1,835 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/v2/log_entry.proto + +package com.google.logging.v2; + +/** + * + * + *
+ * Additional information used to correlate multiple log entries. Used when a
+ * single LogEntry would exceed the Google Cloud Logging size limit and is
+ * split across multiple log entries.
+ * 
+ * + * Protobuf type {@code google.logging.v2.LogSplit} + */ +public final class LogSplit extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.logging.v2.LogSplit) + LogSplitOrBuilder { + private static final long serialVersionUID = 0L; + // Use LogSplit.newBuilder() to construct. + private LogSplit(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LogSplit() { + uid_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LogSplit(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private LogSplit( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + uid_ = s; + break; + } + case 16: + { + index_ = input.readInt32(); + break; + } + case 24: + { + totalSplits_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LogEntryProto + .internal_static_google_logging_v2_LogSplit_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.logging.v2.LogEntryProto + .internal_static_google_logging_v2_LogSplit_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.logging.v2.LogSplit.class, com.google.logging.v2.LogSplit.Builder.class); + } + + public static final int UID_FIELD_NUMBER = 1; + private volatile java.lang.Object uid_; + /** + * + * + *
+   * A globally unique identifier for all log entries in a sequence of split log
+   * entries. All log entries with the same |LogSplit.uid| are assumed to be
+   * part of the same sequence of split log entries.
+   * 
+ * + * string uid = 1; + * + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } + } + /** + * + * + *
+   * A globally unique identifier for all log entries in a sequence of split log
+   * entries. All log entries with the same |LogSplit.uid| are assumed to be
+   * part of the same sequence of split log entries.
+   * 
+ * + * string uid = 1; + * + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INDEX_FIELD_NUMBER = 2; + private int index_; + /** + * + * + *
+   * The index of this LogEntry in the sequence of split log entries. Log
+   * entries are given |index| values 0, 1, ..., n-1 for a sequence of n log
+   * entries.
+   * 
+ * + * int32 index = 2; + * + * @return The index. + */ + @java.lang.Override + public int getIndex() { + return index_; + } + + public static final int TOTAL_SPLITS_FIELD_NUMBER = 3; + private int totalSplits_; + /** + * + * + *
+   * The total number of log entries that the original LogEntry was split into.
+   * 
+ * + * int32 total_splits = 3; + * + * @return The totalSplits. + */ + @java.lang.Override + public int getTotalSplits() { + return totalSplits_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uid_); + } + if (index_ != 0) { + output.writeInt32(2, index_); + } + if (totalSplits_ != 0) { + output.writeInt32(3, totalSplits_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uid_); + } + if (index_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, index_); + } + if (totalSplits_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSplits_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.logging.v2.LogSplit)) { + return super.equals(obj); + } + com.google.logging.v2.LogSplit other = (com.google.logging.v2.LogSplit) obj; + + if (!getUid().equals(other.getUid())) return false; + if (getIndex() != other.getIndex()) return false; + if (getTotalSplits() != other.getTotalSplits()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + hash = (37 * hash) + INDEX_FIELD_NUMBER; + hash = (53 * hash) + getIndex(); + hash = (37 * hash) + TOTAL_SPLITS_FIELD_NUMBER; + hash = (53 * hash) + getTotalSplits(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.logging.v2.LogSplit parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.LogSplit parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.LogSplit parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.LogSplit parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.LogSplit parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.LogSplit parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.LogSplit parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.logging.v2.LogSplit parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.logging.v2.LogSplit parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.logging.v2.LogSplit parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.logging.v2.LogSplit parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.logging.v2.LogSplit parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.logging.v2.LogSplit prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Additional information used to correlate multiple log entries. Used when a
+   * single LogEntry would exceed the Google Cloud Logging size limit and is
+   * split across multiple log entries.
+   * 
+ * + * Protobuf type {@code google.logging.v2.LogSplit} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.logging.v2.LogSplit) + com.google.logging.v2.LogSplitOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LogEntryProto + .internal_static_google_logging_v2_LogSplit_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.logging.v2.LogEntryProto + .internal_static_google_logging_v2_LogSplit_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.logging.v2.LogSplit.class, com.google.logging.v2.LogSplit.Builder.class); + } + + // Construct using com.google.logging.v2.LogSplit.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + uid_ = ""; + + index_ = 0; + + totalSplits_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LogEntryProto + .internal_static_google_logging_v2_LogSplit_descriptor; + } + + @java.lang.Override + public com.google.logging.v2.LogSplit getDefaultInstanceForType() { + return com.google.logging.v2.LogSplit.getDefaultInstance(); + } + + @java.lang.Override + public com.google.logging.v2.LogSplit build() { + com.google.logging.v2.LogSplit result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.logging.v2.LogSplit buildPartial() { + com.google.logging.v2.LogSplit result = new com.google.logging.v2.LogSplit(this); + result.uid_ = uid_; + result.index_ = index_; + result.totalSplits_ = totalSplits_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.logging.v2.LogSplit) { + return mergeFrom((com.google.logging.v2.LogSplit) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.logging.v2.LogSplit other) { + if (other == com.google.logging.v2.LogSplit.getDefaultInstance()) return this; + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + onChanged(); + } + if (other.getIndex() != 0) { + setIndex(other.getIndex()); + } + if (other.getTotalSplits() != 0) { + setTotalSplits(other.getTotalSplits()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.logging.v2.LogSplit parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.logging.v2.LogSplit) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object uid_ = ""; + /** + * + * + *
+     * A globally unique identifier for all log entries in a sequence of split log
+     * entries. All log entries with the same |LogSplit.uid| are assumed to be
+     * part of the same sequence of split log entries.
+     * 
+ * + * string uid = 1; + * + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A globally unique identifier for all log entries in a sequence of split log
+     * entries. All log entries with the same |LogSplit.uid| are assumed to be
+     * part of the same sequence of split log entries.
+     * 
+ * + * string uid = 1; + * + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A globally unique identifier for all log entries in a sequence of split log
+     * entries. All log entries with the same |LogSplit.uid| are assumed to be
+     * part of the same sequence of split log entries.
+     * 
+ * + * string uid = 1; + * + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + uid_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A globally unique identifier for all log entries in a sequence of split log
+     * entries. All log entries with the same |LogSplit.uid| are assumed to be
+     * part of the same sequence of split log entries.
+     * 
+ * + * string uid = 1; + * + * @return This builder for chaining. + */ + public Builder clearUid() { + + uid_ = getDefaultInstance().getUid(); + onChanged(); + return this; + } + /** + * + * + *
+     * A globally unique identifier for all log entries in a sequence of split log
+     * entries. All log entries with the same |LogSplit.uid| are assumed to be
+     * part of the same sequence of split log entries.
+     * 
+ * + * string uid = 1; + * + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + uid_ = value; + onChanged(); + return this; + } + + private int index_; + /** + * + * + *
+     * The index of this LogEntry in the sequence of split log entries. Log
+     * entries are given |index| values 0, 1, ..., n-1 for a sequence of n log
+     * entries.
+     * 
+ * + * int32 index = 2; + * + * @return The index. + */ + @java.lang.Override + public int getIndex() { + return index_; + } + /** + * + * + *
+     * The index of this LogEntry in the sequence of split log entries. Log
+     * entries are given |index| values 0, 1, ..., n-1 for a sequence of n log
+     * entries.
+     * 
+ * + * int32 index = 2; + * + * @param value The index to set. + * @return This builder for chaining. + */ + public Builder setIndex(int value) { + + index_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The index of this LogEntry in the sequence of split log entries. Log
+     * entries are given |index| values 0, 1, ..., n-1 for a sequence of n log
+     * entries.
+     * 
+ * + * int32 index = 2; + * + * @return This builder for chaining. + */ + public Builder clearIndex() { + + index_ = 0; + onChanged(); + return this; + } + + private int totalSplits_; + /** + * + * + *
+     * The total number of log entries that the original LogEntry was split into.
+     * 
+ * + * int32 total_splits = 3; + * + * @return The totalSplits. + */ + @java.lang.Override + public int getTotalSplits() { + return totalSplits_; + } + /** + * + * + *
+     * The total number of log entries that the original LogEntry was split into.
+     * 
+ * + * int32 total_splits = 3; + * + * @param value The totalSplits to set. + * @return This builder for chaining. + */ + public Builder setTotalSplits(int value) { + + totalSplits_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The total number of log entries that the original LogEntry was split into.
+     * 
+ * + * int32 total_splits = 3; + * + * @return This builder for chaining. + */ + public Builder clearTotalSplits() { + + totalSplits_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.logging.v2.LogSplit) + } + + // @@protoc_insertion_point(class_scope:google.logging.v2.LogSplit) + private static final com.google.logging.v2.LogSplit DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.logging.v2.LogSplit(); + } + + public static com.google.logging.v2.LogSplit getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LogSplit parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LogSplit(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.logging.v2.LogSplit getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplitOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplitOrBuilder.java new file mode 100644 index 000000000..593337a0b --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogSplitOrBuilder.java @@ -0,0 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/v2/log_entry.proto + +package com.google.logging.v2; + +public interface LogSplitOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.logging.v2.LogSplit) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A globally unique identifier for all log entries in a sequence of split log
+   * entries. All log entries with the same |LogSplit.uid| are assumed to be
+   * part of the same sequence of split log entries.
+   * 
+ * + * string uid = 1; + * + * @return The uid. + */ + java.lang.String getUid(); + /** + * + * + *
+   * A globally unique identifier for all log entries in a sequence of split log
+   * entries. All log entries with the same |LogSplit.uid| are assumed to be
+   * part of the same sequence of split log entries.
+   * 
+ * + * string uid = 1; + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); + + /** + * + * + *
+   * The index of this LogEntry in the sequence of split log entries. Log
+   * entries are given |index| values 0, 1, ..., n-1 for a sequence of n log
+   * entries.
+   * 
+ * + * int32 index = 2; + * + * @return The index. + */ + int getIndex(); + + /** + * + * + *
+   * The total number of log entries that the original LogEntry was split into.
+   * 
+ * + * int32 total_splits = 3; + * + * @return The totalSplits. + */ + int getTotalSplits(); +} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogView.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogView.java index 5698e668d..5071f0eb1 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogView.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogView.java @@ -22,7 +22,7 @@ * * *
- * Describes a view over logs in a bucket.
+ * Describes a view over log entries in a bucket.
  * 
* * Protobuf type {@code google.logging.v2.LogView} @@ -163,8 +163,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * The resource name of the view.
-   * For example
-   * "projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view
+   * For example:
+   *   `projects/my-project/locations/global/buckets/my-bucket/views/my-view`
    * 
* * string name = 1; @@ -188,8 +188,8 @@ public java.lang.String getName() { * *
    * The resource name of the view.
-   * For example
-   * "projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view
+   * For example:
+   *   `projects/my-project/locations/global/buckets/my-bucket/views/my-view`
    * 
* * string name = 1; @@ -363,13 +363,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * *
    * Filter that restricts which log entries in a bucket are visible in this
-   * view. Filters are restricted to be a logical AND of ==/!= of any of the
+   * view.
+   * Filters are restricted to be a logical AND of ==/!= of any of the
    * following:
-   *   originating project/folder/organization/billing account.
-   *   resource type
-   *   log id
-   * Example: SOURCE("projects/myproject") AND resource.type = "gce_instance"
-   *             AND LOG_ID("stdout")
+   *   - originating project/folder/organization/billing account.
+   *   - resource type
+   *   - log id
+   * For example:
+   *   SOURCE("projects/myproject") AND resource.type = "gce_instance"
+   *                                AND LOG_ID("stdout")
    * 
* * string filter = 7; @@ -393,13 +395,15 @@ public java.lang.String getFilter() { * *
    * Filter that restricts which log entries in a bucket are visible in this
-   * view. Filters are restricted to be a logical AND of ==/!= of any of the
+   * view.
+   * Filters are restricted to be a logical AND of ==/!= of any of the
    * following:
-   *   originating project/folder/organization/billing account.
-   *   resource type
-   *   log id
-   * Example: SOURCE("projects/myproject") AND resource.type = "gce_instance"
-   *             AND LOG_ID("stdout")
+   *   - originating project/folder/organization/billing account.
+   *   - resource type
+   *   - log id
+   * For example:
+   *   SOURCE("projects/myproject") AND resource.type = "gce_instance"
+   *                                AND LOG_ID("stdout")
    * 
* * string filter = 7; @@ -626,7 +630,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Describes a view over logs in a bucket.
+   * Describes a view over log entries in a bucket.
    * 
* * Protobuf type {@code google.logging.v2.LogView} @@ -825,8 +829,8 @@ public Builder mergeFrom( * *
      * The resource name of the view.
-     * For example
-     * "projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view
+     * For example:
+     *   `projects/my-project/locations/global/buckets/my-bucket/views/my-view`
      * 
* * string name = 1; @@ -849,8 +853,8 @@ public java.lang.String getName() { * *
      * The resource name of the view.
-     * For example
-     * "projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view
+     * For example:
+     *   `projects/my-project/locations/global/buckets/my-bucket/views/my-view`
      * 
* * string name = 1; @@ -873,8 +877,8 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * The resource name of the view.
-     * For example
-     * "projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view
+     * For example:
+     *   `projects/my-project/locations/global/buckets/my-bucket/views/my-view`
      * 
* * string name = 1; @@ -896,8 +900,8 @@ public Builder setName(java.lang.String value) { * *
      * The resource name of the view.
-     * For example
-     * "projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view
+     * For example:
+     *   `projects/my-project/locations/global/buckets/my-bucket/views/my-view`
      * 
* * string name = 1; @@ -915,8 +919,8 @@ public Builder clearName() { * *
      * The resource name of the view.
-     * For example
-     * "projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view
+     * For example:
+     *   `projects/my-project/locations/global/buckets/my-bucket/views/my-view`
      * 
* * string name = 1; @@ -1449,13 +1453,15 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * *
      * Filter that restricts which log entries in a bucket are visible in this
-     * view. Filters are restricted to be a logical AND of ==/!= of any of the
+     * view.
+     * Filters are restricted to be a logical AND of ==/!= of any of the
      * following:
-     *   originating project/folder/organization/billing account.
-     *   resource type
-     *   log id
-     * Example: SOURCE("projects/myproject") AND resource.type = "gce_instance"
-     *             AND LOG_ID("stdout")
+     *   - originating project/folder/organization/billing account.
+     *   - resource type
+     *   - log id
+     * For example:
+     *   SOURCE("projects/myproject") AND resource.type = "gce_instance"
+     *                                AND LOG_ID("stdout")
      * 
* * string filter = 7; @@ -1478,13 +1484,15 @@ public java.lang.String getFilter() { * *
      * Filter that restricts which log entries in a bucket are visible in this
-     * view. Filters are restricted to be a logical AND of ==/!= of any of the
+     * view.
+     * Filters are restricted to be a logical AND of ==/!= of any of the
      * following:
-     *   originating project/folder/organization/billing account.
-     *   resource type
-     *   log id
-     * Example: SOURCE("projects/myproject") AND resource.type = "gce_instance"
-     *             AND LOG_ID("stdout")
+     *   - originating project/folder/organization/billing account.
+     *   - resource type
+     *   - log id
+     * For example:
+     *   SOURCE("projects/myproject") AND resource.type = "gce_instance"
+     *                                AND LOG_ID("stdout")
      * 
* * string filter = 7; @@ -1507,13 +1515,15 @@ public com.google.protobuf.ByteString getFilterBytes() { * *
      * Filter that restricts which log entries in a bucket are visible in this
-     * view. Filters are restricted to be a logical AND of ==/!= of any of the
+     * view.
+     * Filters are restricted to be a logical AND of ==/!= of any of the
      * following:
-     *   originating project/folder/organization/billing account.
-     *   resource type
-     *   log id
-     * Example: SOURCE("projects/myproject") AND resource.type = "gce_instance"
-     *             AND LOG_ID("stdout")
+     *   - originating project/folder/organization/billing account.
+     *   - resource type
+     *   - log id
+     * For example:
+     *   SOURCE("projects/myproject") AND resource.type = "gce_instance"
+     *                                AND LOG_ID("stdout")
      * 
* * string filter = 7; @@ -1535,13 +1545,15 @@ public Builder setFilter(java.lang.String value) { * *
      * Filter that restricts which log entries in a bucket are visible in this
-     * view. Filters are restricted to be a logical AND of ==/!= of any of the
+     * view.
+     * Filters are restricted to be a logical AND of ==/!= of any of the
      * following:
-     *   originating project/folder/organization/billing account.
-     *   resource type
-     *   log id
-     * Example: SOURCE("projects/myproject") AND resource.type = "gce_instance"
-     *             AND LOG_ID("stdout")
+     *   - originating project/folder/organization/billing account.
+     *   - resource type
+     *   - log id
+     * For example:
+     *   SOURCE("projects/myproject") AND resource.type = "gce_instance"
+     *                                AND LOG_ID("stdout")
      * 
* * string filter = 7; @@ -1559,13 +1571,15 @@ public Builder clearFilter() { * *
      * Filter that restricts which log entries in a bucket are visible in this
-     * view. Filters are restricted to be a logical AND of ==/!= of any of the
+     * view.
+     * Filters are restricted to be a logical AND of ==/!= of any of the
      * following:
-     *   originating project/folder/organization/billing account.
-     *   resource type
-     *   log id
-     * Example: SOURCE("projects/myproject") AND resource.type = "gce_instance"
-     *             AND LOG_ID("stdout")
+     *   - originating project/folder/organization/billing account.
+     *   - resource type
+     *   - log id
+     * For example:
+     *   SOURCE("projects/myproject") AND resource.type = "gce_instance"
+     *                                AND LOG_ID("stdout")
      * 
* * string filter = 7; diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogViewOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogViewOrBuilder.java index 0a8cfbdc0..e0e8e821b 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogViewOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LogViewOrBuilder.java @@ -28,8 +28,8 @@ public interface LogViewOrBuilder * *
    * The resource name of the view.
-   * For example
-   * "projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view
+   * For example:
+   *   `projects/my-project/locations/global/buckets/my-bucket/views/my-view`
    * 
* * string name = 1; @@ -42,8 +42,8 @@ public interface LogViewOrBuilder * *
    * The resource name of the view.
-   * For example
-   * "projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view
+   * For example:
+   *   `projects/my-project/locations/global/buckets/my-bucket/views/my-view`
    * 
* * string name = 1; @@ -158,13 +158,15 @@ public interface LogViewOrBuilder * *
    * Filter that restricts which log entries in a bucket are visible in this
-   * view. Filters are restricted to be a logical AND of ==/!= of any of the
+   * view.
+   * Filters are restricted to be a logical AND of ==/!= of any of the
    * following:
-   *   originating project/folder/organization/billing account.
-   *   resource type
-   *   log id
-   * Example: SOURCE("projects/myproject") AND resource.type = "gce_instance"
-   *             AND LOG_ID("stdout")
+   *   - originating project/folder/organization/billing account.
+   *   - resource type
+   *   - log id
+   * For example:
+   *   SOURCE("projects/myproject") AND resource.type = "gce_instance"
+   *                                AND LOG_ID("stdout")
    * 
* * string filter = 7; @@ -177,13 +179,15 @@ public interface LogViewOrBuilder * *
    * Filter that restricts which log entries in a bucket are visible in this
-   * view. Filters are restricted to be a logical AND of ==/!= of any of the
+   * view.
+   * Filters are restricted to be a logical AND of ==/!= of any of the
    * following:
-   *   originating project/folder/organization/billing account.
-   *   resource type
-   *   log id
-   * Example: SOURCE("projects/myproject") AND resource.type = "gce_instance"
-   *             AND LOG_ID("stdout")
+   *   - originating project/folder/organization/billing account.
+   *   - resource type
+   *   - log id
+   * For example:
+   *   SOURCE("projects/myproject") AND resource.type = "gce_instance"
+   *                                AND LOG_ID("stdout")
    * 
* * string filter = 7; diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingConfigProto.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingConfigProto.java index ce795e9e8..e2cb05a99 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingConfigProto.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingConfigProto.java @@ -159,6 +159,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_logging_v2_CmekSettings_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_logging_v2_CmekSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_GetSettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_GetSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_UpdateSettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_UpdateSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_Settings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_Settings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_CopyLogEntriesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_CopyLogEntriesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_CopyLogEntriesMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_CopyLogEntriesMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_CopyLogEntriesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_CopyLogEntriesResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -169,387 +193,441 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n&google/logging/v2/logging_config.proto" - + "\022\021google.logging.v2\032\027google/api/client.p" - + "roto\032\037google/api/field_behavior.proto\032\031g" - + "oogle/api/resource.proto\032\036google/protobu" - + "f/duration.proto\032\033google/protobuf/empty." - + "proto\032 google/protobuf/field_mask.proto\032" - + "\037google/protobuf/timestamp.proto\032\034google" - + "/api/annotations.proto\"\253\004\n\tLogBucket\022\014\n\004" - + "name\030\001 \001(\t\022\023\n\013description\030\003 \001(\t\0224\n\013creat" - + "e_time\030\004 \001(\0132\032.google.protobuf.Timestamp" - + "B\003\340A\003\0224\n\013update_time\030\005 \001(\0132\032.google.prot" - + "obuf.TimestampB\003\340A\003\022\026\n\016retention_days\030\013 " - + "\001(\005\022\016\n\006locked\030\t \001(\010\022?\n\017lifecycle_state\030\014" - + " \001(\0162!.google.logging.v2.LifecycleStateB" - + "\003\340A\003:\245\002\352A\241\002\n logging.googleapis.com/LogB" - + "ucket\0228projects/{project}/locations/{loc" - + "ation}/buckets/{bucket}\022Borganizations/{" - + "organization}/locations/{location}/bucke" - + "ts/{bucket}\0226folders/{folder}/locations/" - + "{location}/buckets/{bucket}\022GbillingAcco" - + "unts/{billing_account}/locations/{locati" - + "on}/buckets/{bucket}\"\202\004\n\007LogView\022\014\n\004name" - + "\030\001 \001(\t\022\023\n\013description\030\003 \001(\t\0224\n\013create_ti" - + "me\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A" - + "\003\0224\n\013update_time\030\005 \001(\0132\032.google.protobuf" - + ".TimestampB\003\340A\003\022\016\n\006filter\030\007 \001(\t:\327\002\352A\323\002\n\036" - + "logging.googleapis.com/LogView\022Eprojects" - + "/{project}/locations/{location}/buckets/" - + "{bucket}/views/{view}\022Oorganizations/{or" - + "ganization}/locations/{location}/buckets" - + "/{bucket}/views/{view}\022Cfolders/{folder}" - + "/locations/{location}/buckets/{bucket}/v" - + "iews/{view}\022TbillingAccounts/{billing_ac" - + "count}/locations/{location}/buckets/{buc" - + "ket}/views/{view}\"\205\006\n\007LogSink\022\021\n\004name\030\001 " - + "\001(\tB\003\340A\002\022\036\n\013destination\030\003 \001(\tB\t\340A\002\372A\003\n\001*" - + "\022\023\n\006filter\030\005 \001(\tB\003\340A\001\022\030\n\013description\030\022 \001" - + "(\tB\003\340A\001\022\025\n\010disabled\030\023 \001(\010B\003\340A\001\0228\n\nexclus" - + "ions\030\020 \003(\0132\037.google.logging.v2.LogExclus" - + "ionB\003\340A\001\022K\n\025output_version_format\030\006 \001(\0162" - + "(.google.logging.v2.LogSink.VersionForma" - + "tB\002\030\001\022\034\n\017writer_identity\030\010 \001(\tB\003\340A\003\022\035\n\020i" - + "nclude_children\030\t \001(\010B\003\340A\001\022C\n\020bigquery_o" - + "ptions\030\014 \001(\0132\".google.logging.v2.BigQuer" - + "yOptionsB\003\340A\001H\000\0224\n\013create_time\030\r \001(\0132\032.g" - + "oogle.protobuf.TimestampB\003\340A\003\0224\n\013update_" - + "time\030\016 \001(\0132\032.google.protobuf.TimestampB\003" - + "\340A\003\"?\n\rVersionFormat\022\036\n\032VERSION_FORMAT_U" - + "NSPECIFIED\020\000\022\006\n\002V2\020\001\022\006\n\002V1\020\002:\277\001\352A\273\001\n\036log" - + "ging.googleapis.com/LogSink\022\037projects/{p" - + "roject}/sinks/{sink}\022)organizations/{org" - + "anization}/sinks/{sink}\022\035folders/{folder" - + "}/sinks/{sink}\022.billingAccounts/{billing" - + "_account}/sinks/{sink}B\t\n\007options\"g\n\017Big" - + "QueryOptions\022#\n\026use_partitioned_tables\030\001" - + " \001(\010B\003\340A\001\022/\n\"uses_timestamp_column_parti" - + "tioning\030\003 \001(\010B\003\340A\003\"\177\n\022ListBucketsRequest" - + "\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 logging.google" - + "apis.com/LogBucket\022\027\n\npage_token\030\002 \001(\tB\003" - + "\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\"]\n\023ListBucke" - + "tsResponse\022-\n\007buckets\030\001 \003(\0132\034.google.log" - + "ging.v2.LogBucket\022\027\n\017next_page_token\030\002 \001" - + "(\t\"\232\001\n\023CreateBucketRequest\0228\n\006parent\030\001 \001" - + "(\tB(\340A\002\372A\"\022 logging.googleapis.com/LogBu" - + "cket\022\026\n\tbucket_id\030\002 \001(\tB\003\340A\002\0221\n\006bucket\030\003" - + " \001(\0132\034.google.logging.v2.LogBucketB\003\340A\002\"" - + "\266\001\n\023UpdateBucketRequest\0226\n\004name\030\001 \001(\tB(\340" - + "A\002\372A\"\n logging.googleapis.com/LogBucket\022" - + "1\n\006bucket\030\002 \001(\0132\034.google.logging.v2.LogB" - + "ucketB\003\340A\002\0224\n\013update_mask\030\004 \001(\0132\032.google" - + ".protobuf.FieldMaskB\003\340A\002\"J\n\020GetBucketReq" - + "uest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n logging.goog" - + "leapis.com/LogBucket\"M\n\023DeleteBucketRequ" - + "est\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n logging.googl" - + "eapis.com/LogBucket\"O\n\025UndeleteBucketReq" - + "uest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n logging.goog" - + "leapis.com/LogBucket\"X\n\020ListViewsRequest" - + "\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022\027\n\npage_token\030\002 \001(" - + "\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\"W\n\021ListVi" - + "ewsResponse\022)\n\005views\030\001 \003(\0132\032.google.logg" - + "ing.v2.LogView\022\027\n\017next_page_token\030\002 \001(\t\"" - + "m\n\021CreateViewRequest\022\023\n\006parent\030\001 \001(\tB\003\340A" - + "\002\022\024\n\007view_id\030\002 \001(\tB\003\340A\002\022-\n\004view\030\003 \001(\0132\032." - + "google.logging.v2.LogViewB\003\340A\002\"\213\001\n\021Updat" - + "eViewRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022-\n\004view\030" - + "\002 \001(\0132\032.google.logging.v2.LogViewB\003\340A\002\0224" - + "\n\013update_mask\030\004 \001(\0132\032.google.protobuf.Fi" - + "eldMaskB\003\340A\001\"F\n\016GetViewRequest\0224\n\004name\030\001" - + " \001(\tB&\340A\002\372A \n\036logging.googleapis.com/Log" - + "View\"I\n\021DeleteViewRequest\0224\n\004name\030\001 \001(\tB" - + "&\340A\002\372A \n\036logging.googleapis.com/LogView\"" - + "{\n\020ListSinksRequest\0226\n\006parent\030\001 \001(\tB&\340A\002" - + "\372A \022\036logging.googleapis.com/LogSink\022\027\n\np" - + "age_token\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B" - + "\003\340A\001\"W\n\021ListSinksResponse\022)\n\005sinks\030\001 \003(\013" - + "2\032.google.logging.v2.LogSink\022\027\n\017next_pag" - + "e_token\030\002 \001(\t\"K\n\016GetSinkRequest\0229\n\tsink_" - + "name\030\001 \001(\tB&\340A\002\372A \n\036logging.googleapis.c" - + "om/LogSink\"\237\001\n\021CreateSinkRequest\0226\n\006pare" + + "\022\021google.logging.v2\032\034google/api/annotati" + + "ons.proto\032\027google/api/client.proto\032\037goog" + + "le/api/field_behavior.proto\032\031google/api/" + + "resource.proto\032#google/longrunning/opera" + + "tions.proto\032\033google/protobuf/empty.proto" + + "\032 google/protobuf/field_mask.proto\032\037goog" + + "le/protobuf/timestamp.proto\"\203\005\n\tLogBucke" + + "t\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\023\n\013description\030\003 \001(" + + "\t\0224\n\013create_time\030\004 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\0224\n\013update_time\030\005 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\022\026\n\016retenti" + + "on_days\030\013 \001(\005\022\016\n\006locked\030\t \001(\010\022?\n\017lifecyc" + + "le_state\030\014 \001(\0162!.google.logging.v2.Lifec" + + "ycleStateB\003\340A\003\022\031\n\021restricted_fields\030\017 \003(" + + "\t\0226\n\rcmek_settings\030\023 \001(\0132\037.google.loggin" + + "g.v2.CmekSettings:\245\002\352A\241\002\n logging.google" + + "apis.com/LogBucket\0228projects/{project}/l" + + "ocations/{location}/buckets/{bucket}\022Bor" + + "ganizations/{organization}/locations/{lo" + + "cation}/buckets/{bucket}\0226folders/{folde" + + "r}/locations/{location}/buckets/{bucket}" + + "\022GbillingAccounts/{billing_account}/loca" + + "tions/{location}/buckets/{bucket}\"\202\004\n\007Lo" + + "gView\022\014\n\004name\030\001 \001(\t\022\023\n\013description\030\003 \001(\t" + + "\0224\n\013create_time\030\004 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\0224\n\013update_time\030\005 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\022\016\n\006filter\030\007" + + " \001(\t:\327\002\352A\323\002\n\036logging.googleapis.com/LogV" + + "iew\022Eprojects/{project}/locations/{locat" + + "ion}/buckets/{bucket}/views/{view}\022Oorga" + + "nizations/{organization}/locations/{loca" + + "tion}/buckets/{bucket}/views/{view}\022Cfol" + + "ders/{folder}/locations/{location}/bucke" + + "ts/{bucket}/views/{view}\022TbillingAccount" + + "s/{billing_account}/locations/{location}" + + "/buckets/{bucket}/views/{view}\"\205\006\n\007LogSi" + + "nk\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\036\n\013destination\030\003 \001" + + "(\tB\t\340A\002\372A\003\n\001*\022\023\n\006filter\030\005 \001(\tB\003\340A\001\022\030\n\013de" + + "scription\030\022 \001(\tB\003\340A\001\022\025\n\010disabled\030\023 \001(\010B\003" + + "\340A\001\0228\n\nexclusions\030\020 \003(\0132\037.google.logging" + + ".v2.LogExclusionB\003\340A\001\022K\n\025output_version_" + + "format\030\006 \001(\0162(.google.logging.v2.LogSink" + + ".VersionFormatB\002\030\001\022\034\n\017writer_identity\030\010 " + + "\001(\tB\003\340A\003\022\035\n\020include_children\030\t \001(\010B\003\340A\001\022" + + "C\n\020bigquery_options\030\014 \001(\0132\".google.loggi" + + "ng.v2.BigQueryOptionsB\003\340A\001H\000\0224\n\013create_t" + + "ime\030\r \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\003\0224\n\013update_time\030\016 \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\003\"?\n\rVersionFormat\022\036\n\032VER" + + "SION_FORMAT_UNSPECIFIED\020\000\022\006\n\002V2\020\001\022\006\n\002V1\020" + + "\002:\277\001\352A\273\001\n\036logging.googleapis.com/LogSink" + + "\022\037projects/{project}/sinks/{sink}\022)organ" + + "izations/{organization}/sinks/{sink}\022\035fo" + + "lders/{folder}/sinks/{sink}\022.billingAcco" + + "unts/{billing_account}/sinks/{sink}B\t\n\007o" + + "ptions\"g\n\017BigQueryOptions\022#\n\026use_partiti" + + "oned_tables\030\001 \001(\010B\003\340A\001\022/\n\"uses_timestamp" + + "_column_partitioning\030\003 \001(\010B\003\340A\003\"\177\n\022ListB" + + "ucketsRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 l" + + "ogging.googleapis.com/LogBucket\022\027\n\npage_" + + "token\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001" + + "\"]\n\023ListBucketsResponse\022-\n\007buckets\030\001 \003(\013" + + "2\034.google.logging.v2.LogBucket\022\027\n\017next_p" + + "age_token\030\002 \001(\t\"\232\001\n\023CreateBucketRequest\022" + + "8\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 logging.googlea" + + "pis.com/LogBucket\022\026\n\tbucket_id\030\002 \001(\tB\003\340A" + + "\002\0221\n\006bucket\030\003 \001(\0132\034.google.logging.v2.Lo" + + "gBucketB\003\340A\002\"\266\001\n\023UpdateBucketRequest\0226\n\004" + + "name\030\001 \001(\tB(\340A\002\372A\"\n logging.googleapis.c" + + "om/LogBucket\0221\n\006bucket\030\002 \001(\0132\034.google.lo" + + "gging.v2.LogBucketB\003\340A\002\0224\n\013update_mask\030\004" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"J\n" + + "\020GetBucketRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n" + + " logging.googleapis.com/LogBucket\"M\n\023Del" + + "eteBucketRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n " + + "logging.googleapis.com/LogBucket\"O\n\025Unde" + + "leteBucketRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n" + + " logging.googleapis.com/LogBucket\"X\n\020Lis" + + "tViewsRequest\022\023\n\006parent\030\001 \001(\tB\003\340A\002\022\027\n\npa" + + "ge_token\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003" + + "\340A\001\"W\n\021ListViewsResponse\022)\n\005views\030\001 \003(\0132" + + "\032.google.logging.v2.LogView\022\027\n\017next_page" + + "_token\030\002 \001(\t\"m\n\021CreateViewRequest\022\023\n\006par" + + "ent\030\001 \001(\tB\003\340A\002\022\024\n\007view_id\030\002 \001(\tB\003\340A\002\022-\n\004" + + "view\030\003 \001(\0132\032.google.logging.v2.LogViewB\003" + + "\340A\002\"\213\001\n\021UpdateViewRequest\022\021\n\004name\030\001 \001(\tB" + + "\003\340A\002\022-\n\004view\030\002 \001(\0132\032.google.logging.v2.L" + + "ogViewB\003\340A\002\0224\n\013update_mask\030\004 \001(\0132\032.googl" + + "e.protobuf.FieldMaskB\003\340A\001\"F\n\016GetViewRequ" + + "est\0224\n\004name\030\001 \001(\tB&\340A\002\372A \n\036logging.googl" + + "eapis.com/LogView\"I\n\021DeleteViewRequest\0224" + + "\n\004name\030\001 \001(\tB&\340A\002\372A \n\036logging.googleapis" + + ".com/LogView\"{\n\020ListSinksRequest\0226\n\006pare" + "nt\030\001 \001(\tB&\340A\002\372A \022\036logging.googleapis.com" - + "/LogSink\022-\n\004sink\030\002 \001(\0132\032.google.logging." - + "v2.LogSinkB\003\340A\002\022#\n\026unique_writer_identit" - + "y\030\003 \001(\010B\003\340A\001\"\330\001\n\021UpdateSinkRequest\0229\n\tsi" - + "nk_name\030\001 \001(\tB&\340A\002\372A \n\036logging.googleapi" - + "s.com/LogSink\022-\n\004sink\030\002 \001(\0132\032.google.log" - + "ging.v2.LogSinkB\003\340A\002\022#\n\026unique_writer_id" - + "entity\030\003 \001(\010B\003\340A\001\0224\n\013update_mask\030\004 \001(\0132\032" - + ".google.protobuf.FieldMaskB\003\340A\001\"N\n\021Delet" - + "eSinkRequest\0229\n\tsink_name\030\001 \001(\tB&\340A\002\372A \n" - + "\036logging.googleapis.com/LogSink\"\302\003\n\014LogE" - + "xclusion\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\030\n\013descripti" - + "on\030\002 \001(\tB\003\340A\001\022\023\n\006filter\030\003 \001(\tB\003\340A\002\022\025\n\010di" - + "sabled\030\004 \001(\010B\003\340A\001\0224\n\013create_time\030\005 \001(\0132\032" - + ".google.protobuf.TimestampB\003\340A\003\0224\n\013updat" - + "e_time\030\006 \001(\0132\032.google.protobuf.Timestamp" - + "B\003\340A\003:\354\001\352A\350\001\n#logging.googleapis.com/Log" - + "Exclusion\022)projects/{project}/exclusions" - + "/{exclusion}\0223organizations/{organizatio" - + "n}/exclusions/{exclusion}\022\'folders/{fold" - + "er}/exclusions/{exclusion}\0228billingAccou" - + "nts/{billing_account}/exclusions/{exclus" - + "ion}\"\205\001\n\025ListExclusionsRequest\022;\n\006parent" - + "\030\001 \001(\tB+\340A\002\372A%\022#logging.googleapis.com/L" - + "ogExclusion\022\027\n\npage_token\030\002 \001(\tB\003\340A\001\022\026\n\t" - + "page_size\030\003 \001(\005B\003\340A\001\"f\n\026ListExclusionsRe" - + "sponse\0223\n\nexclusions\030\001 \003(\0132\037.google.logg" - + "ing.v2.LogExclusion\022\027\n\017next_page_token\030\002" - + " \001(\t\"P\n\023GetExclusionRequest\0229\n\004name\030\001 \001(" + + "/LogSink\022\027\n\npage_token\030\002 \001(\tB\003\340A\001\022\026\n\tpag" + + "e_size\030\003 \001(\005B\003\340A\001\"W\n\021ListSinksResponse\022)" + + "\n\005sinks\030\001 \003(\0132\032.google.logging.v2.LogSin" + + "k\022\027\n\017next_page_token\030\002 \001(\t\"K\n\016GetSinkReq" + + "uest\0229\n\tsink_name\030\001 \001(\tB&\340A\002\372A \n\036logging" + + ".googleapis.com/LogSink\"\237\001\n\021CreateSinkRe" + + "quest\0226\n\006parent\030\001 \001(\tB&\340A\002\372A \022\036logging.g" + + "oogleapis.com/LogSink\022-\n\004sink\030\002 \001(\0132\032.go" + + "ogle.logging.v2.LogSinkB\003\340A\002\022#\n\026unique_w" + + "riter_identity\030\003 \001(\010B\003\340A\001\"\330\001\n\021UpdateSink" + + "Request\0229\n\tsink_name\030\001 \001(\tB&\340A\002\372A \n\036logg" + + "ing.googleapis.com/LogSink\022-\n\004sink\030\002 \001(\013" + + "2\032.google.logging.v2.LogSinkB\003\340A\002\022#\n\026uni" + + "que_writer_identity\030\003 \001(\010B\003\340A\001\0224\n\013update" + + "_mask\030\004 \001(\0132\032.google.protobuf.FieldMaskB" + + "\003\340A\001\"N\n\021DeleteSinkRequest\0229\n\tsink_name\030\001" + + " \001(\tB&\340A\002\372A \n\036logging.googleapis.com/Log" + + "Sink\"\302\003\n\014LogExclusion\022\021\n\004name\030\001 \001(\tB\003\340A\002" + + "\022\030\n\013description\030\002 \001(\tB\003\340A\001\022\023\n\006filter\030\003 \001" + + "(\tB\003\340A\002\022\025\n\010disabled\030\004 \001(\010B\003\340A\001\0224\n\013create" + + "_time\030\005 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\0224\n\013update_time\030\006 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003:\354\001\352A\350\001\n#logging.googl" + + "eapis.com/LogExclusion\022)projects/{projec" + + "t}/exclusions/{exclusion}\0223organizations" + + "/{organization}/exclusions/{exclusion}\022\'" + + "folders/{folder}/exclusions/{exclusion}\022" + + "8billingAccounts/{billing_account}/exclu" + + "sions/{exclusion}\"\205\001\n\025ListExclusionsRequ" + + "est\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\022#logging.goo" + + "gleapis.com/LogExclusion\022\027\n\npage_token\030\002" + + " \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\"f\n\026Lis" + + "tExclusionsResponse\0223\n\nexclusions\030\001 \003(\0132" + + "\037.google.logging.v2.LogExclusion\022\027\n\017next" + + "_page_token\030\002 \001(\t\"P\n\023GetExclusionRequest" + + "\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#logging.googleap" + + "is.com/LogExclusion\"\216\001\n\026CreateExclusionR" + + "equest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\022#logging." + + "googleapis.com/LogExclusion\0227\n\texclusion" + + "\030\002 \001(\0132\037.google.logging.v2.LogExclusionB" + + "\003\340A\002\"\302\001\n\026UpdateExclusionRequest\0229\n\004name\030" + + "\001 \001(\tB+\340A\002\372A%\n#logging.googleapis.com/Lo" + + "gExclusion\0227\n\texclusion\030\002 \001(\0132\037.google.l" + + "ogging.v2.LogExclusionB\003\340A\002\0224\n\013update_ma" + + "sk\030\003 \001(\0132\032.google.protobuf.FieldMaskB\003\340A" + + "\002\"S\n\026DeleteExclusionRequest\0229\n\004name\030\001 \001(" + "\tB+\340A\002\372A%\n#logging.googleapis.com/LogExc" - + "lusion\"\216\001\n\026CreateExclusionRequest\022;\n\006par" - + "ent\030\001 \001(\tB+\340A\002\372A%\022#logging.googleapis.co" - + "m/LogExclusion\0227\n\texclusion\030\002 \001(\0132\037.goog" - + "le.logging.v2.LogExclusionB\003\340A\002\"\302\001\n\026Upda" - + "teExclusionRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%" - + "\n#logging.googleapis.com/LogExclusion\0227\n" - + "\texclusion\030\002 \001(\0132\037.google.logging.v2.Log" - + "ExclusionB\003\340A\002\0224\n\013update_mask\030\003 \001(\0132\032.go" - + "ogle.protobuf.FieldMaskB\003\340A\002\"S\n\026DeleteEx" - + "clusionRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#lo" - + "gging.googleapis.com/LogExclusion\"S\n\026Get" - + "CmekSettingsRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A" - + "%\n#logging.googleapis.com/CmekSettings\"\241" - + "\001\n\031UpdateCmekSettingsRequest\022\021\n\004name\030\001 \001" - + "(\tB\003\340A\002\022;\n\rcmek_settings\030\002 \001(\0132\037.google." - + "logging.v2.CmekSettingsB\003\340A\002\0224\n\013update_m" - + "ask\030\003 \001(\0132\032.google.protobuf.FieldMaskB\003\340" - + "A\001\"\237\002\n\014CmekSettings\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024" - + "\n\014kms_key_name\030\002 \001(\t\022\037\n\022service_account_" - + "id\030\003 \001(\tB\003\340A\003:\304\001\352A\300\001\n#logging.googleapis" - + ".com/CmekSettings\022\037projects/{project}/cm" - + "ekSettings\022)organizations/{organization}" - + "/cmekSettings\022\035folders/{folder}/cmekSett" - + "ings\022.billingAccounts/{billing_account}/" - + "cmekSettings*S\n\016LifecycleState\022\037\n\033LIFECY" - + "CLE_STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\024\n\020D" - + "ELETE_REQUESTED\020\0022\334>\n\017ConfigServiceV2\022\334\002" - + "\n\013ListBuckets\022%.google.logging.v2.ListBu" - + "cketsRequest\032&.google.logging.v2.ListBuc" - + "ketsResponse\"\375\001\202\323\344\223\002\355\001\022$/v2/{parent=*/*/" - + "locations/*}/bucketsZ-\022+/v2/{parent=proj" - + "ects/*/locations/*}/bucketsZ2\0220/v2/{pare" - + "nt=organizations/*/locations/*}/bucketsZ" - + ",\022*/v2/{parent=folders/*/locations/*}/bu" - + "cketsZ4\0222/v2/{parent=billingAccounts/*/l" - + "ocations/*}/buckets\332A\006parent\022\271\002\n\tGetBuck" - + "et\022#.google.logging.v2.GetBucketRequest\032" - + "\034.google.logging.v2.LogBucket\"\350\001\202\323\344\223\002\341\001\022" - + "$/v2/{name=*/*/locations/*/buckets/*}Z-\022" - + "+/v2/{name=projects/*/locations/*/bucket" - + "s/*}Z2\0220/v2/{name=organizations/*/locati" - + "ons/*/buckets/*}Z,\022*/v2/{name=folders/*/" - + "locations/*/buckets/*}Z(\022&/v2/{name=bill" - + "ingAccounts/*/buckets/*}\022\363\002\n\014CreateBucke" - + "t\022&.google.logging.v2.CreateBucketReques" - + "t\032\034.google.logging.v2.LogBucket\"\234\002\202\323\344\223\002\225" - + "\002\"$/v2/{parent=*/*/locations/*}/buckets:" - + "\006bucketZ5\"+/v2/{parent=projects/*/locati" - + "ons/*}/buckets:\006bucketZ:\"0/v2/{parent=or" - + "ganizations/*/locations/*}/buckets:\006buck" - + "etZ4\"*/v2/{parent=folders/*/locations/*}" - + "/buckets:\006bucketZ<\"2/v2/{parent=billingA" - + "ccounts/*/locations/*}/buckets:\006bucket\022\363" - + "\002\n\014UpdateBucket\022&.google.logging.v2.Upda" - + "teBucketRequest\032\034.google.logging.v2.LogB" - + "ucket\"\234\002\202\323\344\223\002\225\0022$/v2/{name=*/*/locations" - + "/*/buckets/*}:\006bucketZ52+/v2/{name=proje" - + "cts/*/locations/*/buckets/*}:\006bucketZ:20" - + "/v2/{name=organizations/*/locations/*/bu" - + "ckets/*}:\006bucketZ42*/v2/{name=folders/*/" - + "locations/*/buckets/*}:\006bucketZ<22/v2/{n" - + "ame=billingAccounts/*/locations/*/bucket" - + "s/*}:\006bucket\022\305\002\n\014DeleteBucket\022&.google.l" - + "ogging.v2.DeleteBucketRequest\032\026.google.p" - + "rotobuf.Empty\"\364\001\202\323\344\223\002\355\001*$/v2/{name=*/*/l" - + "ocations/*/buckets/*}Z-*+/v2/{name=proje" - + "cts/*/locations/*/buckets/*}Z2*0/v2/{nam" - + "e=organizations/*/locations/*/buckets/*}" - + "Z,**/v2/{name=folders/*/locations/*/buck" - + "ets/*}Z4*2/v2/{name=billingAccounts/*/lo" - + "cations/*/buckets/*}\022\205\003\n\016UndeleteBucket\022" - + "(.google.logging.v2.UndeleteBucketReques" - + "t\032\026.google.protobuf.Empty\"\260\002\202\323\344\223\002\251\002\"-/v2" - + "/{name=*/*/locations/*/buckets/*}:undele" - + "te:\001*Z9\"4/v2/{name=projects/*/locations/" - + "*/buckets/*}:undelete:\001*Z>\"9/v2/{name=or" - + "ganizations/*/locations/*/buckets/*}:und" - + "elete:\001*Z8\"3/v2/{name=folders/*/location" - + "s/*/buckets/*}:undelete:\001*Z@\";/v2/{name=" - + "billingAccounts/*/locations/*/buckets/*}" - + ":undelete:\001*\022\376\002\n\tListViews\022#.google.logg" - + "ing.v2.ListViewsRequest\032$.google.logging" - + ".v2.ListViewsResponse\"\245\002\202\323\344\223\002\225\002\022,/v2/{pa" - + "rent=*/*/locations/*/buckets/*}/viewsZ5\022" - + "3/v2/{parent=projects/*/locations/*/buck" - + "ets/*}/viewsZ:\0228/v2/{parent=organization" - + "s/*/locations/*/buckets/*}/viewsZ4\0222/v2/" - + "{parent=folders/*/locations/*/buckets/*}" - + "/viewsZ<\022:/v2/{parent=billingAccounts/*/" - + "locations/*/buckets/*}/views\332A\006parent\022\333\002" - + "\n\007GetView\022!.google.logging.v2.GetViewReq" - + "uest\032\032.google.logging.v2.LogView\"\220\002\202\323\344\223\002" - + "\211\002\022,/v2/{name=*/*/locations/*/buckets/*/" - + "views/*}Z5\0223/v2/{name=projects/*/locatio" - + "ns/*/buckets/*/views/*}Z:\0228/v2/{name=org" - + "anizations/*/locations/*/buckets/*/views" - + "/*}Z4\0222/v2/{name=folders/*/locations/*/b" - + "uckets/*/views/*}Z0\022./v2/{name=billingAc" - + "counts/*/buckets/*/views/*}\022\213\003\n\nCreateVi" - + "ew\022$.google.logging.v2.CreateViewRequest" - + "\032\032.google.logging.v2.LogView\"\272\002\202\323\344\223\002\263\002\"," - + "/v2/{parent=*/*/locations/*/buckets/*}/v" - + "iews:\004viewZ;\"3/v2/{parent=projects/*/loc" - + "ations/*/buckets/*}/views:\004viewZ@\"8/v2/{" - + "parent=organizations/*/locations/*/bucke" - + "ts/*}/views:\004viewZ:\"2/v2/{parent=folders" - + "/*/locations/*/buckets/*}/views:\004viewZB\"" - + ":/v2/{parent=billingAccounts/*/locations" - + "/*/buckets/*}/views:\004view\022\213\003\n\nUpdateView" - + "\022$.google.logging.v2.UpdateViewRequest\032\032" - + ".google.logging.v2.LogView\"\272\002\202\323\344\223\002\263\0022,/v" - + "2/{name=*/*/locations/*/buckets/*/views/" - + "*}:\004viewZ;23/v2/{name=projects/*/locatio" - + "ns/*/buckets/*/views/*}:\004viewZ@28/v2/{na" - + "me=organizations/*/locations/*/buckets/*" - + "/views/*}:\004viewZ:22/v2/{name=folders/*/l" - + "ocations/*/buckets/*/views/*}:\004viewZB2:/" + + "lusion\"S\n\026GetCmekSettingsRequest\0229\n\004name" + + "\030\001 \001(\tB+\340A\002\372A%\n#logging.googleapis.com/C" + + "mekSettings\"\241\001\n\031UpdateCmekSettingsReques" + + "t\022\021\n\004name\030\001 \001(\tB\003\340A\002\022;\n\rcmek_settings\030\002 " + + "\001(\0132\037.google.logging.v2.CmekSettingsB\003\340A" + + "\002\0224\n\013update_mask\030\003 \001(\0132\032.google.protobuf" + + ".FieldMaskB\003\340A\001\"\237\002\n\014CmekSettings\022\021\n\004name" + + "\030\001 \001(\tB\003\340A\003\022\024\n\014kms_key_name\030\002 \001(\t\022\037\n\022ser" + + "vice_account_id\030\003 \001(\tB\003\340A\003:\304\001\352A\300\001\n#loggi" + + "ng.googleapis.com/CmekSettings\022\037projects" + + "/{project}/cmekSettings\022)organizations/{" + + "organization}/cmekSettings\022\035folders/{fol" + + "der}/cmekSettings\022.billingAccounts/{bill" + + "ing_account}/cmekSettings\"K\n\022GetSettings" + + "Request\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037logging.g" + + "oogleapis.com/Settings\"\224\001\n\025UpdateSetting" + + "sRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\0222\n\010settings\030" + + "\002 \001(\0132\033.google.logging.v2.SettingsB\003\340A\002\022" + + "4\n\013update_mask\030\003 \001(\0132\032.google.protobuf.F" + + "ieldMaskB\003\340A\001\"\322\002\n\010Settings\022\021\n\004name\030\001 \001(\t" + + "B\003\340A\003\022\031\n\014kms_key_name\030\002 \001(\tB\003\340A\001\022#\n\026kms_" + + "service_account_id\030\003 \001(\tB\003\340A\003\022\035\n\020storage" + + "_location\030\004 \001(\tB\003\340A\001\022!\n\024disable_default_" + + "sink\030\005 \001(\010B\003\340A\001:\260\001\352A\254\001\n\037logging.googleap" + + "is.com/Settings\022\033projects/{project}/sett" + + "ings\022%organizations/{organization}/setti" + + "ngs\022\031folders/{folder}/settings\022*billingA" + + "ccounts/{billing_account}/settings\"Y\n\025Co" + + "pyLogEntriesRequest\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\023" + + "\n\006filter\030\003 \001(\tB\003\340A\001\022\030\n\013destination\030\004 \001(\t" + + "B\003\340A\002\"\256\002\n\026CopyLogEntriesMetadata\022.\n\nstar" + + "t_time\030\001 \001(\0132\032.google.protobuf.Timestamp" + + "\022,\n\010end_time\030\002 \001(\0132\032.google.protobuf.Tim" + + "estamp\0220\n\005state\030\003 \001(\0162!.google.logging.v" + + "2.OperationState\022\036\n\026cancellation_request" + + "ed\030\004 \001(\010\0229\n\007request\030\005 \001(\0132(.google.loggi" + + "ng.v2.CopyLogEntriesRequest\022\020\n\010progress\030" + + "\006 \001(\005\022\027\n\017writer_identity\030\007 \001(\t\":\n\026CopyLo" + + "gEntriesResponse\022 \n\030log_entries_copied_c" + + "ount\030\001 \001(\003*S\n\016LifecycleState\022\037\n\033LIFECYCL" + + "E_STATE_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\024\n\020DEL" + + "ETE_REQUESTED\020\002*\364\001\n\016OperationState\022\037\n\033OP" + + "ERATION_STATE_UNSPECIFIED\020\000\022\035\n\031OPERATION" + + "_STATE_SCHEDULED\020\001\022+\n\'OPERATION_STATE_WA" + + "ITING_FOR_PERMISSIONS\020\002\022\033\n\027OPERATION_STA" + + "TE_RUNNING\020\003\022\035\n\031OPERATION_STATE_SUCCEEDE" + + "D\020\004\022\032\n\026OPERATION_STATE_FAILED\020\005\022\035\n\031OPERA" + + "TION_STATE_CANCELLED\020\0062\214E\n\017ConfigService" + + "V2\022\334\002\n\013ListBuckets\022%.google.logging.v2.L" + + "istBucketsRequest\032&.google.logging.v2.Li" + + "stBucketsResponse\"\375\001\202\323\344\223\002\355\001\022$/v2/{parent" + + "=*/*/locations/*}/bucketsZ-\022+/v2/{parent" + + "=projects/*/locations/*}/bucketsZ2\0220/v2/" + + "{parent=organizations/*/locations/*}/buc" + + "ketsZ,\022*/v2/{parent=folders/*/locations/" + + "*}/bucketsZ4\0222/v2/{parent=billingAccount" + + "s/*/locations/*}/buckets\332A\006parent\022\271\002\n\tGe" + + "tBucket\022#.google.logging.v2.GetBucketReq" + + "uest\032\034.google.logging.v2.LogBucket\"\350\001\202\323\344" + + "\223\002\341\001\022$/v2/{name=*/*/locations/*/buckets/" + + "*}Z-\022+/v2/{name=projects/*/locations/*/b" + + "uckets/*}Z2\0220/v2/{name=organizations/*/l" + + "ocations/*/buckets/*}Z,\022*/v2/{name=folde" + + "rs/*/locations/*/buckets/*}Z(\022&/v2/{name" + + "=billingAccounts/*/buckets/*}\022\363\002\n\014Create" + + "Bucket\022&.google.logging.v2.CreateBucketR" + + "equest\032\034.google.logging.v2.LogBucket\"\234\002\202" + + "\323\344\223\002\225\002\"$/v2/{parent=*/*/locations/*}/buc" + + "kets:\006bucketZ5\"+/v2/{parent=projects/*/l" + + "ocations/*}/buckets:\006bucketZ:\"0/v2/{pare" + + "nt=organizations/*/locations/*}/buckets:" + + "\006bucketZ4\"*/v2/{parent=folders/*/locatio" + + "ns/*}/buckets:\006bucketZ<\"2/v2/{parent=bil" + + "lingAccounts/*/locations/*}/buckets:\006buc" + + "ket\022\363\002\n\014UpdateBucket\022&.google.logging.v2" + + ".UpdateBucketRequest\032\034.google.logging.v2" + + ".LogBucket\"\234\002\202\323\344\223\002\225\0022$/v2/{name=*/*/loca" + + "tions/*/buckets/*}:\006bucketZ52+/v2/{name=" + + "projects/*/locations/*/buckets/*}:\006bucke" + + "tZ:20/v2/{name=organizations/*/locations" + + "/*/buckets/*}:\006bucketZ42*/v2/{name=folde" + + "rs/*/locations/*/buckets/*}:\006bucketZ<22/" + "v2/{name=billingAccounts/*/locations/*/b" - + "uckets/*/views/*}:\004view\022\351\002\n\nDeleteView\022$" - + ".google.logging.v2.DeleteViewRequest\032\026.g" - + "oogle.protobuf.Empty\"\234\002\202\323\344\223\002\225\002*,/v2/{nam" - + "e=*/*/locations/*/buckets/*/views/*}Z5*3" - + "/v2/{name=projects/*/locations/*/buckets" - + "/*/views/*}Z:*8/v2/{name=organizations/*" - + "/locations/*/buckets/*/views/*}Z4*2/v2/{" - + "name=folders/*/locations/*/buckets/*/vie" - + "ws/*}Z<*:/v2/{name=billingAccounts/*/loc" - + "ations/*/buckets/*/views/*}\022\220\002\n\tListSink" - + "s\022#.google.logging.v2.ListSinksRequest\032$" - + ".google.logging.v2.ListSinksResponse\"\267\001\202" - + "\323\344\223\002\247\001\022\026/v2/{parent=*/*}/sinksZ\037\022\035/v2/{p" - + "arent=projects/*}/sinksZ$\022\"/v2/{parent=o" - + "rganizations/*}/sinksZ\036\022\034/v2/{parent=fol" - + "ders/*}/sinksZ&\022$/v2/{parent=billingAcco" - + "unts/*}/sinks\332A\006parent\022\236\002\n\007GetSink\022!.goo" - + "gle.logging.v2.GetSinkRequest\032\032.google.l" - + "ogging.v2.LogSink\"\323\001\202\323\344\223\002\300\001\022\033/v2/{sink_n" - + "ame=*/*/sinks/*}Z$\022\"/v2/{sink_name=proje" - + "cts/*/sinks/*}Z)\022\'/v2/{sink_name=organiz" - + "ations/*/sinks/*}Z#\022!/v2/{sink_name=fold" - + "ers/*/sinks/*}Z+\022)/v2/{sink_name=billing" - + "Accounts/*/sinks/*}\332A\tsink_name\022\253\002\n\nCrea" - + "teSink\022$.google.logging.v2.CreateSinkReq" - + "uest\032\032.google.logging.v2.LogSink\"\332\001\202\323\344\223\002" - + "\305\001\"\026/v2/{parent=*/*}/sinks:\004sinkZ%\"\035/v2/" - + "{parent=projects/*}/sinks:\004sinkZ*\"\"/v2/{" - + "parent=organizations/*}/sinks:\004sinkZ$\"\034/" - + "v2/{parent=folders/*}/sinks:\004sinkZ,\"$/v2" - + "/{parent=billingAccounts/*}/sinks:\004sink\332" - + "A\013parent,sink\022\237\004\n\nUpdateSink\022$.google.lo" - + "gging.v2.UpdateSinkRequest\032\032.google.logg" - + "ing.v2.LogSink\"\316\003\202\323\344\223\002\231\003\032\033/v2/{sink_name" - + "=*/*/sinks/*}:\004sinkZ*\032\"/v2/{sink_name=pr" - + "ojects/*/sinks/*}:\004sinkZ/\032\'/v2/{sink_nam" - + "e=organizations/*/sinks/*}:\004sinkZ)\032!/v2/" - + "{sink_name=folders/*/sinks/*}:\004sinkZ1\032)/" - + "v2/{sink_name=billingAccounts/*/sinks/*}" - + ":\004sinkZ*2\"/v2/{sink_name=projects/*/sink" - + "s/*}:\004sinkZ/2\'/v2/{sink_name=organizatio" - + "ns/*/sinks/*}:\004sinkZ)2!/v2/{sink_name=fo" - + "lders/*/sinks/*}:\004sinkZ12)/v2/{sink_name" - + "=billingAccounts/*/sinks/*}:\004sink\332A\032sink" - + "_name,sink,update_mask\332A\016sink_name,sink\022" - + "\240\002\n\nDeleteSink\022$.google.logging.v2.Delet" - + "eSinkRequest\032\026.google.protobuf.Empty\"\323\001\202" - + "\323\344\223\002\300\001*\033/v2/{sink_name=*/*/sinks/*}Z$*\"/" - + "v2/{sink_name=projects/*/sinks/*}Z)*\'/v2" - + "/{sink_name=organizations/*/sinks/*}Z#*!" - + "/v2/{sink_name=folders/*/sinks/*}Z+*)/v2" - + "/{sink_name=billingAccounts/*/sinks/*}\332A" - + "\tsink_name\022\270\002\n\016ListExclusions\022(.google.l" - + "ogging.v2.ListExclusionsRequest\032).google" - + ".logging.v2.ListExclusionsResponse\"\320\001\202\323\344" - + "\223\002\300\001\022\033/v2/{parent=*/*}/exclusionsZ$\022\"/v2" - + "/{parent=projects/*}/exclusionsZ)\022\'/v2/{" - + "parent=organizations/*}/exclusionsZ#\022!/v" - + "2/{parent=folders/*}/exclusionsZ+\022)/v2/{" - + "parent=billingAccounts/*}/exclusions\332A\006p" - + "arent\022\250\002\n\014GetExclusion\022&.google.logging." - + "v2.GetExclusionRequest\032\037.google.logging." - + "v2.LogExclusion\"\316\001\202\323\344\223\002\300\001\022\033/v2/{name=*/*" - + "/exclusions/*}Z$\022\"/v2/{name=projects/*/e" - + "xclusions/*}Z)\022\'/v2/{name=organizations/" - + "*/exclusions/*}Z#\022!/v2/{name=folders/*/e" - + "xclusions/*}Z+\022)/v2/{name=billingAccount" - + "s/*/exclusions/*}\332A\004name\022\361\002\n\017CreateExclu" - + "sion\022).google.logging.v2.CreateExclusion" - + "Request\032\037.google.logging.v2.LogExclusion" - + "\"\221\002\202\323\344\223\002\367\001\"\033/v2/{parent=*/*}/exclusions:" - + "\texclusionZ/\"\"/v2/{parent=projects/*}/ex" - + "clusions:\texclusionZ4\"\'/v2/{parent=organ" - + "izations/*}/exclusions:\texclusionZ.\"!/v2" - + "/{parent=folders/*}/exclusions:\texclusio" - + "nZ6\")/v2/{parent=billingAccounts/*}/excl" - + "usions:\texclusion\332A\020parent,exclusion\022\373\002\n" - + "\017UpdateExclusion\022).google.logging.v2.Upd" - + "ateExclusionRequest\032\037.google.logging.v2." - + "LogExclusion\"\233\002\202\323\344\223\002\367\0012\033/v2/{name=*/*/ex" - + "clusions/*}:\texclusionZ/2\"/v2/{name=proj" - + "ects/*/exclusions/*}:\texclusionZ42\'/v2/{" - + "name=organizations/*/exclusions/*}:\texcl" - + "usionZ.2!/v2/{name=folders/*/exclusions/" - + "*}:\texclusionZ62)/v2/{name=billingAccoun" - + "ts/*/exclusions/*}:\texclusion\332A\032name,exc" - + "lusion,update_mask\022\245\002\n\017DeleteExclusion\022)" - + ".google.logging.v2.DeleteExclusionReques" - + "t\032\026.google.protobuf.Empty\"\316\001\202\323\344\223\002\300\001*\033/v2" - + "/{name=*/*/exclusions/*}Z$*\"/v2/{name=pr" - + "ojects/*/exclusions/*}Z)*\'/v2/{name=orga" - + "nizations/*/exclusions/*}Z#*!/v2/{name=f" - + "olders/*/exclusions/*}Z+*)/v2/{name=bill" - + "ingAccounts/*/exclusions/*}\332A\004name\022\255\001\n\017G" - + "etCmekSettings\022).google.logging.v2.GetCm" - + "ekSettingsRequest\032\037.google.logging.v2.Cm" - + "ekSettings\"N\202\323\344\223\002H\022\033/v2/{name=*/*}/cmekS" - + "ettingsZ)\022\'/v2/{name=organizations/*}/cm" - + "ekSettings\022\321\001\n\022UpdateCmekSettings\022,.goog" - + "le.logging.v2.UpdateCmekSettingsRequest\032" - + "\037.google.logging.v2.CmekSettings\"l\202\323\344\223\002f" - + "2\033/v2/{name=*/*}/cmekSettings:\rcmek_sett" - + "ingsZ82\'/v2/{name=organizations/*}/cmekS" - + "ettings:\rcmek_settings\032\337\001\312A\026logging.goog" - + "leapis.com\322A\302\001https://www.googleapis.com" - + "/auth/cloud-platform,https://www.googlea" - + "pis.com/auth/cloud-platform.read-only,ht" - + "tps://www.googleapis.com/auth/logging.ad" - + "min,https://www.googleapis.com/auth/logg" - + "ing.readB\331\003\n\025com.google.logging.v2B\022Logg" - + "ingConfigProtoP\001Z8google.golang.org/genp" - + "roto/googleapis/logging/v2;logging\370\001\001\252\002\027" - + "Google.Cloud.Logging.V2\312\002\027Google\\Cloud\\L" - + "ogging\\V2\352\002\032Google::Cloud::Logging::V2\352A" - + "`\n+logging.googleapis.com/OrganizationLo" - + "cation\0221organizations/{organization}/loc" - + "ations/{location}\352AN\n%logging.googleapis" - + ".com/FolderLocation\022%folders/{folder}/lo" - + "cations/{location}\352Ag\n-logging.googleapi" - + "s.com/BillingAccountLocation\0226billingAcc" - + "ounts/{billing_account}/locations/{locat" - + "ion}b\006proto3" + + "uckets/*}:\006bucket\022\305\002\n\014DeleteBucket\022&.goo" + + "gle.logging.v2.DeleteBucketRequest\032\026.goo" + + "gle.protobuf.Empty\"\364\001\202\323\344\223\002\355\001*$/v2/{name=" + + "*/*/locations/*/buckets/*}Z-*+/v2/{name=" + + "projects/*/locations/*/buckets/*}Z2*0/v2" + + "/{name=organizations/*/locations/*/bucke" + + "ts/*}Z,**/v2/{name=folders/*/locations/*" + + "/buckets/*}Z4*2/v2/{name=billingAccounts" + + "/*/locations/*/buckets/*}\022\205\003\n\016UndeleteBu" + + "cket\022(.google.logging.v2.UndeleteBucketR" + + "equest\032\026.google.protobuf.Empty\"\260\002\202\323\344\223\002\251\002" + + "\"-/v2/{name=*/*/locations/*/buckets/*}:u" + + "ndelete:\001*Z9\"4/v2/{name=projects/*/locat" + + "ions/*/buckets/*}:undelete:\001*Z>\"9/v2/{na" + + "me=organizations/*/locations/*/buckets/*" + + "}:undelete:\001*Z8\"3/v2/{name=folders/*/loc" + + "ations/*/buckets/*}:undelete:\001*Z@\";/v2/{" + + "name=billingAccounts/*/locations/*/bucke" + + "ts/*}:undelete:\001*\022\376\002\n\tListViews\022#.google" + + ".logging.v2.ListViewsRequest\032$.google.lo" + + "gging.v2.ListViewsResponse\"\245\002\202\323\344\223\002\225\002\022,/v" + + "2/{parent=*/*/locations/*/buckets/*}/vie" + + "wsZ5\0223/v2/{parent=projects/*/locations/*" + + "/buckets/*}/viewsZ:\0228/v2/{parent=organiz" + + "ations/*/locations/*/buckets/*}/viewsZ4\022" + + "2/v2/{parent=folders/*/locations/*/bucke" + + "ts/*}/viewsZ<\022:/v2/{parent=billingAccoun" + + "ts/*/locations/*/buckets/*}/views\332A\006pare" + + "nt\022\333\002\n\007GetView\022!.google.logging.v2.GetVi" + + "ewRequest\032\032.google.logging.v2.LogView\"\220\002" + + "\202\323\344\223\002\211\002\022,/v2/{name=*/*/locations/*/bucke" + + "ts/*/views/*}Z5\0223/v2/{name=projects/*/lo" + + "cations/*/buckets/*/views/*}Z:\0228/v2/{nam" + + "e=organizations/*/locations/*/buckets/*/" + + "views/*}Z4\0222/v2/{name=folders/*/location" + + "s/*/buckets/*/views/*}Z0\022./v2/{name=bill" + + "ingAccounts/*/buckets/*/views/*}\022\213\003\n\nCre" + + "ateView\022$.google.logging.v2.CreateViewRe" + + "quest\032\032.google.logging.v2.LogView\"\272\002\202\323\344\223" + + "\002\263\002\",/v2/{parent=*/*/locations/*/buckets" + + "/*}/views:\004viewZ;\"3/v2/{parent=projects/" + + "*/locations/*/buckets/*}/views:\004viewZ@\"8" + + "/v2/{parent=organizations/*/locations/*/" + + "buckets/*}/views:\004viewZ:\"2/v2/{parent=fo" + + "lders/*/locations/*/buckets/*}/views:\004vi" + + "ewZB\":/v2/{parent=billingAccounts/*/loca" + + "tions/*/buckets/*}/views:\004view\022\213\003\n\nUpdat" + + "eView\022$.google.logging.v2.UpdateViewRequ" + + "est\032\032.google.logging.v2.LogView\"\272\002\202\323\344\223\002\263" + + "\0022,/v2/{name=*/*/locations/*/buckets/*/v" + + "iews/*}:\004viewZ;23/v2/{name=projects/*/lo" + + "cations/*/buckets/*/views/*}:\004viewZ@28/v" + + "2/{name=organizations/*/locations/*/buck" + + "ets/*/views/*}:\004viewZ:22/v2/{name=folder" + + "s/*/locations/*/buckets/*/views/*}:\004view" + + "ZB2:/v2/{name=billingAccounts/*/location" + + "s/*/buckets/*/views/*}:\004view\022\351\002\n\nDeleteV" + + "iew\022$.google.logging.v2.DeleteViewReques" + + "t\032\026.google.protobuf.Empty\"\234\002\202\323\344\223\002\225\002*,/v2" + + "/{name=*/*/locations/*/buckets/*/views/*" + + "}Z5*3/v2/{name=projects/*/locations/*/bu" + + "ckets/*/views/*}Z:*8/v2/{name=organizati" + + "ons/*/locations/*/buckets/*/views/*}Z4*2" + + "/v2/{name=folders/*/locations/*/buckets/" + + "*/views/*}Z<*:/v2/{name=billingAccounts/" + + "*/locations/*/buckets/*/views/*}\022\220\002\n\tLis" + + "tSinks\022#.google.logging.v2.ListSinksRequ" + + "est\032$.google.logging.v2.ListSinksRespons" + + "e\"\267\001\202\323\344\223\002\247\001\022\026/v2/{parent=*/*}/sinksZ\037\022\035/" + + "v2/{parent=projects/*}/sinksZ$\022\"/v2/{par" + + "ent=organizations/*}/sinksZ\036\022\034/v2/{paren" + + "t=folders/*}/sinksZ&\022$/v2/{parent=billin" + + "gAccounts/*}/sinks\332A\006parent\022\236\002\n\007GetSink\022" + + "!.google.logging.v2.GetSinkRequest\032\032.goo" + + "gle.logging.v2.LogSink\"\323\001\202\323\344\223\002\300\001\022\033/v2/{s" + + "ink_name=*/*/sinks/*}Z$\022\"/v2/{sink_name=" + + "projects/*/sinks/*}Z)\022\'/v2/{sink_name=or" + + "ganizations/*/sinks/*}Z#\022!/v2/{sink_name" + + "=folders/*/sinks/*}Z+\022)/v2/{sink_name=bi" + + "llingAccounts/*/sinks/*}\332A\tsink_name\022\253\002\n" + + "\nCreateSink\022$.google.logging.v2.CreateSi" + + "nkRequest\032\032.google.logging.v2.LogSink\"\332\001" + + "\202\323\344\223\002\305\001\"\026/v2/{parent=*/*}/sinks:\004sinkZ%\"" + + "\035/v2/{parent=projects/*}/sinks:\004sinkZ*\"\"" + + "/v2/{parent=organizations/*}/sinks:\004sink" + + "Z$\"\034/v2/{parent=folders/*}/sinks:\004sinkZ," + + "\"$/v2/{parent=billingAccounts/*}/sinks:\004" + + "sink\332A\013parent,sink\022\237\004\n\nUpdateSink\022$.goog" + + "le.logging.v2.UpdateSinkRequest\032\032.google" + + ".logging.v2.LogSink\"\316\003\202\323\344\223\002\231\003\032\033/v2/{sink" + + "_name=*/*/sinks/*}:\004sinkZ*\032\"/v2/{sink_na" + + "me=projects/*/sinks/*}:\004sinkZ/\032\'/v2/{sin" + + "k_name=organizations/*/sinks/*}:\004sinkZ)\032" + + "!/v2/{sink_name=folders/*/sinks/*}:\004sink" + + "Z1\032)/v2/{sink_name=billingAccounts/*/sin" + + "ks/*}:\004sinkZ*2\"/v2/{sink_name=projects/*" + + "/sinks/*}:\004sinkZ/2\'/v2/{sink_name=organi" + + "zations/*/sinks/*}:\004sinkZ)2!/v2/{sink_na" + + "me=folders/*/sinks/*}:\004sinkZ12)/v2/{sink" + + "_name=billingAccounts/*/sinks/*}:\004sink\332A" + + "\032sink_name,sink,update_mask\332A\016sink_name," + + "sink\022\240\002\n\nDeleteSink\022$.google.logging.v2." + + "DeleteSinkRequest\032\026.google.protobuf.Empt" + + "y\"\323\001\202\323\344\223\002\300\001*\033/v2/{sink_name=*/*/sinks/*}" + + "Z$*\"/v2/{sink_name=projects/*/sinks/*}Z)" + + "*\'/v2/{sink_name=organizations/*/sinks/*" + + "}Z#*!/v2/{sink_name=folders/*/sinks/*}Z+" + + "*)/v2/{sink_name=billingAccounts/*/sinks" + + "/*}\332A\tsink_name\022\270\002\n\016ListExclusions\022(.goo" + + "gle.logging.v2.ListExclusionsRequest\032).g" + + "oogle.logging.v2.ListExclusionsResponse\"" + + "\320\001\202\323\344\223\002\300\001\022\033/v2/{parent=*/*}/exclusionsZ$" + + "\022\"/v2/{parent=projects/*}/exclusionsZ)\022\'" + + "/v2/{parent=organizations/*}/exclusionsZ" + + "#\022!/v2/{parent=folders/*}/exclusionsZ+\022)" + + "/v2/{parent=billingAccounts/*}/exclusion" + + "s\332A\006parent\022\250\002\n\014GetExclusion\022&.google.log" + + "ging.v2.GetExclusionRequest\032\037.google.log" + + "ging.v2.LogExclusion\"\316\001\202\323\344\223\002\300\001\022\033/v2/{nam" + + "e=*/*/exclusions/*}Z$\022\"/v2/{name=project" + + "s/*/exclusions/*}Z)\022\'/v2/{name=organizat" + + "ions/*/exclusions/*}Z#\022!/v2/{name=folder" + + "s/*/exclusions/*}Z+\022)/v2/{name=billingAc" + + "counts/*/exclusions/*}\332A\004name\022\361\002\n\017Create" + + "Exclusion\022).google.logging.v2.CreateExcl" + + "usionRequest\032\037.google.logging.v2.LogExcl" + + "usion\"\221\002\202\323\344\223\002\367\001\"\033/v2/{parent=*/*}/exclus" + + "ions:\texclusionZ/\"\"/v2/{parent=projects/" + + "*}/exclusions:\texclusionZ4\"\'/v2/{parent=" + + "organizations/*}/exclusions:\texclusionZ." + + "\"!/v2/{parent=folders/*}/exclusions:\texc" + + "lusionZ6\")/v2/{parent=billingAccounts/*}" + + "/exclusions:\texclusion\332A\020parent,exclusio" + + "n\022\373\002\n\017UpdateExclusion\022).google.logging.v" + + "2.UpdateExclusionRequest\032\037.google.loggin" + + "g.v2.LogExclusion\"\233\002\202\323\344\223\002\367\0012\033/v2/{name=*" + + "/*/exclusions/*}:\texclusionZ/2\"/v2/{name" + + "=projects/*/exclusions/*}:\texclusionZ42\'" + + "/v2/{name=organizations/*/exclusions/*}:" + + "\texclusionZ.2!/v2/{name=folders/*/exclus" + + "ions/*}:\texclusionZ62)/v2/{name=billingA" + + "ccounts/*/exclusions/*}:\texclusion\332A\032nam" + + "e,exclusion,update_mask\022\245\002\n\017DeleteExclus" + + "ion\022).google.logging.v2.DeleteExclusionR" + + "equest\032\026.google.protobuf.Empty\"\316\001\202\323\344\223\002\300\001" + + "*\033/v2/{name=*/*/exclusions/*}Z$*\"/v2/{na" + + "me=projects/*/exclusions/*}Z)*\'/v2/{name" + + "=organizations/*/exclusions/*}Z#*!/v2/{n" + + "ame=folders/*/exclusions/*}Z+*)/v2/{name" + + "=billingAccounts/*/exclusions/*}\332A\004name\022" + + "\247\002\n\017GetCmekSettings\022).google.logging.v2." + + "GetCmekSettingsRequest\032\037.google.logging." + + "v2.CmekSettings\"\307\001\202\323\344\223\002\300\001\022\033/v2/{name=*/*" + + "}/cmekSettingsZ$\022\"/v2/{name=projects/*}/" + + "cmekSettingsZ)\022\'/v2/{name=organizations/" + + "*}/cmekSettingsZ#\022!/v2/{name=folders/*}/" + + "cmekSettingsZ+\022)/v2/{name=billingAccount" + + "s/*}/cmekSettings\022\321\001\n\022UpdateCmekSettings" + + "\022,.google.logging.v2.UpdateCmekSettingsR" + + "equest\032\037.google.logging.v2.CmekSettings\"" + + "l\202\323\344\223\002f2\033/v2/{name=*/*}/cmekSettings:\rcm" + + "ek_settingsZ82\'/v2/{name=organizations/*" + + "}/cmekSettings:\rcmek_settings\022\216\002\n\013GetSet" + + "tings\022%.google.logging.v2.GetSettingsReq" + + "uest\032\033.google.logging.v2.Settings\"\272\001\202\323\344\223" + + "\002\254\001\022\027/v2/{name=*/*}/settingsZ \022\036/v2/{nam" + + "e=projects/*}/settingsZ%\022#/v2/{name=orga" + + "nizations/*}/settingsZ\037\022\035/v2/{name=folde" + + "rs/*}/settingsZ\'\022%/v2/{name=billingAccou" + + "nts/*}/settings\332A\004name\022\366\001\n\016UpdateSetting" + + "s\022(.google.logging.v2.UpdateSettingsRequ" + + "est\032\033.google.logging.v2.Settings\"\234\001\202\323\344\223\002" + + "\1772\027/v2/{name=*/*}/settings:\010settingsZ/2#" + + "/v2/{name=organizations/*}/settings:\010set" + + "tingsZ)2\035/v2/{name=folders/*}/settings:\010", + "settings\332A\024settings,update_mask\022\251\001\n\016Copy" + + "LogEntries\022(.google.logging.v2.CopyLogEn" + + "triesRequest\032\035.google.longrunning.Operat" + + "ion\"N\202\323\344\223\002\025\"\020/v2/entries:copy:\001*\312A0\n\026Cop" + + "yLogEntriesResponse\022\026CopyLogEntriesMetad" + + "ata\032\337\001\312A\026logging.googleapis.com\322A\302\001https" + + "://www.googleapis.com/auth/cloud-platfor" + + "m,https://www.googleapis.com/auth/cloud-" + + "platform.read-only,https://www.googleapi" + + "s.com/auth/logging.admin,https://www.goo" + + "gleapis.com/auth/logging.readB\331\003\n\025com.go" + + "ogle.logging.v2B\022LoggingConfigProtoP\001Z8g" + + "oogle.golang.org/genproto/googleapis/log" + + "ging/v2;logging\370\001\001\252\002\027Google.Cloud.Loggin" + + "g.V2\312\002\027Google\\Cloud\\Logging\\V2\352\002\032Google:" + + ":Cloud::Logging::V2\352A`\n+logging.googleap" + + "is.com/OrganizationLocation\0221organizatio" + + "ns/{organization}/locations/{location}\352A" + + "N\n%logging.googleapis.com/FolderLocation" + + "\022%folders/{folder}/locations/{location}\352" + + "Ag\n-logging.googleapis.com/BillingAccoun" + + "tLocation\0226billingAccounts/{billing_acco" + + "unt}/locations/{location}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), com.google.api.ClientProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), }); internal_static_google_logging_v2_LogBucket_descriptor = getDescriptor().getMessageTypes().get(0); @@ -564,6 +642,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RetentionDays", "Locked", "LifecycleState", + "RestrictedFields", + "CmekSettings", }); internal_static_google_logging_v2_LogView_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_google_logging_v2_LogView_fieldAccessorTable = @@ -831,6 +911,60 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "KmsKeyName", "ServiceAccountId", }); + internal_static_google_logging_v2_GetSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_logging_v2_GetSettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_GetSettingsRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_logging_v2_UpdateSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_logging_v2_UpdateSettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_UpdateSettingsRequest_descriptor, + new java.lang.String[] { + "Name", "Settings", "UpdateMask", + }); + internal_static_google_logging_v2_Settings_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_logging_v2_Settings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_Settings_descriptor, + new java.lang.String[] { + "Name", "KmsKeyName", "KmsServiceAccountId", "StorageLocation", "DisableDefaultSink", + }); + internal_static_google_logging_v2_CopyLogEntriesRequest_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_logging_v2_CopyLogEntriesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_CopyLogEntriesRequest_descriptor, + new java.lang.String[] { + "Name", "Filter", "Destination", + }); + internal_static_google_logging_v2_CopyLogEntriesMetadata_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_logging_v2_CopyLogEntriesMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_CopyLogEntriesMetadata_descriptor, + new java.lang.String[] { + "StartTime", + "EndTime", + "State", + "CancellationRequested", + "Request", + "Progress", + "WriterIdentity", + }); + internal_static_google_logging_v2_CopyLogEntriesResponse_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_google_logging_v2_CopyLogEntriesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_CopyLogEntriesResponse_descriptor, + new java.lang.String[] { + "LogEntriesCopiedCount", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); @@ -841,16 +975,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resource); registry.add(com.google.api.ResourceProto.resourceDefinition); registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingMetricsProto.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingMetricsProto.java index a6e221a6e..f4ec87951 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingMetricsProto.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingMetricsProto.java @@ -69,95 +69,92 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n\'google/logging/v2/logging_metrics.prot" - + "o\022\021google.logging.v2\032\027google/api/client." - + "proto\032\035google/api/distribution.proto\032\037go" - + "ogle/api/field_behavior.proto\032\027google/ap" - + "i/metric.proto\032\031google/api/resource.prot" - + "o\032\036google/protobuf/duration.proto\032\033googl" - + "e/protobuf/empty.proto\032 google/protobuf/" - + "field_mask.proto\032\037google/protobuf/timest" - + "amp.proto\032\034google/api/annotations.proto\"" - + "\214\005\n\tLogMetric\022\021\n\004name\030\001 \001(\tB\003\340A\002\022\030\n\013desc" - + "ription\030\002 \001(\tB\003\340A\001\022\023\n\006filter\030\003 \001(\tB\003\340A\002\022" - + "<\n\021metric_descriptor\030\005 \001(\0132\034.google.api." - + "MetricDescriptorB\003\340A\001\022\034\n\017value_extractor" - + "\030\006 \001(\tB\003\340A\001\022P\n\020label_extractors\030\007 \003(\01321." - + "google.logging.v2.LogMetric.LabelExtract" - + "orsEntryB\003\340A\001\022C\n\016bucket_options\030\010 \001(\0132&." - + "google.api.Distribution.BucketOptionsB\003\340" - + "A\001\0224\n\013create_time\030\t \001(\0132\032.google.protobu" - + "f.TimestampB\003\340A\003\0224\n\013update_time\030\n \001(\0132\032." - + "google.protobuf.TimestampB\003\340A\003\022<\n\007versio" - + "n\030\004 \001(\0162\'.google.logging.v2.LogMetric.Ap" - + "iVersionB\002\030\001\0326\n\024LabelExtractorsEntry\022\013\n\003" - + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\034\n\nApiVersi" - + "on\022\006\n\002V2\020\000\022\006\n\002V1\020\001:J\352AG\n logging.googlea" - + "pis.com/LogMetric\022#projects/{project}/me" - + "trics/{metric}\"\215\001\n\025ListLogMetricsRequest" - + "\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcem" - + "anager.googleapis.com/Project\022\027\n\npage_to" - + "ken\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\"`" - + "\n\026ListLogMetricsResponse\022-\n\007metrics\030\001 \003(" - + "\0132\034.google.logging.v2.LogMetric\022\027\n\017next_" - + "page_token\030\002 \001(\t\"T\n\023GetLogMetricRequest\022" - + "=\n\013metric_name\030\001 \001(\tB(\340A\002\372A\"\n logging.go" - + "ogleapis.com/LogMetric\"\205\001\n\026CreateLogMetr" - + "icRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 loggi" - + "ng.googleapis.com/LogMetric\0221\n\006metric\030\002 " - + "\001(\0132\034.google.logging.v2.LogMetricB\003\340A\002\"\212" - + "\001\n\026UpdateLogMetricRequest\022=\n\013metric_name" - + "\030\001 \001(\tB(\340A\002\372A\"\n logging.googleapis.com/L" - + "ogMetric\0221\n\006metric\030\002 \001(\0132\034.google.loggin" - + "g.v2.LogMetricB\003\340A\002\"W\n\026DeleteLogMetricRe" - + "quest\022=\n\013metric_name\030\001 \001(\tB(\340A\002\372A\"\n logg" - + "ing.googleapis.com/LogMetric2\256\010\n\020Metrics" - + "ServiceV2\022\227\001\n\016ListLogMetrics\022(.google.lo" - + "gging.v2.ListLogMetricsRequest\032).google." - + "logging.v2.ListLogMetricsResponse\"0\202\323\344\223\002" - + "!\022\037/v2/{parent=projects/*}/metrics\332A\006par" - + "ent\022\222\001\n\014GetLogMetric\022&.google.logging.v2" - + ".GetLogMetricRequest\032\034.google.logging.v2" - + ".LogMetric\"<\202\323\344\223\002(\022&/v2/{metric_name=pro" - + "jects/*/metrics/*}\332A\013metric_name\022\233\001\n\017Cre" - + "ateLogMetric\022).google.logging.v2.CreateL" - + "ogMetricRequest\032\034.google.logging.v2.LogM" - + "etric\"?\202\323\344\223\002)\"\037/v2/{parent=projects/*}/m" - + "etrics:\006metric\332A\rparent,metric\022\247\001\n\017Updat" - + "eLogMetric\022).google.logging.v2.UpdateLog" - + "MetricRequest\032\034.google.logging.v2.LogMet" - + "ric\"K\202\323\344\223\0020\032&/v2/{metric_name=projects/*" - + "/metrics/*}:\006metric\332A\022metric_name,metric" - + "\022\222\001\n\017DeleteLogMetric\022).google.logging.v2" - + ".DeleteLogMetricRequest\032\026.google.protobu" - + "f.Empty\"<\202\323\344\223\002(*&/v2/{metric_name=projec" - + "ts/*/metrics/*}\332A\013metric_name\032\215\002\312A\026loggi" - + "ng.googleapis.com\322A\360\001https://www.googlea" - + "pis.com/auth/cloud-platform,https://www." - + "googleapis.com/auth/cloud-platform.read-" - + "only,https://www.googleapis.com/auth/log" - + "ging.admin,https://www.googleapis.com/au" - + "th/logging.read,https://www.googleapis.c" - + "om/auth/logging.writeB\274\001\n\025com.google.log" - + "ging.v2B\023LoggingMetricsProtoP\001Z8google.g" - + "olang.org/genproto/googleapis/logging/v2" - + ";logging\370\001\001\252\002\027Google.Cloud.Logging.V2\312\002\027" - + "Google\\Cloud\\Logging\\V2\352\002\032Google::Cloud:" - + ":Logging::V2b\006proto3" + + "o\022\021google.logging.v2\032\034google/api/annotat" + + "ions.proto\032\027google/api/client.proto\032\035goo" + + "gle/api/distribution.proto\032\037google/api/f" + + "ield_behavior.proto\032\027google/api/metric.p" + + "roto\032\031google/api/resource.proto\032\033google/" + + "protobuf/empty.proto\032\037google/protobuf/ti" + + "mestamp.proto\"\243\005\n\tLogMetric\022\021\n\004name\030\001 \001(" + + "\tB\003\340A\002\022\030\n\013description\030\002 \001(\tB\003\340A\001\022\023\n\006filt" + + "er\030\003 \001(\tB\003\340A\002\022\025\n\010disabled\030\014 \001(\010B\003\340A\001\022<\n\021" + + "metric_descriptor\030\005 \001(\0132\034.google.api.Met" + + "ricDescriptorB\003\340A\001\022\034\n\017value_extractor\030\006 " + + "\001(\tB\003\340A\001\022P\n\020label_extractors\030\007 \003(\01321.goo" + + "gle.logging.v2.LogMetric.LabelExtractors" + + "EntryB\003\340A\001\022C\n\016bucket_options\030\010 \001(\0132&.goo" + + "gle.api.Distribution.BucketOptionsB\003\340A\001\022" + + "4\n\013create_time\030\t \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\0224\n\013update_time\030\n \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\003\022<\n\007version\030\004" + + " \001(\0162\'.google.logging.v2.LogMetric.ApiVe" + + "rsionB\002\030\001\0326\n\024LabelExtractorsEntry\022\013\n\003key" + + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\034\n\nApiVersion\022" + + "\006\n\002V2\020\000\022\006\n\002V1\020\001:J\352AG\n logging.googleapis" + + ".com/LogMetric\022#projects/{project}/metri" + + "cs/{metric}\"\215\001\n\025ListLogMetricsRequest\022C\n" + + "\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemana" + + "ger.googleapis.com/Project\022\027\n\npage_token" + + "\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\"`\n\026L" + + "istLogMetricsResponse\022-\n\007metrics\030\001 \003(\0132\034" + + ".google.logging.v2.LogMetric\022\027\n\017next_pag" + + "e_token\030\002 \001(\t\"T\n\023GetLogMetricRequest\022=\n\013" + + "metric_name\030\001 \001(\tB(\340A\002\372A\"\n logging.googl" + + "eapis.com/LogMetric\"\205\001\n\026CreateLogMetricR" + + "equest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 logging." + + "googleapis.com/LogMetric\0221\n\006metric\030\002 \001(\013" + + "2\034.google.logging.v2.LogMetricB\003\340A\002\"\212\001\n\026" + + "UpdateLogMetricRequest\022=\n\013metric_name\030\001 " + + "\001(\tB(\340A\002\372A\"\n logging.googleapis.com/LogM" + + "etric\0221\n\006metric\030\002 \001(\0132\034.google.logging.v" + + "2.LogMetricB\003\340A\002\"W\n\026DeleteLogMetricReque" + + "st\022=\n\013metric_name\030\001 \001(\tB(\340A\002\372A\"\n logging" + + ".googleapis.com/LogMetric2\256\010\n\020MetricsSer" + + "viceV2\022\227\001\n\016ListLogMetrics\022(.google.loggi" + + "ng.v2.ListLogMetricsRequest\032).google.log" + + "ging.v2.ListLogMetricsResponse\"0\202\323\344\223\002!\022\037" + + "/v2/{parent=projects/*}/metrics\332A\006parent" + + "\022\222\001\n\014GetLogMetric\022&.google.logging.v2.Ge" + + "tLogMetricRequest\032\034.google.logging.v2.Lo" + + "gMetric\"<\202\323\344\223\002(\022&/v2/{metric_name=projec" + + "ts/*/metrics/*}\332A\013metric_name\022\233\001\n\017Create" + + "LogMetric\022).google.logging.v2.CreateLogM" + + "etricRequest\032\034.google.logging.v2.LogMetr" + + "ic\"?\202\323\344\223\002)\"\037/v2/{parent=projects/*}/metr" + + "ics:\006metric\332A\rparent,metric\022\247\001\n\017UpdateLo" + + "gMetric\022).google.logging.v2.UpdateLogMet" + + "ricRequest\032\034.google.logging.v2.LogMetric" + + "\"K\202\323\344\223\0020\032&/v2/{metric_name=projects/*/me" + + "trics/*}:\006metric\332A\022metric_name,metric\022\222\001" + + "\n\017DeleteLogMetric\022).google.logging.v2.De" + + "leteLogMetricRequest\032\026.google.protobuf.E" + + "mpty\"<\202\323\344\223\002(*&/v2/{metric_name=projects/" + + "*/metrics/*}\332A\013metric_name\032\215\002\312A\026logging." + + "googleapis.com\322A\360\001https://www.googleapis" + + ".com/auth/cloud-platform,https://www.goo" + + "gleapis.com/auth/cloud-platform.read-onl" + + "y,https://www.googleapis.com/auth/loggin" + + "g.admin,https://www.googleapis.com/auth/" + + "logging.read,https://www.googleapis.com/" + + "auth/logging.writeB\274\001\n\025com.google.loggin" + + "g.v2B\023LoggingMetricsProtoP\001Z8google.gola" + + "ng.org/genproto/googleapis/logging/v2;lo" + + "gging\370\001\001\252\002\027Google.Cloud.Logging.V2\312\002\027Goo" + + "gle\\Cloud\\Logging\\V2\352\002\032Google::Cloud::Lo" + + "gging::V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), com.google.api.ClientProto.getDescriptor(), com.google.api.DistributionProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.MetricProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), }); internal_static_google_logging_v2_LogMetric_descriptor = getDescriptor().getMessageTypes().get(0); @@ -168,6 +165,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Description", "Filter", + "Disabled", "MetricDescriptor", "ValueExtractor", "LabelExtractors", @@ -243,16 +241,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); com.google.api.DistributionProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.MetricProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingProto.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingProto.java index cf78eb28a..f933ad4ec 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingProto.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingProto.java @@ -97,123 +97,118 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n\037google/logging/v2/logging.proto\022\021googl" - + "e.logging.v2\032\027google/api/client.proto\032\037g" - + "oogle/api/field_behavior.proto\032#google/a" - + "pi/monitored_resource.proto\032\031google/api/" - + "resource.proto\032!google/logging/v2/log_en" - + "try.proto\032&google/logging/v2/logging_con" - + "fig.proto\032\036google/protobuf/duration.prot" - + "o\032\033google/protobuf/empty.proto\032 google/p" - + "rotobuf/field_mask.proto\032\037google/protobu" - + "f/timestamp.proto\032\027google/rpc/status.pro" - + "to\032\034google/api/annotations.proto\"H\n\020Dele" - + "teLogRequest\0224\n\010log_name\030\001 \001(\tB\"\340A\002\372A\034\n\032" - + "logging.googleapis.com/Log\"\346\002\n\026WriteLogE" - + "ntriesRequest\0224\n\010log_name\030\001 \001(\tB\"\340A\001\372A\034\n" - + "\032logging.googleapis.com/Log\0224\n\010resource\030" - + "\002 \001(\0132\035.google.api.MonitoredResourceB\003\340A" - + "\001\022J\n\006labels\030\003 \003(\01325.google.logging.v2.Wr" - + "iteLogEntriesRequest.LabelsEntryB\003\340A\001\0221\n" - + "\007entries\030\004 \003(\0132\033.google.logging.v2.LogEn" - + "tryB\003\340A\002\022\034\n\017partial_success\030\005 \001(\010B\003\340A\001\022\024" - + "\n\007dry_run\030\006 \001(\010B\003\340A\001\032-\n\013LabelsEntry\022\013\n\003k" - + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\031\n\027WriteLogE" - + "ntriesResponse\"\310\001\n\034WriteLogEntriesPartia" - + "lErrors\022]\n\020log_entry_errors\030\001 \003(\0132C.goog" - + "le.logging.v2.WriteLogEntriesPartialErro" - + "rs.LogEntryErrorsEntry\032I\n\023LogEntryErrors" - + "Entry\022\013\n\003key\030\001 \001(\005\022!\n\005value\030\002 \001(\0132\022.goog" - + "le.rpc.Status:\0028\001\"\260\001\n\025ListLogEntriesRequ" - + "est\022:\n\016resource_names\030\010 \003(\tB\"\340A\002\372A\034\022\032log" - + "ging.googleapis.com/Log\022\023\n\006filter\030\002 \001(\tB" - + "\003\340A\001\022\025\n\010order_by\030\003 \001(\tB\003\340A\001\022\026\n\tpage_size" - + "\030\004 \001(\005B\003\340A\001\022\027\n\npage_token\030\005 \001(\tB\003\340A\001\"_\n\026" - + "ListLogEntriesResponse\022,\n\007entries\030\001 \003(\0132" - + "\033.google.logging.v2.LogEntry\022\027\n\017next_pag" - + "e_token\030\002 \001(\t\"Z\n\'ListMonitoredResourceDe" - + "scriptorsRequest\022\026\n\tpage_size\030\001 \001(\005B\003\340A\001" - + "\022\027\n\npage_token\030\002 \001(\tB\003\340A\001\"\212\001\n(ListMonito" - + "redResourceDescriptorsResponse\022E\n\024resour" - + "ce_descriptors\030\001 \003(\0132\'.google.api.Monito" - + "redResourceDescriptor\022\027\n\017next_page_token" - + "\030\002 \001(\t\"\223\001\n\017ListLogsRequest\0222\n\006parent\030\001 \001" - + "(\tB\"\340A\002\372A\034\022\032logging.googleapis.com/Log\022\026" - + "\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_token\030\003 \001" - + "(\tB\003\340A\001\022\033\n\016resource_names\030\010 \003(\tB\003\340A\001\">\n\020" - + "ListLogsResponse\022\021\n\tlog_names\030\003 \003(\t\022\027\n\017n" - + "ext_page_token\030\002 \001(\t\"\200\001\n\025TailLogEntriesR" - + "equest\022\033\n\016resource_names\030\001 \003(\tB\003\340A\002\022\023\n\006f" - + "ilter\030\002 \001(\tB\003\340A\001\0225\n\rbuffer_window\030\003 \001(\0132" - + "\031.google.protobuf.DurationB\003\340A\001\"\337\002\n\026Tail" - + "LogEntriesResponse\022,\n\007entries\030\001 \003(\0132\033.go" - + "ogle.logging.v2.LogEntry\022S\n\020suppression_" - + "info\030\002 \003(\01329.google.logging.v2.TailLogEn" - + "triesResponse.SuppressionInfo\032\301\001\n\017Suppre" - + "ssionInfo\022P\n\006reason\030\001 \001(\0162@.google.loggi" - + "ng.v2.TailLogEntriesResponse.Suppression" - + "Info.Reason\022\030\n\020suppressed_count\030\002 \001(\005\"B\n" - + "\006Reason\022\026\n\022REASON_UNSPECIFIED\020\000\022\016\n\nRATE_" - + "LIMIT\020\001\022\020\n\014NOT_CONSUMED\020\0022\346\013\n\020LoggingSer" - + "viceV2\022\223\002\n\tDeleteLog\022#.google.logging.v2" - + ".DeleteLogRequest\032\026.google.protobuf.Empt" - + "y\"\310\001\202\323\344\223\002\266\001* /v2/{log_name=projects/*/lo" - + "gs/*}Z\033*\031/v2/{log_name=*/*/logs/*}Z\'*%/v" - + "2/{log_name=organizations/*/logs/*}Z!*\037/" - + "v2/{log_name=folders/*/logs/*}Z)*\'/v2/{l" - + "og_name=billingAccounts/*/logs/*}\332A\010log_" - + "name\022\251\001\n\017WriteLogEntries\022).google.loggin" - + "g.v2.WriteLogEntriesRequest\032*.google.log" - + "ging.v2.WriteLogEntriesResponse\"?\202\323\344\223\002\026\"" - + "\021/v2/entries:write:\001*\332A log_name,resourc" - + "e,labels,entries\022\243\001\n\016ListLogEntries\022(.go" - + "ogle.logging.v2.ListLogEntriesRequest\032)." - + "google.logging.v2.ListLogEntriesResponse" - + "\"<\202\323\344\223\002\025\"\020/v2/entries:list:\001*\332A\036resource" - + "_names,filter,order_by\022\305\001\n ListMonitored" - + "ResourceDescriptors\022:.google.logging.v2." - + "ListMonitoredResourceDescriptorsRequest\032" - + ";.google.logging.v2.ListMonitoredResourc" - + "eDescriptorsResponse\"(\202\323\344\223\002\"\022 /v2/monito" - + "redResourceDescriptors\022\210\002\n\010ListLogs\022\".go" - + "ogle.logging.v2.ListLogsRequest\032#.google" - + ".logging.v2.ListLogsResponse\"\262\001\202\323\344\223\002\242\001\022\025" - + "/v2/{parent=*/*}/logsZ\036\022\034/v2/{parent=pro" - + "jects/*}/logsZ#\022!/v2/{parent=organizatio" - + "ns/*}/logsZ\035\022\033/v2/{parent=folders/*}/log" - + "sZ%\022#/v2/{parent=billingAccounts/*}/logs" - + "\332A\006parent\022\206\001\n\016TailLogEntries\022(.google.lo" - + "gging.v2.TailLogEntriesRequest\032).google." - + "logging.v2.TailLogEntriesResponse\"\033\202\323\344\223\002" - + "\025\"\020/v2/entries:tail:\001*(\0010\001\032\215\002\312A\026logging." - + "googleapis.com\322A\360\001https://www.googleapis" - + ".com/auth/cloud-platform,https://www.goo" - + "gleapis.com/auth/cloud-platform.read-onl" - + "y,https://www.googleapis.com/auth/loggin" - + "g.admin,https://www.googleapis.com/auth/" - + "logging.read,https://www.googleapis.com/" - + "auth/logging.writeB\265\001\n\025com.google.loggin" - + "g.v2B\014LoggingProtoP\001Z8google.golang.org/" - + "genproto/googleapis/logging/v2;logging\370\001" - + "\001\252\002\027Google.Cloud.Logging.V2\312\002\027Google\\Clo" - + "ud\\Logging\\V2\352\002\032Google::Cloud::Logging::" - + "V2b\006proto3" + + "e.logging.v2\032\034google/api/annotations.pro" + + "to\032\027google/api/client.proto\032\037google/api/" + + "field_behavior.proto\032#google/api/monitor" + + "ed_resource.proto\032\031google/api/resource.p" + + "roto\032!google/logging/v2/log_entry.proto\032" + + "\036google/protobuf/duration.proto\032\033google/" + + "protobuf/empty.proto\032\027google/rpc/status." + + "proto\"H\n\020DeleteLogRequest\0224\n\010log_name\030\001 " + + "\001(\tB\"\340A\002\372A\034\n\032logging.googleapis.com/Log\"" + + "\346\002\n\026WriteLogEntriesRequest\0224\n\010log_name\030\001" + + " \001(\tB\"\340A\001\372A\034\n\032logging.googleapis.com/Log" + + "\0224\n\010resource\030\002 \001(\0132\035.google.api.Monitore" + + "dResourceB\003\340A\001\022J\n\006labels\030\003 \003(\01325.google." + + "logging.v2.WriteLogEntriesRequest.Labels" + + "EntryB\003\340A\001\0221\n\007entries\030\004 \003(\0132\033.google.log" + + "ging.v2.LogEntryB\003\340A\002\022\034\n\017partial_success" + + "\030\005 \001(\010B\003\340A\001\022\024\n\007dry_run\030\006 \001(\010B\003\340A\001\032-\n\013Lab" + + "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + + "\"\031\n\027WriteLogEntriesResponse\"\310\001\n\034WriteLog" + + "EntriesPartialErrors\022]\n\020log_entry_errors" + + "\030\001 \003(\0132C.google.logging.v2.WriteLogEntri" + + "esPartialErrors.LogEntryErrorsEntry\032I\n\023L" + + "ogEntryErrorsEntry\022\013\n\003key\030\001 \001(\005\022!\n\005value" + + "\030\002 \001(\0132\022.google.rpc.Status:\0028\001\"\260\001\n\025ListL" + + "ogEntriesRequest\022:\n\016resource_names\030\010 \003(\t" + + "B\"\340A\002\372A\034\022\032logging.googleapis.com/Log\022\023\n\006" + + "filter\030\002 \001(\tB\003\340A\001\022\025\n\010order_by\030\003 \001(\tB\003\340A\001" + + "\022\026\n\tpage_size\030\004 \001(\005B\003\340A\001\022\027\n\npage_token\030\005" + + " \001(\tB\003\340A\001\"_\n\026ListLogEntriesResponse\022,\n\007e" + + "ntries\030\001 \003(\0132\033.google.logging.v2.LogEntr" + + "y\022\027\n\017next_page_token\030\002 \001(\t\"Z\n\'ListMonito" + + "redResourceDescriptorsRequest\022\026\n\tpage_si" + + "ze\030\001 \001(\005B\003\340A\001\022\027\n\npage_token\030\002 \001(\tB\003\340A\001\"\212" + + "\001\n(ListMonitoredResourceDescriptorsRespo" + + "nse\022E\n\024resource_descriptors\030\001 \003(\0132\'.goog" + + "le.api.MonitoredResourceDescriptor\022\027\n\017ne" + + "xt_page_token\030\002 \001(\t\"\262\001\n\017ListLogsRequest\022" + + "2\n\006parent\030\001 \001(\tB\"\340A\002\372A\034\022\032logging.googlea" + + "pis.com/Log\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\np" + + "age_token\030\003 \001(\tB\003\340A\001\022:\n\016resource_names\030\010" + + " \003(\tB\"\340A\001\372A\034\022\032logging.googleapis.com/Log" + + "\">\n\020ListLogsResponse\022\021\n\tlog_names\030\003 \003(\t\022" + + "\027\n\017next_page_token\030\002 \001(\t\"\200\001\n\025TailLogEntr" + + "iesRequest\022\033\n\016resource_names\030\001 \003(\tB\003\340A\002\022" + + "\023\n\006filter\030\002 \001(\tB\003\340A\001\0225\n\rbuffer_window\030\003 " + + "\001(\0132\031.google.protobuf.DurationB\003\340A\001\"\337\002\n\026" + + "TailLogEntriesResponse\022,\n\007entries\030\001 \003(\0132" + + "\033.google.logging.v2.LogEntry\022S\n\020suppress" + + "ion_info\030\002 \003(\01329.google.logging.v2.TailL" + + "ogEntriesResponse.SuppressionInfo\032\301\001\n\017Su" + + "ppressionInfo\022P\n\006reason\030\001 \001(\0162@.google.l" + + "ogging.v2.TailLogEntriesResponse.Suppres" + + "sionInfo.Reason\022\030\n\020suppressed_count\030\002 \001(" + + "\005\"B\n\006Reason\022\026\n\022REASON_UNSPECIFIED\020\000\022\016\n\nR" + + "ATE_LIMIT\020\001\022\020\n\014NOT_CONSUMED\020\0022\346\013\n\020Loggin" + + "gServiceV2\022\223\002\n\tDeleteLog\022#.google.loggin" + + "g.v2.DeleteLogRequest\032\026.google.protobuf." + + "Empty\"\310\001\202\323\344\223\002\266\001* /v2/{log_name=projects/" + + "*/logs/*}Z\033*\031/v2/{log_name=*/*/logs/*}Z\'" + + "*%/v2/{log_name=organizations/*/logs/*}Z" + + "!*\037/v2/{log_name=folders/*/logs/*}Z)*\'/v" + + "2/{log_name=billingAccounts/*/logs/*}\332A\010" + + "log_name\022\251\001\n\017WriteLogEntries\022).google.lo" + + "gging.v2.WriteLogEntriesRequest\032*.google" + + ".logging.v2.WriteLogEntriesResponse\"?\202\323\344" + + "\223\002\026\"\021/v2/entries:write:\001*\332A log_name,res" + + "ource,labels,entries\022\243\001\n\016ListLogEntries\022" + + "(.google.logging.v2.ListLogEntriesReques" + + "t\032).google.logging.v2.ListLogEntriesResp" + + "onse\"<\202\323\344\223\002\025\"\020/v2/entries:list:\001*\332A\036reso" + + "urce_names,filter,order_by\022\305\001\n ListMonit" + + "oredResourceDescriptors\022:.google.logging" + + ".v2.ListMonitoredResourceDescriptorsRequ" + + "est\032;.google.logging.v2.ListMonitoredRes" + + "ourceDescriptorsResponse\"(\202\323\344\223\002\"\022 /v2/mo" + + "nitoredResourceDescriptors\022\210\002\n\010ListLogs\022" + + "\".google.logging.v2.ListLogsRequest\032#.go" + + "ogle.logging.v2.ListLogsResponse\"\262\001\202\323\344\223\002" + + "\242\001\022\025/v2/{parent=*/*}/logsZ\036\022\034/v2/{parent" + + "=projects/*}/logsZ#\022!/v2/{parent=organiz" + + "ations/*}/logsZ\035\022\033/v2/{parent=folders/*}" + + "/logsZ%\022#/v2/{parent=billingAccounts/*}/" + + "logs\332A\006parent\022\206\001\n\016TailLogEntries\022(.googl" + + "e.logging.v2.TailLogEntriesRequest\032).goo" + + "gle.logging.v2.TailLogEntriesResponse\"\033\202" + + "\323\344\223\002\025\"\020/v2/entries:tail:\001*(\0010\001\032\215\002\312A\026logg" + + "ing.googleapis.com\322A\360\001https://www.google" + + "apis.com/auth/cloud-platform,https://www" + + ".googleapis.com/auth/cloud-platform.read" + + "-only,https://www.googleapis.com/auth/lo" + + "gging.admin,https://www.googleapis.com/a" + + "uth/logging.read,https://www.googleapis." + + "com/auth/logging.writeB\265\001\n\025com.google.lo" + + "gging.v2B\014LoggingProtoP\001Z8google.golang." + + "org/genproto/googleapis/logging/v2;loggi" + + "ng\370\001\001\252\002\027Google.Cloud.Logging.V2\312\002\027Google" + + "\\Cloud\\Logging\\V2\352\002\032Google::Cloud::Loggi" + + "ng::V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), com.google.api.ClientProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.MonitoredResourceProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.logging.v2.LogEntryProto.getDescriptor(), - com.google.logging.v2.LoggingConfigProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), com.google.rpc.StatusProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), }); internal_static_google_logging_v2_DeleteLogRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -345,18 +340,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.MonitoredResourceProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.logging.v2.LogEntryProto.getDescriptor(); - com.google.logging.v2.LoggingConfigProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); com.google.rpc.StatusProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OperationState.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OperationState.java new file mode 100644 index 000000000..593fce648 --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/OperationState.java @@ -0,0 +1,268 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/v2/logging_config.proto + +package com.google.logging.v2; + +/** + * + * + *
+ * List of different operation states.
+ * High level state of the operation. This is used to report the job's
+ * current state to the user. Once a long running operation is created,
+ * the current state of the operation can be queried even before the
+ * operation is finished and the final result is available.
+ * 
+ * + * Protobuf enum {@code google.logging.v2.OperationState} + */ +public enum OperationState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Should not be used.
+   * 
+ * + * OPERATION_STATE_UNSPECIFIED = 0; + */ + OPERATION_STATE_UNSPECIFIED(0), + /** + * + * + *
+   * The operation is scheduled.
+   * 
+ * + * OPERATION_STATE_SCHEDULED = 1; + */ + OPERATION_STATE_SCHEDULED(1), + /** + * + * + *
+   * Waiting for necessary permissions.
+   * 
+ * + * OPERATION_STATE_WAITING_FOR_PERMISSIONS = 2; + */ + OPERATION_STATE_WAITING_FOR_PERMISSIONS(2), + /** + * + * + *
+   * The operation is running.
+   * 
+ * + * OPERATION_STATE_RUNNING = 3; + */ + OPERATION_STATE_RUNNING(3), + /** + * + * + *
+   * The operation was completed successfully.
+   * 
+ * + * OPERATION_STATE_SUCCEEDED = 4; + */ + OPERATION_STATE_SUCCEEDED(4), + /** + * + * + *
+   * The operation failed.
+   * 
+ * + * OPERATION_STATE_FAILED = 5; + */ + OPERATION_STATE_FAILED(5), + /** + * + * + *
+   * The operation was cancelled by the user.
+   * 
+ * + * OPERATION_STATE_CANCELLED = 6; + */ + OPERATION_STATE_CANCELLED(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Should not be used.
+   * 
+ * + * OPERATION_STATE_UNSPECIFIED = 0; + */ + public static final int OPERATION_STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * The operation is scheduled.
+   * 
+ * + * OPERATION_STATE_SCHEDULED = 1; + */ + public static final int OPERATION_STATE_SCHEDULED_VALUE = 1; + /** + * + * + *
+   * Waiting for necessary permissions.
+   * 
+ * + * OPERATION_STATE_WAITING_FOR_PERMISSIONS = 2; + */ + public static final int OPERATION_STATE_WAITING_FOR_PERMISSIONS_VALUE = 2; + /** + * + * + *
+   * The operation is running.
+   * 
+ * + * OPERATION_STATE_RUNNING = 3; + */ + public static final int OPERATION_STATE_RUNNING_VALUE = 3; + /** + * + * + *
+   * The operation was completed successfully.
+   * 
+ * + * OPERATION_STATE_SUCCEEDED = 4; + */ + public static final int OPERATION_STATE_SUCCEEDED_VALUE = 4; + /** + * + * + *
+   * The operation failed.
+   * 
+ * + * OPERATION_STATE_FAILED = 5; + */ + public static final int OPERATION_STATE_FAILED_VALUE = 5; + /** + * + * + *
+   * The operation was cancelled by the user.
+   * 
+ * + * OPERATION_STATE_CANCELLED = 6; + */ + public static final int OPERATION_STATE_CANCELLED_VALUE = 6; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OperationState valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static OperationState forNumber(int value) { + switch (value) { + case 0: + return OPERATION_STATE_UNSPECIFIED; + case 1: + return OPERATION_STATE_SCHEDULED; + case 2: + return OPERATION_STATE_WAITING_FOR_PERMISSIONS; + case 3: + return OPERATION_STATE_RUNNING; + case 4: + return OPERATION_STATE_SUCCEEDED; + case 5: + return OPERATION_STATE_FAILED; + case 6: + return OPERATION_STATE_CANCELLED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public OperationState findValueByNumber(int number) { + return OperationState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto.getDescriptor().getEnumTypes().get(1); + } + + private static final OperationState[] VALUES = values(); + + public static OperationState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private OperationState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.logging.v2.OperationState) +} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/Settings.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/Settings.java new file mode 100644 index 000000000..b421f30bd --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/Settings.java @@ -0,0 +1,1459 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/v2/logging_config.proto + +package com.google.logging.v2; + +/** + * + * + *
+ * Describes the settings associated with a project, folder, organization,
+ * billing account, or flexible resource.
+ * 
+ * + * Protobuf type {@code google.logging.v2.Settings} + */ +public final class Settings extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.logging.v2.Settings) + SettingsOrBuilder { + private static final long serialVersionUID = 0L; + // Use Settings.newBuilder() to construct. + private Settings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Settings() { + name_ = ""; + kmsKeyName_ = ""; + kmsServiceAccountId_ = ""; + storageLocation_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Settings(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Settings( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + kmsKeyName_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + kmsServiceAccountId_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + storageLocation_ = s; + break; + } + case 40: + { + disableDefaultSink_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_Settings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_Settings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.logging.v2.Settings.class, com.google.logging.v2.Settings.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. The resource name of the settings.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The resource name of the settings.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KMS_KEY_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object kmsKeyName_; + /** + * + * + *
+   * Optional. The resource name for the configured Cloud KMS key.
+   * KMS key name format:
+   *     "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
+   * For example:
+   *   `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key"`
+   * To enable CMEK for the Log Router, set this field to a valid
+   * `kms_key_name` for which the associated service account has the required
+   * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key.
+   * The Cloud KMS key used by the Log Router can be updated by changing the
+   * `kms_key_name` to a new valid key name. Encryption operations that are in
+   * progress will be completed with the key that was in use when they started.
+   * Decryption operations will be completed using the key that was used at the
+   * time of encryption unless access to that key has been revoked.
+   * To disable CMEK for the Log Router, set this field to an empty string.
+   * See [Enabling CMEK for Log
+   * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+   * for more information.
+   * 
+ * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The kmsKeyName. + */ + @java.lang.Override + public java.lang.String getKmsKeyName() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKeyName_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The resource name for the configured Cloud KMS key.
+   * KMS key name format:
+   *     "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
+   * For example:
+   *   `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key"`
+   * To enable CMEK for the Log Router, set this field to a valid
+   * `kms_key_name` for which the associated service account has the required
+   * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key.
+   * The Cloud KMS key used by the Log Router can be updated by changing the
+   * `kms_key_name` to a new valid key name. Encryption operations that are in
+   * progress will be completed with the key that was in use when they started.
+   * Decryption operations will be completed using the key that was used at the
+   * time of encryption unless access to that key has been revoked.
+   * To disable CMEK for the Log Router, set this field to an empty string.
+   * See [Enabling CMEK for Log
+   * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+   * for more information.
+   * 
+ * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for kmsKeyName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKmsKeyNameBytes() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKeyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KMS_SERVICE_ACCOUNT_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object kmsServiceAccountId_; + /** + * + * + *
+   * Output only. The service account that will be used by the Log Router to access your
+   * Cloud KMS key.
+   * Before enabling CMEK for Log Router, you must first assign the role
+   * `roles/cloudkms.cryptoKeyEncrypterDecrypter` to the service account that
+   * the Log Router will use to access your Cloud KMS key. Use
+   * [GetSettings][google.logging.v2.ConfigServiceV2.GetSettings] to
+   * obtain the service account ID.
+   * See [Enabling CMEK for Log
+   * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+   * for more information.
+   * 
+ * + * string kms_service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The kmsServiceAccountId. + */ + @java.lang.Override + public java.lang.String getKmsServiceAccountId() { + java.lang.Object ref = kmsServiceAccountId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsServiceAccountId_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The service account that will be used by the Log Router to access your
+   * Cloud KMS key.
+   * Before enabling CMEK for Log Router, you must first assign the role
+   * `roles/cloudkms.cryptoKeyEncrypterDecrypter` to the service account that
+   * the Log Router will use to access your Cloud KMS key. Use
+   * [GetSettings][google.logging.v2.ConfigServiceV2.GetSettings] to
+   * obtain the service account ID.
+   * See [Enabling CMEK for Log
+   * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+   * for more information.
+   * 
+ * + * string kms_service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for kmsServiceAccountId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKmsServiceAccountIdBytes() { + java.lang.Object ref = kmsServiceAccountId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsServiceAccountId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STORAGE_LOCATION_FIELD_NUMBER = 4; + private volatile java.lang.Object storageLocation_; + /** + * + * + *
+   * Optional. The Cloud region that will be used for _Default and _Required log buckets
+   * for newly created projects and folders. For example `europe-west1`.
+   * This setting does not affect the location of custom log buckets.
+   * 
+ * + * string storage_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The storageLocation. + */ + @java.lang.Override + public java.lang.String getStorageLocation() { + java.lang.Object ref = storageLocation_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + storageLocation_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The Cloud region that will be used for _Default and _Required log buckets
+   * for newly created projects and folders. For example `europe-west1`.
+   * This setting does not affect the location of custom log buckets.
+   * 
+ * + * string storage_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for storageLocation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStorageLocationBytes() { + java.lang.Object ref = storageLocation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + storageLocation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISABLE_DEFAULT_SINK_FIELD_NUMBER = 5; + private boolean disableDefaultSink_; + /** + * + * + *
+   * Optional. If set to true, the _Default sink in newly created projects and folders
+   * will created in a disabled state. This can be used to automatically disable
+   * log ingestion if there is already an aggregated sink configured in the
+   * hierarchy. The _Default sink can be re-enabled manually if needed.
+   * 
+ * + * bool disable_default_sink = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disableDefaultSink. + */ + @java.lang.Override + public boolean getDisableDefaultSink() { + return disableDefaultSink_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kmsKeyName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsServiceAccountId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, kmsServiceAccountId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storageLocation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, storageLocation_); + } + if (disableDefaultSink_ != false) { + output.writeBool(5, disableDefaultSink_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsKeyName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kmsKeyName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kmsServiceAccountId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, kmsServiceAccountId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(storageLocation_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, storageLocation_); + } + if (disableDefaultSink_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, disableDefaultSink_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.logging.v2.Settings)) { + return super.equals(obj); + } + com.google.logging.v2.Settings other = (com.google.logging.v2.Settings) obj; + + if (!getName().equals(other.getName())) return false; + if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; + if (!getKmsServiceAccountId().equals(other.getKmsServiceAccountId())) return false; + if (!getStorageLocation().equals(other.getStorageLocation())) return false; + if (getDisableDefaultSink() != other.getDisableDefaultSink()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getKmsKeyName().hashCode(); + hash = (37 * hash) + KMS_SERVICE_ACCOUNT_ID_FIELD_NUMBER; + hash = (53 * hash) + getKmsServiceAccountId().hashCode(); + hash = (37 * hash) + STORAGE_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getStorageLocation().hashCode(); + hash = (37 * hash) + DISABLE_DEFAULT_SINK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableDefaultSink()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.logging.v2.Settings parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.Settings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.Settings parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.Settings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.Settings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.Settings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.Settings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.logging.v2.Settings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.logging.v2.Settings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.logging.v2.Settings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.logging.v2.Settings parseFrom(com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.logging.v2.Settings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.logging.v2.Settings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Describes the settings associated with a project, folder, organization,
+   * billing account, or flexible resource.
+   * 
+ * + * Protobuf type {@code google.logging.v2.Settings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.logging.v2.Settings) + com.google.logging.v2.SettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_Settings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_Settings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.logging.v2.Settings.class, com.google.logging.v2.Settings.Builder.class); + } + + // Construct using com.google.logging.v2.Settings.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + kmsKeyName_ = ""; + + kmsServiceAccountId_ = ""; + + storageLocation_ = ""; + + disableDefaultSink_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_Settings_descriptor; + } + + @java.lang.Override + public com.google.logging.v2.Settings getDefaultInstanceForType() { + return com.google.logging.v2.Settings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.logging.v2.Settings build() { + com.google.logging.v2.Settings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.logging.v2.Settings buildPartial() { + com.google.logging.v2.Settings result = new com.google.logging.v2.Settings(this); + result.name_ = name_; + result.kmsKeyName_ = kmsKeyName_; + result.kmsServiceAccountId_ = kmsServiceAccountId_; + result.storageLocation_ = storageLocation_; + result.disableDefaultSink_ = disableDefaultSink_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.logging.v2.Settings) { + return mergeFrom((com.google.logging.v2.Settings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.logging.v2.Settings other) { + if (other == com.google.logging.v2.Settings.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getKmsKeyName().isEmpty()) { + kmsKeyName_ = other.kmsKeyName_; + onChanged(); + } + if (!other.getKmsServiceAccountId().isEmpty()) { + kmsServiceAccountId_ = other.kmsServiceAccountId_; + onChanged(); + } + if (!other.getStorageLocation().isEmpty()) { + storageLocation_ = other.storageLocation_; + onChanged(); + } + if (other.getDisableDefaultSink() != false) { + setDisableDefaultSink(other.getDisableDefaultSink()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.logging.v2.Settings parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.logging.v2.Settings) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. The resource name of the settings.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of the settings.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The resource name of the settings.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of the settings.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name of the settings.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object kmsKeyName_ = ""; + /** + * + * + *
+     * Optional. The resource name for the configured Cloud KMS key.
+     * KMS key name format:
+     *     "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
+     * For example:
+     *   `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key"`
+     * To enable CMEK for the Log Router, set this field to a valid
+     * `kms_key_name` for which the associated service account has the required
+     * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key.
+     * The Cloud KMS key used by the Log Router can be updated by changing the
+     * `kms_key_name` to a new valid key name. Encryption operations that are in
+     * progress will be completed with the key that was in use when they started.
+     * Decryption operations will be completed using the key that was used at the
+     * time of encryption unless access to that key has been revoked.
+     * To disable CMEK for the Log Router, set this field to an empty string.
+     * See [Enabling CMEK for Log
+     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+     * for more information.
+     * 
+ * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The kmsKeyName. + */ + public java.lang.String getKmsKeyName() { + java.lang.Object ref = kmsKeyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKeyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The resource name for the configured Cloud KMS key.
+     * KMS key name format:
+     *     "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
+     * For example:
+     *   `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key"`
+     * To enable CMEK for the Log Router, set this field to a valid
+     * `kms_key_name` for which the associated service account has the required
+     * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key.
+     * The Cloud KMS key used by the Log Router can be updated by changing the
+     * `kms_key_name` to a new valid key name. Encryption operations that are in
+     * progress will be completed with the key that was in use when they started.
+     * Decryption operations will be completed using the key that was used at the
+     * time of encryption unless access to that key has been revoked.
+     * To disable CMEK for the Log Router, set this field to an empty string.
+     * See [Enabling CMEK for Log
+     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+     * for more information.
+     * 
+ * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for kmsKeyName. + */ + public com.google.protobuf.ByteString getKmsKeyNameBytes() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKeyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The resource name for the configured Cloud KMS key.
+     * KMS key name format:
+     *     "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
+     * For example:
+     *   `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key"`
+     * To enable CMEK for the Log Router, set this field to a valid
+     * `kms_key_name` for which the associated service account has the required
+     * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key.
+     * The Cloud KMS key used by the Log Router can be updated by changing the
+     * `kms_key_name` to a new valid key name. Encryption operations that are in
+     * progress will be completed with the key that was in use when they started.
+     * Decryption operations will be completed using the key that was used at the
+     * time of encryption unless access to that key has been revoked.
+     * To disable CMEK for the Log Router, set this field to an empty string.
+     * See [Enabling CMEK for Log
+     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+     * for more information.
+     * 
+ * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The kmsKeyName to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + kmsKeyName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The resource name for the configured Cloud KMS key.
+     * KMS key name format:
+     *     "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
+     * For example:
+     *   `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key"`
+     * To enable CMEK for the Log Router, set this field to a valid
+     * `kms_key_name` for which the associated service account has the required
+     * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key.
+     * The Cloud KMS key used by the Log Router can be updated by changing the
+     * `kms_key_name` to a new valid key name. Encryption operations that are in
+     * progress will be completed with the key that was in use when they started.
+     * Decryption operations will be completed using the key that was used at the
+     * time of encryption unless access to that key has been revoked.
+     * To disable CMEK for the Log Router, set this field to an empty string.
+     * See [Enabling CMEK for Log
+     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+     * for more information.
+     * 
+ * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearKmsKeyName() { + + kmsKeyName_ = getDefaultInstance().getKmsKeyName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The resource name for the configured Cloud KMS key.
+     * KMS key name format:
+     *     "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
+     * For example:
+     *   `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key"`
+     * To enable CMEK for the Log Router, set this field to a valid
+     * `kms_key_name` for which the associated service account has the required
+     * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key.
+     * The Cloud KMS key used by the Log Router can be updated by changing the
+     * `kms_key_name` to a new valid key name. Encryption operations that are in
+     * progress will be completed with the key that was in use when they started.
+     * Decryption operations will be completed using the key that was used at the
+     * time of encryption unless access to that key has been revoked.
+     * To disable CMEK for the Log Router, set this field to an empty string.
+     * See [Enabling CMEK for Log
+     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+     * for more information.
+     * 
+ * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for kmsKeyName to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + kmsKeyName_ = value; + onChanged(); + return this; + } + + private java.lang.Object kmsServiceAccountId_ = ""; + /** + * + * + *
+     * Output only. The service account that will be used by the Log Router to access your
+     * Cloud KMS key.
+     * Before enabling CMEK for Log Router, you must first assign the role
+     * `roles/cloudkms.cryptoKeyEncrypterDecrypter` to the service account that
+     * the Log Router will use to access your Cloud KMS key. Use
+     * [GetSettings][google.logging.v2.ConfigServiceV2.GetSettings] to
+     * obtain the service account ID.
+     * See [Enabling CMEK for Log
+     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+     * for more information.
+     * 
+ * + * string kms_service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The kmsServiceAccountId. + */ + public java.lang.String getKmsServiceAccountId() { + java.lang.Object ref = kmsServiceAccountId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsServiceAccountId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The service account that will be used by the Log Router to access your
+     * Cloud KMS key.
+     * Before enabling CMEK for Log Router, you must first assign the role
+     * `roles/cloudkms.cryptoKeyEncrypterDecrypter` to the service account that
+     * the Log Router will use to access your Cloud KMS key. Use
+     * [GetSettings][google.logging.v2.ConfigServiceV2.GetSettings] to
+     * obtain the service account ID.
+     * See [Enabling CMEK for Log
+     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+     * for more information.
+     * 
+ * + * string kms_service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for kmsServiceAccountId. + */ + public com.google.protobuf.ByteString getKmsServiceAccountIdBytes() { + java.lang.Object ref = kmsServiceAccountId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsServiceAccountId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The service account that will be used by the Log Router to access your
+     * Cloud KMS key.
+     * Before enabling CMEK for Log Router, you must first assign the role
+     * `roles/cloudkms.cryptoKeyEncrypterDecrypter` to the service account that
+     * the Log Router will use to access your Cloud KMS key. Use
+     * [GetSettings][google.logging.v2.ConfigServiceV2.GetSettings] to
+     * obtain the service account ID.
+     * See [Enabling CMEK for Log
+     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+     * for more information.
+     * 
+ * + * string kms_service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The kmsServiceAccountId to set. + * @return This builder for chaining. + */ + public Builder setKmsServiceAccountId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + kmsServiceAccountId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The service account that will be used by the Log Router to access your
+     * Cloud KMS key.
+     * Before enabling CMEK for Log Router, you must first assign the role
+     * `roles/cloudkms.cryptoKeyEncrypterDecrypter` to the service account that
+     * the Log Router will use to access your Cloud KMS key. Use
+     * [GetSettings][google.logging.v2.ConfigServiceV2.GetSettings] to
+     * obtain the service account ID.
+     * See [Enabling CMEK for Log
+     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+     * for more information.
+     * 
+ * + * string kms_service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearKmsServiceAccountId() { + + kmsServiceAccountId_ = getDefaultInstance().getKmsServiceAccountId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The service account that will be used by the Log Router to access your
+     * Cloud KMS key.
+     * Before enabling CMEK for Log Router, you must first assign the role
+     * `roles/cloudkms.cryptoKeyEncrypterDecrypter` to the service account that
+     * the Log Router will use to access your Cloud KMS key. Use
+     * [GetSettings][google.logging.v2.ConfigServiceV2.GetSettings] to
+     * obtain the service account ID.
+     * See [Enabling CMEK for Log
+     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+     * for more information.
+     * 
+ * + * string kms_service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for kmsServiceAccountId to set. + * @return This builder for chaining. + */ + public Builder setKmsServiceAccountIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + kmsServiceAccountId_ = value; + onChanged(); + return this; + } + + private java.lang.Object storageLocation_ = ""; + /** + * + * + *
+     * Optional. The Cloud region that will be used for _Default and _Required log buckets
+     * for newly created projects and folders. For example `europe-west1`.
+     * This setting does not affect the location of custom log buckets.
+     * 
+ * + * string storage_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The storageLocation. + */ + public java.lang.String getStorageLocation() { + java.lang.Object ref = storageLocation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + storageLocation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The Cloud region that will be used for _Default and _Required log buckets
+     * for newly created projects and folders. For example `europe-west1`.
+     * This setting does not affect the location of custom log buckets.
+     * 
+ * + * string storage_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for storageLocation. + */ + public com.google.protobuf.ByteString getStorageLocationBytes() { + java.lang.Object ref = storageLocation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + storageLocation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The Cloud region that will be used for _Default and _Required log buckets
+     * for newly created projects and folders. For example `europe-west1`.
+     * This setting does not affect the location of custom log buckets.
+     * 
+ * + * string storage_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The storageLocation to set. + * @return This builder for chaining. + */ + public Builder setStorageLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + storageLocation_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The Cloud region that will be used for _Default and _Required log buckets
+     * for newly created projects and folders. For example `europe-west1`.
+     * This setting does not affect the location of custom log buckets.
+     * 
+ * + * string storage_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearStorageLocation() { + + storageLocation_ = getDefaultInstance().getStorageLocation(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The Cloud region that will be used for _Default and _Required log buckets
+     * for newly created projects and folders. For example `europe-west1`.
+     * This setting does not affect the location of custom log buckets.
+     * 
+ * + * string storage_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for storageLocation to set. + * @return This builder for chaining. + */ + public Builder setStorageLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + storageLocation_ = value; + onChanged(); + return this; + } + + private boolean disableDefaultSink_; + /** + * + * + *
+     * Optional. If set to true, the _Default sink in newly created projects and folders
+     * will created in a disabled state. This can be used to automatically disable
+     * log ingestion if there is already an aggregated sink configured in the
+     * hierarchy. The _Default sink can be re-enabled manually if needed.
+     * 
+ * + * bool disable_default_sink = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disableDefaultSink. + */ + @java.lang.Override + public boolean getDisableDefaultSink() { + return disableDefaultSink_; + } + /** + * + * + *
+     * Optional. If set to true, the _Default sink in newly created projects and folders
+     * will created in a disabled state. This can be used to automatically disable
+     * log ingestion if there is already an aggregated sink configured in the
+     * hierarchy. The _Default sink can be re-enabled manually if needed.
+     * 
+ * + * bool disable_default_sink = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The disableDefaultSink to set. + * @return This builder for chaining. + */ + public Builder setDisableDefaultSink(boolean value) { + + disableDefaultSink_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set to true, the _Default sink in newly created projects and folders
+     * will created in a disabled state. This can be used to automatically disable
+     * log ingestion if there is already an aggregated sink configured in the
+     * hierarchy. The _Default sink can be re-enabled manually if needed.
+     * 
+ * + * bool disable_default_sink = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisableDefaultSink() { + + disableDefaultSink_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.logging.v2.Settings) + } + + // @@protoc_insertion_point(class_scope:google.logging.v2.Settings) + private static final com.google.logging.v2.Settings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.logging.v2.Settings(); + } + + public static com.google.logging.v2.Settings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Settings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Settings(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.logging.v2.Settings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/SettingsName.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/SettingsName.java new file mode 100644 index 000000000..3e70e8f60 --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/SettingsName.java @@ -0,0 +1,383 @@ +/* + * Copyright 2021 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.logging.v2; + +import com.google.api.core.BetaApi; +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class SettingsName implements ResourceName { + private static final PathTemplate PROJECT = + PathTemplate.createWithoutUrlEncoding("projects/{project}/settings"); + private static final PathTemplate ORGANIZATION = + PathTemplate.createWithoutUrlEncoding("organizations/{organization}/settings"); + private static final PathTemplate FOLDER = + PathTemplate.createWithoutUrlEncoding("folders/{folder}/settings"); + private static final PathTemplate BILLING_ACCOUNT = + PathTemplate.createWithoutUrlEncoding("billingAccounts/{billing_account}/settings"); + private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + private final String project; + private final String organization; + private final String folder; + private final String billingAccount; + + @Deprecated + protected SettingsName() { + project = null; + organization = null; + folder = null; + billingAccount = null; + } + + private SettingsName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + organization = null; + folder = null; + billingAccount = null; + pathTemplate = PROJECT; + } + + private SettingsName(OrganizationBuilder builder) { + organization = Preconditions.checkNotNull(builder.getOrganization()); + project = null; + folder = null; + billingAccount = null; + pathTemplate = ORGANIZATION; + } + + private SettingsName(FolderBuilder builder) { + folder = Preconditions.checkNotNull(builder.getFolder()); + project = null; + organization = null; + billingAccount = null; + pathTemplate = FOLDER; + } + + private SettingsName(BillingAccountBuilder builder) { + billingAccount = Preconditions.checkNotNull(builder.getBillingAccount()); + project = null; + organization = null; + folder = null; + pathTemplate = BILLING_ACCOUNT; + } + + public String getProject() { + return project; + } + + public String getOrganization() { + return organization; + } + + public String getFolder() { + return folder; + } + + public String getBillingAccount() { + return billingAccount; + } + + public static Builder newBuilder() { + return new Builder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static Builder newProjectBuilder() { + return new Builder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static OrganizationBuilder newOrganizationBuilder() { + return new OrganizationBuilder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static FolderBuilder newFolderBuilder() { + return new FolderBuilder(); + } + + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static BillingAccountBuilder newBillingAccountBuilder() { + return new BillingAccountBuilder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static SettingsName of(String project) { + return newBuilder().setProject(project).build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static SettingsName ofProjectName(String project) { + return newBuilder().setProject(project).build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static SettingsName ofOrganizationName(String organization) { + return newOrganizationBuilder().setOrganization(organization).build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static SettingsName ofFolderName(String folder) { + return newFolderBuilder().setFolder(folder).build(); + } + + @BetaApi("The static create methods are not stable yet and may be changed in the future.") + public static SettingsName ofBillingAccountName(String billingAccount) { + return newBillingAccountBuilder().setBillingAccount(billingAccount).build(); + } + + public static String format(String project) { + return newBuilder().setProject(project).build().toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatProjectName(String project) { + return newBuilder().setProject(project).build().toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatOrganizationName(String organization) { + return newOrganizationBuilder().setOrganization(organization).build().toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatFolderName(String folder) { + return newFolderBuilder().setFolder(folder).build().toString(); + } + + @BetaApi("The static format methods are not stable yet and may be changed in the future.") + public static String formatBillingAccountName(String billingAccount) { + return newBillingAccountBuilder().setBillingAccount(billingAccount).build().toString(); + } + + public static SettingsName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + if (PROJECT.matches(formattedString)) { + Map matchMap = PROJECT.match(formattedString); + return ofProjectName(matchMap.get("project")); + } else if (ORGANIZATION.matches(formattedString)) { + Map matchMap = ORGANIZATION.match(formattedString); + return ofOrganizationName(matchMap.get("organization")); + } else if (FOLDER.matches(formattedString)) { + Map matchMap = FOLDER.match(formattedString); + return ofFolderName(matchMap.get("folder")); + } else if (BILLING_ACCOUNT.matches(formattedString)) { + Map matchMap = BILLING_ACCOUNT.match(formattedString); + return ofBillingAccountName(matchMap.get("billing_account")); + } + throw new ValidationException("SettingsName.parse: formattedString not in valid format"); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (SettingsName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT.matches(formattedString) + || ORGANIZATION.matches(formattedString) + || FOLDER.matches(formattedString) + || BILLING_ACCOUNT.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (organization != null) { + fieldMapBuilder.put("organization", organization); + } + if (folder != null) { + fieldMapBuilder.put("folder", folder); + } + if (billingAccount != null) { + fieldMapBuilder.put("billing_account", billingAccount); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + SettingsName that = ((SettingsName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.organization, that.organization) + && Objects.equals(this.folder, that.folder) + && Objects.equals(this.billingAccount, that.billingAccount); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(organization); + h *= 1000003; + h ^= Objects.hashCode(folder); + h *= 1000003; + h ^= Objects.hashCode(billingAccount); + return h; + } + + /** Builder for projects/{project}/settings. */ + public static class Builder { + private String project; + + protected Builder() {} + + public String getProject() { + return project; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + private Builder(SettingsName settingsName) { + Preconditions.checkArgument( + Objects.equals(settingsName.pathTemplate, PROJECT), + "toBuilder is only supported when SettingsName has the pattern of projects/{project}/settings"); + this.project = settingsName.project; + } + + public SettingsName build() { + return new SettingsName(this); + } + } + + /** Builder for organizations/{organization}/settings. */ + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static class OrganizationBuilder { + private String organization; + + protected OrganizationBuilder() {} + + public String getOrganization() { + return organization; + } + + public OrganizationBuilder setOrganization(String organization) { + this.organization = organization; + return this; + } + + public SettingsName build() { + return new SettingsName(this); + } + } + + /** Builder for folders/{folder}/settings. */ + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static class FolderBuilder { + private String folder; + + protected FolderBuilder() {} + + public String getFolder() { + return folder; + } + + public FolderBuilder setFolder(String folder) { + this.folder = folder; + return this; + } + + public SettingsName build() { + return new SettingsName(this); + } + } + + /** Builder for billingAccounts/{billing_account}/settings. */ + @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") + public static class BillingAccountBuilder { + private String billingAccount; + + protected BillingAccountBuilder() {} + + public String getBillingAccount() { + return billingAccount; + } + + public BillingAccountBuilder setBillingAccount(String billingAccount) { + this.billingAccount = billingAccount; + return this; + } + + public SettingsName build() { + return new SettingsName(this); + } + } +} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/SettingsOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/SettingsOrBuilder.java new file mode 100644 index 000000000..a87422b43 --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/SettingsOrBuilder.java @@ -0,0 +1,195 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/v2/logging_config.proto + +package com.google.logging.v2; + +public interface SettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.logging.v2.Settings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The resource name of the settings.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. The resource name of the settings.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. The resource name for the configured Cloud KMS key.
+   * KMS key name format:
+   *     "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
+   * For example:
+   *   `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key"`
+   * To enable CMEK for the Log Router, set this field to a valid
+   * `kms_key_name` for which the associated service account has the required
+   * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key.
+   * The Cloud KMS key used by the Log Router can be updated by changing the
+   * `kms_key_name` to a new valid key name. Encryption operations that are in
+   * progress will be completed with the key that was in use when they started.
+   * Decryption operations will be completed using the key that was used at the
+   * time of encryption unless access to that key has been revoked.
+   * To disable CMEK for the Log Router, set this field to an empty string.
+   * See [Enabling CMEK for Log
+   * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+   * for more information.
+   * 
+ * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The kmsKeyName. + */ + java.lang.String getKmsKeyName(); + /** + * + * + *
+   * Optional. The resource name for the configured Cloud KMS key.
+   * KMS key name format:
+   *     "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
+   * For example:
+   *   `"projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-key"`
+   * To enable CMEK for the Log Router, set this field to a valid
+   * `kms_key_name` for which the associated service account has the required
+   * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key.
+   * The Cloud KMS key used by the Log Router can be updated by changing the
+   * `kms_key_name` to a new valid key name. Encryption operations that are in
+   * progress will be completed with the key that was in use when they started.
+   * Decryption operations will be completed using the key that was used at the
+   * time of encryption unless access to that key has been revoked.
+   * To disable CMEK for the Log Router, set this field to an empty string.
+   * See [Enabling CMEK for Log
+   * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+   * for more information.
+   * 
+ * + * string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for kmsKeyName. + */ + com.google.protobuf.ByteString getKmsKeyNameBytes(); + + /** + * + * + *
+   * Output only. The service account that will be used by the Log Router to access your
+   * Cloud KMS key.
+   * Before enabling CMEK for Log Router, you must first assign the role
+   * `roles/cloudkms.cryptoKeyEncrypterDecrypter` to the service account that
+   * the Log Router will use to access your Cloud KMS key. Use
+   * [GetSettings][google.logging.v2.ConfigServiceV2.GetSettings] to
+   * obtain the service account ID.
+   * See [Enabling CMEK for Log
+   * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+   * for more information.
+   * 
+ * + * string kms_service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The kmsServiceAccountId. + */ + java.lang.String getKmsServiceAccountId(); + /** + * + * + *
+   * Output only. The service account that will be used by the Log Router to access your
+   * Cloud KMS key.
+   * Before enabling CMEK for Log Router, you must first assign the role
+   * `roles/cloudkms.cryptoKeyEncrypterDecrypter` to the service account that
+   * the Log Router will use to access your Cloud KMS key. Use
+   * [GetSettings][google.logging.v2.ConfigServiceV2.GetSettings] to
+   * obtain the service account ID.
+   * See [Enabling CMEK for Log
+   * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+   * for more information.
+   * 
+ * + * string kms_service_account_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for kmsServiceAccountId. + */ + com.google.protobuf.ByteString getKmsServiceAccountIdBytes(); + + /** + * + * + *
+   * Optional. The Cloud region that will be used for _Default and _Required log buckets
+   * for newly created projects and folders. For example `europe-west1`.
+   * This setting does not affect the location of custom log buckets.
+   * 
+ * + * string storage_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The storageLocation. + */ + java.lang.String getStorageLocation(); + /** + * + * + *
+   * Optional. The Cloud region that will be used for _Default and _Required log buckets
+   * for newly created projects and folders. For example `europe-west1`.
+   * This setting does not affect the location of custom log buckets.
+   * 
+ * + * string storage_location = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for storageLocation. + */ + com.google.protobuf.ByteString getStorageLocationBytes(); + + /** + * + * + *
+   * Optional. If set to true, the _Default sink in newly created projects and folders
+   * will created in a disabled state. This can be used to automatically disable
+   * log ingestion if there is already an aggregated sink configured in the
+   * hierarchy. The _Default sink can be re-enabled manually if needed.
+   * 
+ * + * bool disable_default_sink = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disableDefaultSink. + */ + boolean getDisableDefaultSink(); +} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesRequest.java index 7994f2618..14d61b8a1 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesRequest.java @@ -148,15 +148,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * Required. Name of a parent resource from which to retrieve log entries:
-   *     "projects/[PROJECT_ID]"
-   *     "organizations/[ORGANIZATION_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-   *     "folders/[FOLDER_ID]"
+   * *  `projects/[PROJECT_ID]`
+   * *  `organizations/[ORGANIZATION_ID]`
+   * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+   * *  `folders/[FOLDER_ID]`
    * May alternatively be one or more views:
-   *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-   *     "organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-   *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
+   *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
    * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -171,15 +171,15 @@ public com.google.protobuf.ProtocolStringList getResourceNamesList() { * *
    * Required. Name of a parent resource from which to retrieve log entries:
-   *     "projects/[PROJECT_ID]"
-   *     "organizations/[ORGANIZATION_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-   *     "folders/[FOLDER_ID]"
+   * *  `projects/[PROJECT_ID]`
+   * *  `organizations/[ORGANIZATION_ID]`
+   * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+   * *  `folders/[FOLDER_ID]`
    * May alternatively be one or more views:
-   *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-   *     "organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-   *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
+   *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
    * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -194,15 +194,15 @@ public int getResourceNamesCount() { * *
    * Required. Name of a parent resource from which to retrieve log entries:
-   *     "projects/[PROJECT_ID]"
-   *     "organizations/[ORGANIZATION_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-   *     "folders/[FOLDER_ID]"
+   * *  `projects/[PROJECT_ID]`
+   * *  `organizations/[ORGANIZATION_ID]`
+   * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+   * *  `folders/[FOLDER_ID]`
    * May alternatively be one or more views:
-   *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-   *     "organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-   *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
+   *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
    * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -218,15 +218,15 @@ public java.lang.String getResourceNames(int index) { * *
    * Required. Name of a parent resource from which to retrieve log entries:
-   *     "projects/[PROJECT_ID]"
-   *     "organizations/[ORGANIZATION_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-   *     "folders/[FOLDER_ID]"
+   * *  `projects/[PROJECT_ID]`
+   * *  `organizations/[ORGANIZATION_ID]`
+   * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+   * *  `folders/[FOLDER_ID]`
    * May alternatively be one or more views:
-   *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-   *     "organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-   *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
+   *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
    * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -753,15 +753,15 @@ private void ensureResourceNamesIsMutable() { * *
      * Required. Name of a parent resource from which to retrieve log entries:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
+     * *  `projects/[PROJECT_ID]`
+     * *  `organizations/[ORGANIZATION_ID]`
+     * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+     * *  `folders/[FOLDER_ID]`
      * May alternatively be one or more views:
-     *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     *     "organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
+     *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
      * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -776,15 +776,15 @@ public com.google.protobuf.ProtocolStringList getResourceNamesList() { * *
      * Required. Name of a parent resource from which to retrieve log entries:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
+     * *  `projects/[PROJECT_ID]`
+     * *  `organizations/[ORGANIZATION_ID]`
+     * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+     * *  `folders/[FOLDER_ID]`
      * May alternatively be one or more views:
-     *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     *     "organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
+     *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
      * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -799,15 +799,15 @@ public int getResourceNamesCount() { * *
      * Required. Name of a parent resource from which to retrieve log entries:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
+     * *  `projects/[PROJECT_ID]`
+     * *  `organizations/[ORGANIZATION_ID]`
+     * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+     * *  `folders/[FOLDER_ID]`
      * May alternatively be one or more views:
-     *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     *     "organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
+     *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
      * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -823,15 +823,15 @@ public java.lang.String getResourceNames(int index) { * *
      * Required. Name of a parent resource from which to retrieve log entries:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
+     * *  `projects/[PROJECT_ID]`
+     * *  `organizations/[ORGANIZATION_ID]`
+     * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+     * *  `folders/[FOLDER_ID]`
      * May alternatively be one or more views:
-     *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     *     "organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
+     *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
      * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -847,15 +847,15 @@ public com.google.protobuf.ByteString getResourceNamesBytes(int index) { * *
      * Required. Name of a parent resource from which to retrieve log entries:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
+     * *  `projects/[PROJECT_ID]`
+     * *  `organizations/[ORGANIZATION_ID]`
+     * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+     * *  `folders/[FOLDER_ID]`
      * May alternatively be one or more views:
-     *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     *     "organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
+     *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
      * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -878,15 +878,15 @@ public Builder setResourceNames(int index, java.lang.String value) { * *
      * Required. Name of a parent resource from which to retrieve log entries:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
+     * *  `projects/[PROJECT_ID]`
+     * *  `organizations/[ORGANIZATION_ID]`
+     * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+     * *  `folders/[FOLDER_ID]`
      * May alternatively be one or more views:
-     *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     *     "organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
+     *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
      * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -908,15 +908,15 @@ public Builder addResourceNames(java.lang.String value) { * *
      * Required. Name of a parent resource from which to retrieve log entries:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
+     * *  `projects/[PROJECT_ID]`
+     * *  `organizations/[ORGANIZATION_ID]`
+     * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+     * *  `folders/[FOLDER_ID]`
      * May alternatively be one or more views:
-     *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     *     "organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
+     *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
      * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -935,15 +935,15 @@ public Builder addAllResourceNames(java.lang.Iterable values) * *
      * Required. Name of a parent resource from which to retrieve log entries:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
+     * *  `projects/[PROJECT_ID]`
+     * *  `organizations/[ORGANIZATION_ID]`
+     * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+     * *  `folders/[FOLDER_ID]`
      * May alternatively be one or more views:
-     *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     *     "organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
+     *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
      * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -961,15 +961,15 @@ public Builder clearResourceNames() { * *
      * Required. Name of a parent resource from which to retrieve log entries:
-     *     "projects/[PROJECT_ID]"
-     *     "organizations/[ORGANIZATION_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-     *     "folders/[FOLDER_ID]"
+     * *  `projects/[PROJECT_ID]`
+     * *  `organizations/[ORGANIZATION_ID]`
+     * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+     * *  `folders/[FOLDER_ID]`
      * May alternatively be one or more views:
-     *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     *     "organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
+     *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+     *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
      * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesRequestOrBuilder.java index 3d45a6100..ba08b14fb 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/TailLogEntriesRequestOrBuilder.java @@ -28,15 +28,15 @@ public interface TailLogEntriesRequestOrBuilder * *
    * Required. Name of a parent resource from which to retrieve log entries:
-   *     "projects/[PROJECT_ID]"
-   *     "organizations/[ORGANIZATION_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-   *     "folders/[FOLDER_ID]"
+   * *  `projects/[PROJECT_ID]`
+   * *  `organizations/[ORGANIZATION_ID]`
+   * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+   * *  `folders/[FOLDER_ID]`
    * May alternatively be one or more views:
-   *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-   *     "organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-   *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
+   *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
    * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -49,15 +49,15 @@ public interface TailLogEntriesRequestOrBuilder * *
    * Required. Name of a parent resource from which to retrieve log entries:
-   *     "projects/[PROJECT_ID]"
-   *     "organizations/[ORGANIZATION_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-   *     "folders/[FOLDER_ID]"
+   * *  `projects/[PROJECT_ID]`
+   * *  `organizations/[ORGANIZATION_ID]`
+   * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+   * *  `folders/[FOLDER_ID]`
    * May alternatively be one or more views:
-   *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-   *     "organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-   *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
+   *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
    * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -70,15 +70,15 @@ public interface TailLogEntriesRequestOrBuilder * *
    * Required. Name of a parent resource from which to retrieve log entries:
-   *     "projects/[PROJECT_ID]"
-   *     "organizations/[ORGANIZATION_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-   *     "folders/[FOLDER_ID]"
+   * *  `projects/[PROJECT_ID]`
+   * *  `organizations/[ORGANIZATION_ID]`
+   * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+   * *  `folders/[FOLDER_ID]`
    * May alternatively be one or more views:
-   *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-   *     "organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-   *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
+   *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
    * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -92,15 +92,15 @@ public interface TailLogEntriesRequestOrBuilder * *
    * Required. Name of a parent resource from which to retrieve log entries:
-   *     "projects/[PROJECT_ID]"
-   *     "organizations/[ORGANIZATION_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]"
-   *     "folders/[FOLDER_ID]"
+   * *  `projects/[PROJECT_ID]`
+   * *  `organizations/[ORGANIZATION_ID]`
+   * *  `billingAccounts/[BILLING_ACCOUNT_ID]`
+   * *  `folders/[FOLDER_ID]`
    * May alternatively be one or more views:
-   *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-   *     "organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-   *     "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
+   *  * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
+   *  * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
    * 
* * repeated string resource_names = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UndeleteBucketRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UndeleteBucketRequest.java index ee8e4ab6f..cd5b80138 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UndeleteBucketRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UndeleteBucketRequest.java @@ -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/UndeleteBucketRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UndeleteBucketRequestOrBuilder.java index 8002d3365..1966ee37e 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UndeleteBucketRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UndeleteBucketRequestOrBuilder.java @@ -32,8 +32,8 @@ public interface UndeleteBucketRequestOrBuilder * "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 UndeleteBucketRequestOrBuilder * "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/UpdateBucketRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequest.java index 795e474d8..4b44ecdaa 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequest.java @@ -152,10 +152,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"`. Also - * requires permission "resourcemanager.projects.updateLiens" to set the - * locked property + * For example: + * `"projects/my-project/locations/global/buckets/my-bucket"` * * * @@ -185,10 +183,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"`. Also - * requires permission "resourcemanager.projects.updateLiens" to set the - * locked property + * For example: + * `"projects/my-project/locations/global/buckets/my-bucket"` * * * @@ -263,11 +259,11 @@ public com.google.logging.v2.LogBucketOrBuilder getBucketOrBuilder() { * *
    * Required. Field mask that specifies the fields in `bucket` that need an update. A
-   * bucket field will be overwritten if, and only if, it is in the update
-   * mask. `name` and output only fields cannot be updated.
-   * For a detailed `FieldMask` definition, see
+   * bucket field will be overwritten if, and only if, it is in the update mask.
+   * `name` and output only fields cannot be updated.
+   * For a detailed `FieldMask` definition, see:
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
-   * Example: `updateMask=retention_days`.
+   * For example: `updateMask=retention_days`
    * 
* * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -284,11 +280,11 @@ public boolean hasUpdateMask() { * *
    * Required. Field mask that specifies the fields in `bucket` that need an update. A
-   * bucket field will be overwritten if, and only if, it is in the update
-   * mask. `name` and output only fields cannot be updated.
-   * For a detailed `FieldMask` definition, see
+   * bucket field will be overwritten if, and only if, it is in the update mask.
+   * `name` and output only fields cannot be updated.
+   * For a detailed `FieldMask` definition, see:
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
-   * Example: `updateMask=retention_days`.
+   * For example: `updateMask=retention_days`
    * 
* * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -305,11 +301,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { * *
    * Required. Field mask that specifies the fields in `bucket` that need an update. A
-   * bucket field will be overwritten if, and only if, it is in the update
-   * mask. `name` and output only fields cannot be updated.
-   * For a detailed `FieldMask` definition, see
+   * bucket field will be overwritten if, and only if, it is in the update mask.
+   * `name` and output only fields cannot be updated.
+   * For a detailed `FieldMask` definition, see:
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
-   * Example: `updateMask=retention_days`.
+   * For example: `updateMask=retention_days`
    * 
* * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -702,10 +698,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"`. Also - * requires permission "resourcemanager.projects.updateLiens" to set the - * locked property + * For example: + * `"projects/my-project/locations/global/buckets/my-bucket"` * * * @@ -734,10 +728,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"`. Also - * requires permission "resourcemanager.projects.updateLiens" to set the - * locked property + * For example: + * `"projects/my-project/locations/global/buckets/my-bucket"` * * * @@ -766,10 +758,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"`. Also - * requires permission "resourcemanager.projects.updateLiens" to set the - * locked property + * For example: + * `"projects/my-project/locations/global/buckets/my-bucket"` * * * @@ -797,10 +787,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"`. Also - * requires permission "resourcemanager.projects.updateLiens" to set the - * locked property + * For example: + * `"projects/my-project/locations/global/buckets/my-bucket"` * * * @@ -824,10 +812,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"`. Also - * requires permission "resourcemanager.projects.updateLiens" to set the - * locked property + * For example: + * `"projects/my-project/locations/global/buckets/my-bucket"` * * * @@ -1047,11 +1033,11 @@ public com.google.logging.v2.LogBucketOrBuilder getBucketOrBuilder() { * *
      * Required. Field mask that specifies the fields in `bucket` that need an update. A
-     * bucket field will be overwritten if, and only if, it is in the update
-     * mask. `name` and output only fields cannot be updated.
-     * For a detailed `FieldMask` definition, see
+     * bucket field will be overwritten if, and only if, it is in the update mask.
+     * `name` and output only fields cannot be updated.
+     * For a detailed `FieldMask` definition, see:
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
-     * Example: `updateMask=retention_days`.
+     * For example: `updateMask=retention_days`
      * 
* * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -1067,11 +1053,11 @@ public boolean hasUpdateMask() { * *
      * Required. Field mask that specifies the fields in `bucket` that need an update. A
-     * bucket field will be overwritten if, and only if, it is in the update
-     * mask. `name` and output only fields cannot be updated.
-     * For a detailed `FieldMask` definition, see
+     * bucket field will be overwritten if, and only if, it is in the update mask.
+     * `name` and output only fields cannot be updated.
+     * For a detailed `FieldMask` definition, see:
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
-     * Example: `updateMask=retention_days`.
+     * For example: `updateMask=retention_days`
      * 
* * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -1093,11 +1079,11 @@ public com.google.protobuf.FieldMask getUpdateMask() { * *
      * Required. Field mask that specifies the fields in `bucket` that need an update. A
-     * bucket field will be overwritten if, and only if, it is in the update
-     * mask. `name` and output only fields cannot be updated.
-     * For a detailed `FieldMask` definition, see
+     * bucket field will be overwritten if, and only if, it is in the update mask.
+     * `name` and output only fields cannot be updated.
+     * For a detailed `FieldMask` definition, see:
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
-     * Example: `updateMask=retention_days`.
+     * For example: `updateMask=retention_days`
      * 
* * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -1121,11 +1107,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * *
      * Required. Field mask that specifies the fields in `bucket` that need an update. A
-     * bucket field will be overwritten if, and only if, it is in the update
-     * mask. `name` and output only fields cannot be updated.
-     * For a detailed `FieldMask` definition, see
+     * bucket field will be overwritten if, and only if, it is in the update mask.
+     * `name` and output only fields cannot be updated.
+     * For a detailed `FieldMask` definition, see:
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
-     * Example: `updateMask=retention_days`.
+     * For example: `updateMask=retention_days`
      * 
* * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -1146,11 +1132,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * *
      * Required. Field mask that specifies the fields in `bucket` that need an update. A
-     * bucket field will be overwritten if, and only if, it is in the update
-     * mask. `name` and output only fields cannot be updated.
-     * For a detailed `FieldMask` definition, see
+     * bucket field will be overwritten if, and only if, it is in the update mask.
+     * `name` and output only fields cannot be updated.
+     * For a detailed `FieldMask` definition, see:
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
-     * Example: `updateMask=retention_days`.
+     * For example: `updateMask=retention_days`
      * 
* * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -1176,11 +1162,11 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * *
      * Required. Field mask that specifies the fields in `bucket` that need an update. A
-     * bucket field will be overwritten if, and only if, it is in the update
-     * mask. `name` and output only fields cannot be updated.
-     * For a detailed `FieldMask` definition, see
+     * bucket field will be overwritten if, and only if, it is in the update mask.
+     * `name` and output only fields cannot be updated.
+     * For a detailed `FieldMask` definition, see:
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
-     * Example: `updateMask=retention_days`.
+     * For example: `updateMask=retention_days`
      * 
* * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -1202,11 +1188,11 @@ public Builder clearUpdateMask() { * *
      * Required. Field mask that specifies the fields in `bucket` that need an update. A
-     * bucket field will be overwritten if, and only if, it is in the update
-     * mask. `name` and output only fields cannot be updated.
-     * For a detailed `FieldMask` definition, see
+     * bucket field will be overwritten if, and only if, it is in the update mask.
+     * `name` and output only fields cannot be updated.
+     * For a detailed `FieldMask` definition, see:
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
-     * Example: `updateMask=retention_days`.
+     * For example: `updateMask=retention_days`
      * 
* * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -1222,11 +1208,11 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * *
      * Required. Field mask that specifies the fields in `bucket` that need an update. A
-     * bucket field will be overwritten if, and only if, it is in the update
-     * mask. `name` and output only fields cannot be updated.
-     * For a detailed `FieldMask` definition, see
+     * bucket field will be overwritten if, and only if, it is in the update mask.
+     * `name` and output only fields cannot be updated.
+     * For a detailed `FieldMask` definition, see:
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
-     * Example: `updateMask=retention_days`.
+     * For example: `updateMask=retention_days`
      * 
* * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -1246,11 +1232,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * *
      * Required. Field mask that specifies the fields in `bucket` that need an update. A
-     * bucket field will be overwritten if, and only if, it is in the update
-     * mask. `name` and output only fields cannot be updated.
-     * For a detailed `FieldMask` definition, see
+     * bucket field will be overwritten if, and only if, it is in the update mask.
+     * `name` and output only fields cannot be updated.
+     * For a detailed `FieldMask` definition, see:
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
-     * Example: `updateMask=retention_days`.
+     * For example: `updateMask=retention_days`
      * 
* * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequestOrBuilder.java index 93d5e2344..37c7f9704 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateBucketRequestOrBuilder.java @@ -32,10 +32,8 @@ public interface UpdateBucketRequestOrBuilder * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" - * Example: - * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`. Also - * requires permission "resourcemanager.projects.updateLiens" to set the - * locked property + * For example: + * `"projects/my-project/locations/global/buckets/my-bucket"` * * * @@ -54,10 +52,8 @@ public interface UpdateBucketRequestOrBuilder * "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" * "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" * "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" - * Example: - * `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`. Also - * requires permission "resourcemanager.projects.updateLiens" to set the - * locked property + * For example: + * `"projects/my-project/locations/global/buckets/my-bucket"` * * * @@ -108,11 +104,11 @@ public interface UpdateBucketRequestOrBuilder * *
    * Required. Field mask that specifies the fields in `bucket` that need an update. A
-   * bucket field will be overwritten if, and only if, it is in the update
-   * mask. `name` and output only fields cannot be updated.
-   * For a detailed `FieldMask` definition, see
+   * bucket field will be overwritten if, and only if, it is in the update mask.
+   * `name` and output only fields cannot be updated.
+   * For a detailed `FieldMask` definition, see:
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
-   * Example: `updateMask=retention_days`.
+   * For example: `updateMask=retention_days`
    * 
* * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -126,11 +122,11 @@ public interface UpdateBucketRequestOrBuilder * *
    * Required. Field mask that specifies the fields in `bucket` that need an update. A
-   * bucket field will be overwritten if, and only if, it is in the update
-   * mask. `name` and output only fields cannot be updated.
-   * For a detailed `FieldMask` definition, see
+   * bucket field will be overwritten if, and only if, it is in the update mask.
+   * `name` and output only fields cannot be updated.
+   * For a detailed `FieldMask` definition, see:
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
-   * Example: `updateMask=retention_days`.
+   * For example: `updateMask=retention_days`
    * 
* * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; @@ -144,11 +140,11 @@ public interface UpdateBucketRequestOrBuilder * *
    * Required. Field mask that specifies the fields in `bucket` that need an update. A
-   * bucket field will be overwritten if, and only if, it is in the update
-   * mask. `name` and output only fields cannot be updated.
-   * For a detailed `FieldMask` definition, see
+   * bucket field will be overwritten if, and only if, it is in the update mask.
+   * `name` and output only fields cannot be updated.
+   * For a detailed `FieldMask` definition, see:
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask
-   * Example: `updateMask=retention_days`.
+   * For example: `updateMask=retention_days`
    * 
* * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequest.java index aa7d222ae..a71ac1a27 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequest.java @@ -24,7 +24,7 @@ *
  * The parameters to
  * [UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings].
- * See [Enabling CMEK for Logs
+ * See [Enabling CMEK for Log
  * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for
  * more information.
  * 
@@ -156,10 +156,11 @@ 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 currently only be configured for Google + * Cloud organizations. Once configured, it applies to all projects and + * folders in the Google Cloud organization. * * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -187,10 +188,11 @@ 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 currently only be configured for Google + * Cloud organizations. Once configured, it applies to all projects and + * folders in the Google Cloud organization. * * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -217,7 +219,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
    * Required. The CMEK settings to update.
-   * See [Enabling CMEK for Logs
+   * See [Enabling CMEK for Log
    * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
    * for more information.
    * 
@@ -237,7 +239,7 @@ public boolean hasCmekSettings() { * *
    * Required. The CMEK settings to update.
-   * See [Enabling CMEK for Logs
+   * See [Enabling CMEK for Log
    * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
    * for more information.
    * 
@@ -259,7 +261,7 @@ public com.google.logging.v2.CmekSettings getCmekSettings() { * *
    * Required. The CMEK settings to update.
-   * See [Enabling CMEK for Logs
+   * See [Enabling CMEK for Log
    * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
    * for more information.
    * 
@@ -283,7 +285,7 @@ public com.google.logging.v2.CmekSettingsOrBuilder getCmekSettingsOrBuilder() { * be updated. A field will be overwritten if and only if it is in the update * mask. Output only fields cannot be updated. * See [FieldMask][google.protobuf.FieldMask] for more information. - * Example: `"updateMask=kmsKeyName"` + * For example: `"updateMask=kmsKeyName"` * * * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -303,7 +305,7 @@ public boolean hasUpdateMask() { * be updated. A field will be overwritten if and only if it is in the update * mask. Output only fields cannot be updated. * See [FieldMask][google.protobuf.FieldMask] for more information. - * Example: `"updateMask=kmsKeyName"` + * For example: `"updateMask=kmsKeyName"` * * * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -323,7 +325,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { * be updated. A field will be overwritten if and only if it is in the update * mask. Output only fields cannot be updated. * See [FieldMask][google.protobuf.FieldMask] for more information. - * Example: `"updateMask=kmsKeyName"` + * For example: `"updateMask=kmsKeyName"` * * * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -527,7 +529,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build *
    * The parameters to
    * [UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings].
-   * See [Enabling CMEK for Logs
+   * See [Enabling CMEK for Log
    * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for
    * more information.
    * 
@@ -721,10 +723,11 @@ 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 currently only be configured for Google + * Cloud organizations. Once configured, it applies to all projects and + * folders in the Google Cloud organization. * * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -751,10 +754,11 @@ 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 currently only be configured for Google + * Cloud organizations. Once configured, it applies to all projects and + * folders in the Google Cloud organization. * * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -781,10 +785,11 @@ 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 currently only be configured for Google + * Cloud organizations. Once configured, it applies to all projects and + * folders in the Google Cloud organization. * * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -810,10 +815,11 @@ 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 currently only be configured for Google + * Cloud organizations. Once configured, it applies to all projects and + * folders in the Google Cloud organization. * * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -835,10 +841,11 @@ 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 currently only be configured for Google + * Cloud organizations. Once configured, it applies to all projects and + * folders in the Google Cloud organization. * * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -868,7 +875,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * *
      * Required. The CMEK settings to update.
-     * See [Enabling CMEK for Logs
+     * See [Enabling CMEK for Log
      * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
      * for more information.
      * 
@@ -887,7 +894,7 @@ public boolean hasCmekSettings() { * *
      * Required. The CMEK settings to update.
-     * See [Enabling CMEK for Logs
+     * See [Enabling CMEK for Log
      * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
      * for more information.
      * 
@@ -912,7 +919,7 @@ public com.google.logging.v2.CmekSettings getCmekSettings() { * *
      * Required. The CMEK settings to update.
-     * See [Enabling CMEK for Logs
+     * See [Enabling CMEK for Log
      * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
      * for more information.
      * 
@@ -939,7 +946,7 @@ public Builder setCmekSettings(com.google.logging.v2.CmekSettings value) { * *
      * Required. The CMEK settings to update.
-     * See [Enabling CMEK for Logs
+     * See [Enabling CMEK for Log
      * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
      * for more information.
      * 
@@ -963,7 +970,7 @@ public Builder setCmekSettings(com.google.logging.v2.CmekSettings.Builder builde * *
      * Required. The CMEK settings to update.
-     * See [Enabling CMEK for Logs
+     * See [Enabling CMEK for Log
      * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
      * for more information.
      * 
@@ -994,7 +1001,7 @@ public Builder mergeCmekSettings(com.google.logging.v2.CmekSettings value) { * *
      * Required. The CMEK settings to update.
-     * See [Enabling CMEK for Logs
+     * See [Enabling CMEK for Log
      * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
      * for more information.
      * 
@@ -1019,7 +1026,7 @@ public Builder clearCmekSettings() { * *
      * Required. The CMEK settings to update.
-     * See [Enabling CMEK for Logs
+     * See [Enabling CMEK for Log
      * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
      * for more information.
      * 
@@ -1038,7 +1045,7 @@ public com.google.logging.v2.CmekSettings.Builder getCmekSettingsBuilder() { * *
      * Required. The CMEK settings to update.
-     * See [Enabling CMEK for Logs
+     * See [Enabling CMEK for Log
      * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
      * for more information.
      * 
@@ -1061,7 +1068,7 @@ public com.google.logging.v2.CmekSettingsOrBuilder getCmekSettingsOrBuilder() { * *
      * Required. The CMEK settings to update.
-     * See [Enabling CMEK for Logs
+     * See [Enabling CMEK for Log
      * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
      * for more information.
      * 
@@ -1101,7 +1108,7 @@ public com.google.logging.v2.CmekSettingsOrBuilder getCmekSettingsOrBuilder() { * be updated. A field will be overwritten if and only if it is in the update * mask. Output only fields cannot be updated. * See [FieldMask][google.protobuf.FieldMask] for more information. - * Example: `"updateMask=kmsKeyName"` + * For example: `"updateMask=kmsKeyName"` * * * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1120,7 +1127,7 @@ public boolean hasUpdateMask() { * be updated. A field will be overwritten if and only if it is in the update * mask. Output only fields cannot be updated. * See [FieldMask][google.protobuf.FieldMask] for more information. - * Example: `"updateMask=kmsKeyName"` + * For example: `"updateMask=kmsKeyName"` * * * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1145,7 +1152,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { * be updated. A field will be overwritten if and only if it is in the update * mask. Output only fields cannot be updated. * See [FieldMask][google.protobuf.FieldMask] for more information. - * Example: `"updateMask=kmsKeyName"` + * For example: `"updateMask=kmsKeyName"` * * * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1172,7 +1179,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * be updated. A field will be overwritten if and only if it is in the update * mask. Output only fields cannot be updated. * See [FieldMask][google.protobuf.FieldMask] for more information. - * Example: `"updateMask=kmsKeyName"` + * For example: `"updateMask=kmsKeyName"` * * * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1196,7 +1203,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * be updated. A field will be overwritten if and only if it is in the update * mask. Output only fields cannot be updated. * See [FieldMask][google.protobuf.FieldMask] for more information. - * Example: `"updateMask=kmsKeyName"` + * For example: `"updateMask=kmsKeyName"` * * * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1225,7 +1232,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * be updated. A field will be overwritten if and only if it is in the update * mask. Output only fields cannot be updated. * See [FieldMask][google.protobuf.FieldMask] for more information. - * Example: `"updateMask=kmsKeyName"` + * For example: `"updateMask=kmsKeyName"` * * * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1250,7 +1257,7 @@ public Builder clearUpdateMask() { * be updated. A field will be overwritten if and only if it is in the update * mask. Output only fields cannot be updated. * See [FieldMask][google.protobuf.FieldMask] for more information. - * Example: `"updateMask=kmsKeyName"` + * For example: `"updateMask=kmsKeyName"` * * * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1269,7 +1276,7 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * be updated. A field will be overwritten if and only if it is in the update * mask. Output only fields cannot be updated. * See [FieldMask][google.protobuf.FieldMask] for more information. - * Example: `"updateMask=kmsKeyName"` + * For example: `"updateMask=kmsKeyName"` * * * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1292,7 +1299,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * be updated. A field will be overwritten if and only if it is in the update * mask. Output only fields cannot be updated. * See [FieldMask][google.protobuf.FieldMask] for more information. - * Example: `"updateMask=kmsKeyName"` + * For example: `"updateMask=kmsKeyName"` * * * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequestOrBuilder.java index 1abf89dfb..799b139a4 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequestOrBuilder.java @@ -32,10 +32,11 @@ public interface UpdateCmekSettingsRequestOrBuilder * "organizations/[ORGANIZATION_ID]/cmekSettings" * "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings" * "folders/[FOLDER_ID]/cmekSettings" - * Example: `"organizations/12345/cmekSettings"`. - * Note: CMEK for the Logs Router can currently only be configured for GCP - * organizations. Once configured, it applies to all projects and folders in - * the GCP organization. + * For example: + * `"organizations/12345/cmekSettings"` + * Note: CMEK for the Log Router can currently only be configured for Google + * Cloud organizations. Once configured, it applies to all projects and + * folders in the Google Cloud organization. * * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -52,10 +53,11 @@ public interface UpdateCmekSettingsRequestOrBuilder * "organizations/[ORGANIZATION_ID]/cmekSettings" * "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings" * "folders/[FOLDER_ID]/cmekSettings" - * Example: `"organizations/12345/cmekSettings"`. - * Note: CMEK for the Logs Router can currently only be configured for GCP - * organizations. Once configured, it applies to all projects and folders in - * the GCP organization. + * For example: + * `"organizations/12345/cmekSettings"` + * Note: CMEK for the Log Router can currently only be configured for Google + * Cloud organizations. Once configured, it applies to all projects and + * folders in the Google Cloud organization. * * * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -69,7 +71,7 @@ public interface UpdateCmekSettingsRequestOrBuilder * *
    * Required. The CMEK settings to update.
-   * See [Enabling CMEK for Logs
+   * See [Enabling CMEK for Log
    * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
    * for more information.
    * 
@@ -86,7 +88,7 @@ public interface UpdateCmekSettingsRequestOrBuilder * *
    * Required. The CMEK settings to update.
-   * See [Enabling CMEK for Logs
+   * See [Enabling CMEK for Log
    * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
    * for more information.
    * 
@@ -103,7 +105,7 @@ public interface UpdateCmekSettingsRequestOrBuilder * *
    * Required. The CMEK settings to update.
-   * See [Enabling CMEK for Logs
+   * See [Enabling CMEK for Log
    * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
    * for more information.
    * 
@@ -122,7 +124,7 @@ public interface UpdateCmekSettingsRequestOrBuilder * be updated. A field will be overwritten if and only if it is in the update * mask. Output only fields cannot be updated. * See [FieldMask][google.protobuf.FieldMask] for more information. - * Example: `"updateMask=kmsKeyName"` + * For example: `"updateMask=kmsKeyName"` * * * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -139,7 +141,7 @@ public interface UpdateCmekSettingsRequestOrBuilder * be updated. A field will be overwritten if and only if it is in the update * mask. Output only fields cannot be updated. * See [FieldMask][google.protobuf.FieldMask] for more information. - * Example: `"updateMask=kmsKeyName"` + * For example: `"updateMask=kmsKeyName"` * * * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -156,7 +158,7 @@ public interface UpdateCmekSettingsRequestOrBuilder * be updated. A field will be overwritten if and only if it is in the update * mask. Output only fields cannot be updated. * See [FieldMask][google.protobuf.FieldMask] for more information. - * Example: `"updateMask=kmsKeyName"` + * For example: `"updateMask=kmsKeyName"` * * * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequest.java index 27251e8bc..a3350f5ce 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequest.java @@ -152,7 +152,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"` * * * @@ -182,7 +183,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"` * * * @@ -704,7 +706,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"` * * * @@ -733,7 +736,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"` * * * @@ -762,7 +766,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"` * * * @@ -790,7 +795,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"` * * * @@ -814,7 +820,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/UpdateExclusionRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequestOrBuilder.java index 01bc7fd79..63a4ca06d 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateExclusionRequestOrBuilder.java @@ -32,7 +32,8 @@ public interface UpdateExclusionRequestOrBuilder * "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 UpdateExclusionRequestOrBuilder * "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/UpdateSettingsRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequest.java new file mode 100644 index 000000000..08ac1dab9 --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequest.java @@ -0,0 +1,1332 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/v2/logging_config.proto + +package com.google.logging.v2; + +/** + * + * + *
+ * The parameters to
+ * [UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings].
+ * See [Enabling CMEK for Log
+ * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for
+ * more information.
+ * 
+ * + * Protobuf type {@code google.logging.v2.UpdateSettingsRequest} + */ +public final class UpdateSettingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.logging.v2.UpdateSettingsRequest) + UpdateSettingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateSettingsRequest.newBuilder() to construct. + private UpdateSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateSettingsRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateSettingsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateSettingsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + com.google.logging.v2.Settings.Builder subBuilder = null; + if (settings_ != null) { + subBuilder = settings_.toBuilder(); + } + settings_ = + input.readMessage(com.google.logging.v2.Settings.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(settings_); + settings_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_UpdateSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_UpdateSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.logging.v2.UpdateSettingsRequest.class, + com.google.logging.v2.UpdateSettingsRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The resource name for the settings to update.
+   *     "organizations/[ORGANIZATION_ID]/settings"
+   * For example:
+   *   `"organizations/12345/settings"`
+   * Note: Settings for the Log Router can currently only be configured for
+   * Google Cloud organizations. Once configured, it applies to all projects and
+   * folders in the Google Cloud organization.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name for the settings to update.
+   *     "organizations/[ORGANIZATION_ID]/settings"
+   * For example:
+   *   `"organizations/12345/settings"`
+   * Note: Settings for the Log Router can currently only be configured for
+   * Google Cloud organizations. Once configured, it applies to all projects and
+   * folders in the Google Cloud organization.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SETTINGS_FIELD_NUMBER = 2; + private com.google.logging.v2.Settings settings_; + /** + * + * + *
+   * Required. The settings to update.
+   * See [Enabling CMEK for Log
+   * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+   * for more information.
+   * 
+ * + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the settings field is set. + */ + @java.lang.Override + public boolean hasSettings() { + return settings_ != null; + } + /** + * + * + *
+   * Required. The settings to update.
+   * See [Enabling CMEK for Log
+   * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+   * for more information.
+   * 
+ * + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The settings. + */ + @java.lang.Override + public com.google.logging.v2.Settings getSettings() { + return settings_ == null ? com.google.logging.v2.Settings.getDefaultInstance() : settings_; + } + /** + * + * + *
+   * Required. The settings to update.
+   * See [Enabling CMEK for Log
+   * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+   * for more information.
+   * 
+ * + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.logging.v2.SettingsOrBuilder getSettingsOrBuilder() { + return getSettings(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 3; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Optional. Field mask identifying which fields from `settings` should
+   * be updated. A field will be overwritten if and only if it is in the update
+   * mask. Output only fields cannot be updated.
+   * See [FieldMask][google.protobuf.FieldMask] for more information.
+   * For example: `"updateMask=kmsKeyName"`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Optional. Field mask identifying which fields from `settings` should
+   * be updated. A field will be overwritten if and only if it is in the update
+   * mask. Output only fields cannot be updated.
+   * See [FieldMask][google.protobuf.FieldMask] for more information.
+   * For example: `"updateMask=kmsKeyName"`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Optional. Field mask identifying which fields from `settings` should
+   * be updated. A field will be overwritten if and only if it is in the update
+   * mask. Output only fields cannot be updated.
+   * See [FieldMask][google.protobuf.FieldMask] for more information.
+   * For example: `"updateMask=kmsKeyName"`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (settings_ != null) { + output.writeMessage(2, getSettings()); + } + if (updateMask_ != null) { + output.writeMessage(3, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (settings_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSettings()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.logging.v2.UpdateSettingsRequest)) { + return super.equals(obj); + } + com.google.logging.v2.UpdateSettingsRequest other = + (com.google.logging.v2.UpdateSettingsRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (hasSettings() != other.hasSettings()) return false; + if (hasSettings()) { + if (!getSettings().equals(other.getSettings())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasSettings()) { + hash = (37 * hash) + SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getSettings().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.logging.v2.UpdateSettingsRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.UpdateSettingsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.UpdateSettingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.UpdateSettingsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.UpdateSettingsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.UpdateSettingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.UpdateSettingsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.logging.v2.UpdateSettingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.logging.v2.UpdateSettingsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.logging.v2.UpdateSettingsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.logging.v2.UpdateSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.logging.v2.UpdateSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.logging.v2.UpdateSettingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The parameters to
+   * [UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings].
+   * See [Enabling CMEK for Log
+   * Router](https://cloud.google.com/logging/docs/routing/managed-encryption) for
+   * more information.
+   * 
+ * + * Protobuf type {@code google.logging.v2.UpdateSettingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.logging.v2.UpdateSettingsRequest) + com.google.logging.v2.UpdateSettingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_UpdateSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_UpdateSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.logging.v2.UpdateSettingsRequest.class, + com.google.logging.v2.UpdateSettingsRequest.Builder.class); + } + + // Construct using com.google.logging.v2.UpdateSettingsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (settingsBuilder_ == null) { + settings_ = null; + } else { + settings_ = null; + settingsBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_UpdateSettingsRequest_descriptor; + } + + @java.lang.Override + public com.google.logging.v2.UpdateSettingsRequest getDefaultInstanceForType() { + return com.google.logging.v2.UpdateSettingsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.logging.v2.UpdateSettingsRequest build() { + com.google.logging.v2.UpdateSettingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.logging.v2.UpdateSettingsRequest buildPartial() { + com.google.logging.v2.UpdateSettingsRequest result = + new com.google.logging.v2.UpdateSettingsRequest(this); + result.name_ = name_; + if (settingsBuilder_ == null) { + result.settings_ = settings_; + } else { + result.settings_ = settingsBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.logging.v2.UpdateSettingsRequest) { + return mergeFrom((com.google.logging.v2.UpdateSettingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.logging.v2.UpdateSettingsRequest other) { + if (other == com.google.logging.v2.UpdateSettingsRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasSettings()) { + mergeSettings(other.getSettings()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.logging.v2.UpdateSettingsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.logging.v2.UpdateSettingsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name for the settings to update.
+     *     "organizations/[ORGANIZATION_ID]/settings"
+     * For example:
+     *   `"organizations/12345/settings"`
+     * Note: Settings for the Log Router can currently only be configured for
+     * Google Cloud organizations. Once configured, it applies to all projects and
+     * folders in the Google Cloud organization.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name for the settings to update.
+     *     "organizations/[ORGANIZATION_ID]/settings"
+     * For example:
+     *   `"organizations/12345/settings"`
+     * Note: Settings for the Log Router can currently only be configured for
+     * Google Cloud organizations. Once configured, it applies to all projects and
+     * folders in the Google Cloud organization.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name for the settings to update.
+     *     "organizations/[ORGANIZATION_ID]/settings"
+     * For example:
+     *   `"organizations/12345/settings"`
+     * Note: Settings for the Log Router can currently only be configured for
+     * Google Cloud organizations. Once configured, it applies to all projects and
+     * folders in the Google Cloud organization.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name for the settings to update.
+     *     "organizations/[ORGANIZATION_ID]/settings"
+     * For example:
+     *   `"organizations/12345/settings"`
+     * Note: Settings for the Log Router can currently only be configured for
+     * Google Cloud organizations. Once configured, it applies to all projects and
+     * folders in the Google Cloud organization.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name for the settings to update.
+     *     "organizations/[ORGANIZATION_ID]/settings"
+     * For example:
+     *   `"organizations/12345/settings"`
+     * Note: Settings for the Log Router can currently only be configured for
+     * Google Cloud organizations. Once configured, it applies to all projects and
+     * folders in the Google Cloud organization.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.logging.v2.Settings settings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.Settings, + com.google.logging.v2.Settings.Builder, + com.google.logging.v2.SettingsOrBuilder> + settingsBuilder_; + /** + * + * + *
+     * Required. The settings to update.
+     * See [Enabling CMEK for Log
+     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+     * for more information.
+     * 
+ * + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the settings field is set. + */ + public boolean hasSettings() { + return settingsBuilder_ != null || settings_ != null; + } + /** + * + * + *
+     * Required. The settings to update.
+     * See [Enabling CMEK for Log
+     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+     * for more information.
+     * 
+ * + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The settings. + */ + public com.google.logging.v2.Settings getSettings() { + if (settingsBuilder_ == null) { + return settings_ == null ? com.google.logging.v2.Settings.getDefaultInstance() : settings_; + } else { + return settingsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The settings to update.
+     * See [Enabling CMEK for Log
+     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+     * for more information.
+     * 
+ * + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSettings(com.google.logging.v2.Settings value) { + if (settingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + settings_ = value; + onChanged(); + } else { + settingsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The settings to update.
+     * See [Enabling CMEK for Log
+     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+     * for more information.
+     * 
+ * + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSettings(com.google.logging.v2.Settings.Builder builderForValue) { + if (settingsBuilder_ == null) { + settings_ = builderForValue.build(); + onChanged(); + } else { + settingsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The settings to update.
+     * See [Enabling CMEK for Log
+     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+     * for more information.
+     * 
+ * + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSettings(com.google.logging.v2.Settings value) { + if (settingsBuilder_ == null) { + if (settings_ != null) { + settings_ = + com.google.logging.v2.Settings.newBuilder(settings_).mergeFrom(value).buildPartial(); + } else { + settings_ = value; + } + onChanged(); + } else { + settingsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The settings to update.
+     * See [Enabling CMEK for Log
+     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+     * for more information.
+     * 
+ * + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSettings() { + if (settingsBuilder_ == null) { + settings_ = null; + onChanged(); + } else { + settings_ = null; + settingsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The settings to update.
+     * See [Enabling CMEK for Log
+     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+     * for more information.
+     * 
+ * + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.logging.v2.Settings.Builder getSettingsBuilder() { + + onChanged(); + return getSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The settings to update.
+     * See [Enabling CMEK for Log
+     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+     * for more information.
+     * 
+ * + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.logging.v2.SettingsOrBuilder getSettingsOrBuilder() { + if (settingsBuilder_ != null) { + return settingsBuilder_.getMessageOrBuilder(); + } else { + return settings_ == null ? com.google.logging.v2.Settings.getDefaultInstance() : settings_; + } + } + /** + * + * + *
+     * Required. The settings to update.
+     * See [Enabling CMEK for Log
+     * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+     * for more information.
+     * 
+ * + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.Settings, + com.google.logging.v2.Settings.Builder, + com.google.logging.v2.SettingsOrBuilder> + getSettingsFieldBuilder() { + if (settingsBuilder_ == null) { + settingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.logging.v2.Settings, + com.google.logging.v2.Settings.Builder, + com.google.logging.v2.SettingsOrBuilder>( + getSettings(), getParentForChildren(), isClean()); + settings_ = null; + } + return settingsBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Optional. Field mask identifying which fields from `settings` should
+     * be updated. A field will be overwritten if and only if it is in the update
+     * mask. Output only fields cannot be updated.
+     * See [FieldMask][google.protobuf.FieldMask] for more information.
+     * For example: `"updateMask=kmsKeyName"`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * Optional. Field mask identifying which fields from `settings` should
+     * be updated. A field will be overwritten if and only if it is in the update
+     * mask. Output only fields cannot be updated.
+     * See [FieldMask][google.protobuf.FieldMask] for more information.
+     * For example: `"updateMask=kmsKeyName"`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Field mask identifying which fields from `settings` should
+     * be updated. A field will be overwritten if and only if it is in the update
+     * mask. Output only fields cannot be updated.
+     * See [FieldMask][google.protobuf.FieldMask] for more information.
+     * For example: `"updateMask=kmsKeyName"`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Field mask identifying which fields from `settings` should
+     * be updated. A field will be overwritten if and only if it is in the update
+     * mask. Output only fields cannot be updated.
+     * See [FieldMask][google.protobuf.FieldMask] for more information.
+     * For example: `"updateMask=kmsKeyName"`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. Field mask identifying which fields from `settings` should
+     * be updated. A field will be overwritten if and only if it is in the update
+     * mask. Output only fields cannot be updated.
+     * See [FieldMask][google.protobuf.FieldMask] for more information.
+     * For example: `"updateMask=kmsKeyName"`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. Field mask identifying which fields from `settings` should
+     * be updated. A field will be overwritten if and only if it is in the update
+     * mask. Output only fields cannot be updated.
+     * See [FieldMask][google.protobuf.FieldMask] for more information.
+     * For example: `"updateMask=kmsKeyName"`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. Field mask identifying which fields from `settings` should
+     * be updated. A field will be overwritten if and only if it is in the update
+     * mask. Output only fields cannot be updated.
+     * See [FieldMask][google.protobuf.FieldMask] for more information.
+     * For example: `"updateMask=kmsKeyName"`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Field mask identifying which fields from `settings` should
+     * be updated. A field will be overwritten if and only if it is in the update
+     * mask. Output only fields cannot be updated.
+     * See [FieldMask][google.protobuf.FieldMask] for more information.
+     * For example: `"updateMask=kmsKeyName"`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Optional. Field mask identifying which fields from `settings` should
+     * be updated. A field will be overwritten if and only if it is in the update
+     * mask. Output only fields cannot be updated.
+     * See [FieldMask][google.protobuf.FieldMask] for more information.
+     * For example: `"updateMask=kmsKeyName"`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.logging.v2.UpdateSettingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.logging.v2.UpdateSettingsRequest) + private static final com.google.logging.v2.UpdateSettingsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.logging.v2.UpdateSettingsRequest(); + } + + public static com.google.logging.v2.UpdateSettingsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateSettingsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.logging.v2.UpdateSettingsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequestOrBuilder.java new file mode 100644 index 000000000..ca3fd8de2 --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSettingsRequestOrBuilder.java @@ -0,0 +1,159 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/v2/logging_config.proto + +package com.google.logging.v2; + +public interface UpdateSettingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.logging.v2.UpdateSettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name for the settings to update.
+   *     "organizations/[ORGANIZATION_ID]/settings"
+   * For example:
+   *   `"organizations/12345/settings"`
+   * Note: Settings for the Log Router can currently only be configured for
+   * Google Cloud organizations. Once configured, it applies to all projects and
+   * folders in the Google Cloud organization.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name for the settings to update.
+   *     "organizations/[ORGANIZATION_ID]/settings"
+   * For example:
+   *   `"organizations/12345/settings"`
+   * Note: Settings for the Log Router can currently only be configured for
+   * Google Cloud organizations. Once configured, it applies to all projects and
+   * folders in the Google Cloud organization.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The settings to update.
+   * See [Enabling CMEK for Log
+   * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+   * for more information.
+   * 
+ * + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the settings field is set. + */ + boolean hasSettings(); + /** + * + * + *
+   * Required. The settings to update.
+   * See [Enabling CMEK for Log
+   * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+   * for more information.
+   * 
+ * + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The settings. + */ + com.google.logging.v2.Settings getSettings(); + /** + * + * + *
+   * Required. The settings to update.
+   * See [Enabling CMEK for Log
+   * Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
+   * for more information.
+   * 
+ * + * .google.logging.v2.Settings settings = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.logging.v2.SettingsOrBuilder getSettingsOrBuilder(); + + /** + * + * + *
+   * Optional. Field mask identifying which fields from `settings` should
+   * be updated. A field will be overwritten if and only if it is in the update
+   * mask. Output only fields cannot be updated.
+   * See [FieldMask][google.protobuf.FieldMask] for more information.
+   * For example: `"updateMask=kmsKeyName"`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Optional. Field mask identifying which fields from `settings` should
+   * be updated. A field will be overwritten if and only if it is in the update
+   * mask. Output only fields cannot be updated.
+   * See [FieldMask][google.protobuf.FieldMask] for more information.
+   * For example: `"updateMask=kmsKeyName"`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Optional. Field mask identifying which fields from `settings` should
+   * be updated. A field will be overwritten if and only if it is in the update
+   * mask. Output only fields cannot be updated.
+   * See [FieldMask][google.protobuf.FieldMask] for more information.
+   * For example: `"updateMask=kmsKeyName"`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequest.java index ba46936af..38bbaccff 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequest.java @@ -157,7 +157,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"` * * * @@ -188,7 +189,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"` * * * @@ -295,14 +297,14 @@ public boolean getUniqueWriterIdentity() { * Optional. Field mask that specifies the fields in `sink` that need * an update. A sink field will be overwritten if, and only if, it is * in the update mask. `name` and output only fields cannot be updated. - * An empty updateMask is temporarily treated as using the following mask + * An empty `updateMask` is temporarily treated as using the following mask * for backwards compatibility purposes: - * destination,filter,includeChildren + * `destination,filter,includeChildren` * At some point in the future, behavior will be removed and specifying an - * empty updateMask will be an error. + * empty `updateMask` will be an error. * For a detailed `FieldMask` definition, see * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask - * Example: `updateMask=filter`. + * For example: `updateMask=filter` * * * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -321,14 +323,14 @@ public boolean hasUpdateMask() { * Optional. Field mask that specifies the fields in `sink` that need * an update. A sink field will be overwritten if, and only if, it is * in the update mask. `name` and output only fields cannot be updated. - * An empty updateMask is temporarily treated as using the following mask + * An empty `updateMask` is temporarily treated as using the following mask * for backwards compatibility purposes: - * destination,filter,includeChildren + * `destination,filter,includeChildren` * At some point in the future, behavior will be removed and specifying an - * empty updateMask will be an error. + * empty `updateMask` will be an error. * For a detailed `FieldMask` definition, see * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask - * Example: `updateMask=filter`. + * For example: `updateMask=filter` * * * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -347,14 +349,14 @@ public com.google.protobuf.FieldMask getUpdateMask() { * Optional. Field mask that specifies the fields in `sink` that need * an update. A sink field will be overwritten if, and only if, it is * in the update mask. `name` and output only fields cannot be updated. - * An empty updateMask is temporarily treated as using the following mask + * An empty `updateMask` is temporarily treated as using the following mask * for backwards compatibility purposes: - * destination,filter,includeChildren + * `destination,filter,includeChildren` * At some point in the future, behavior will be removed and specifying an - * empty updateMask will be an error. + * empty `updateMask` will be an error. * For a detailed `FieldMask` definition, see * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask - * Example: `updateMask=filter`. + * For example: `updateMask=filter` * * * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -762,7 +764,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"` * * * @@ -792,7 +795,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"` * * * @@ -822,7 +826,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"` * * * @@ -851,7 +856,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"` * * * @@ -876,7 +882,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"` * * * @@ -1176,14 +1183,14 @@ public Builder clearUniqueWriterIdentity() { * Optional. Field mask that specifies the fields in `sink` that need * an update. A sink field will be overwritten if, and only if, it is * in the update mask. `name` and output only fields cannot be updated. - * An empty updateMask is temporarily treated as using the following mask + * An empty `updateMask` is temporarily treated as using the following mask * for backwards compatibility purposes: - * destination,filter,includeChildren + * `destination,filter,includeChildren` * At some point in the future, behavior will be removed and specifying an - * empty updateMask will be an error. + * empty `updateMask` will be an error. * For a detailed `FieldMask` definition, see * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask - * Example: `updateMask=filter`. + * For example: `updateMask=filter` * * * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1201,14 +1208,14 @@ public boolean hasUpdateMask() { * Optional. Field mask that specifies the fields in `sink` that need * an update. A sink field will be overwritten if, and only if, it is * in the update mask. `name` and output only fields cannot be updated. - * An empty updateMask is temporarily treated as using the following mask + * An empty `updateMask` is temporarily treated as using the following mask * for backwards compatibility purposes: - * destination,filter,includeChildren + * `destination,filter,includeChildren` * At some point in the future, behavior will be removed and specifying an - * empty updateMask will be an error. + * empty `updateMask` will be an error. * For a detailed `FieldMask` definition, see * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask - * Example: `updateMask=filter`. + * For example: `updateMask=filter` * * * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1232,14 +1239,14 @@ public com.google.protobuf.FieldMask getUpdateMask() { * Optional. Field mask that specifies the fields in `sink` that need * an update. A sink field will be overwritten if, and only if, it is * in the update mask. `name` and output only fields cannot be updated. - * An empty updateMask is temporarily treated as using the following mask + * An empty `updateMask` is temporarily treated as using the following mask * for backwards compatibility purposes: - * destination,filter,includeChildren + * `destination,filter,includeChildren` * At some point in the future, behavior will be removed and specifying an - * empty updateMask will be an error. + * empty `updateMask` will be an error. * For a detailed `FieldMask` definition, see * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask - * Example: `updateMask=filter`. + * For example: `updateMask=filter` * * * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1265,14 +1272,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * Optional. Field mask that specifies the fields in `sink` that need * an update. A sink field will be overwritten if, and only if, it is * in the update mask. `name` and output only fields cannot be updated. - * An empty updateMask is temporarily treated as using the following mask + * An empty `updateMask` is temporarily treated as using the following mask * for backwards compatibility purposes: - * destination,filter,includeChildren + * `destination,filter,includeChildren` * At some point in the future, behavior will be removed and specifying an - * empty updateMask will be an error. + * empty `updateMask` will be an error. * For a detailed `FieldMask` definition, see * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask - * Example: `updateMask=filter`. + * For example: `updateMask=filter` * * * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1295,14 +1302,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * Optional. Field mask that specifies the fields in `sink` that need * an update. A sink field will be overwritten if, and only if, it is * in the update mask. `name` and output only fields cannot be updated. - * An empty updateMask is temporarily treated as using the following mask + * An empty `updateMask` is temporarily treated as using the following mask * for backwards compatibility purposes: - * destination,filter,includeChildren + * `destination,filter,includeChildren` * At some point in the future, behavior will be removed and specifying an - * empty updateMask will be an error. + * empty `updateMask` will be an error. * For a detailed `FieldMask` definition, see * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask - * Example: `updateMask=filter`. + * For example: `updateMask=filter` * * * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1330,14 +1337,14 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * Optional. Field mask that specifies the fields in `sink` that need * an update. A sink field will be overwritten if, and only if, it is * in the update mask. `name` and output only fields cannot be updated. - * An empty updateMask is temporarily treated as using the following mask + * An empty `updateMask` is temporarily treated as using the following mask * for backwards compatibility purposes: - * destination,filter,includeChildren + * `destination,filter,includeChildren` * At some point in the future, behavior will be removed and specifying an - * empty updateMask will be an error. + * empty `updateMask` will be an error. * For a detailed `FieldMask` definition, see * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask - * Example: `updateMask=filter`. + * For example: `updateMask=filter` * * * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1361,14 +1368,14 @@ public Builder clearUpdateMask() { * Optional. Field mask that specifies the fields in `sink` that need * an update. A sink field will be overwritten if, and only if, it is * in the update mask. `name` and output only fields cannot be updated. - * An empty updateMask is temporarily treated as using the following mask + * An empty `updateMask` is temporarily treated as using the following mask * for backwards compatibility purposes: - * destination,filter,includeChildren + * `destination,filter,includeChildren` * At some point in the future, behavior will be removed and specifying an - * empty updateMask will be an error. + * empty `updateMask` will be an error. * For a detailed `FieldMask` definition, see * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask - * Example: `updateMask=filter`. + * For example: `updateMask=filter` * * * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1386,14 +1393,14 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * Optional. Field mask that specifies the fields in `sink` that need * an update. A sink field will be overwritten if, and only if, it is * in the update mask. `name` and output only fields cannot be updated. - * An empty updateMask is temporarily treated as using the following mask + * An empty `updateMask` is temporarily treated as using the following mask * for backwards compatibility purposes: - * destination,filter,includeChildren + * `destination,filter,includeChildren` * At some point in the future, behavior will be removed and specifying an - * empty updateMask will be an error. + * empty `updateMask` will be an error. * For a detailed `FieldMask` definition, see * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask - * Example: `updateMask=filter`. + * For example: `updateMask=filter` * * * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1415,14 +1422,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * Optional. Field mask that specifies the fields in `sink` that need * an update. A sink field will be overwritten if, and only if, it is * in the update mask. `name` and output only fields cannot be updated. - * An empty updateMask is temporarily treated as using the following mask + * An empty `updateMask` is temporarily treated as using the following mask * for backwards compatibility purposes: - * destination,filter,includeChildren + * `destination,filter,includeChildren` * At some point in the future, behavior will be removed and specifying an - * empty updateMask will be an error. + * empty `updateMask` will be an error. * For a detailed `FieldMask` definition, see * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask - * Example: `updateMask=filter`. + * For example: `updateMask=filter` * * * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequestOrBuilder.java index dce77c709..159c2c3bf 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateSinkRequestOrBuilder.java @@ -33,7 +33,8 @@ public interface UpdateSinkRequestOrBuilder * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" * "folders/[FOLDER_ID]/sinks/[SINK_ID]" - * Example: `"projects/my-project-id/sinks/my-sink-id"`. + * For example: + * `"projects/my-project/sinks/my-sink"` * * * @@ -53,7 +54,8 @@ public interface UpdateSinkRequestOrBuilder * "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]" * "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" * "folders/[FOLDER_ID]/sinks/[SINK_ID]" - * Example: `"projects/my-project-id/sinks/my-sink-id"`. + * For example: + * `"projects/my-project/sinks/my-sink"` * * * @@ -131,14 +133,14 @@ public interface UpdateSinkRequestOrBuilder * Optional. Field mask that specifies the fields in `sink` that need * an update. A sink field will be overwritten if, and only if, it is * in the update mask. `name` and output only fields cannot be updated. - * An empty updateMask is temporarily treated as using the following mask + * An empty `updateMask` is temporarily treated as using the following mask * for backwards compatibility purposes: - * destination,filter,includeChildren + * `destination,filter,includeChildren` * At some point in the future, behavior will be removed and specifying an - * empty updateMask will be an error. + * empty `updateMask` will be an error. * For a detailed `FieldMask` definition, see * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask - * Example: `updateMask=filter`. + * For example: `updateMask=filter` * * * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -154,14 +156,14 @@ public interface UpdateSinkRequestOrBuilder * Optional. Field mask that specifies the fields in `sink` that need * an update. A sink field will be overwritten if, and only if, it is * in the update mask. `name` and output only fields cannot be updated. - * An empty updateMask is temporarily treated as using the following mask + * An empty `updateMask` is temporarily treated as using the following mask * for backwards compatibility purposes: - * destination,filter,includeChildren + * `destination,filter,includeChildren` * At some point in the future, behavior will be removed and specifying an - * empty updateMask will be an error. + * empty `updateMask` will be an error. * For a detailed `FieldMask` definition, see * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask - * Example: `updateMask=filter`. + * For example: `updateMask=filter` * * * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -177,14 +179,14 @@ public interface UpdateSinkRequestOrBuilder * Optional. Field mask that specifies the fields in `sink` that need * an update. A sink field will be overwritten if, and only if, it is * in the update mask. `name` and output only fields cannot be updated. - * An empty updateMask is temporarily treated as using the following mask + * An empty `updateMask` is temporarily treated as using the following mask * for backwards compatibility purposes: - * destination,filter,includeChildren + * `destination,filter,includeChildren` * At some point in the future, behavior will be removed and specifying an - * empty updateMask will be an error. + * empty `updateMask` will be an error. * For a detailed `FieldMask` definition, see * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask - * Example: `updateMask=filter`. + * For example: `updateMask=filter` * * * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequest.java index 97202237c..eb9a02c18 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequest.java @@ -148,8 +148,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * Required. The full resource name of the view to update
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-   * Example:
-   *   `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`.
+   * For example:
+   *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -174,8 +174,8 @@ public java.lang.String getName() { *
    * Required. The full resource name of the view to update
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-   * Example:
-   *   `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`.
+   * For example:
+   *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -252,7 +252,7 @@ public com.google.logging.v2.LogViewOrBuilder getViewOrBuilder() { * in the update mask. `name` and output only fields cannot be updated. * For a detailed `FieldMask` definition, see * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask - * Example: `updateMask=filter`. + * For example: `updateMask=filter` * * * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -273,7 +273,7 @@ public boolean hasUpdateMask() { * in the update mask. `name` and output only fields cannot be updated. * For a detailed `FieldMask` definition, see * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask - * Example: `updateMask=filter`. + * For example: `updateMask=filter` * * * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -294,7 +294,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { * in the update mask. `name` and output only fields cannot be updated. * For a detailed `FieldMask` definition, see * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask - * Example: `updateMask=filter`. + * For example: `updateMask=filter` * * * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -683,8 +683,8 @@ public Builder mergeFrom( *
      * Required. The full resource name of the view to update
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     * Example:
-     *   `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`.
+     * For example:
+     *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -708,8 +708,8 @@ public java.lang.String getName() { *
      * Required. The full resource name of the view to update
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     * Example:
-     *   `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`.
+     * For example:
+     *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -733,8 +733,8 @@ public com.google.protobuf.ByteString getNameBytes() { *
      * Required. The full resource name of the view to update
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     * Example:
-     *   `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`.
+     * For example:
+     *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -757,8 +757,8 @@ public Builder setName(java.lang.String value) { *
      * Required. The full resource name of the view to update
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     * Example:
-     *   `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`.
+     * For example:
+     *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -777,8 +777,8 @@ public Builder clearName() { *
      * Required. The full resource name of the view to update
      *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-     * Example:
-     *   `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`.
+     * For example:
+     *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
      * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -990,7 +990,7 @@ public com.google.logging.v2.LogViewOrBuilder getViewOrBuilder() { * in the update mask. `name` and output only fields cannot be updated. * For a detailed `FieldMask` definition, see * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask - * Example: `updateMask=filter`. + * For example: `updateMask=filter` * * * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1010,7 +1010,7 @@ public boolean hasUpdateMask() { * in the update mask. `name` and output only fields cannot be updated. * For a detailed `FieldMask` definition, see * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask - * Example: `updateMask=filter`. + * For example: `updateMask=filter` * * * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1036,7 +1036,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { * in the update mask. `name` and output only fields cannot be updated. * For a detailed `FieldMask` definition, see * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask - * Example: `updateMask=filter`. + * For example: `updateMask=filter` * * * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1064,7 +1064,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * in the update mask. `name` and output only fields cannot be updated. * For a detailed `FieldMask` definition, see * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask - * Example: `updateMask=filter`. + * For example: `updateMask=filter` * * * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1089,7 +1089,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * in the update mask. `name` and output only fields cannot be updated. * For a detailed `FieldMask` definition, see * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask - * Example: `updateMask=filter`. + * For example: `updateMask=filter` * * * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1119,7 +1119,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * in the update mask. `name` and output only fields cannot be updated. * For a detailed `FieldMask` definition, see * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask - * Example: `updateMask=filter`. + * For example: `updateMask=filter` * * * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1145,7 +1145,7 @@ public Builder clearUpdateMask() { * in the update mask. `name` and output only fields cannot be updated. * For a detailed `FieldMask` definition, see * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask - * Example: `updateMask=filter`. + * For example: `updateMask=filter` * * * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1165,7 +1165,7 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * in the update mask. `name` and output only fields cannot be updated. * For a detailed `FieldMask` definition, see * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask - * Example: `updateMask=filter`. + * For example: `updateMask=filter` * * * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1189,7 +1189,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * in the update mask. `name` and output only fields cannot be updated. * For a detailed `FieldMask` definition, see * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask - * Example: `updateMask=filter`. + * For example: `updateMask=filter` * * * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequestOrBuilder.java index 062bd10e7..92d2ba148 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateViewRequestOrBuilder.java @@ -29,8 +29,8 @@ public interface UpdateViewRequestOrBuilder *
    * Required. The full resource name of the view to update
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-   * Example:
-   *   `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`.
+   * For example:
+   *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -44,8 +44,8 @@ public interface UpdateViewRequestOrBuilder *
    * Required. The full resource name of the view to update
    *     "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
-   * Example:
-   *   `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`.
+   * For example:
+   *   `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"`
    * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -98,7 +98,7 @@ public interface UpdateViewRequestOrBuilder * in the update mask. `name` and output only fields cannot be updated. * For a detailed `FieldMask` definition, see * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask - * Example: `updateMask=filter`. + * For example: `updateMask=filter` * * * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -116,7 +116,7 @@ public interface UpdateViewRequestOrBuilder * in the update mask. `name` and output only fields cannot be updated. * For a detailed `FieldMask` definition, see * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask - * Example: `updateMask=filter`. + * For example: `updateMask=filter` * * * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -134,7 +134,7 @@ public interface UpdateViewRequestOrBuilder * in the update mask. `name` and output only fields cannot be updated. * For a detailed `FieldMask` definition, see * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask - * Example: `updateMask=filter`. + * For example: `updateMask=filter` * * * .google.protobuf.FieldMask update_mask = 4 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequest.java index d9bf0a6b6..1f564735a 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequest.java @@ -183,13 +183,13 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { *
    * Optional. A default log resource name that is assigned to all log entries
    * in `entries` that do not specify a value for `log_name`:
-   *     "projects/[PROJECT_ID]/logs/[LOG_ID]"
-   *     "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
-   *     "folders/[FOLDER_ID]/logs/[LOG_ID]"
+   * * `projects/[PROJECT_ID]/logs/[LOG_ID]`
+   * * `organizations/[ORGANIZATION_ID]/logs/[LOG_ID]`
+   * * `billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]`
+   * * `folders/[FOLDER_ID]/logs/[LOG_ID]`
    * `[LOG_ID]` must be URL-encoded. For example:
    *     "projects/my-project-id/logs/syslog"
-   *     "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"
+   *     "organizations/123/logs/cloudaudit.googleapis.com%2Factivity"
    * The permission `logging.logEntries.create` is needed on each project,
    * organization, billing account, or folder that is receiving new log
    * entries, whether the resource is specified in `logName` or in an
@@ -220,13 +220,13 @@ public java.lang.String getLogName() {
    * 
    * Optional. A default log resource name that is assigned to all log entries
    * in `entries` that do not specify a value for `log_name`:
-   *     "projects/[PROJECT_ID]/logs/[LOG_ID]"
-   *     "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
-   *     "folders/[FOLDER_ID]/logs/[LOG_ID]"
+   * * `projects/[PROJECT_ID]/logs/[LOG_ID]`
+   * * `organizations/[ORGANIZATION_ID]/logs/[LOG_ID]`
+   * * `billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]`
+   * * `folders/[FOLDER_ID]/logs/[LOG_ID]`
    * `[LOG_ID]` must be URL-encoded. For example:
    *     "projects/my-project-id/logs/syslog"
-   *     "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"
+   *     "organizations/123/logs/cloudaudit.googleapis.com%2Factivity"
    * The permission `logging.logEntries.create` is needed on each project,
    * organization, billing account, or folder that is receiving new log
    * entries, whether the resource is specified in `logName` or in an
@@ -444,13 +444,13 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
    * supply their own values, the entries earlier in the list will sort before
    * the entries later in the list. See the `entries.list` method.
    * Log entries with timestamps that are more than the
-   * [logs retention period](https://cloud.google.com/logging/quota-policy) in
+   * [logs retention period](https://cloud.google.com/logging/quotas) in
    * the past or more than 24 hours in the future will not be available when
    * calling `entries.list`. However, those log entries can still be [exported
    * with
    * LogSinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs).
    * To improve throughput and to avoid exceeding the
-   * [quota limit](https://cloud.google.com/logging/quota-policy) for calls to
+   * [quota limit](https://cloud.google.com/logging/quotas) for calls to
    * `entries.write`, you should try to include several log entries in this
    * list, rather than calling this method for each individual log entry.
    * 
@@ -479,13 +479,13 @@ public java.util.List getEntriesList() { * supply their own values, the entries earlier in the list will sort before * the entries later in the list. See the `entries.list` method. * Log entries with timestamps that are more than the - * [logs retention period](https://cloud.google.com/logging/quota-policy) in + * [logs retention period](https://cloud.google.com/logging/quotas) in * the past or more than 24 hours in the future will not be available when * calling `entries.list`. However, those log entries can still be [exported * with * LogSinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). * To improve throughput and to avoid exceeding the - * [quota limit](https://cloud.google.com/logging/quota-policy) for calls to + * [quota limit](https://cloud.google.com/logging/quotas) for calls to * `entries.write`, you should try to include several log entries in this * list, rather than calling this method for each individual log entry. *
@@ -515,13 +515,13 @@ public java.util.List getEntriesList() { * supply their own values, the entries earlier in the list will sort before * the entries later in the list. See the `entries.list` method. * Log entries with timestamps that are more than the - * [logs retention period](https://cloud.google.com/logging/quota-policy) in + * [logs retention period](https://cloud.google.com/logging/quotas) in * the past or more than 24 hours in the future will not be available when * calling `entries.list`. However, those log entries can still be [exported * with * LogSinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). * To improve throughput and to avoid exceeding the - * [quota limit](https://cloud.google.com/logging/quota-policy) for calls to + * [quota limit](https://cloud.google.com/logging/quotas) for calls to * `entries.write`, you should try to include several log entries in this * list, rather than calling this method for each individual log entry. * @@ -550,13 +550,13 @@ public int getEntriesCount() { * supply their own values, the entries earlier in the list will sort before * the entries later in the list. See the `entries.list` method. * Log entries with timestamps that are more than the - * [logs retention period](https://cloud.google.com/logging/quota-policy) in + * [logs retention period](https://cloud.google.com/logging/quotas) in * the past or more than 24 hours in the future will not be available when * calling `entries.list`. However, those log entries can still be [exported * with * LogSinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). * To improve throughput and to avoid exceeding the - * [quota limit](https://cloud.google.com/logging/quota-policy) for calls to + * [quota limit](https://cloud.google.com/logging/quotas) for calls to * `entries.write`, you should try to include several log entries in this * list, rather than calling this method for each individual log entry. * @@ -585,13 +585,13 @@ public com.google.logging.v2.LogEntry getEntries(int index) { * supply their own values, the entries earlier in the list will sort before * the entries later in the list. See the `entries.list` method. * Log entries with timestamps that are more than the - * [logs retention period](https://cloud.google.com/logging/quota-policy) in + * [logs retention period](https://cloud.google.com/logging/quotas) in * the past or more than 24 hours in the future will not be available when * calling `entries.list`. However, those log entries can still be [exported * with * LogSinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). * To improve throughput and to avoid exceeding the - * [quota limit](https://cloud.google.com/logging/quota-policy) for calls to + * [quota limit](https://cloud.google.com/logging/quotas) for calls to * `entries.write`, you should try to include several log entries in this * list, rather than calling this method for each individual log entry. * @@ -1127,13 +1127,13 @@ public Builder mergeFrom( *
      * Optional. A default log resource name that is assigned to all log entries
      * in `entries` that do not specify a value for `log_name`:
-     *     "projects/[PROJECT_ID]/logs/[LOG_ID]"
-     *     "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
-     *     "folders/[FOLDER_ID]/logs/[LOG_ID]"
+     * * `projects/[PROJECT_ID]/logs/[LOG_ID]`
+     * * `organizations/[ORGANIZATION_ID]/logs/[LOG_ID]`
+     * * `billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]`
+     * * `folders/[FOLDER_ID]/logs/[LOG_ID]`
      * `[LOG_ID]` must be URL-encoded. For example:
      *     "projects/my-project-id/logs/syslog"
-     *     "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"
+     *     "organizations/123/logs/cloudaudit.googleapis.com%2Factivity"
      * The permission `logging.logEntries.create` is needed on each project,
      * organization, billing account, or folder that is receiving new log
      * entries, whether the resource is specified in `logName` or in an
@@ -1163,13 +1163,13 @@ public java.lang.String getLogName() {
      * 
      * Optional. A default log resource name that is assigned to all log entries
      * in `entries` that do not specify a value for `log_name`:
-     *     "projects/[PROJECT_ID]/logs/[LOG_ID]"
-     *     "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
-     *     "folders/[FOLDER_ID]/logs/[LOG_ID]"
+     * * `projects/[PROJECT_ID]/logs/[LOG_ID]`
+     * * `organizations/[ORGANIZATION_ID]/logs/[LOG_ID]`
+     * * `billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]`
+     * * `folders/[FOLDER_ID]/logs/[LOG_ID]`
      * `[LOG_ID]` must be URL-encoded. For example:
      *     "projects/my-project-id/logs/syslog"
-     *     "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"
+     *     "organizations/123/logs/cloudaudit.googleapis.com%2Factivity"
      * The permission `logging.logEntries.create` is needed on each project,
      * organization, billing account, or folder that is receiving new log
      * entries, whether the resource is specified in `logName` or in an
@@ -1199,13 +1199,13 @@ public com.google.protobuf.ByteString getLogNameBytes() {
      * 
      * Optional. A default log resource name that is assigned to all log entries
      * in `entries` that do not specify a value for `log_name`:
-     *     "projects/[PROJECT_ID]/logs/[LOG_ID]"
-     *     "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
-     *     "folders/[FOLDER_ID]/logs/[LOG_ID]"
+     * * `projects/[PROJECT_ID]/logs/[LOG_ID]`
+     * * `organizations/[ORGANIZATION_ID]/logs/[LOG_ID]`
+     * * `billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]`
+     * * `folders/[FOLDER_ID]/logs/[LOG_ID]`
      * `[LOG_ID]` must be URL-encoded. For example:
      *     "projects/my-project-id/logs/syslog"
-     *     "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"
+     *     "organizations/123/logs/cloudaudit.googleapis.com%2Factivity"
      * The permission `logging.logEntries.create` is needed on each project,
      * organization, billing account, or folder that is receiving new log
      * entries, whether the resource is specified in `logName` or in an
@@ -1234,13 +1234,13 @@ public Builder setLogName(java.lang.String value) {
      * 
      * Optional. A default log resource name that is assigned to all log entries
      * in `entries` that do not specify a value for `log_name`:
-     *     "projects/[PROJECT_ID]/logs/[LOG_ID]"
-     *     "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
-     *     "folders/[FOLDER_ID]/logs/[LOG_ID]"
+     * * `projects/[PROJECT_ID]/logs/[LOG_ID]`
+     * * `organizations/[ORGANIZATION_ID]/logs/[LOG_ID]`
+     * * `billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]`
+     * * `folders/[FOLDER_ID]/logs/[LOG_ID]`
      * `[LOG_ID]` must be URL-encoded. For example:
      *     "projects/my-project-id/logs/syslog"
-     *     "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"
+     *     "organizations/123/logs/cloudaudit.googleapis.com%2Factivity"
      * The permission `logging.logEntries.create` is needed on each project,
      * organization, billing account, or folder that is receiving new log
      * entries, whether the resource is specified in `logName` or in an
@@ -1265,13 +1265,13 @@ public Builder clearLogName() {
      * 
      * Optional. A default log resource name that is assigned to all log entries
      * in `entries` that do not specify a value for `log_name`:
-     *     "projects/[PROJECT_ID]/logs/[LOG_ID]"
-     *     "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
-     *     "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
-     *     "folders/[FOLDER_ID]/logs/[LOG_ID]"
+     * * `projects/[PROJECT_ID]/logs/[LOG_ID]`
+     * * `organizations/[ORGANIZATION_ID]/logs/[LOG_ID]`
+     * * `billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]`
+     * * `folders/[FOLDER_ID]/logs/[LOG_ID]`
      * `[LOG_ID]` must be URL-encoded. For example:
      *     "projects/my-project-id/logs/syslog"
-     *     "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"
+     *     "organizations/123/logs/cloudaudit.googleapis.com%2Factivity"
      * The permission `logging.logEntries.create` is needed on each project,
      * organization, billing account, or folder that is receiving new log
      * entries, whether the resource is specified in `logName` or in an
@@ -1745,13 +1745,13 @@ private void ensureEntriesIsMutable() {
      * supply their own values, the entries earlier in the list will sort before
      * the entries later in the list. See the `entries.list` method.
      * Log entries with timestamps that are more than the
-     * [logs retention period](https://cloud.google.com/logging/quota-policy) in
+     * [logs retention period](https://cloud.google.com/logging/quotas) in
      * the past or more than 24 hours in the future will not be available when
      * calling `entries.list`. However, those log entries can still be [exported
      * with
      * LogSinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs).
      * To improve throughput and to avoid exceeding the
-     * [quota limit](https://cloud.google.com/logging/quota-policy) for calls to
+     * [quota limit](https://cloud.google.com/logging/quotas) for calls to
      * `entries.write`, you should try to include several log entries in this
      * list, rather than calling this method for each individual log entry.
      * 
@@ -1783,13 +1783,13 @@ public java.util.List getEntriesList() { * supply their own values, the entries earlier in the list will sort before * the entries later in the list. See the `entries.list` method. * Log entries with timestamps that are more than the - * [logs retention period](https://cloud.google.com/logging/quota-policy) in + * [logs retention period](https://cloud.google.com/logging/quotas) in * the past or more than 24 hours in the future will not be available when * calling `entries.list`. However, those log entries can still be [exported * with * LogSinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). * To improve throughput and to avoid exceeding the - * [quota limit](https://cloud.google.com/logging/quota-policy) for calls to + * [quota limit](https://cloud.google.com/logging/quotas) for calls to * `entries.write`, you should try to include several log entries in this * list, rather than calling this method for each individual log entry. *
@@ -1821,13 +1821,13 @@ public int getEntriesCount() { * supply their own values, the entries earlier in the list will sort before * the entries later in the list. See the `entries.list` method. * Log entries with timestamps that are more than the - * [logs retention period](https://cloud.google.com/logging/quota-policy) in + * [logs retention period](https://cloud.google.com/logging/quotas) in * the past or more than 24 hours in the future will not be available when * calling `entries.list`. However, those log entries can still be [exported * with * LogSinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). * To improve throughput and to avoid exceeding the - * [quota limit](https://cloud.google.com/logging/quota-policy) for calls to + * [quota limit](https://cloud.google.com/logging/quotas) for calls to * `entries.write`, you should try to include several log entries in this * list, rather than calling this method for each individual log entry. *
@@ -1859,13 +1859,13 @@ public com.google.logging.v2.LogEntry getEntries(int index) { * supply their own values, the entries earlier in the list will sort before * the entries later in the list. See the `entries.list` method. * Log entries with timestamps that are more than the - * [logs retention period](https://cloud.google.com/logging/quota-policy) in + * [logs retention period](https://cloud.google.com/logging/quotas) in * the past or more than 24 hours in the future will not be available when * calling `entries.list`. However, those log entries can still be [exported * with * LogSinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). * To improve throughput and to avoid exceeding the - * [quota limit](https://cloud.google.com/logging/quota-policy) for calls to + * [quota limit](https://cloud.google.com/logging/quotas) for calls to * `entries.write`, you should try to include several log entries in this * list, rather than calling this method for each individual log entry. *
@@ -1903,13 +1903,13 @@ public Builder setEntries(int index, com.google.logging.v2.LogEntry value) { * supply their own values, the entries earlier in the list will sort before * the entries later in the list. See the `entries.list` method. * Log entries with timestamps that are more than the - * [logs retention period](https://cloud.google.com/logging/quota-policy) in + * [logs retention period](https://cloud.google.com/logging/quotas) in * the past or more than 24 hours in the future will not be available when * calling `entries.list`. However, those log entries can still be [exported * with * LogSinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). * To improve throughput and to avoid exceeding the - * [quota limit](https://cloud.google.com/logging/quota-policy) for calls to + * [quota limit](https://cloud.google.com/logging/quotas) for calls to * `entries.write`, you should try to include several log entries in this * list, rather than calling this method for each individual log entry. *
@@ -1944,13 +1944,13 @@ public Builder setEntries(int index, com.google.logging.v2.LogEntry.Builder buil * supply their own values, the entries earlier in the list will sort before * the entries later in the list. See the `entries.list` method. * Log entries with timestamps that are more than the - * [logs retention period](https://cloud.google.com/logging/quota-policy) in + * [logs retention period](https://cloud.google.com/logging/quotas) in * the past or more than 24 hours in the future will not be available when * calling `entries.list`. However, those log entries can still be [exported * with * LogSinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). * To improve throughput and to avoid exceeding the - * [quota limit](https://cloud.google.com/logging/quota-policy) for calls to + * [quota limit](https://cloud.google.com/logging/quotas) for calls to * `entries.write`, you should try to include several log entries in this * list, rather than calling this method for each individual log entry. * @@ -1988,13 +1988,13 @@ public Builder addEntries(com.google.logging.v2.LogEntry value) { * supply their own values, the entries earlier in the list will sort before * the entries later in the list. See the `entries.list` method. * Log entries with timestamps that are more than the - * [logs retention period](https://cloud.google.com/logging/quota-policy) in + * [logs retention period](https://cloud.google.com/logging/quotas) in * the past or more than 24 hours in the future will not be available when * calling `entries.list`. However, those log entries can still be [exported * with * LogSinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). * To improve throughput and to avoid exceeding the - * [quota limit](https://cloud.google.com/logging/quota-policy) for calls to + * [quota limit](https://cloud.google.com/logging/quotas) for calls to * `entries.write`, you should try to include several log entries in this * list, rather than calling this method for each individual log entry. * @@ -2032,13 +2032,13 @@ public Builder addEntries(int index, com.google.logging.v2.LogEntry value) { * supply their own values, the entries earlier in the list will sort before * the entries later in the list. See the `entries.list` method. * Log entries with timestamps that are more than the - * [logs retention period](https://cloud.google.com/logging/quota-policy) in + * [logs retention period](https://cloud.google.com/logging/quotas) in * the past or more than 24 hours in the future will not be available when * calling `entries.list`. However, those log entries can still be [exported * with * LogSinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). * To improve throughput and to avoid exceeding the - * [quota limit](https://cloud.google.com/logging/quota-policy) for calls to + * [quota limit](https://cloud.google.com/logging/quotas) for calls to * `entries.write`, you should try to include several log entries in this * list, rather than calling this method for each individual log entry. * @@ -2073,13 +2073,13 @@ public Builder addEntries(com.google.logging.v2.LogEntry.Builder builderForValue * supply their own values, the entries earlier in the list will sort before * the entries later in the list. See the `entries.list` method. * Log entries with timestamps that are more than the - * [logs retention period](https://cloud.google.com/logging/quota-policy) in + * [logs retention period](https://cloud.google.com/logging/quotas) in * the past or more than 24 hours in the future will not be available when * calling `entries.list`. However, those log entries can still be [exported * with * LogSinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). * To improve throughput and to avoid exceeding the - * [quota limit](https://cloud.google.com/logging/quota-policy) for calls to + * [quota limit](https://cloud.google.com/logging/quotas) for calls to * `entries.write`, you should try to include several log entries in this * list, rather than calling this method for each individual log entry. * @@ -2114,13 +2114,13 @@ public Builder addEntries(int index, com.google.logging.v2.LogEntry.Builder buil * supply their own values, the entries earlier in the list will sort before * the entries later in the list. See the `entries.list` method. * Log entries with timestamps that are more than the - * [logs retention period](https://cloud.google.com/logging/quota-policy) in + * [logs retention period](https://cloud.google.com/logging/quotas) in * the past or more than 24 hours in the future will not be available when * calling `entries.list`. However, those log entries can still be [exported * with * LogSinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). * To improve throughput and to avoid exceeding the - * [quota limit](https://cloud.google.com/logging/quota-policy) for calls to + * [quota limit](https://cloud.google.com/logging/quotas) for calls to * `entries.write`, you should try to include several log entries in this * list, rather than calling this method for each individual log entry. * @@ -2156,13 +2156,13 @@ public Builder addAllEntries( * supply their own values, the entries earlier in the list will sort before * the entries later in the list. See the `entries.list` method. * Log entries with timestamps that are more than the - * [logs retention period](https://cloud.google.com/logging/quota-policy) in + * [logs retention period](https://cloud.google.com/logging/quotas) in * the past or more than 24 hours in the future will not be available when * calling `entries.list`. However, those log entries can still be [exported * with * LogSinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). * To improve throughput and to avoid exceeding the - * [quota limit](https://cloud.google.com/logging/quota-policy) for calls to + * [quota limit](https://cloud.google.com/logging/quotas) for calls to * `entries.write`, you should try to include several log entries in this * list, rather than calling this method for each individual log entry. * @@ -2197,13 +2197,13 @@ public Builder clearEntries() { * supply their own values, the entries earlier in the list will sort before * the entries later in the list. See the `entries.list` method. * Log entries with timestamps that are more than the - * [logs retention period](https://cloud.google.com/logging/quota-policy) in + * [logs retention period](https://cloud.google.com/logging/quotas) in * the past or more than 24 hours in the future will not be available when * calling `entries.list`. However, those log entries can still be [exported * with * LogSinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). * To improve throughput and to avoid exceeding the - * [quota limit](https://cloud.google.com/logging/quota-policy) for calls to + * [quota limit](https://cloud.google.com/logging/quotas) for calls to * `entries.write`, you should try to include several log entries in this * list, rather than calling this method for each individual log entry. * @@ -2238,13 +2238,13 @@ public Builder removeEntries(int index) { * supply their own values, the entries earlier in the list will sort before * the entries later in the list. See the `entries.list` method. * Log entries with timestamps that are more than the - * [logs retention period](https://cloud.google.com/logging/quota-policy) in + * [logs retention period](https://cloud.google.com/logging/quotas) in * the past or more than 24 hours in the future will not be available when * calling `entries.list`. However, those log entries can still be [exported * with * LogSinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). * To improve throughput and to avoid exceeding the - * [quota limit](https://cloud.google.com/logging/quota-policy) for calls to + * [quota limit](https://cloud.google.com/logging/quotas) for calls to * `entries.write`, you should try to include several log entries in this * list, rather than calling this method for each individual log entry. * @@ -2272,13 +2272,13 @@ public com.google.logging.v2.LogEntry.Builder getEntriesBuilder(int index) { * supply their own values, the entries earlier in the list will sort before * the entries later in the list. See the `entries.list` method. * Log entries with timestamps that are more than the - * [logs retention period](https://cloud.google.com/logging/quota-policy) in + * [logs retention period](https://cloud.google.com/logging/quotas) in * the past or more than 24 hours in the future will not be available when * calling `entries.list`. However, those log entries can still be [exported * with * LogSinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). * To improve throughput and to avoid exceeding the - * [quota limit](https://cloud.google.com/logging/quota-policy) for calls to + * [quota limit](https://cloud.google.com/logging/quotas) for calls to * `entries.write`, you should try to include several log entries in this * list, rather than calling this method for each individual log entry. * @@ -2310,13 +2310,13 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index) { * supply their own values, the entries earlier in the list will sort before * the entries later in the list. See the `entries.list` method. * Log entries with timestamps that are more than the - * [logs retention period](https://cloud.google.com/logging/quota-policy) in + * [logs retention period](https://cloud.google.com/logging/quotas) in * the past or more than 24 hours in the future will not be available when * calling `entries.list`. However, those log entries can still be [exported * with * LogSinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). * To improve throughput and to avoid exceeding the - * [quota limit](https://cloud.google.com/logging/quota-policy) for calls to + * [quota limit](https://cloud.google.com/logging/quotas) for calls to * `entries.write`, you should try to include several log entries in this * list, rather than calling this method for each individual log entry. * @@ -2349,13 +2349,13 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index) { * supply their own values, the entries earlier in the list will sort before * the entries later in the list. See the `entries.list` method. * Log entries with timestamps that are more than the - * [logs retention period](https://cloud.google.com/logging/quota-policy) in + * [logs retention period](https://cloud.google.com/logging/quotas) in * the past or more than 24 hours in the future will not be available when * calling `entries.list`. However, those log entries can still be [exported * with * LogSinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). * To improve throughput and to avoid exceeding the - * [quota limit](https://cloud.google.com/logging/quota-policy) for calls to + * [quota limit](https://cloud.google.com/logging/quotas) for calls to * `entries.write`, you should try to include several log entries in this * list, rather than calling this method for each individual log entry. * @@ -2384,13 +2384,13 @@ public com.google.logging.v2.LogEntry.Builder addEntriesBuilder() { * supply their own values, the entries earlier in the list will sort before * the entries later in the list. See the `entries.list` method. * Log entries with timestamps that are more than the - * [logs retention period](https://cloud.google.com/logging/quota-policy) in + * [logs retention period](https://cloud.google.com/logging/quotas) in * the past or more than 24 hours in the future will not be available when * calling `entries.list`. However, those log entries can still be [exported * with * LogSinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). * To improve throughput and to avoid exceeding the - * [quota limit](https://cloud.google.com/logging/quota-policy) for calls to + * [quota limit](https://cloud.google.com/logging/quotas) for calls to * `entries.write`, you should try to include several log entries in this * list, rather than calling this method for each individual log entry. * @@ -2419,13 +2419,13 @@ public com.google.logging.v2.LogEntry.Builder addEntriesBuilder(int index) { * supply their own values, the entries earlier in the list will sort before * the entries later in the list. See the `entries.list` method. * Log entries with timestamps that are more than the - * [logs retention period](https://cloud.google.com/logging/quota-policy) in + * [logs retention period](https://cloud.google.com/logging/quotas) in * the past or more than 24 hours in the future will not be available when * calling `entries.list`. However, those log entries can still be [exported * with * LogSinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). * To improve throughput and to avoid exceeding the - * [quota limit](https://cloud.google.com/logging/quota-policy) for calls to + * [quota limit](https://cloud.google.com/logging/quotas) for calls to * `entries.write`, you should try to include several log entries in this * list, rather than calling this method for each individual log entry. * diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequestOrBuilder.java index e69969dd7..5a6121c70 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/WriteLogEntriesRequestOrBuilder.java @@ -29,13 +29,13 @@ public interface WriteLogEntriesRequestOrBuilder *
    * Optional. A default log resource name that is assigned to all log entries
    * in `entries` that do not specify a value for `log_name`:
-   *     "projects/[PROJECT_ID]/logs/[LOG_ID]"
-   *     "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
-   *     "folders/[FOLDER_ID]/logs/[LOG_ID]"
+   * * `projects/[PROJECT_ID]/logs/[LOG_ID]`
+   * * `organizations/[ORGANIZATION_ID]/logs/[LOG_ID]`
+   * * `billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]`
+   * * `folders/[FOLDER_ID]/logs/[LOG_ID]`
    * `[LOG_ID]` must be URL-encoded. For example:
    *     "projects/my-project-id/logs/syslog"
-   *     "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"
+   *     "organizations/123/logs/cloudaudit.googleapis.com%2Factivity"
    * The permission `logging.logEntries.create` is needed on each project,
    * organization, billing account, or folder that is receiving new log
    * entries, whether the resource is specified in `logName` or in an
@@ -55,13 +55,13 @@ public interface WriteLogEntriesRequestOrBuilder
    * 
    * Optional. A default log resource name that is assigned to all log entries
    * in `entries` that do not specify a value for `log_name`:
-   *     "projects/[PROJECT_ID]/logs/[LOG_ID]"
-   *     "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
-   *     "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
-   *     "folders/[FOLDER_ID]/logs/[LOG_ID]"
+   * * `projects/[PROJECT_ID]/logs/[LOG_ID]`
+   * * `organizations/[ORGANIZATION_ID]/logs/[LOG_ID]`
+   * * `billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]`
+   * * `folders/[FOLDER_ID]/logs/[LOG_ID]`
    * `[LOG_ID]` must be URL-encoded. For example:
    *     "projects/my-project-id/logs/syslog"
-   *     "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"
+   *     "organizations/123/logs/cloudaudit.googleapis.com%2Factivity"
    * The permission `logging.logEntries.create` is needed on each project,
    * organization, billing account, or folder that is receiving new log
    * entries, whether the resource is specified in `logName` or in an
@@ -214,13 +214,13 @@ public interface WriteLogEntriesRequestOrBuilder
    * supply their own values, the entries earlier in the list will sort before
    * the entries later in the list. See the `entries.list` method.
    * Log entries with timestamps that are more than the
-   * [logs retention period](https://cloud.google.com/logging/quota-policy) in
+   * [logs retention period](https://cloud.google.com/logging/quotas) in
    * the past or more than 24 hours in the future will not be available when
    * calling `entries.list`. However, those log entries can still be [exported
    * with
    * LogSinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs).
    * To improve throughput and to avoid exceeding the
-   * [quota limit](https://cloud.google.com/logging/quota-policy) for calls to
+   * [quota limit](https://cloud.google.com/logging/quotas) for calls to
    * `entries.write`, you should try to include several log entries in this
    * list, rather than calling this method for each individual log entry.
    * 
@@ -246,13 +246,13 @@ public interface WriteLogEntriesRequestOrBuilder * supply their own values, the entries earlier in the list will sort before * the entries later in the list. See the `entries.list` method. * Log entries with timestamps that are more than the - * [logs retention period](https://cloud.google.com/logging/quota-policy) in + * [logs retention period](https://cloud.google.com/logging/quotas) in * the past or more than 24 hours in the future will not be available when * calling `entries.list`. However, those log entries can still be [exported * with * LogSinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). * To improve throughput and to avoid exceeding the - * [quota limit](https://cloud.google.com/logging/quota-policy) for calls to + * [quota limit](https://cloud.google.com/logging/quotas) for calls to * `entries.write`, you should try to include several log entries in this * list, rather than calling this method for each individual log entry. *
@@ -278,13 +278,13 @@ public interface WriteLogEntriesRequestOrBuilder * supply their own values, the entries earlier in the list will sort before * the entries later in the list. See the `entries.list` method. * Log entries with timestamps that are more than the - * [logs retention period](https://cloud.google.com/logging/quota-policy) in + * [logs retention period](https://cloud.google.com/logging/quotas) in * the past or more than 24 hours in the future will not be available when * calling `entries.list`. However, those log entries can still be [exported * with * LogSinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). * To improve throughput and to avoid exceeding the - * [quota limit](https://cloud.google.com/logging/quota-policy) for calls to + * [quota limit](https://cloud.google.com/logging/quotas) for calls to * `entries.write`, you should try to include several log entries in this * list, rather than calling this method for each individual log entry. * @@ -310,13 +310,13 @@ public interface WriteLogEntriesRequestOrBuilder * supply their own values, the entries earlier in the list will sort before * the entries later in the list. See the `entries.list` method. * Log entries with timestamps that are more than the - * [logs retention period](https://cloud.google.com/logging/quota-policy) in + * [logs retention period](https://cloud.google.com/logging/quotas) in * the past or more than 24 hours in the future will not be available when * calling `entries.list`. However, those log entries can still be [exported * with * LogSinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). * To improve throughput and to avoid exceeding the - * [quota limit](https://cloud.google.com/logging/quota-policy) for calls to + * [quota limit](https://cloud.google.com/logging/quotas) for calls to * `entries.write`, you should try to include several log entries in this * list, rather than calling this method for each individual log entry. * @@ -342,13 +342,13 @@ public interface WriteLogEntriesRequestOrBuilder * supply their own values, the entries earlier in the list will sort before * the entries later in the list. See the `entries.list` method. * Log entries with timestamps that are more than the - * [logs retention period](https://cloud.google.com/logging/quota-policy) in + * [logs retention period](https://cloud.google.com/logging/quotas) in * the past or more than 24 hours in the future will not be available when * calling `entries.list`. However, those log entries can still be [exported * with * LogSinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). * To improve throughput and to avoid exceeding the - * [quota limit](https://cloud.google.com/logging/quota-policy) for calls to + * [quota limit](https://cloud.google.com/logging/quotas) for calls to * `entries.write`, you should try to include several log entries in this * list, rather than calling this method for each individual log entry. * diff --git a/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/log_entry.proto b/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/log_entry.proto index 3ad2cfbb5..997129369 100644 --- a/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/log_entry.proto +++ b/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/log_entry.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -24,8 +24,6 @@ import "google/logging/type/log_severity.proto"; import "google/protobuf/any.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; -import "google/rpc/status.proto"; -import "google/api/annotations.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Logging.V2"; @@ -37,8 +35,6 @@ option php_namespace = "Google\\Cloud\\Logging\\V2"; option ruby_package = "Google::Cloud::Logging::V2"; // An individual entry in a log. -// -// message LogEntry { option (google.api.resource) = { type: "logging.googleapis.com/Log" @@ -62,12 +58,13 @@ message LogEntry { // // `[LOG_ID]` must be URL-encoded within `log_name`. Example: // `"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`. + // // `[LOG_ID]` must be less than 512 characters long and can only include the // following characters: upper and lower case alphanumeric characters, // forward-slash, underscore, hyphen, and period. // // For backward compatibility, if `log_name` begins with a forward-slash, such - // as `/projects/...`, then the log entry is ingested as usual but the + // as `/projects/...`, then the log entry is ingested as usual, but the // forward-slash is removed. Listing the log entry will not show the leading // slash and filtering for a log name with a leading slash will never return // any results. @@ -126,7 +123,7 @@ message LogEntry { // de-duplication in the export of logs. // // If the `insert_id` is omitted when writing a log entry, the Logging API - // assigns its own unique identifier in this field. + // assigns its own unique identifier in this field. // // In queries, the `insert_id` is also used to order log entries that have // the same `log_name` and `timestamp` values. @@ -136,8 +133,20 @@ message LogEntry { // applicable. google.logging.type.HttpRequest http_request = 7 [(google.api.field_behavior) = OPTIONAL]; - // Optional. A set of user-defined (key, value) data that provides additional - // information about the log entry. + // Optional. A map of key, value pairs that provides additional information about the + // log entry. The labels can be user-defined or system-defined. + // + // User-defined labels are arbitrary key, value pairs that you can use to + // classify logs. + // + // System-defined labels are defined by GCP services for platform logs. + // They have two components - a service namespace component and the + // attribute name. For example: `compute.googleapis.com/resource_name`. + // + // Cloud Logging truncates label keys that exceed 512 B and label + // values that exceed 64 KB upon their associated log entry being + // written. The truncation is indicated by an ellipsis at the + // end of the character string. map labels = 11 [(google.api.field_behavior) = OPTIONAL]; // Optional. Information about an operation associated with the log entry, if @@ -168,6 +177,10 @@ message LogEntry { // Optional. Source code location information associated with the log entry, if any. LogEntrySourceLocation source_location = 23 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Information indicating this LogEntry is part of a sequence of multiple log + // entries split from a single LogEntry. + LogSplit split = 35 [(google.api.field_behavior) = OPTIONAL]; } // Additional information about a potentially long-running operation with which @@ -208,3 +221,21 @@ message LogEntrySourceLocation { // (Python). string function = 3 [(google.api.field_behavior) = OPTIONAL]; } + +// Additional information used to correlate multiple log entries. Used when a +// single LogEntry would exceed the Google Cloud Logging size limit and is +// split across multiple log entries. +message LogSplit { + // A globally unique identifier for all log entries in a sequence of split log + // entries. All log entries with the same |LogSplit.uid| are assumed to be + // part of the same sequence of split log entries. + string uid = 1; + + // The index of this LogEntry in the sequence of split log entries. Log + // entries are given |index| values 0, 1, ..., n-1 for a sequence of n log + // entries. + int32 index = 2; + + // The total number of log entries that the original LogEntry was split into. + int32 total_splits = 3; +} diff --git a/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging.proto b/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging.proto index f8b01a71e..b7f4f189d 100644 --- a/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging.proto +++ b/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,18 +16,15 @@ syntax = "proto3"; package google.logging.v2; +import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/monitored_resource.proto"; import "google/api/resource.proto"; import "google/logging/v2/log_entry.proto"; -import "google/logging/v2/logging_config.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/empty.proto"; -import "google/protobuf/field_mask.proto"; -import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; -import "google/api/annotations.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Logging.V2"; @@ -48,10 +45,10 @@ service LoggingServiceV2 { "https://www.googleapis.com/auth/logging.read," "https://www.googleapis.com/auth/logging.write"; - // Deletes all the log entries in a log. The log reappears if it receives new - // entries. Log entries written shortly before the delete operation might not - // be deleted. Entries received after the delete operation with a timestamp - // before the operation will be deleted. + // Deletes all the log entries in a log for the _Default Log Bucket. The log + // reappears if it receives new entries. Log entries written shortly before + // the delete operation might not be deleted. Entries received after the + // delete operation with a timestamp before the operation will be deleted. rpc DeleteLog(DeleteLogRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v2/{log_name=projects/*/logs/*}" @@ -140,14 +137,15 @@ service LoggingServiceV2 { message DeleteLogRequest { // Required. The resource name of the log to delete: // - // "projects/[PROJECT_ID]/logs/[LOG_ID]" - // "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" - // "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" - // "folders/[FOLDER_ID]/logs/[LOG_ID]" + // * `projects/[PROJECT_ID]/logs/[LOG_ID]` + // * `organizations/[ORGANIZATION_ID]/logs/[LOG_ID]` + // * `billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]` + // * `folders/[FOLDER_ID]/logs/[LOG_ID]` // // `[LOG_ID]` must be URL-encoded. For example, // `"projects/my-project-id/logs/syslog"`, - // `"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`. + // `"organizations/123/logs/cloudaudit.googleapis.com%2Factivity"`. + // // For more information about log names, see // [LogEntry][google.logging.v2.LogEntry]. string log_name = 1 [ @@ -163,15 +161,15 @@ message WriteLogEntriesRequest { // Optional. A default log resource name that is assigned to all log entries // in `entries` that do not specify a value for `log_name`: // - // "projects/[PROJECT_ID]/logs/[LOG_ID]" - // "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" - // "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" - // "folders/[FOLDER_ID]/logs/[LOG_ID]" + // * `projects/[PROJECT_ID]/logs/[LOG_ID]` + // * `organizations/[ORGANIZATION_ID]/logs/[LOG_ID]` + // * `billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]` + // * `folders/[FOLDER_ID]/logs/[LOG_ID]` // // `[LOG_ID]` must be URL-encoded. For example: // // "projects/my-project-id/logs/syslog" - // "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity" + // "organizations/123/logs/cloudaudit.googleapis.com%2Factivity" // // The permission `logging.logEntries.create` is needed on each project, // organization, billing account, or folder that is receiving new log @@ -214,14 +212,14 @@ message WriteLogEntriesRequest { // the entries later in the list. See the `entries.list` method. // // Log entries with timestamps that are more than the - // [logs retention period](https://cloud.google.com/logging/quota-policy) in + // [logs retention period](https://cloud.google.com/logging/quotas) in // the past or more than 24 hours in the future will not be available when // calling `entries.list`. However, those log entries can still be [exported // with // LogSinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). // // To improve throughput and to avoid exceeding the - // [quota limit](https://cloud.google.com/logging/quota-policy) for calls to + // [quota limit](https://cloud.google.com/logging/quotas) for calls to // `entries.write`, you should try to include several log entries in this // list, rather than calling this method for each individual log entry. repeated LogEntry entries = 4 [(google.api.field_behavior) = REQUIRED]; @@ -240,7 +238,9 @@ message WriteLogEntriesRequest { } // Result returned from WriteLogEntries. -message WriteLogEntriesResponse {} +message WriteLogEntriesResponse { + +} // Error details for WriteLogEntries with partial success. message WriteLogEntriesPartialErrors { @@ -258,16 +258,17 @@ message ListLogEntriesRequest { // Required. Names of one or more parent resources from which to // retrieve log entries: // - // "projects/[PROJECT_ID]" - // "organizations/[ORGANIZATION_ID]" - // "billingAccounts/[BILLING_ACCOUNT_ID]" - // "folders/[FOLDER_ID]" + // * `projects/[PROJECT_ID]` + // * `organizations/[ORGANIZATION_ID]` + // * `billingAccounts/[BILLING_ACCOUNT_ID]` + // * `folders/[FOLDER_ID]` // - // May alternatively be one or more views - // projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] - // organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] - // billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] - // folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] + // May alternatively be one or more views: + // + // * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` + // * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` + // * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` + // * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` // // Projects listed in the `project_ids` field are added to this list. repeated string resource_names = 8 [ @@ -294,10 +295,10 @@ message ListLogEntriesRequest { // timestamps are returned in order of their `insert_id` values. string order_by = 3 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The maximum number of results to return from this request. - // Default is 50. If the value is negative or exceeds 1000, - // the request is rejected. The presence of `next_page_token` in the - // response indicates that more results might be available. + // Optional. The maximum number of results to return from this request. Default is 50. + // If the value is negative or exceeds 1000, the request is rejected. The + // presence of `next_page_token` in the response indicates that more results + // might be available. int32 page_size = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. If present, then retrieve the next batch of results from the @@ -356,10 +357,10 @@ message ListMonitoredResourceDescriptorsResponse { message ListLogsRequest { // Required. The resource name that owns the logs: // - // "projects/[PROJECT_ID]" - // "organizations/[ORGANIZATION_ID]" - // "billingAccounts/[BILLING_ACCOUNT_ID]" - // "folders/[FOLDER_ID]" + // * `projects/[PROJECT_ID]` + // * `organizations/[ORGANIZATION_ID]` + // * `billingAccounts/[BILLING_ACCOUNT_ID]` + // * `folders/[FOLDER_ID]` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -379,17 +380,24 @@ message ListLogsRequest { string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; // Optional. The resource name that owns the logs: - // projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] - // organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] - // billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] - // folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] + // + // * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` + // * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` + // * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` + // * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` // // To support legacy queries, it could also be: - // "projects/[PROJECT_ID]" - // "organizations/[ORGANIZATION_ID]" - // "billingAccounts/[BILLING_ACCOUNT_ID]" - // "folders/[FOLDER_ID]" - repeated string resource_names = 8 [(google.api.field_behavior) = OPTIONAL]; + // + // * `projects/[PROJECT_ID]` + // * `organizations/[ORGANIZATION_ID]` + // * `billingAccounts/[BILLING_ACCOUNT_ID]` + // * `folders/[FOLDER_ID]` + repeated string resource_names = 8 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + child_type: "logging.googleapis.com/Log" + } + ]; } // Result returned from ListLogs. @@ -409,16 +417,17 @@ message ListLogsResponse { message TailLogEntriesRequest { // Required. Name of a parent resource from which to retrieve log entries: // - // "projects/[PROJECT_ID]" - // "organizations/[ORGANIZATION_ID]" - // "billingAccounts/[BILLING_ACCOUNT_ID]" - // "folders/[FOLDER_ID]" + // * `projects/[PROJECT_ID]` + // * `organizations/[ORGANIZATION_ID]` + // * `billingAccounts/[BILLING_ACCOUNT_ID]` + // * `folders/[FOLDER_ID]` // // May alternatively be one or more views: - // "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" - // "organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" - // "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" - // "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" + // + // * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` + // * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` + // * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` + // * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]` repeated string resource_names = 1 [(google.api.field_behavior) = REQUIRED]; // Optional. A filter that chooses which log entries to return. See [Advanced diff --git a/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging_config.proto b/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging_config.proto index 9b10932d6..ef0024063 100644 --- a/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging_config.proto +++ b/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging_config.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,14 +16,14 @@ syntax = "proto3"; package google.logging.v2; +import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; -import "google/protobuf/duration.proto"; +import "google/longrunning/operations.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; -import "google/api/annotations.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Logging.V2"; @@ -55,7 +55,7 @@ service ConfigServiceV2 { "https://www.googleapis.com/auth/logging.admin," "https://www.googleapis.com/auth/logging.read"; - // Lists buckets. + // Lists log buckets. rpc ListBuckets(ListBucketsRequest) returns (ListBucketsResponse) { option (google.api.http) = { get: "/v2/{parent=*/*/locations/*}/buckets" @@ -75,7 +75,7 @@ service ConfigServiceV2 { option (google.api.method_signature) = "parent"; } - // Gets a bucket. + // Gets a log bucket. rpc GetBucket(GetBucketRequest) returns (LogBucket) { option (google.api.http) = { get: "/v2/{name=*/*/locations/*/buckets/*}" @@ -94,8 +94,8 @@ service ConfigServiceV2 { }; } - // Creates a bucket that can be used to store log entries. Once a bucket has - // been created, the region cannot be changed. + // Creates a log bucket that can be used to store log entries. After a bucket + // has been created, the bucket's location cannot be changed. rpc CreateBucket(CreateBucketRequest) returns (LogBucket) { option (google.api.http) = { post: "/v2/{parent=*/*/locations/*}/buckets" @@ -119,16 +119,16 @@ service ConfigServiceV2 { }; } - // Updates a bucket. This method replaces the following fields in the + // Updates a log bucket. This method replaces the following fields in the // existing bucket with values from the new bucket: `retention_period` // // If the retention period is decreased and the bucket is locked, - // FAILED_PRECONDITION will be returned. + // `FAILED_PRECONDITION` will be returned. // - // If the bucket has a LifecycleState of DELETE_REQUESTED, FAILED_PRECONDITION - // will be returned. + // If the bucket has a `lifecycle_state` of `DELETE_REQUESTED`, then + // `FAILED_PRECONDITION` will be returned. // - // A buckets region may not be modified after it is created. + // After a bucket has been created, the bucket's location cannot be changed. rpc UpdateBucket(UpdateBucketRequest) returns (LogBucket) { option (google.api.http) = { patch: "/v2/{name=*/*/locations/*/buckets/*}" @@ -152,10 +152,11 @@ service ConfigServiceV2 { }; } - // Deletes a bucket. - // Moves the bucket to the DELETE_REQUESTED state. After 7 days, the - // bucket will be purged and all logs in the bucket will be permanently - // deleted. + // Deletes a log bucket. + // + // Changes the bucket's `lifecycle_state` to the `DELETE_REQUESTED` state. + // After 7 days, the bucket will be purged and all log entries in the bucket + // will be permanently deleted. rpc DeleteBucket(DeleteBucketRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v2/{name=*/*/locations/*/buckets/*}" @@ -174,8 +175,8 @@ service ConfigServiceV2 { }; } - // Undeletes a bucket. A bucket that has been deleted may be undeleted within - // the grace period of 7 days. + // Undeletes a log bucket. A bucket that has been deleted can be undeleted + // within the grace period of 7 days. rpc UndeleteBucket(UndeleteBucketRequest) returns (google.protobuf.Empty) { option (google.api.http) = { post: "/v2/{name=*/*/locations/*/buckets/*}:undelete" @@ -199,7 +200,7 @@ service ConfigServiceV2 { }; } - // Lists views on a bucket. + // Lists views on a log bucket. rpc ListViews(ListViewsRequest) returns (ListViewsResponse) { option (google.api.http) = { get: "/v2/{parent=*/*/locations/*/buckets/*}/views" @@ -219,7 +220,7 @@ service ConfigServiceV2 { option (google.api.method_signature) = "parent"; } - // Gets a view. + // Gets a view on a log bucket.. rpc GetView(GetViewRequest) returns (LogView) { option (google.api.http) = { get: "/v2/{name=*/*/locations/*/buckets/*/views/*}" @@ -238,8 +239,8 @@ service ConfigServiceV2 { }; } - // Creates a view over logs in a bucket. A bucket may contain a maximum of - // 50 views. + // Creates a view over log entries in a log bucket. A bucket may contain a + // maximum of 30 views. rpc CreateView(CreateViewRequest) returns (LogView) { option (google.api.http) = { post: "/v2/{parent=*/*/locations/*/buckets/*}/views" @@ -263,8 +264,11 @@ service ConfigServiceV2 { }; } - // Updates a view. This method replaces the following fields in the existing - // view with values from the new view: `filter`. + // Updates a view on a log bucket. This method replaces the following fields + // in the existing view with values from the new view: `filter`. + // If an `UNAVAILABLE` error is returned, this indicates that system is not in + // a state where it can update the view. If this occurs, please try again in a + // few minutes. rpc UpdateView(UpdateViewRequest) returns (LogView) { option (google.api.http) = { patch: "/v2/{name=*/*/locations/*/buckets/*/views/*}" @@ -288,7 +292,10 @@ service ConfigServiceV2 { }; } - // Deletes a view from a bucket. + // Deletes a view on a log bucket. + // If an `UNAVAILABLE` error is returned, this indicates that system is not in + // a state where it can delete the view. If this occurs, please try again in a + // few minutes. rpc DeleteView(DeleteViewRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v2/{name=*/*/locations/*/buckets/*/views/*}" @@ -442,7 +449,7 @@ service ConfigServiceV2 { option (google.api.method_signature) = "sink_name"; } - // Lists all the exclusions in a parent resource. + // Lists all the exclusions on the _Default sink in a parent resource. rpc ListExclusions(ListExclusionsRequest) returns (ListExclusionsResponse) { option (google.api.http) = { get: "/v2/{parent=*/*}/exclusions" @@ -462,7 +469,7 @@ service ConfigServiceV2 { option (google.api.method_signature) = "parent"; } - // Gets the description of an exclusion. + // Gets the description of an exclusion in the _Default sink. rpc GetExclusion(GetExclusionRequest) returns (LogExclusion) { option (google.api.http) = { get: "/v2/{name=*/*/exclusions/*}" @@ -482,9 +489,9 @@ service ConfigServiceV2 { option (google.api.method_signature) = "name"; } - // Creates a new exclusion in a specified parent resource. - // Only log entries belonging to that resource can be excluded. - // You can have up to 10 exclusions in a resource. + // Creates a new exclusion in the _Default sink in a specified parent + // resource. Only log entries belonging to that resource can be excluded. You + // can have up to 10 exclusions in a resource. rpc CreateExclusion(CreateExclusionRequest) returns (LogExclusion) { option (google.api.http) = { post: "/v2/{parent=*/*}/exclusions" @@ -509,7 +516,8 @@ service ConfigServiceV2 { option (google.api.method_signature) = "parent,exclusion"; } - // Changes one or more properties of an existing exclusion. + // Changes one or more properties of an existing exclusion in the _Default + // sink. rpc UpdateExclusion(UpdateExclusionRequest) returns (LogExclusion) { option (google.api.http) = { patch: "/v2/{name=*/*/exclusions/*}" @@ -534,7 +542,7 @@ service ConfigServiceV2 { option (google.api.method_signature) = "name,exclusion,update_mask"; } - // Deletes an exclusion. + // Deletes an exclusion in the _Default sink. rpc DeleteExclusion(DeleteExclusionRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v2/{name=*/*/exclusions/*}" @@ -554,29 +562,39 @@ service ConfigServiceV2 { option (google.api.method_signature) = "name"; } - // Gets the Logs Router CMEK settings for the given resource. + // Gets the Logging CMEK settings for the given resource. // - // Note: CMEK for the Logs Router can currently only be configured for GCP - // organizations. Once configured, it applies to all projects and folders in - // the GCP organization. + // Note: CMEK for the Log Router can be configured for Google Cloud projects, + // folders, organizations and billing accounts. Once configured for an + // organization, it applies to all projects and folders in the Google Cloud + // organization. // - // See [Enabling CMEK for Logs + // See [Enabling CMEK for Log // Router](https://cloud.google.com/logging/docs/routing/managed-encryption) // for more information. rpc GetCmekSettings(GetCmekSettingsRequest) returns (CmekSettings) { option (google.api.http) = { get: "/v2/{name=*/*}/cmekSettings" + additional_bindings { + get: "/v2/{name=projects/*}/cmekSettings" + } additional_bindings { get: "/v2/{name=organizations/*}/cmekSettings" } + additional_bindings { + get: "/v2/{name=folders/*}/cmekSettings" + } + additional_bindings { + get: "/v2/{name=billingAccounts/*}/cmekSettings" + } }; } - // Updates the Logs Router CMEK settings for the given resource. + // Updates the Log Router CMEK settings for the given resource. // - // Note: CMEK for the Logs Router can currently only be configured for GCP - // organizations. Once configured, it applies to all projects and folders in - // the GCP organization. + // Note: CMEK for the Log Router can currently only be configured for Google + // Cloud organizations. Once configured, it applies to all projects and + // folders in the Google Cloud organization. // // [UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings] // will fail if 1) `kms_key_name` is invalid, or 2) the associated service @@ -584,7 +602,7 @@ service ConfigServiceV2 { // `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or // 3) access to the key is disabled. // - // See [Enabling CMEK for Logs + // See [Enabling CMEK for Log // Router](https://cloud.google.com/logging/docs/routing/managed-encryption) // for more information. rpc UpdateCmekSettings(UpdateCmekSettingsRequest) returns (CmekSettings) { @@ -597,9 +615,82 @@ service ConfigServiceV2 { } }; } + + // Gets the Log Router settings for the given resource. + // + // Note: Settings for the Log Router can be get for Google Cloud projects, + // folders, organizations and billing accounts. Currently it can only be + // configured for organizations. Once configured for an organization, it + // applies to all projects and folders in the Google Cloud organization. + // + // See [Enabling CMEK for Log + // Router](https://cloud.google.com/logging/docs/routing/managed-encryption) + // for more information. + rpc GetSettings(GetSettingsRequest) returns (Settings) { + option (google.api.http) = { + get: "/v2/{name=*/*}/settings" + additional_bindings { + get: "/v2/{name=projects/*}/settings" + } + additional_bindings { + get: "/v2/{name=organizations/*}/settings" + } + additional_bindings { + get: "/v2/{name=folders/*}/settings" + } + additional_bindings { + get: "/v2/{name=billingAccounts/*}/settings" + } + }; + option (google.api.method_signature) = "name"; + } + + // Updates the Log Router settings for the given resource. + // + // Note: Settings for the Log Router can currently only be configured for + // Google Cloud organizations. Once configured, it applies to all projects and + // folders in the Google Cloud organization. + // + // [UpdateSettings][google.logging.v2.ConfigServiceV2.UpdateSettings] + // will fail if 1) `kms_key_name` is invalid, or 2) the associated service + // account does not have the required + // `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or + // 3) access to the key is disabled. 4) `location_id` is not supported by + // Logging. 5) `location_id` violate OrgPolicy. + // + // See [Enabling CMEK for Log + // Router](https://cloud.google.com/logging/docs/routing/managed-encryption) + // for more information. + rpc UpdateSettings(UpdateSettingsRequest) returns (Settings) { + option (google.api.http) = { + patch: "/v2/{name=*/*}/settings" + body: "settings" + additional_bindings { + patch: "/v2/{name=organizations/*}/settings" + body: "settings" + } + additional_bindings { + patch: "/v2/{name=folders/*}/settings" + body: "settings" + } + }; + option (google.api.method_signature) = "settings,update_mask"; + } + + // Copies a set of log entries from a log bucket to a Cloud Storage bucket. + rpc CopyLogEntries(CopyLogEntriesRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v2/entries:copy" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "CopyLogEntriesResponse" + metadata_type: "CopyLogEntriesMetadata" + }; + } } -// Describes a repository of logs. +// Describes a repository in which log entries are stored. message LogBucket { option (google.api.resource) = { type: "logging.googleapis.com/LogBucket" @@ -609,16 +700,20 @@ message LogBucket { pattern: "billingAccounts/{billing_account}/locations/{location}/buckets/{bucket}" }; - // The resource name of the bucket. + // Output only. The resource name of the bucket. + // // For example: - // "projects/my-project-id/locations/my-location/buckets/my-bucket-id The - // supported locations are: - // "global" // - // For the location of `global` it is unspecified where logs are actually - // stored. - // Once a bucket has been created, the location can not be changed. - string name = 1; + // `projects/my-project/locations/global/buckets/my-bucket` + // + // For a list of supported locations, see [Supported + // Regions](https://cloud.google.com/logging/docs/region-support) + // + // For the location of `global` it is unspecified where log entries are + // actually stored. + // + // After a bucket has been created, the location cannot be changed. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; // Describes this bucket. string description = 3; @@ -631,34 +726,38 @@ message LogBucket { google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; // Logs will be retained by default for this amount of time, after which they - // will automatically be deleted. The minimum retention period is 1 day. - // If this value is set to zero at bucket creation time, the default time of - // 30 days will be used. + // will automatically be deleted. The minimum retention period is 1 day. If + // this value is set to zero at bucket creation time, the default time of 30 + // days will be used. int32 retention_days = 11; - // Whether the bucket has been locked. - // The retention period on a locked bucket may not be changed. - // Locked buckets may only be deleted if they are empty. + // Whether the bucket is locked. + // + // The retention period on a locked bucket cannot be changed. Locked buckets + // may only be deleted if they are empty. bool locked = 9; // Output only. The bucket lifecycle state. LifecycleState lifecycle_state = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; -} -// LogBucket lifecycle states. -enum LifecycleState { - // Unspecified state. This is only used/useful for distinguishing - // unset values. - LIFECYCLE_STATE_UNSPECIFIED = 0; - - // The normal and active state. - ACTIVE = 1; + // Log entry field paths that are denied access in this bucket. + // + // The following fields and their children are eligible: `textPayload`, + // `jsonPayload`, `protoPayload`, `httpRequest`, `labels`, `sourceLocation`. + // + // Restricting a repeated field will restrict all values. Adding a parent will + // block all child fields. (e.g. `foo.bar` will block `foo.bar.baz`) + repeated string restricted_fields = 15; - // The bucket has been marked for deletion by the user. - DELETE_REQUESTED = 2; + // The CMEK settings of the log bucket. If present, new log entries written to + // this log bucket are encrypted using the CMEK key provided in this + // configuration. If a log bucket has CMEK settings, the CMEK settings cannot + // be disabled later by updating the log bucket. Changing the KMS key is + // allowed. + CmekSettings cmek_settings = 19; } -// Describes a view over logs in a bucket. +// Describes a view over log entries in a bucket. message LogView { option (google.api.resource) = { type: "logging.googleapis.com/LogView" @@ -669,8 +768,10 @@ message LogView { }; // The resource name of the view. - // For example - // "projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view + // + // For example: + // + // `projects/my-project/locations/global/buckets/my-bucket/views/my-view` string name = 1; // Describes this view. @@ -683,21 +784,27 @@ message LogView { google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; // Filter that restricts which log entries in a bucket are visible in this - // view. Filters are restricted to be a logical AND of ==/!= of any of the + // view. + // + // Filters are restricted to be a logical AND of ==/!= of any of the // following: - // originating project/folder/organization/billing account. - // resource type - // log id - // Example: SOURCE("projects/myproject") AND resource.type = "gce_instance" - // AND LOG_ID("stdout") + // + // - originating project/folder/organization/billing account. + // - resource type + // - log id + // + // For example: + // + // SOURCE("projects/myproject") AND resource.type = "gce_instance" + // AND LOG_ID("stdout") string filter = 7; } // Describes a sink used to export log entries to one of the following -// destinations in any project: a Cloud Storage bucket, a BigQuery dataset, or a -// Cloud Pub/Sub topic. A logs filter controls which log entries are exported. -// The sink must be created within a project, organization, billing account, or -// folder. +// destinations in any project: a Cloud Storage bucket, a BigQuery dataset, a +// Pub/Sub topic or a Cloud Logging log bucket. A logs filter controls which log +// entries are exported. The sink must be created within a project, +// organization, billing account, or folder. message LogSink { option (google.api.resource) = { type: "logging.googleapis.com/LogSink" @@ -719,9 +826,10 @@ message LogSink { V1 = 2; } - // Required. The client-assigned sink identifier, unique within the project. Example: - // `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited to 100 - // characters and can include only the following characters: upper and + // Required. The client-assigned sink identifier, unique within the project. + // + // For example: `"my-syslog-errors-to-pubsub"`. Sink identifiers are limited + // to 100 characters and can include only the following characters: upper and // lower-case alphanumeric characters, underscores, hyphens, and periods. // First character has to be alphanumeric. string name = 1 [(google.api.field_behavior) = REQUIRED]; @@ -732,9 +840,9 @@ message LogSink { // "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]" // "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]" // - // The sink's `writer_identity`, set when the sink is created, must - // have permission to write to the destination or else the log - // entries are not exported. For more information, see + // The sink's `writer_identity`, set when the sink is created, must have + // permission to write to the destination or else the log entries are not + // exported. For more information, see // [Exporting Logs with // Sinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). string destination = 3 [ @@ -747,20 +855,24 @@ message LogSink { // Optional. An [advanced logs // filter](https://cloud.google.com/logging/docs/view/advanced-queries). The // only exported log entries are those that are in the resource owning the - // sink and that match the filter. For example: + // sink and that match the filter. + // + // For example: // - // logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR + // `logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR` string filter = 5 [(google.api.field_behavior) = OPTIONAL]; // Optional. A description of this sink. + // // The maximum length of the description is 8000 characters. string description = 18 [(google.api.field_behavior) = OPTIONAL]; - // Optional. If set to True, then this sink is disabled and it does not - // export any log entries. + // Optional. If set to true, then this sink is disabled and it does not export any log + // entries. bool disabled = 19 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Log entries that match any of the exclusion filters will not be exported. + // Optional. Log entries that match any of these exclusion filters will not be exported. + // // If a log entry is matched by both `filter` and one of `exclusion_filters` // it will not be exported. repeated LogExclusion exclusions = 16 [(google.api.field_behavior) = OPTIONAL]; @@ -768,33 +880,42 @@ message LogSink { // Deprecated. This field is unused. VersionFormat output_version_format = 6 [deprecated = true]; - // Output only. An IAM identity—a service account or group—under which Logging - // writes the exported log entries to the sink's destination. This field is - // set by [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] and + // Output only. An IAM identity—a service account or group—under which Cloud + // Logging writes the exported log entries to the sink's destination. This + // field is set by + // [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] and // [sinks.update][google.logging.v2.ConfigServiceV2.UpdateSink] based on the // value of `unique_writer_identity` in those methods. // // Until you grant this identity write-access to the destination, log entry - // exports from this sink will fail. For more information, - // see [Granting Access for a + // exports from this sink will fail. For more information, see [Granting + // Access for a // Resource](https://cloud.google.com/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource). // Consult the destination service's documentation to determine the // appropriate IAM roles to assign to the identity. + // + // Sinks that have a destination that is a log bucket in the same project as + // the sink do not have a writer_identity and no additional permissions are + // required. string writer_identity = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Optional. This field applies only to sinks owned by organizations and - // folders. If the field is false, the default, only the logs owned by the - // sink's parent resource are available for export. If the field is true, then - // logs from all the projects, folders, and billing accounts contained in the + // Optional. This field applies only to sinks owned by organizations and folders. If the + // field is false, the default, only the logs owned by the sink's parent + // resource are available for export. If the field is true, then log entries + // from all the projects, folders, and billing accounts contained in the // sink's parent resource are also available for export. Whether a particular // log entry from the children is exported depends on the sink's filter - // expression. For example, if this field is true, then the filter + // expression. + // + // For example, if this field is true, then the filter // `resource.type=gce_instance` would export all Compute Engine VM instance - // log entries from all projects in the sink's parent. To only export entries - // from certain child projects, filter on the project part of the log name: + // log entries from all projects in the sink's parent. + // + // To only export entries from certain child projects, filter on the project + // part of the log name: // - // logName:("projects/test-project1/" OR "projects/test-project2/") AND - // resource.type=gce_instance + // logName:("projects/test-project1/" OR "projects/test-project2/") AND + // resource.type=gce_instance bool include_children = 9 [(google.api.field_behavior) = OPTIONAL]; // Destination dependent options. @@ -818,16 +939,17 @@ message LogSink { message BigQueryOptions { // Optional. Whether to use [BigQuery's partition // tables](https://cloud.google.com/bigquery/docs/partitioned-tables). By - // default, Logging creates dated tables based on the log entries' timestamps, - // e.g. syslog_20170523. With partitioned tables the date suffix is no longer - // present and [special query + // default, Cloud Logging creates dated tables based on the log entries' + // timestamps, e.g. syslog_20170523. With partitioned tables the date suffix + // is no longer present and [special query // syntax](https://cloud.google.com/bigquery/docs/querying-partitioned-tables) // has to be used instead. In both cases, tables are sharded based on UTC // timezone. bool use_partitioned_tables = 1 [(google.api.field_behavior) = OPTIONAL]; - // Output only. True if new timestamp column based partitioning is in use, - // false if legacy ingestion-time partitioning is in use. + // Output only. True if new timestamp column based partitioning is in use, false if legacy + // ingestion-time partitioning is in use. + // // All new sinks will have this field set true and will use timestamp column // based partitioning. If use_partitioned_tables is false, this value has no // meaning and will be false. Legacy sinks using partitioned tables will have @@ -854,15 +976,15 @@ message ListBucketsRequest { } ]; - // Optional. If present, then retrieve the next batch of results from the - // preceding call to this method. `pageToken` must be the value of - // `nextPageToken` from the previous response. The values of other method - // parameters should be identical to those in the previous call. + // Optional. If present, then retrieve the next batch of results from the preceding call + // to this method. `pageToken` must be the value of `nextPageToken` from the + // previous response. The values of other method parameters should be + // identical to those in the previous call. string page_token = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The maximum number of results to return from this request. - // Non-positive values are ignored. The presence of `nextPageToken` in the - // response indicates that more results might be available. + // Optional. The maximum number of results to return from this request. Non-positive + // values are ignored. The presence of `nextPageToken` in the response + // indicates that more results might be available. int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; } @@ -879,11 +1001,13 @@ message ListBucketsResponse { // The parameters to `CreateBucket`. message CreateBucketRequest { - // Required. The resource in which to create the bucket: + // Required. The resource in which to create the log bucket: // // "projects/[PROJECT_ID]/locations/[LOCATION_ID]" // - // Example: `"projects/my-logging-project/locations/global"` + // For example: + // + // `"projects/my-project/locations/global"` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -891,9 +1015,9 @@ message CreateBucketRequest { } ]; - // Required. A client-assigned identifier such as `"my-bucket"`. Identifiers are - // limited to 100 characters and can include only letters, digits, - // underscores, hyphens, and periods. + // Required. A client-assigned identifier such as `"my-bucket"`. Identifiers are limited + // to 100 characters and can include only letters, digits, underscores, + // hyphens, and periods. string bucket_id = 2 [(google.api.field_behavior) = REQUIRED]; // Required. The new bucket. The region specified in the new bucket must be compliant @@ -911,10 +1035,9 @@ message UpdateBucketRequest { // "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" // "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" // - // Example: - // `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`. Also - // requires permission "resourcemanager.projects.updateLiens" to set the - // locked property + // For example: + // + // `"projects/my-project/locations/global/buckets/my-bucket"` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -926,13 +1049,13 @@ message UpdateBucketRequest { LogBucket bucket = 2 [(google.api.field_behavior) = REQUIRED]; // Required. Field mask that specifies the fields in `bucket` that need an update. A - // bucket field will be overwritten if, and only if, it is in the update - // mask. `name` and output only fields cannot be updated. + // bucket field will be overwritten if, and only if, it is in the update mask. + // `name` and output only fields cannot be updated. // - // For a detailed `FieldMask` definition, see + // For a detailed `FieldMask` definition, see: // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask // - // Example: `updateMask=retention_days`. + // For example: `updateMask=retention_days` google.protobuf.FieldMask update_mask = 4 [(google.api.field_behavior) = REQUIRED]; } @@ -945,8 +1068,9 @@ message GetBucketRequest { // "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" // "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" // - // Example: - // `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`. + // For example: + // + // `"projects/my-project/locations/global/buckets/my-bucket"` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -964,8 +1088,9 @@ message DeleteBucketRequest { // "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" // "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" // - // Example: - // `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`. + // For example: + // + // `"projects/my-project/locations/global/buckets/my-bucket"` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -983,8 +1108,9 @@ message UndeleteBucketRequest { // "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" // "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" // - // Example: - // `"projects/my-project-id/locations/my-location/buckets/my-bucket-id"`. + // For example: + // + // `"projects/my-project/locations/global/buckets/my-bucket"` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1000,13 +1126,14 @@ message ListViewsRequest { // "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" string parent = 1 [(google.api.field_behavior) = REQUIRED]; - // Optional. If present, then retrieve the next batch of results from the - // preceding call to this method. `pageToken` must be the value of - // `nextPageToken` from the previous response. The values of other method - // parameters should be identical to those in the previous call. + // Optional. If present, then retrieve the next batch of results from the preceding call + // to this method. `pageToken` must be the value of `nextPageToken` from the + // previous response. The values of other method parameters should be + // identical to those in the previous call. string page_token = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. The maximum number of results to return from this request. + // // Non-positive values are ignored. The presence of `nextPageToken` in the // response indicates that more results might be available. int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; @@ -1027,10 +1154,11 @@ message ListViewsResponse { message CreateViewRequest { // Required. The bucket in which to create the view // - // "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" + // `"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"` + // + // For example: // - // Example: - // `"projects/my-logging-project/locations/my-location/buckets/my-bucket"` + // `"projects/my-project/locations/global/buckets/my-bucket"` string parent = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The id to use for this view. @@ -1046,8 +1174,9 @@ message UpdateViewRequest { // // "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" // - // Example: - // `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`. + // For example: + // + // `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"` string name = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The updated view. @@ -1060,7 +1189,7 @@ message UpdateViewRequest { // For a detailed `FieldMask` definition, see // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask // - // Example: `updateMask=filter`. + // For example: `updateMask=filter` google.protobuf.FieldMask update_mask = 4 [(google.api.field_behavior) = OPTIONAL]; } @@ -1070,8 +1199,9 @@ message GetViewRequest { // // "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" // - // Example: - // `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`. + // For example: + // + // `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1086,8 +1216,9 @@ message DeleteViewRequest { // // "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" // - // Example: - // `"projects/my-project-id/locations/my-location/buckets/my-bucket-id/views/my-view-id"`. + // For example: + // + // `"projects/my-project/locations/global/buckets/my-bucket/views/my-view"` string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1143,7 +1274,9 @@ message GetSinkRequest { // "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" // "folders/[FOLDER_ID]/sinks/[SINK_ID]" // - // Example: `"projects/my-project-id/sinks/my-sink-id"`. + // For example: + // + // `"projects/my-project/sinks/my-sink"` string sink_name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1161,7 +1294,10 @@ message CreateSinkRequest { // "billingAccounts/[BILLING_ACCOUNT_ID]" // "folders/[FOLDER_ID]" // - // Examples: `"projects/my-logging-project"`, `"organizations/123456789"`. + // For examples: + // + // `"projects/my-project"` + // `"organizations/123456789"` string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1176,9 +1312,9 @@ message CreateSinkRequest { // Optional. Determines the kind of IAM identity returned as `writer_identity` // in the new sink. If this value is omitted or set to false, and if the // sink's parent is a project, then the value returned as `writer_identity` is - // the same group or service account used by Logging before the addition of - // writer identities to this API. The sink's destination must be in the same - // project as the sink itself. + // the same group or service account used by Cloud Logging before the addition + // of writer identities to this API. The sink's destination must be in the + // same project as the sink itself. // // If this field is set to true, or if the sink is owned by a non-project // resource such as an organization, then the value of `writer_identity` will @@ -1197,7 +1333,9 @@ message UpdateSinkRequest { // "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" // "folders/[FOLDER_ID]/sinks/[SINK_ID]" // - // Example: `"projects/my-project-id/sinks/my-sink-id"`. + // For example: + // + // `"projects/my-project/sinks/my-sink"` string sink_name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1226,16 +1364,18 @@ message UpdateSinkRequest { // an update. A sink field will be overwritten if, and only if, it is // in the update mask. `name` and output only fields cannot be updated. // - // An empty updateMask is temporarily treated as using the following mask + // An empty `updateMask` is temporarily treated as using the following mask // for backwards compatibility purposes: - // destination,filter,includeChildren + // + // `destination,filter,includeChildren` + // // At some point in the future, behavior will be removed and specifying an - // empty updateMask will be an error. + // empty `updateMask` will be an error. // // For a detailed `FieldMask` definition, see // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask // - // Example: `updateMask=filter`. + // For example: `updateMask=filter` google.protobuf.FieldMask update_mask = 4 [(google.api.field_behavior) = OPTIONAL]; } @@ -1249,7 +1389,9 @@ message DeleteSinkRequest { // "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]" // "folders/[FOLDER_ID]/sinks/[SINK_ID]" // - // Example: `"projects/my-project-id/sinks/my-sink-id"`. + // For example: + // + // `"projects/my-project/sinks/my-sink"` string sink_name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1258,12 +1400,11 @@ message DeleteSinkRequest { ]; } -// Specifies a set of log entries that are not to be stored in -// Logging. If your GCP resource receives a large volume of logs, you can -// use exclusions to reduce your chargeable logs. Exclusions are -// processed after log sinks, so you can export log entries before they are -// excluded. Note that organization-level and folder-level exclusions don't -// apply to child resources, and that you can't exclude audit log entries. +// Specifies a set of log entries that are filtered out by a sink. If +// your Google Cloud resource receives a large volume of log entries, you can +// use exclusions to reduce your chargeable logs. Note that exclusions on +// organization-level and folder-level sinks don't apply to child resources. +// Note also that you cannot modify the _Required sink or exclude logs from it. message LogExclusion { option (google.api.resource) = { type: "logging.googleapis.com/LogExclusion" @@ -1287,10 +1428,11 @@ message LogExclusion { // matches the log entries to be excluded. By using the [sample // function](https://cloud.google.com/logging/docs/view/advanced-queries#sample), // you can exclude less than 100% of the matching log entries. - // For example, the following query matches 99% of low-severity log - // entries from Google Cloud Storage buckets: // - // `"resource.type=gcs_bucket severity