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 93f8ef39a..1e6ddbe73 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 @@ -28,11 +28,13 @@ import com.google.cloud.logging.v2.stub.ConfigServiceV2Stub; import com.google.cloud.logging.v2.stub.ConfigServiceV2StubSettings; import com.google.common.util.concurrent.MoreExecutors; +import com.google.logging.v2.CmekSettings; import com.google.logging.v2.CreateExclusionRequest; import com.google.logging.v2.CreateSinkRequest; import com.google.logging.v2.DeleteExclusionRequest; import com.google.logging.v2.DeleteSinkRequest; import com.google.logging.v2.ExclusionName; +import com.google.logging.v2.GetCmekSettingsRequest; import com.google.logging.v2.GetExclusionRequest; import com.google.logging.v2.GetSinkRequest; import com.google.logging.v2.ListExclusionsRequest; @@ -43,6 +45,7 @@ import com.google.logging.v2.LogSink; import com.google.logging.v2.ParentName; import com.google.logging.v2.SinkName; +import com.google.logging.v2.UpdateCmekSettingsRequest; import com.google.logging.v2.UpdateExclusionRequest; import com.google.logging.v2.UpdateSinkRequest; import com.google.protobuf.Empty; @@ -1435,6 +1438,118 @@ public final UnaryCallable deleteExclusionCallabl return stub.deleteExclusionCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the Logs Router CMEK settings for the given resource. + * + *

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

See [Enabling CMEK for Logs Router](/logging/docs/routing/managed-encryption) for more + * information. + * + *

Sample code: + * + *


+   * try (ConfigClient configClient = ConfigClient.create()) {
+   *   GetCmekSettingsRequest request = GetCmekSettingsRequest.newBuilder().build();
+   *   CmekSettings response = configClient.getCmekSettings(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CmekSettings getCmekSettings(GetCmekSettingsRequest request) { + return getCmekSettingsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Gets the Logs Router CMEK settings for the given resource. + * + *

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

See [Enabling CMEK for Logs Router](/logging/docs/routing/managed-encryption) for more + * information. + * + *

Sample code: + * + *


+   * try (ConfigClient configClient = ConfigClient.create()) {
+   *   GetCmekSettingsRequest request = GetCmekSettingsRequest.newBuilder().build();
+   *   ApiFuture<CmekSettings> future = configClient.getCmekSettingsCallable().futureCall(request);
+   *   // Do something
+   *   CmekSettings response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable getCmekSettingsCallable() { + return stub.getCmekSettingsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates the Logs Router CMEK settings for the given resource. + * + *

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

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

See [Enabling CMEK for Logs Router](/logging/docs/routing/managed-encryption) for more + * information. + * + *

Sample code: + * + *


+   * try (ConfigClient configClient = ConfigClient.create()) {
+   *   UpdateCmekSettingsRequest request = UpdateCmekSettingsRequest.newBuilder().build();
+   *   CmekSettings response = configClient.updateCmekSettings(request);
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CmekSettings updateCmekSettings(UpdateCmekSettingsRequest request) { + return updateCmekSettingsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Updates the Logs Router CMEK settings for the given resource. + * + *

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

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

See [Enabling CMEK for Logs Router](/logging/docs/routing/managed-encryption) for more + * information. + * + *

Sample code: + * + *


+   * try (ConfigClient configClient = ConfigClient.create()) {
+   *   UpdateCmekSettingsRequest request = UpdateCmekSettingsRequest.newBuilder().build();
+   *   ApiFuture<CmekSettings> future = configClient.updateCmekSettingsCallable().futureCall(request);
+   *   // Do something
+   *   CmekSettings response = future.get();
+   * }
+   * 
+ */ + public final UnaryCallable updateCmekSettingsCallable() { + return stub.updateCmekSettingsCallable(); + } + @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 0d68e7d7b..4d1c7aee2 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 @@ -30,10 +30,12 @@ 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.CreateExclusionRequest; import com.google.logging.v2.CreateSinkRequest; import com.google.logging.v2.DeleteExclusionRequest; import com.google.logging.v2.DeleteSinkRequest; +import com.google.logging.v2.GetCmekSettingsRequest; import com.google.logging.v2.GetExclusionRequest; import com.google.logging.v2.GetSinkRequest; import com.google.logging.v2.ListExclusionsRequest; @@ -42,6 +44,7 @@ import com.google.logging.v2.ListSinksResponse; import com.google.logging.v2.LogExclusion; import com.google.logging.v2.LogSink; +import com.google.logging.v2.UpdateCmekSettingsRequest; import com.google.logging.v2.UpdateExclusionRequest; import com.google.logging.v2.UpdateSinkRequest; import com.google.protobuf.Empty; @@ -132,6 +135,16 @@ public UnaryCallSettings deleteExclusionSettings( return ((ConfigServiceV2StubSettings) getStubSettings()).deleteExclusionSettings(); } + /** Returns the object with the settings used for calls to getCmekSettings. */ + public UnaryCallSettings getCmekSettingsSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).getCmekSettingsSettings(); + } + + /** Returns the object with the settings used for calls to updateCmekSettings. */ + public UnaryCallSettings updateCmekSettingsSettings() { + return ((ConfigServiceV2StubSettings) getStubSettings()).updateCmekSettingsSettings(); + } + public static final ConfigSettings create(ConfigServiceV2StubSettings stub) throws IOException { return new ConfigSettings.Builder(stub.toBuilder()).build(); } @@ -283,6 +296,18 @@ public UnaryCallSettings.Builder deleteExclusionS return getStubSettingsBuilder().deleteExclusionSettings(); } + /** Returns the builder for the settings used for calls to getCmekSettings. */ + public UnaryCallSettings.Builder + getCmekSettingsSettings() { + return getStubSettingsBuilder().getCmekSettingsSettings(); + } + + /** Returns the builder for the settings used for calls to updateCmekSettings. */ + public UnaryCallSettings.Builder + updateCmekSettingsSettings() { + return getStubSettingsBuilder().updateCmekSettingsSettings(); + } + @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 85edb6640..585d34796 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 @@ -170,7 +170,8 @@ 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. + * 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: * @@ -200,7 +201,8 @@ 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. + * 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: * @@ -227,7 +229,8 @@ 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. + * 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,7 +254,8 @@ 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. + * 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: * @@ -494,7 +498,7 @@ public final WriteLogEntriesResponse writeLogEntries(WriteLogEntriesRequest requ * "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_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 - * Filters](/logging/docs/view/advanced_filters). Only log entries that match the filter are + * Queries](/logging/docs/view/advanced-queries). Only log entries that match the filter are * returned. An empty filter matches all log entries in the resources listed in * `resource_names`. Referencing a parent resource that is not listed in `resource_names` will * cause the filter to return no results. The maximum length of the filter is 20000 diff --git a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsClient.java b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsClient.java index 67a04222b..d41bb68c3 100644 --- a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsClient.java +++ b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/MetricsClient.java @@ -307,7 +307,7 @@ public final ListLogMetricsPagedResponse listLogMetrics(ListLogMetricsRequest re * } * * - * @param metricName The resource name of the desired metric: + * @param metricName Required. The resource name of the desired metric: *

"projects/[PROJECT_ID]/metrics/[METRIC_ID]" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -332,7 +332,7 @@ public final LogMetric getLogMetric(MetricName metricName) { * } * * - * @param metricName The resource name of the desired metric: + * @param metricName Required. The resource name of the desired metric: *

"projects/[PROJECT_ID]/metrics/[METRIC_ID]" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -401,10 +401,11 @@ public final UnaryCallable getLogMetricCallable( * } * * - * @param parent The resource name of the project in which to create the metric: + * @param parent Required. The resource name of the project in which to create the metric: *

"projects/[PROJECT_ID]" *

The new metric must be provided in the request. - * @param metric The new logs-based metric, which must not have an identifier that already exists. + * @param metric Required. The new logs-based metric, which must not have an identifier that + * already exists. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final LogMetric createLogMetric(ParentName parent, LogMetric metric) { @@ -430,10 +431,11 @@ public final LogMetric createLogMetric(ParentName parent, LogMetric metric) { * } * * - * @param parent The resource name of the project in which to create the metric: + * @param parent Required. The resource name of the project in which to create the metric: *

"projects/[PROJECT_ID]" *

The new metric must be provided in the request. - * @param metric The new logs-based metric, which must not have an identifier that already exists. + * @param metric Required. The new logs-based metric, which must not have an identifier that + * already exists. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final LogMetric createLogMetric(String parent, LogMetric metric) { @@ -505,12 +507,12 @@ public final UnaryCallable createLogMetricCal * } * * - * @param metricName The resource name of the metric to update: + * @param metricName Required. The resource name of the metric to update: *

"projects/[PROJECT_ID]/metrics/[METRIC_ID]" *

The updated metric must be provided in the request and it's `name` field must be the * same as `[METRIC_ID]` If the metric does not exist in `[PROJECT_ID]`, then a new metric is * created. - * @param metric The updated metric. + * @param metric Required. The updated metric. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final LogMetric updateLogMetric(MetricName metricName, LogMetric metric) { @@ -536,12 +538,12 @@ public final LogMetric updateLogMetric(MetricName metricName, LogMetric metric) * } * * - * @param metricName The resource name of the metric to update: + * @param metricName Required. The resource name of the metric to update: *

"projects/[PROJECT_ID]/metrics/[METRIC_ID]" *

The updated metric must be provided in the request and it's `name` field must be the * same as `[METRIC_ID]` If the metric does not exist in `[PROJECT_ID]`, then a new metric is * created. - * @param metric The updated metric. + * @param metric Required. The updated metric. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final LogMetric updateLogMetric(String metricName, LogMetric metric) { @@ -612,7 +614,7 @@ public final UnaryCallable updateLogMetricCal * } * * - * @param metricName The resource name of the metric to delete: + * @param metricName Required. The resource name of the metric to delete: *

"projects/[PROJECT_ID]/metrics/[METRIC_ID]" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -637,7 +639,7 @@ public final void deleteLogMetric(MetricName metricName) { * } * * - * @param metricName The resource name of the metric to delete: + * @param metricName Required. The resource name of the metric to delete: *

"projects/[PROJECT_ID]/metrics/[METRIC_ID]" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ 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 89206dcf4..703a3521a 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 @@ -21,10 +21,12 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.UnaryCallable; +import com.google.logging.v2.CmekSettings; import com.google.logging.v2.CreateExclusionRequest; import com.google.logging.v2.CreateSinkRequest; import com.google.logging.v2.DeleteExclusionRequest; import com.google.logging.v2.DeleteSinkRequest; +import com.google.logging.v2.GetCmekSettingsRequest; import com.google.logging.v2.GetExclusionRequest; import com.google.logging.v2.GetSinkRequest; import com.google.logging.v2.ListExclusionsRequest; @@ -33,6 +35,7 @@ import com.google.logging.v2.ListSinksResponse; import com.google.logging.v2.LogExclusion; import com.google.logging.v2.LogSink; +import com.google.logging.v2.UpdateCmekSettingsRequest; import com.google.logging.v2.UpdateExclusionRequest; import com.google.logging.v2.UpdateSinkRequest; import com.google.protobuf.Empty; @@ -97,6 +100,14 @@ public UnaryCallable deleteExclusionCallable() { throw new UnsupportedOperationException("Not implemented: deleteExclusionCallable()"); } + public UnaryCallable getCmekSettingsCallable() { + throw new UnsupportedOperationException("Not implemented: getCmekSettingsCallable()"); + } + + public UnaryCallable updateCmekSettingsCallable() { + throw new UnsupportedOperationException("Not implemented: updateCmekSettingsCallable()"); + } + @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 dc81fe3d8..c3c170ee8 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 @@ -44,10 +44,12 @@ import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; import com.google.common.collect.Lists; +import com.google.logging.v2.CmekSettings; import com.google.logging.v2.CreateExclusionRequest; import com.google.logging.v2.CreateSinkRequest; import com.google.logging.v2.DeleteExclusionRequest; import com.google.logging.v2.DeleteSinkRequest; +import com.google.logging.v2.GetCmekSettingsRequest; import com.google.logging.v2.GetExclusionRequest; import com.google.logging.v2.GetSinkRequest; import com.google.logging.v2.ListExclusionsRequest; @@ -56,6 +58,7 @@ import com.google.logging.v2.ListSinksResponse; import com.google.logging.v2.LogExclusion; import com.google.logging.v2.LogSink; +import com.google.logging.v2.UpdateCmekSettingsRequest; import com.google.logging.v2.UpdateExclusionRequest; import com.google.logging.v2.UpdateSinkRequest; import com.google.protobuf.Empty; @@ -117,6 +120,9 @@ public class ConfigServiceV2StubSettings extends StubSettings createExclusionSettings; private final UnaryCallSettings updateExclusionSettings; private final UnaryCallSettings deleteExclusionSettings; + private final UnaryCallSettings getCmekSettingsSettings; + private final UnaryCallSettings + updateCmekSettingsSettings; /** Returns the object with the settings used for calls to listSinks. */ public PagedCallSettings @@ -171,6 +177,16 @@ public UnaryCallSettings deleteExclusionSettings( return deleteExclusionSettings; } + /** Returns the object with the settings used for calls to getCmekSettings. */ + public UnaryCallSettings getCmekSettingsSettings() { + return getCmekSettingsSettings; + } + + /** Returns the object with the settings used for calls to updateCmekSettings. */ + public UnaryCallSettings updateCmekSettingsSettings() { + return updateCmekSettingsSettings; + } + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public ConfigServiceV2Stub createStub() throws IOException { if (getTransportChannelProvider() @@ -250,6 +266,8 @@ protected ConfigServiceV2StubSettings(Builder settingsBuilder) throws IOExceptio createExclusionSettings = settingsBuilder.createExclusionSettings().build(); updateExclusionSettings = settingsBuilder.updateExclusionSettings().build(); deleteExclusionSettings = settingsBuilder.deleteExclusionSettings().build(); + getCmekSettingsSettings = settingsBuilder.getCmekSettingsSettings().build(); + updateCmekSettingsSettings = settingsBuilder.updateCmekSettingsSettings().build(); } private static final PagedListDescriptor @@ -380,6 +398,10 @@ public static class Builder extends StubSettings.Builder updateExclusionSettings; private final UnaryCallSettings.Builder deleteExclusionSettings; + private final UnaryCallSettings.Builder + getCmekSettingsSettings; + private final UnaryCallSettings.Builder + updateCmekSettingsSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -395,6 +417,11 @@ public static class Builder extends StubSettings.BuildernewArrayList())); + definitions.put( + "idempotent2", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -455,6 +482,10 @@ protected Builder(ClientContext clientContext) { deleteExclusionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getCmekSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + updateCmekSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + unaryMethodSettingsBuilders = ImmutableList.>of( listSinksSettings, @@ -466,7 +497,9 @@ protected Builder(ClientContext clientContext) { getExclusionSettings, createExclusionSettings, updateExclusionSettings, - deleteExclusionSettings); + deleteExclusionSettings, + getCmekSettingsSettings, + updateCmekSettingsSettings); initDefaults(this); } @@ -532,6 +565,16 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + builder + .getCmekSettingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent2")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + + builder + .updateCmekSettingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + return builder; } @@ -548,6 +591,8 @@ protected Builder(ConfigServiceV2StubSettings settings) { createExclusionSettings = settings.createExclusionSettings.toBuilder(); updateExclusionSettings = settings.updateExclusionSettings.toBuilder(); deleteExclusionSettings = settings.deleteExclusionSettings.toBuilder(); + getCmekSettingsSettings = settings.getCmekSettingsSettings.toBuilder(); + updateCmekSettingsSettings = settings.updateCmekSettingsSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -560,7 +605,9 @@ protected Builder(ConfigServiceV2StubSettings settings) { getExclusionSettings, createExclusionSettings, updateExclusionSettings, - deleteExclusionSettings); + deleteExclusionSettings, + getCmekSettingsSettings, + updateCmekSettingsSettings); } // NEXT_MAJOR_VER: remove 'throws Exception' @@ -634,6 +681,18 @@ public UnaryCallSettings.Builder deleteExclusionS return deleteExclusionSettings; } + /** Returns the builder for the settings used for calls to getCmekSettings. */ + public UnaryCallSettings.Builder + getCmekSettingsSettings() { + return getCmekSettingsSettings; + } + + /** Returns the builder for the settings used for calls to updateCmekSettings. */ + public UnaryCallSettings.Builder + updateCmekSettingsSettings() { + return updateCmekSettingsSettings; + } + @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 b0d5bef33..6e097337b 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 @@ -27,10 +27,12 @@ import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.common.collect.ImmutableMap; +import com.google.logging.v2.CmekSettings; import com.google.logging.v2.CreateExclusionRequest; import com.google.logging.v2.CreateSinkRequest; import com.google.logging.v2.DeleteExclusionRequest; import com.google.logging.v2.DeleteSinkRequest; +import com.google.logging.v2.GetCmekSettingsRequest; import com.google.logging.v2.GetExclusionRequest; import com.google.logging.v2.GetSinkRequest; import com.google.logging.v2.ListExclusionsRequest; @@ -39,6 +41,7 @@ import com.google.logging.v2.ListSinksResponse; import com.google.logging.v2.LogExclusion; import com.google.logging.v2.LogSink; +import com.google.logging.v2.UpdateCmekSettingsRequest; import com.google.logging.v2.UpdateExclusionRequest; import com.google.logging.v2.UpdateSinkRequest; import com.google.protobuf.Empty; @@ -140,6 +143,24 @@ public class GrpcConfigServiceV2Stub extends ConfigServiceV2Stub { ProtoUtils.marshaller(DeleteExclusionRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); + private static final MethodDescriptor + getCmekSettingsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.ConfigServiceV2/GetCmekSettings") + .setRequestMarshaller( + ProtoUtils.marshaller(GetCmekSettingsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(CmekSettings.getDefaultInstance())) + .build(); + private static final MethodDescriptor + updateCmekSettingsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.logging.v2.ConfigServiceV2/UpdateCmekSettings") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateCmekSettingsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(CmekSettings.getDefaultInstance())) + .build(); private final BackgroundResource backgroundResources; @@ -156,6 +177,8 @@ public class GrpcConfigServiceV2Stub extends ConfigServiceV2Stub { private final UnaryCallable createExclusionCallable; private final UnaryCallable updateExclusionCallable; private final UnaryCallable deleteExclusionCallable; + private final UnaryCallable getCmekSettingsCallable; + private final UnaryCallable updateCmekSettingsCallable; private final GrpcStubCallableFactory callableFactory; @@ -329,6 +352,32 @@ public Map extract(DeleteExclusionRequest request) { } }) .build(); + GrpcCallSettings getCmekSettingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getCmekSettingsMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(GetCmekSettingsRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings updateCmekSettingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateCmekSettingsMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(UpdateCmekSettingsRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); this.listSinksCallable = callableFactory.createUnaryCallable( @@ -366,6 +415,14 @@ public Map extract(DeleteExclusionRequest request) { this.deleteExclusionCallable = callableFactory.createUnaryCallable( deleteExclusionTransportSettings, settings.deleteExclusionSettings(), clientContext); + this.getCmekSettingsCallable = + callableFactory.createUnaryCallable( + getCmekSettingsTransportSettings, settings.getCmekSettingsSettings(), clientContext); + this.updateCmekSettingsCallable = + callableFactory.createUnaryCallable( + updateCmekSettingsTransportSettings, + settings.updateCmekSettingsSettings(), + clientContext); backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); } @@ -419,6 +476,14 @@ public UnaryCallable deleteExclusionCallable() { return deleteExclusionCallable; } + public UnaryCallable getCmekSettingsCallable() { + return getCmekSettingsCallable; + } + + public UnaryCallable updateCmekSettingsCallable() { + return updateCmekSettingsCallable; + } + @Override public final void close() { shutdown(); 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 3ed814caa..fe91f2b1d 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 @@ -162,6 +162,8 @@ public void getSinkTest() { String name = "name3373707"; ResourceName destination = BillingName.of("[BILLING_ACCOUNT]"); String filter = "filter-1274492040"; + String description = "description-1724546052"; + boolean disabled = true; String writerIdentity = "writerIdentity775638794"; boolean includeChildren = true; LogSink expectedResponse = @@ -169,6 +171,8 @@ public void getSinkTest() { .setName(name) .setDestination(destination.toString()) .setFilter(filter) + .setDescription(description) + .setDisabled(disabled) .setWriterIdentity(writerIdentity) .setIncludeChildren(includeChildren) .build(); @@ -212,6 +216,8 @@ public void createSinkTest() { String name = "name3373707"; ResourceName destination = BillingName.of("[BILLING_ACCOUNT]"); String filter = "filter-1274492040"; + String description = "description-1724546052"; + boolean disabled = true; String writerIdentity = "writerIdentity775638794"; boolean includeChildren = true; LogSink expectedResponse = @@ -219,6 +225,8 @@ public void createSinkTest() { .setName(name) .setDestination(destination.toString()) .setFilter(filter) + .setDescription(description) + .setDisabled(disabled) .setWriterIdentity(writerIdentity) .setIncludeChildren(includeChildren) .build(); @@ -265,6 +273,8 @@ public void updateSinkTest() { String name = "name3373707"; ResourceName destination = BillingName.of("[BILLING_ACCOUNT]"); String filter = "filter-1274492040"; + String description = "description-1724546052"; + boolean disabled = true; String writerIdentity = "writerIdentity775638794"; boolean includeChildren = true; LogSink expectedResponse = @@ -272,6 +282,8 @@ public void updateSinkTest() { .setName(name) .setDestination(destination.toString()) .setFilter(filter) + .setDescription(description) + .setDisabled(disabled) .setWriterIdentity(writerIdentity) .setIncludeChildren(includeChildren) .build(); @@ -321,6 +333,8 @@ public void updateSinkTest2() { String name = "name3373707"; ResourceName destination = BillingName.of("[BILLING_ACCOUNT]"); String filter = "filter-1274492040"; + String description = "description-1724546052"; + boolean disabled = true; String writerIdentity = "writerIdentity775638794"; boolean includeChildren = true; LogSink expectedResponse = @@ -328,6 +342,8 @@ public void updateSinkTest2() { .setName(name) .setDestination(destination.toString()) .setFilter(filter) + .setDescription(description) + .setDisabled(disabled) .setWriterIdentity(writerIdentity) .setIncludeChildren(includeChildren) .build(); 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 97ac8052f..8addc0426 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 @@ -16,11 +16,13 @@ package com.google.cloud.logging.v2; import com.google.api.core.BetaApi; +import com.google.logging.v2.CmekSettings; import com.google.logging.v2.ConfigServiceV2Grpc.ConfigServiceV2ImplBase; import com.google.logging.v2.CreateExclusionRequest; import com.google.logging.v2.CreateSinkRequest; import com.google.logging.v2.DeleteExclusionRequest; import com.google.logging.v2.DeleteSinkRequest; +import com.google.logging.v2.GetCmekSettingsRequest; import com.google.logging.v2.GetExclusionRequest; import com.google.logging.v2.GetSinkRequest; import com.google.logging.v2.ListExclusionsRequest; @@ -29,6 +31,7 @@ import com.google.logging.v2.ListSinksResponse; import com.google.logging.v2.LogExclusion; import com.google.logging.v2.LogSink; +import com.google.logging.v2.UpdateCmekSettingsRequest; import com.google.logging.v2.UpdateExclusionRequest; import com.google.logging.v2.UpdateSinkRequest; import com.google.protobuf.AbstractMessage; @@ -216,4 +219,34 @@ public void deleteExclusion( responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } } + + @Override + public void getCmekSettings( + GetCmekSettingsRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof CmekSettings) { + requests.add(request); + responseObserver.onNext((CmekSettings) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } + + @Override + public void updateCmekSettings( + UpdateCmekSettingsRequest request, StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof CmekSettings) { + requests.add(request); + responseObserver.onNext((CmekSettings) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } } 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 28a34c414..96a57be0c 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 @@ -544,6 +544,111 @@ private ConfigServiceV2Grpc() {} return getDeleteExclusionMethod; } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getGetCmekSettingsMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.logging.v2.GetCmekSettingsRequest, com.google.logging.v2.CmekSettings> + METHOD_GET_CMEK_SETTINGS = getGetCmekSettingsMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.GetCmekSettingsRequest, com.google.logging.v2.CmekSettings> + getGetCmekSettingsMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.logging.v2.GetCmekSettingsRequest, com.google.logging.v2.CmekSettings> + getGetCmekSettingsMethod() { + return getGetCmekSettingsMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.logging.v2.GetCmekSettingsRequest, com.google.logging.v2.CmekSettings> + getGetCmekSettingsMethodHelper() { + io.grpc.MethodDescriptor< + com.google.logging.v2.GetCmekSettingsRequest, com.google.logging.v2.CmekSettings> + getGetCmekSettingsMethod; + if ((getGetCmekSettingsMethod = ConfigServiceV2Grpc.getGetCmekSettingsMethod) == null) { + synchronized (ConfigServiceV2Grpc.class) { + if ((getGetCmekSettingsMethod = ConfigServiceV2Grpc.getGetCmekSettingsMethod) == null) { + ConfigServiceV2Grpc.getGetCmekSettingsMethod = + getGetCmekSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.logging.v2.ConfigServiceV2", "GetCmekSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.GetCmekSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.CmekSettings.getDefaultInstance())) + .setSchemaDescriptor( + new ConfigServiceV2MethodDescriptorSupplier("GetCmekSettings")) + .build(); + } + } + } + return getGetCmekSettingsMethod; + } + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getUpdateCmekSettingsMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.logging.v2.UpdateCmekSettingsRequest, com.google.logging.v2.CmekSettings> + METHOD_UPDATE_CMEK_SETTINGS = getUpdateCmekSettingsMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.logging.v2.UpdateCmekSettingsRequest, com.google.logging.v2.CmekSettings> + getUpdateCmekSettingsMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.logging.v2.UpdateCmekSettingsRequest, com.google.logging.v2.CmekSettings> + getUpdateCmekSettingsMethod() { + return getUpdateCmekSettingsMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.logging.v2.UpdateCmekSettingsRequest, com.google.logging.v2.CmekSettings> + getUpdateCmekSettingsMethodHelper() { + io.grpc.MethodDescriptor< + com.google.logging.v2.UpdateCmekSettingsRequest, com.google.logging.v2.CmekSettings> + getUpdateCmekSettingsMethod; + if ((getUpdateCmekSettingsMethod = ConfigServiceV2Grpc.getUpdateCmekSettingsMethod) == null) { + synchronized (ConfigServiceV2Grpc.class) { + if ((getUpdateCmekSettingsMethod = ConfigServiceV2Grpc.getUpdateCmekSettingsMethod) + == null) { + ConfigServiceV2Grpc.getUpdateCmekSettingsMethod = + getUpdateCmekSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + "google.logging.v2.ConfigServiceV2", "UpdateCmekSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.UpdateCmekSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.logging.v2.CmekSettings.getDefaultInstance())) + .setSchemaDescriptor( + new ConfigServiceV2MethodDescriptorSupplier("UpdateCmekSettings")) + .build(); + } + } + } + return getUpdateCmekSettingsMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static ConfigServiceV2Stub newStub(io.grpc.Channel channel) { return new ConfigServiceV2Stub(channel); @@ -710,6 +815,47 @@ public void deleteExclusion( asyncUnimplementedUnaryCall(getDeleteExclusionMethodHelper(), responseObserver); } + /** + * + * + *

+     * Gets the Logs Router CMEK settings for the given resource.
+     * Note: CMEK for the Logs Router can currently only be configured for GCP
+     * organizations. Once configured, it applies to all projects and folders in
+     * the GCP organization.
+     * See [Enabling CMEK for Logs
+     * Router](/logging/docs/routing/managed-encryption) for more information.
+     * 
+ */ + public void getCmekSettings( + com.google.logging.v2.GetCmekSettingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetCmekSettingsMethodHelper(), responseObserver); + } + + /** + * + * + *
+     * Updates the Logs Router CMEK settings for the given resource.
+     * Note: CMEK for the Logs Router can currently only be configured for GCP
+     * organizations. Once configured, it applies to all projects and folders in
+     * the GCP organization.
+     * [UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings]
+     * will fail if 1) `kms_key_name` is invalid, or 2) the associated service
+     * account does not have the required
+     * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or
+     * 3) access to the key is disabled.
+     * See [Enabling CMEK for Logs
+     * Router](/logging/docs/routing/managed-encryption) for more information.
+     * 
+ */ + public void updateCmekSettings( + com.google.logging.v2.UpdateCmekSettingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getUpdateCmekSettingsMethodHelper(), responseObserver); + } + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) @@ -774,6 +920,18 @@ public final io.grpc.ServerServiceDefinition bindService() { new MethodHandlers< com.google.logging.v2.DeleteExclusionRequest, com.google.protobuf.Empty>( this, METHODID_DELETE_EXCLUSION))) + .addMethod( + getGetCmekSettingsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.GetCmekSettingsRequest, + com.google.logging.v2.CmekSettings>(this, METHODID_GET_CMEK_SETTINGS))) + .addMethod( + getUpdateCmekSettingsMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.logging.v2.UpdateCmekSettingsRequest, + com.google.logging.v2.CmekSettings>(this, METHODID_UPDATE_CMEK_SETTINGS))) .build(); } } @@ -969,6 +1127,53 @@ public void deleteExclusion( request, responseObserver); } + + /** + * + * + *
+     * Gets the Logs Router CMEK settings for the given resource.
+     * Note: CMEK for the Logs Router can currently only be configured for GCP
+     * organizations. Once configured, it applies to all projects and folders in
+     * the GCP organization.
+     * See [Enabling CMEK for Logs
+     * Router](/logging/docs/routing/managed-encryption) for more information.
+     * 
+ */ + public void getCmekSettings( + com.google.logging.v2.GetCmekSettingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetCmekSettingsMethodHelper(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the Logs Router CMEK settings for the given resource.
+     * Note: CMEK for the Logs Router can currently only be configured for GCP
+     * organizations. Once configured, it applies to all projects and folders in
+     * the GCP organization.
+     * [UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings]
+     * will fail if 1) `kms_key_name` is invalid, or 2) the associated service
+     * account does not have the required
+     * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or
+     * 3) access to the key is disabled.
+     * See [Enabling CMEK for Logs
+     * Router](/logging/docs/routing/managed-encryption) for more information.
+     * 
+ */ + public void updateCmekSettings( + com.google.logging.v2.UpdateCmekSettingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getUpdateCmekSettingsMethodHelper(), getCallOptions()), + request, + responseObserver); + } } /** @@ -1128,6 +1333,47 @@ public com.google.protobuf.Empty deleteExclusion( return blockingUnaryCall( getChannel(), getDeleteExclusionMethodHelper(), getCallOptions(), request); } + + /** + * + * + *
+     * Gets the Logs Router CMEK settings for the given resource.
+     * Note: CMEK for the Logs Router can currently only be configured for GCP
+     * organizations. Once configured, it applies to all projects and folders in
+     * the GCP organization.
+     * See [Enabling CMEK for Logs
+     * Router](/logging/docs/routing/managed-encryption) for more information.
+     * 
+ */ + public com.google.logging.v2.CmekSettings getCmekSettings( + com.google.logging.v2.GetCmekSettingsRequest request) { + return blockingUnaryCall( + getChannel(), getGetCmekSettingsMethodHelper(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the Logs Router CMEK settings for the given resource.
+     * Note: CMEK for the Logs Router can currently only be configured for GCP
+     * organizations. Once configured, it applies to all projects and folders in
+     * the GCP organization.
+     * [UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings]
+     * will fail if 1) `kms_key_name` is invalid, or 2) the associated service
+     * account does not have the required
+     * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or
+     * 3) access to the key is disabled.
+     * See [Enabling CMEK for Logs
+     * Router](/logging/docs/routing/managed-encryption) for more information.
+     * 
+ */ + public com.google.logging.v2.CmekSettings updateCmekSettings( + com.google.logging.v2.UpdateCmekSettingsRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateCmekSettingsMethodHelper(), getCallOptions(), request); + } } /** @@ -1293,6 +1539,47 @@ 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 + * Router](/logging/docs/routing/managed-encryption) for more information. + * + */ + public com.google.common.util.concurrent.ListenableFuture + getCmekSettings(com.google.logging.v2.GetCmekSettingsRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetCmekSettingsMethodHelper(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the Logs Router CMEK settings for the given resource.
+     * Note: CMEK for the Logs Router can currently only be configured for GCP
+     * organizations. Once configured, it applies to all projects and folders in
+     * the GCP organization.
+     * [UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings]
+     * will fail if 1) `kms_key_name` is invalid, or 2) the associated service
+     * account does not have the required
+     * `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or
+     * 3) access to the key is disabled.
+     * See [Enabling CMEK for Logs
+     * Router](/logging/docs/routing/managed-encryption) for more information.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updateCmekSettings(com.google.logging.v2.UpdateCmekSettingsRequest request) { + return futureUnaryCall( + getChannel().newCall(getUpdateCmekSettingsMethodHelper(), getCallOptions()), request); + } } private static final int METHODID_LIST_SINKS = 0; @@ -1305,6 +1592,8 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1375,6 +1664,16 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.logging.v2.DeleteExclusionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GET_CMEK_SETTINGS: + serviceImpl.getCmekSettings( + (com.google.logging.v2.GetCmekSettingsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CMEK_SETTINGS: + serviceImpl.updateCmekSettings( + (com.google.logging.v2.UpdateCmekSettingsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -1449,6 +1748,8 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getCreateExclusionMethodHelper()) .addMethod(getUpdateExclusionMethodHelper()) .addMethod(getDeleteExclusionMethodHelper()) + .addMethod(getGetCmekSettingsMethodHelper()) + .addMethod(getUpdateCmekSettingsMethodHelper()) .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 45864fa82..9c2588d1a 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 @@ -344,10 +344,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.
+     * Deletes all the log entries in a log. The log reappears if it receives new
+     * entries. Log entries written shortly before the delete operation might not
+     * be deleted. Entries received after the delete operation with a timestamp
+     * before the operation will be deleted.
      * 
*/ public void deleteLog( @@ -487,10 +487,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.
+     * Deletes all the log entries in a log. The log reappears if it receives new
+     * entries. Log entries written shortly before the delete operation might not
+     * be deleted. Entries received after the delete operation with a timestamp
+     * before the operation will be deleted.
      * 
*/ public void deleteLog( @@ -606,10 +606,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.
+     * Deletes all the log entries in a log. The log reappears if it receives new
+     * entries. Log entries written shortly before the delete operation might not
+     * be deleted. Entries received after the delete operation with a timestamp
+     * before the operation will be deleted.
      * 
*/ public com.google.protobuf.Empty deleteLog(com.google.logging.v2.DeleteLogRequest request) { @@ -708,10 +708,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.
+     * Deletes all the log entries in a log. The log reappears if it receives new
+     * entries. Log entries written shortly before the delete operation might not
+     * be deleted. Entries received after the delete operation with a timestamp
+     * before the operation will be deleted.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture deleteLog( diff --git a/proto-google-cloud-logging-v2/clirr-ignored-differences.xml b/proto-google-cloud-logging-v2/clirr-ignored-differences.xml new file mode 100644 index 000000000..113fdbf51 --- /dev/null +++ b/proto-google-cloud-logging-v2/clirr-ignored-differences.xml @@ -0,0 +1,19 @@ + + + + + 7012 + com/google/logging/v2/*OrBuilder + * get*(*) + + + 7012 + com/google/logging/v2/*OrBuilder + boolean contains*(*) + + + 7012 + com/google/logging/v2/*OrBuilder + boolean has*(*) + + 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 dcb8b3ddf..15eefcc8c 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 @@ -73,6 +73,11 @@ private BigQueryOptions( usePartitionedTables_ = input.readBool(); break; } + case 24: + { + usesTimestampColumnPartitioning_ = input.readBool(); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -130,6 +135,29 @@ public boolean getUsePartitionedTables() { return usePartitionedTables_; } + public static final int USES_TIMESTAMP_COLUMN_PARTITIONING_FIELD_NUMBER = 3; + private boolean usesTimestampColumnPartitioning_; + /** + * + * + *
+   * Output only. True if new timestamp column based partitioning is in use,
+   * false if legacy ingestion-time partitioning is in use.
+   * All new sinks will have this field set true and will use timestamp column
+   * based partitioning. If use_partitioned_tables is false, this value has no
+   * meaning and will be false. Legacy sinks using partitioned tables will have
+   * this field set to false.
+   * 
+ * + * bool uses_timestamp_column_partitioning = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The usesTimestampColumnPartitioning. + */ + public boolean getUsesTimestampColumnPartitioning() { + return usesTimestampColumnPartitioning_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -147,6 +175,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (usePartitionedTables_ != false) { output.writeBool(1, usePartitionedTables_); } + if (usesTimestampColumnPartitioning_ != false) { + output.writeBool(3, usesTimestampColumnPartitioning_); + } unknownFields.writeTo(output); } @@ -159,6 +190,11 @@ public int getSerializedSize() { if (usePartitionedTables_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, usePartitionedTables_); } + if (usesTimestampColumnPartitioning_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 3, usesTimestampColumnPartitioning_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -175,6 +211,8 @@ public boolean equals(final java.lang.Object obj) { com.google.logging.v2.BigQueryOptions other = (com.google.logging.v2.BigQueryOptions) obj; if (getUsePartitionedTables() != other.getUsePartitionedTables()) return false; + if (getUsesTimestampColumnPartitioning() != other.getUsesTimestampColumnPartitioning()) + return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -188,6 +226,10 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + USE_PARTITIONED_TABLES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUsePartitionedTables()); + hash = (37 * hash) + USES_TIMESTAMP_COLUMN_PARTITIONING_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getUsesTimestampColumnPartitioning()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -334,6 +376,8 @@ public Builder clear() { super.clear(); usePartitionedTables_ = false; + usesTimestampColumnPartitioning_ = false; + return this; } @@ -362,6 +406,7 @@ public com.google.logging.v2.BigQueryOptions buildPartial() { com.google.logging.v2.BigQueryOptions result = new com.google.logging.v2.BigQueryOptions(this); result.usePartitionedTables_ = usePartitionedTables_; + result.usesTimestampColumnPartitioning_ = usesTimestampColumnPartitioning_; onBuilt(); return result; } @@ -414,6 +459,9 @@ public Builder mergeFrom(com.google.logging.v2.BigQueryOptions other) { if (other.getUsePartitionedTables() != false) { setUsePartitionedTables(other.getUsePartitionedTables()); } + if (other.getUsesTimestampColumnPartitioning() != false) { + setUsesTimestampColumnPartitioning(other.getUsesTimestampColumnPartitioning()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -512,6 +560,78 @@ public Builder clearUsePartitionedTables() { return this; } + private boolean usesTimestampColumnPartitioning_; + /** + * + * + *
+     * Output only. True if new timestamp column based partitioning is in use,
+     * false if legacy ingestion-time partitioning is in use.
+     * All new sinks will have this field set true and will use timestamp column
+     * based partitioning. If use_partitioned_tables is false, this value has no
+     * meaning and will be false. Legacy sinks using partitioned tables will have
+     * this field set to false.
+     * 
+ * + * + * bool uses_timestamp_column_partitioning = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The usesTimestampColumnPartitioning. + */ + public boolean getUsesTimestampColumnPartitioning() { + return usesTimestampColumnPartitioning_; + } + /** + * + * + *
+     * Output only. True if new timestamp column based partitioning is in use,
+     * false if legacy ingestion-time partitioning is in use.
+     * All new sinks will have this field set true and will use timestamp column
+     * based partitioning. If use_partitioned_tables is false, this value has no
+     * meaning and will be false. Legacy sinks using partitioned tables will have
+     * this field set to false.
+     * 
+ * + * + * bool uses_timestamp_column_partitioning = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The usesTimestampColumnPartitioning to set. + * @return This builder for chaining. + */ + public Builder setUsesTimestampColumnPartitioning(boolean value) { + + usesTimestampColumnPartitioning_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. True if new timestamp column based partitioning is in use,
+     * false if legacy ingestion-time partitioning is in use.
+     * All new sinks will have this field set true and will use timestamp column
+     * based partitioning. If use_partitioned_tables is false, this value has no
+     * meaning and will be false. Legacy sinks using partitioned tables will have
+     * this field set to false.
+     * 
+ * + * + * bool uses_timestamp_column_partitioning = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearUsesTimestampColumnPartitioning() { + + usesTimestampColumnPartitioning_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); 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 2b113f804..6dc10ffb4 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 @@ -41,4 +41,23 @@ public interface BigQueryOptionsOrBuilder * @return The usePartitionedTables. */ boolean getUsePartitionedTables(); + + /** + * + * + *
+   * Output only. True if new timestamp column based partitioning is in use,
+   * false if legacy ingestion-time partitioning is in use.
+   * All new sinks will have this field set true and will use timestamp column
+   * based partitioning. If use_partitioned_tables is false, this value has no
+   * meaning and will be false. Legacy sinks using partitioned tables will have
+   * this field set to false.
+   * 
+ * + * bool uses_timestamp_column_partitioning = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The usesTimestampColumnPartitioning. + */ + boolean getUsesTimestampColumnPartitioning(); } 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 new file mode 100644 index 000000000..846faf270 --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettings.java @@ -0,0 +1,1156 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/v2/logging_config.proto + +package com.google.logging.v2; + +/** + * + * + *
+ * Describes the customer-managed encryption key (CMEK) settings associated with
+ * a project, folder, organization, billing account, or flexible resource.
+ * Note: CMEK for the Logs Router can currently only be configured for GCP
+ * organizations. Once configured, it applies to all projects and folders in the
+ * GCP organization.
+ * See [Enabling CMEK for Logs Router](/logging/docs/routing/managed-encryption)
+ * for more information.
+ * 
+ * + * Protobuf type {@code google.logging.v2.CmekSettings} + */ +public final class CmekSettings extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.logging.v2.CmekSettings) + CmekSettingsOrBuilder { + private static final long serialVersionUID = 0L; + // Use CmekSettings.newBuilder() to construct. + private CmekSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CmekSettings() { + name_ = ""; + kmsKeyName_ = ""; + serviceAccountId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CmekSettings(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CmekSettings( + 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(); + + serviceAccountId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CmekSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CmekSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.logging.v2.CmekSettings.class, + com.google.logging.v2.CmekSettings.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output Only. The resource name of the CMEK settings.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + 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 CMEK settings.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + 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_; + /** + * + * + *
+   * The resource name for the configured Cloud KMS key.
+   * KMS key name format:
+   *     "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
+   * For example:
+   *     `"projects/my-project-id/locations/my-region/keyRings/key-ring-name/cryptoKeys/key-name"`
+   * To enable CMEK for the Logs Router, set this field to a valid
+   * `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 Logs Router, set this field to an empty string.
+   * See [Enabling CMEK for Logs
+   * Router](/logging/docs/routing/managed-encryption) for more information.
+   * 
+ * + * string kms_key_name = 2; + * + * @return The kmsKeyName. + */ + public java.lang.String getKmsKeyName() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof java.lang.String) { + 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; + } + } + /** + * + * + *
+   * The resource name for the configured Cloud KMS key.
+   * KMS key name format:
+   *     "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
+   * For example:
+   *     `"projects/my-project-id/locations/my-region/keyRings/key-ring-name/cryptoKeys/key-name"`
+   * To enable CMEK for the Logs Router, set this field to a valid
+   * `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 Logs Router, set this field to an empty string.
+   * See [Enabling CMEK for Logs
+   * Router](/logging/docs/routing/managed-encryption) for more information.
+   * 
+ * + * string kms_key_name = 2; + * + * @return The bytes for kmsKeyName. + */ + 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 SERVICE_ACCOUNT_ID_FIELD_NUMBER = 3; + private volatile java.lang.Object serviceAccountId_; + /** + * + * + *
+   * Output Only. The service account that will be used by the Logs Router to
+   * access your 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
+   * [GetCmekSettings][google.logging.v2.ConfigServiceV2.GetCmekSettings] to
+   * obtain the service account ID.
+   * See [Enabling CMEK for Logs
+   * Router](/logging/docs/routing/managed-encryption) for more information.
+   * 
+ * + * string service_account_id = 3; + * + * @return The serviceAccountId. + */ + public java.lang.String getServiceAccountId() { + java.lang.Object ref = serviceAccountId_; + 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(); + serviceAccountId_ = s; + return s; + } + } + /** + * + * + *
+   * Output Only. The service account that will be used by the Logs 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
+   * [GetCmekSettings][google.logging.v2.ConfigServiceV2.GetCmekSettings] to
+   * obtain the service account ID.
+   * See [Enabling CMEK for Logs
+   * Router](/logging/docs/routing/managed-encryption) for more information.
+   * 
+ * + * string service_account_id = 3; + * + * @return The bytes for serviceAccountId. + */ + public com.google.protobuf.ByteString getServiceAccountIdBytes() { + java.lang.Object ref = serviceAccountId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccountId_ = 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getKmsKeyNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kmsKeyName_); + } + if (!getServiceAccountIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, serviceAccountId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!getKmsKeyNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kmsKeyName_); + } + if (!getServiceAccountIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, serviceAccountId_); + } + 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.CmekSettings)) { + return super.equals(obj); + } + com.google.logging.v2.CmekSettings other = (com.google.logging.v2.CmekSettings) obj; + + if (!getName().equals(other.getName())) return false; + if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; + if (!getServiceAccountId().equals(other.getServiceAccountId())) return false; + if (!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) + SERVICE_ACCOUNT_ID_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccountId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.logging.v2.CmekSettings parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.CmekSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.CmekSettings parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.CmekSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.CmekSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.CmekSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.CmekSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.logging.v2.CmekSettings 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.CmekSettings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.logging.v2.CmekSettings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.logging.v2.CmekSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.logging.v2.CmekSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.logging.v2.CmekSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Describes the customer-managed encryption key (CMEK) settings associated with
+   * a project, folder, organization, billing account, or flexible resource.
+   * Note: CMEK for the Logs Router can currently only be configured for GCP
+   * organizations. Once configured, it applies to all projects and folders in the
+   * GCP organization.
+   * See [Enabling CMEK for Logs Router](/logging/docs/routing/managed-encryption)
+   * for more information.
+   * 
+ * + * Protobuf type {@code google.logging.v2.CmekSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.logging.v2.CmekSettings) + com.google.logging.v2.CmekSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CmekSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CmekSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.logging.v2.CmekSettings.class, + com.google.logging.v2.CmekSettings.Builder.class); + } + + // Construct using com.google.logging.v2.CmekSettings.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_ = ""; + + serviceAccountId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_CmekSettings_descriptor; + } + + @java.lang.Override + public com.google.logging.v2.CmekSettings getDefaultInstanceForType() { + return com.google.logging.v2.CmekSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.logging.v2.CmekSettings build() { + com.google.logging.v2.CmekSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.logging.v2.CmekSettings buildPartial() { + com.google.logging.v2.CmekSettings result = new com.google.logging.v2.CmekSettings(this); + result.name_ = name_; + result.kmsKeyName_ = kmsKeyName_; + result.serviceAccountId_ = serviceAccountId_; + 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.CmekSettings) { + return mergeFrom((com.google.logging.v2.CmekSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.logging.v2.CmekSettings other) { + if (other == com.google.logging.v2.CmekSettings.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getKmsKeyName().isEmpty()) { + kmsKeyName_ = other.kmsKeyName_; + onChanged(); + } + if (!other.getServiceAccountId().isEmpty()) { + serviceAccountId_ = other.serviceAccountId_; + 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.CmekSettings parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.logging.v2.CmekSettings) 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 CMEK settings.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output Only. The resource name of the CMEK settings.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output Only. The resource name of the CMEK settings.
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output Only. The resource name of the CMEK settings.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output Only. The resource name of the CMEK settings.
+     * 
+ * + * string name = 1; + * + * @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_ = ""; + /** + * + * + *
+     * The resource name for the configured Cloud KMS key.
+     * KMS key name format:
+     *     "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
+     * For example:
+     *     `"projects/my-project-id/locations/my-region/keyRings/key-ring-name/cryptoKeys/key-name"`
+     * To enable CMEK for the Logs Router, set this field to a valid
+     * `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 Logs Router, set this field to an empty string.
+     * See [Enabling CMEK for Logs
+     * Router](/logging/docs/routing/managed-encryption) for more information.
+     * 
+ * + * string kms_key_name = 2; + * + * @return The kmsKeyName. + */ + public java.lang.String getKmsKeyName() { + java.lang.Object ref = kmsKeyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKeyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The resource name for the configured Cloud KMS key.
+     * KMS key name format:
+     *     "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
+     * For example:
+     *     `"projects/my-project-id/locations/my-region/keyRings/key-ring-name/cryptoKeys/key-name"`
+     * To enable CMEK for the Logs Router, set this field to a valid
+     * `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 Logs Router, set this field to an empty string.
+     * See [Enabling CMEK for Logs
+     * Router](/logging/docs/routing/managed-encryption) for more information.
+     * 
+ * + * string kms_key_name = 2; + * + * @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; + } + } + /** + * + * + *
+     * The resource name for the configured Cloud KMS key.
+     * KMS key name format:
+     *     "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
+     * For example:
+     *     `"projects/my-project-id/locations/my-region/keyRings/key-ring-name/cryptoKeys/key-name"`
+     * To enable CMEK for the Logs Router, set this field to a valid
+     * `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 Logs Router, set this field to an empty string.
+     * See [Enabling CMEK for Logs
+     * Router](/logging/docs/routing/managed-encryption) for more information.
+     * 
+ * + * string kms_key_name = 2; + * + * @param value The kmsKeyName to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + kmsKeyName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name for the configured Cloud KMS key.
+     * KMS key name format:
+     *     "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
+     * For example:
+     *     `"projects/my-project-id/locations/my-region/keyRings/key-ring-name/cryptoKeys/key-name"`
+     * To enable CMEK for the Logs Router, set this field to a valid
+     * `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 Logs Router, set this field to an empty string.
+     * See [Enabling CMEK for Logs
+     * Router](/logging/docs/routing/managed-encryption) for more information.
+     * 
+ * + * string kms_key_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearKmsKeyName() { + + kmsKeyName_ = getDefaultInstance().getKmsKeyName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The resource name for the configured Cloud KMS key.
+     * KMS key name format:
+     *     "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
+     * For example:
+     *     `"projects/my-project-id/locations/my-region/keyRings/key-ring-name/cryptoKeys/key-name"`
+     * To enable CMEK for the Logs Router, set this field to a valid
+     * `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 Logs Router, set this field to an empty string.
+     * See [Enabling CMEK for Logs
+     * Router](/logging/docs/routing/managed-encryption) for more information.
+     * 
+ * + * string kms_key_name = 2; + * + * @param value The bytes for kmsKeyName to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + kmsKeyName_ = value; + onChanged(); + return this; + } + + private java.lang.Object serviceAccountId_ = ""; + /** + * + * + *
+     * Output Only. The service account that will be used by the Logs 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
+     * [GetCmekSettings][google.logging.v2.ConfigServiceV2.GetCmekSettings] to
+     * obtain the service account ID.
+     * See [Enabling CMEK for Logs
+     * Router](/logging/docs/routing/managed-encryption) for more information.
+     * 
+ * + * string service_account_id = 3; + * + * @return The serviceAccountId. + */ + public java.lang.String getServiceAccountId() { + java.lang.Object ref = serviceAccountId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceAccountId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output Only. The service account that will be used by the Logs 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
+     * [GetCmekSettings][google.logging.v2.ConfigServiceV2.GetCmekSettings] to
+     * obtain the service account ID.
+     * See [Enabling CMEK for Logs
+     * Router](/logging/docs/routing/managed-encryption) for more information.
+     * 
+ * + * string service_account_id = 3; + * + * @return The bytes for serviceAccountId. + */ + public com.google.protobuf.ByteString getServiceAccountIdBytes() { + java.lang.Object ref = serviceAccountId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceAccountId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output Only. The service account that will be used by the Logs 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
+     * [GetCmekSettings][google.logging.v2.ConfigServiceV2.GetCmekSettings] to
+     * obtain the service account ID.
+     * See [Enabling CMEK for Logs
+     * Router](/logging/docs/routing/managed-encryption) for more information.
+     * 
+ * + * string service_account_id = 3; + * + * @param value The serviceAccountId to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + serviceAccountId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output Only. The service account that will be used by the Logs 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
+     * [GetCmekSettings][google.logging.v2.ConfigServiceV2.GetCmekSettings] to
+     * obtain the service account ID.
+     * See [Enabling CMEK for Logs
+     * Router](/logging/docs/routing/managed-encryption) for more information.
+     * 
+ * + * string service_account_id = 3; + * + * @return This builder for chaining. + */ + public Builder clearServiceAccountId() { + + serviceAccountId_ = getDefaultInstance().getServiceAccountId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output Only. The service account that will be used by the Logs Router to
+     * access your 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
+     * [GetCmekSettings][google.logging.v2.ConfigServiceV2.GetCmekSettings] to
+     * obtain the service account ID.
+     * See [Enabling CMEK for Logs
+     * Router](/logging/docs/routing/managed-encryption) for more information.
+     * 
+ * + * string service_account_id = 3; + * + * @param value The bytes for serviceAccountId to set. + * @return This builder for chaining. + */ + public Builder setServiceAccountIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + serviceAccountId_ = 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.CmekSettings) + } + + // @@protoc_insertion_point(class_scope:google.logging.v2.CmekSettings) + private static final com.google.logging.v2.CmekSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.logging.v2.CmekSettings(); + } + + public static com.google.logging.v2.CmekSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CmekSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CmekSettings(input, extensionRegistry); + } + }; + + 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.CmekSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} 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 new file mode 100644 index 000000000..799066402 --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CmekSettingsOrBuilder.java @@ -0,0 +1,146 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/v2/logging_config.proto + +package com.google.logging.v2; + +public interface CmekSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.logging.v2.CmekSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output Only. The resource name of the CMEK settings.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output Only. The resource name of the CMEK settings.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The resource name for the configured Cloud KMS key.
+   * KMS key name format:
+   *     "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
+   * For example:
+   *     `"projects/my-project-id/locations/my-region/keyRings/key-ring-name/cryptoKeys/key-name"`
+   * To enable CMEK for the Logs Router, set this field to a valid
+   * `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 Logs Router, set this field to an empty string.
+   * See [Enabling CMEK for Logs
+   * Router](/logging/docs/routing/managed-encryption) for more information.
+   * 
+ * + * string kms_key_name = 2; + * + * @return The kmsKeyName. + */ + java.lang.String getKmsKeyName(); + /** + * + * + *
+   * The resource name for the configured Cloud KMS key.
+   * KMS key name format:
+   *     "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]"
+   * For example:
+   *     `"projects/my-project-id/locations/my-region/keyRings/key-ring-name/cryptoKeys/key-name"`
+   * To enable CMEK for the Logs Router, set this field to a valid
+   * `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 Logs Router, set this field to an empty string.
+   * See [Enabling CMEK for Logs
+   * Router](/logging/docs/routing/managed-encryption) for more information.
+   * 
+ * + * string kms_key_name = 2; + * + * @return The bytes for kmsKeyName. + */ + com.google.protobuf.ByteString getKmsKeyNameBytes(); + + /** + * + * + *
+   * Output Only. The service account that will be used by the Logs 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
+   * [GetCmekSettings][google.logging.v2.ConfigServiceV2.GetCmekSettings] to
+   * obtain the service account ID.
+   * See [Enabling CMEK for Logs
+   * Router](/logging/docs/routing/managed-encryption) for more information.
+   * 
+ * + * string service_account_id = 3; + * + * @return The serviceAccountId. + */ + java.lang.String getServiceAccountId(); + /** + * + * + *
+   * Output Only. The service account that will be used by the Logs 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
+   * [GetCmekSettings][google.logging.v2.ConfigServiceV2.GetCmekSettings] to
+   * obtain the service account ID.
+   * See [Enabling CMEK for Logs
+   * Router](/logging/docs/routing/managed-encryption) for more information.
+   * 
+ * + * string service_account_id = 3; + * + * @return The bytes for serviceAccountId. + */ + com.google.protobuf.ByteString getServiceAccountIdBytes(); +} 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 8fcffa277..63a1c0cfd 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 @@ -140,7 +140,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`. * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -167,7 +169,9 @@ public java.lang.String getParent() { * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`. * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -588,7 +592,9 @@ public Builder mergeFrom( * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`. * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -615,7 +621,9 @@ public java.lang.String getParent() { * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`. * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -642,7 +650,9 @@ public com.google.protobuf.ByteString getParentBytes() { * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`. * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The parent to set. * @return This builder for chaining. @@ -668,7 +678,9 @@ public Builder setParent(java.lang.String value) { * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`. * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -690,7 +702,9 @@ public Builder clearParent() { * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`. * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for parent to set. * @return This builder for chaining. 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 681fedccd..569bcc87e 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 @@ -35,7 +35,9 @@ public interface CreateExclusionRequestOrBuilder * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`. * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -52,7 +54,9 @@ public interface CreateExclusionRequestOrBuilder * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`. * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequest.java index b698456b2..c12b64db4 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequest.java @@ -132,12 +132,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The resource name of the project in which to create the metric:
+   * Required. The resource name of the project in which to create the metric:
    *     "projects/[PROJECT_ID]"
    * The new metric must be provided in the request.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -156,12 +158,14 @@ public java.lang.String getParent() { * * *
-   * The resource name of the project in which to create the metric:
+   * Required. The resource name of the project in which to create the metric:
    *     "projects/[PROJECT_ID]"
    * The new metric must be provided in the request.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -183,11 +187,11 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * The new logs-based metric, which must not have an identifier that
+   * Required. The new logs-based metric, which must not have an identifier that
    * already exists.
    * 
* - * .google.logging.v2.LogMetric metric = 2; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return Whether the metric field is set. */ @@ -198,11 +202,11 @@ public boolean hasMetric() { * * *
-   * The new logs-based metric, which must not have an identifier that
+   * Required. The new logs-based metric, which must not have an identifier that
    * already exists.
    * 
* - * .google.logging.v2.LogMetric metric = 2; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The metric. */ @@ -213,11 +217,11 @@ public com.google.logging.v2.LogMetric getMetric() { * * *
-   * The new logs-based metric, which must not have an identifier that
+   * Required. The new logs-based metric, which must not have an identifier that
    * already exists.
    * 
* - * .google.logging.v2.LogMetric metric = 2; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.logging.v2.LogMetricOrBuilder getMetricOrBuilder() { return getMetric(); @@ -572,12 +576,14 @@ public Builder mergeFrom( * * *
-     * The resource name of the project in which to create the metric:
+     * Required. The resource name of the project in which to create the metric:
      *     "projects/[PROJECT_ID]"
      * The new metric must be provided in the request.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -596,12 +602,14 @@ public java.lang.String getParent() { * * *
-     * The resource name of the project in which to create the metric:
+     * Required. The resource name of the project in which to create the metric:
      *     "projects/[PROJECT_ID]"
      * The new metric must be provided in the request.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -620,12 +628,14 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * The resource name of the project in which to create the metric:
+     * Required. The resource name of the project in which to create the metric:
      *     "projects/[PROJECT_ID]"
      * The new metric must be provided in the request.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The parent to set. * @return This builder for chaining. @@ -643,12 +653,14 @@ public Builder setParent(java.lang.String value) { * * *
-     * The resource name of the project in which to create the metric:
+     * Required. The resource name of the project in which to create the metric:
      *     "projects/[PROJECT_ID]"
      * The new metric must be provided in the request.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -662,12 +674,14 @@ public Builder clearParent() { * * *
-     * The resource name of the project in which to create the metric:
+     * Required. The resource name of the project in which to create the metric:
      *     "projects/[PROJECT_ID]"
      * The new metric must be provided in the request.
      * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for parent to set. * @return This builder for chaining. @@ -693,11 +707,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * The new logs-based metric, which must not have an identifier that
+     * Required. The new logs-based metric, which must not have an identifier that
      * already exists.
      * 
* - * .google.logging.v2.LogMetric metric = 2; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the metric field is set. */ @@ -708,11 +723,12 @@ public boolean hasMetric() { * * *
-     * The new logs-based metric, which must not have an identifier that
+     * Required. The new logs-based metric, which must not have an identifier that
      * already exists.
      * 
* - * .google.logging.v2.LogMetric metric = 2; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The metric. */ @@ -727,11 +743,12 @@ public com.google.logging.v2.LogMetric getMetric() { * * *
-     * The new logs-based metric, which must not have an identifier that
+     * Required. The new logs-based metric, which must not have an identifier that
      * already exists.
      * 
* - * .google.logging.v2.LogMetric metric = 2; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setMetric(com.google.logging.v2.LogMetric value) { if (metricBuilder_ == null) { @@ -750,11 +767,12 @@ public Builder setMetric(com.google.logging.v2.LogMetric value) { * * *
-     * The new logs-based metric, which must not have an identifier that
+     * Required. The new logs-based metric, which must not have an identifier that
      * already exists.
      * 
* - * .google.logging.v2.LogMetric metric = 2; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setMetric(com.google.logging.v2.LogMetric.Builder builderForValue) { if (metricBuilder_ == null) { @@ -770,11 +788,12 @@ public Builder setMetric(com.google.logging.v2.LogMetric.Builder builderForValue * * *
-     * The new logs-based metric, which must not have an identifier that
+     * Required. The new logs-based metric, which must not have an identifier that
      * already exists.
      * 
* - * .google.logging.v2.LogMetric metric = 2; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeMetric(com.google.logging.v2.LogMetric value) { if (metricBuilder_ == null) { @@ -795,11 +814,12 @@ public Builder mergeMetric(com.google.logging.v2.LogMetric value) { * * *
-     * The new logs-based metric, which must not have an identifier that
+     * Required. The new logs-based metric, which must not have an identifier that
      * already exists.
      * 
* - * .google.logging.v2.LogMetric metric = 2; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearMetric() { if (metricBuilder_ == null) { @@ -816,11 +836,12 @@ public Builder clearMetric() { * * *
-     * The new logs-based metric, which must not have an identifier that
+     * Required. The new logs-based metric, which must not have an identifier that
      * already exists.
      * 
* - * .google.logging.v2.LogMetric metric = 2; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.logging.v2.LogMetric.Builder getMetricBuilder() { @@ -831,11 +852,12 @@ public com.google.logging.v2.LogMetric.Builder getMetricBuilder() { * * *
-     * The new logs-based metric, which must not have an identifier that
+     * Required. The new logs-based metric, which must not have an identifier that
      * already exists.
      * 
* - * .google.logging.v2.LogMetric metric = 2; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.logging.v2.LogMetricOrBuilder getMetricOrBuilder() { if (metricBuilder_ != null) { @@ -848,11 +870,12 @@ public com.google.logging.v2.LogMetricOrBuilder getMetricOrBuilder() { * * *
-     * The new logs-based metric, which must not have an identifier that
+     * Required. The new logs-based metric, which must not have an identifier that
      * already exists.
      * 
* - * .google.logging.v2.LogMetric metric = 2; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.logging.v2.LogMetric, diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequestOrBuilder.java index 64c7072a1..f11b3761a 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/CreateLogMetricRequestOrBuilder.java @@ -27,12 +27,14 @@ public interface CreateLogMetricRequestOrBuilder * * *
-   * The resource name of the project in which to create the metric:
+   * Required. The resource name of the project in which to create the metric:
    *     "projects/[PROJECT_ID]"
    * The new metric must be provided in the request.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -41,12 +43,14 @@ public interface CreateLogMetricRequestOrBuilder * * *
-   * The resource name of the project in which to create the metric:
+   * Required. The resource name of the project in which to create the metric:
    *     "projects/[PROJECT_ID]"
    * The new metric must be provided in the request.
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -56,11 +60,11 @@ public interface CreateLogMetricRequestOrBuilder * * *
-   * The new logs-based metric, which must not have an identifier that
+   * Required. The new logs-based metric, which must not have an identifier that
    * already exists.
    * 
* - * .google.logging.v2.LogMetric metric = 2; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return Whether the metric field is set. */ @@ -69,11 +73,11 @@ public interface CreateLogMetricRequestOrBuilder * * *
-   * The new logs-based metric, which must not have an identifier that
+   * Required. The new logs-based metric, which must not have an identifier that
    * already exists.
    * 
* - * .google.logging.v2.LogMetric metric = 2; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The metric. */ @@ -82,11 +86,11 @@ public interface CreateLogMetricRequestOrBuilder * * *
-   * The new logs-based metric, which must not have an identifier that
+   * Required. The new logs-based metric, which must not have an identifier that
    * already exists.
    * 
* - * .google.logging.v2.LogMetric metric = 2; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.logging.v2.LogMetricOrBuilder getMetricOrBuilder(); } 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 ba67d8f3a..3c816fb16 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 @@ -144,7 +144,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`. * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -171,7 +173,9 @@ public java.lang.String getParent() { * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`. * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -197,7 +201,7 @@ public com.google.protobuf.ByteString getParentBytes() { * is not already in use. * * - * .google.logging.v2.LogSink sink = 2; + * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return Whether the sink field is set. */ @@ -212,7 +216,7 @@ public boolean hasSink() { * is not already in use. * * - * .google.logging.v2.LogSink sink = 2; + * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The sink. */ @@ -227,7 +231,7 @@ public com.google.logging.v2.LogSink getSink() { * is not already in use. * * - * .google.logging.v2.LogSink sink = 2; + * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() { return getSink(); @@ -630,7 +634,9 @@ public Builder mergeFrom( * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`. * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -657,7 +663,9 @@ public java.lang.String getParent() { * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`. * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -684,7 +692,9 @@ public com.google.protobuf.ByteString getParentBytes() { * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`. * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The parent to set. * @return This builder for chaining. @@ -710,7 +720,9 @@ public Builder setParent(java.lang.String value) { * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`. * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -732,7 +744,9 @@ public Builder clearParent() { * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`. * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for parent to set. * @return This builder for chaining. @@ -762,7 +776,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * is not already in use. * * - * .google.logging.v2.LogSink sink = 2; + * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return Whether the sink field is set. */ @@ -777,7 +791,7 @@ public boolean hasSink() { * is not already in use. * * - * .google.logging.v2.LogSink sink = 2; + * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The sink. */ @@ -796,7 +810,7 @@ public com.google.logging.v2.LogSink getSink() { * is not already in use. * * - * .google.logging.v2.LogSink sink = 2; + * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSink(com.google.logging.v2.LogSink value) { if (sinkBuilder_ == null) { @@ -819,7 +833,7 @@ public Builder setSink(com.google.logging.v2.LogSink value) { * is not already in use. * * - * .google.logging.v2.LogSink sink = 2; + * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSink(com.google.logging.v2.LogSink.Builder builderForValue) { if (sinkBuilder_ == null) { @@ -839,7 +853,7 @@ public Builder setSink(com.google.logging.v2.LogSink.Builder builderForValue) { * is not already in use. * * - * .google.logging.v2.LogSink sink = 2; + * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSink(com.google.logging.v2.LogSink value) { if (sinkBuilder_ == null) { @@ -863,7 +877,7 @@ public Builder mergeSink(com.google.logging.v2.LogSink value) { * is not already in use. * * - * .google.logging.v2.LogSink sink = 2; + * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSink() { if (sinkBuilder_ == null) { @@ -884,7 +898,7 @@ public Builder clearSink() { * is not already in use. * * - * .google.logging.v2.LogSink sink = 2; + * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.logging.v2.LogSink.Builder getSinkBuilder() { @@ -899,7 +913,7 @@ public com.google.logging.v2.LogSink.Builder getSinkBuilder() { * is not already in use. * * - * .google.logging.v2.LogSink sink = 2; + * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() { if (sinkBuilder_ != null) { @@ -916,7 +930,7 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() { * is not already in use. * * - * .google.logging.v2.LogSink sink = 2; + * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.logging.v2.LogSink, 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 6d20fa07c..09ae70c30 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 @@ -35,7 +35,9 @@ public interface CreateSinkRequestOrBuilder * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`. * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -52,7 +54,9 @@ public interface CreateSinkRequestOrBuilder * Examples: `"projects/my-logging-project"`, `"organizations/123456789"`. * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -66,7 +70,7 @@ public interface CreateSinkRequestOrBuilder * is not already in use. * * - * .google.logging.v2.LogSink sink = 2; + * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return Whether the sink field is set. */ @@ -79,7 +83,7 @@ public interface CreateSinkRequestOrBuilder * is not already in use. * * - * .google.logging.v2.LogSink sink = 2; + * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The sink. */ @@ -92,7 +96,7 @@ public interface CreateSinkRequestOrBuilder * is not already in use. * * - * .google.logging.v2.LogSink sink = 2; + * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder(); 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 66fd2e965..94d5225fa 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 @@ -125,7 +125,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`. * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -152,7 +154,9 @@ public java.lang.String getName() { * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`. * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -497,7 +501,9 @@ public Builder mergeFrom( * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`. * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -524,7 +530,9 @@ public java.lang.String getName() { * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`. * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -551,7 +559,9 @@ public com.google.protobuf.ByteString getNameBytes() { * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`. * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The name to set. * @return This builder for chaining. @@ -577,7 +587,9 @@ public Builder setName(java.lang.String value) { * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`. * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -599,7 +611,9 @@ public Builder clearName() { * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`. * * - * string name = 1; + * + * 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. 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 6f06c40b5..de911d656 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 @@ -35,7 +35,9 @@ public interface DeleteExclusionRequestOrBuilder * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`. * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -52,7 +54,9 @@ public interface DeleteExclusionRequestOrBuilder * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`. * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequest.java index 567bbfc24..98ad08316 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequest.java @@ -117,11 +117,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The resource name of the metric to delete:
+   * Required. The resource name of the metric to delete:
    *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
    * 
* - * string metric_name = 1; + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The metricName. */ @@ -140,11 +142,13 @@ public java.lang.String getMetricName() { * * *
-   * The resource name of the metric to delete:
+   * Required. The resource name of the metric to delete:
    *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
    * 
* - * string metric_name = 1; + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for metricName. */ @@ -481,11 +485,13 @@ public Builder mergeFrom( * * *
-     * The resource name of the metric to delete:
+     * Required. The resource name of the metric to delete:
      *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
      * 
* - * string metric_name = 1; + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The metricName. */ @@ -504,11 +510,13 @@ public java.lang.String getMetricName() { * * *
-     * The resource name of the metric to delete:
+     * Required. The resource name of the metric to delete:
      *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
      * 
* - * string metric_name = 1; + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for metricName. */ @@ -527,11 +535,13 @@ public com.google.protobuf.ByteString getMetricNameBytes() { * * *
-     * The resource name of the metric to delete:
+     * Required. The resource name of the metric to delete:
      *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
      * 
* - * string metric_name = 1; + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The metricName to set. * @return This builder for chaining. @@ -549,11 +559,13 @@ public Builder setMetricName(java.lang.String value) { * * *
-     * The resource name of the metric to delete:
+     * Required. The resource name of the metric to delete:
      *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
      * 
* - * string metric_name = 1; + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -567,11 +579,13 @@ public Builder clearMetricName() { * * *
-     * The resource name of the metric to delete:
+     * Required. The resource name of the metric to delete:
      *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
      * 
* - * string metric_name = 1; + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for metricName to set. * @return This builder for chaining. diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequestOrBuilder.java index 1ea4fff7d..de3ddd153 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/DeleteLogMetricRequestOrBuilder.java @@ -27,11 +27,13 @@ public interface DeleteLogMetricRequestOrBuilder * * *
-   * The resource name of the metric to delete:
+   * Required. The resource name of the metric to delete:
    *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
    * 
* - * string metric_name = 1; + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The metricName. */ @@ -40,11 +42,13 @@ public interface DeleteLogMetricRequestOrBuilder * * *
-   * The resource name of the metric to delete:
+   * Required. The resource name of the metric to delete:
    *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
    * 
* - * string metric_name = 1; + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for metricName. */ 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 9bef1eaa4..7f083d858 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 @@ -129,7 +129,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * [LogEntry][google.logging.v2.LogEntry]. * * - * string log_name = 1; + * + * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The logName. */ @@ -160,7 +162,9 @@ public java.lang.String getLogName() { * [LogEntry][google.logging.v2.LogEntry]. * * - * string log_name = 1; + * + * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for logName. */ @@ -508,7 +512,9 @@ public Builder mergeFrom( * [LogEntry][google.logging.v2.LogEntry]. * * - * string log_name = 1; + * + * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The logName. */ @@ -539,7 +545,9 @@ public java.lang.String getLogName() { * [LogEntry][google.logging.v2.LogEntry]. * * - * string log_name = 1; + * + * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for logName. */ @@ -570,7 +578,9 @@ public com.google.protobuf.ByteString getLogNameBytes() { * [LogEntry][google.logging.v2.LogEntry]. * * - * string log_name = 1; + * + * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The logName to set. * @return This builder for chaining. @@ -600,7 +610,9 @@ public Builder setLogName(java.lang.String value) { * [LogEntry][google.logging.v2.LogEntry]. * * - * string log_name = 1; + * + * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -626,7 +638,9 @@ public Builder clearLogName() { * [LogEntry][google.logging.v2.LogEntry]. * * - * string log_name = 1; + * + * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for logName to set. * @return This builder for chaining. 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 2cf205db9..b7365fb14 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 @@ -39,7 +39,9 @@ public interface DeleteLogRequestOrBuilder * [LogEntry][google.logging.v2.LogEntry]. * * - * string log_name = 1; + * + * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The logName. */ @@ -60,7 +62,9 @@ public interface DeleteLogRequestOrBuilder * [LogEntry][google.logging.v2.LogEntry]. * * - * string log_name = 1; + * + * string log_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for logName. */ 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 bf9258f21..2439372be 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 @@ -126,7 +126,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Example: `"projects/my-project-id/sinks/my-sink-id"`. * * - * string sink_name = 1; + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The sinkName. */ @@ -154,7 +156,9 @@ public java.lang.String getSinkName() { * Example: `"projects/my-project-id/sinks/my-sink-id"`. * * - * string sink_name = 1; + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for sinkName. */ @@ -499,7 +503,9 @@ public Builder mergeFrom( * Example: `"projects/my-project-id/sinks/my-sink-id"`. * * - * string sink_name = 1; + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The sinkName. */ @@ -527,7 +533,9 @@ public java.lang.String getSinkName() { * Example: `"projects/my-project-id/sinks/my-sink-id"`. * * - * string sink_name = 1; + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for sinkName. */ @@ -555,7 +563,9 @@ public com.google.protobuf.ByteString getSinkNameBytes() { * Example: `"projects/my-project-id/sinks/my-sink-id"`. * * - * string sink_name = 1; + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The sinkName to set. * @return This builder for chaining. @@ -582,7 +592,9 @@ public Builder setSinkName(java.lang.String value) { * Example: `"projects/my-project-id/sinks/my-sink-id"`. * * - * string sink_name = 1; + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -605,7 +617,9 @@ public Builder clearSinkName() { * Example: `"projects/my-project-id/sinks/my-sink-id"`. * * - * string sink_name = 1; + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for sinkName to set. * @return This builder for chaining. 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 d4d7bf173..7cb0e5079 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 @@ -36,7 +36,9 @@ public interface DeleteSinkRequestOrBuilder * Example: `"projects/my-project-id/sinks/my-sink-id"`. * * - * string sink_name = 1; + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The sinkName. */ @@ -54,7 +56,9 @@ public interface DeleteSinkRequestOrBuilder * Example: `"projects/my-project-id/sinks/my-sink-id"`. * * - * string sink_name = 1; + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for sinkName. */ 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 new file mode 100644 index 000000000..4669202d1 --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequest.java @@ -0,0 +1,694 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/v2/logging_config.proto + +package com.google.logging.v2; + +/** + * + * + *
+ * The parameters to
+ * [GetCmekSettings][google.logging.v2.ConfigServiceV2.GetCmekSettings].
+ * See [Enabling CMEK for Logs Router](/logging/docs/routing/managed-encryption)
+ * for more information.
+ * 
+ * + * Protobuf type {@code google.logging.v2.GetCmekSettingsRequest} + */ +public final class GetCmekSettingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.logging.v2.GetCmekSettingsRequest) + GetCmekSettingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetCmekSettingsRequest.newBuilder() to construct. + private GetCmekSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetCmekSettingsRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetCmekSettingsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetCmekSettingsRequest( + 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_GetCmekSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_GetCmekSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.logging.v2.GetCmekSettingsRequest.class, + com.google.logging.v2.GetCmekSettingsRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The resource for which to retrieve CMEK settings.
+   *     "projects/[PROJECT_ID]/cmekSettings"
+   *     "organizations/[ORGANIZATION_ID]/cmekSettings"
+   *     "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
+   *     "folders/[FOLDER_ID]/cmekSettings"
+   * Example: `"organizations/12345/cmekSettings"`.
+   * Note: CMEK for the Logs Router can currently only be configured for GCP
+   * organizations. Once configured, it applies to all projects and folders in
+   * the GCP organization.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + 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 CMEK settings.
+   *     "projects/[PROJECT_ID]/cmekSettings"
+   *     "organizations/[ORGANIZATION_ID]/cmekSettings"
+   *     "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
+   *     "folders/[FOLDER_ID]/cmekSettings"
+   * Example: `"organizations/12345/cmekSettings"`.
+   * Note: CMEK for the Logs Router can currently only be configured for GCP
+   * organizations. Once configured, it applies to all projects and folders in
+   * the GCP organization.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + 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 (!getNameBytes().isEmpty()) { + 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 (!getNameBytes().isEmpty()) { + 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.GetCmekSettingsRequest)) { + return super.equals(obj); + } + com.google.logging.v2.GetCmekSettingsRequest other = + (com.google.logging.v2.GetCmekSettingsRequest) 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.GetCmekSettingsRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.GetCmekSettingsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.GetCmekSettingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.GetCmekSettingsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.GetCmekSettingsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.GetCmekSettingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.GetCmekSettingsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.logging.v2.GetCmekSettingsRequest 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.GetCmekSettingsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.logging.v2.GetCmekSettingsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.logging.v2.GetCmekSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.logging.v2.GetCmekSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.logging.v2.GetCmekSettingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The parameters to
+   * [GetCmekSettings][google.logging.v2.ConfigServiceV2.GetCmekSettings].
+   * See [Enabling CMEK for Logs Router](/logging/docs/routing/managed-encryption)
+   * for more information.
+   * 
+ * + * Protobuf type {@code google.logging.v2.GetCmekSettingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.logging.v2.GetCmekSettingsRequest) + com.google.logging.v2.GetCmekSettingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_GetCmekSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_GetCmekSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.logging.v2.GetCmekSettingsRequest.class, + com.google.logging.v2.GetCmekSettingsRequest.Builder.class); + } + + // Construct using com.google.logging.v2.GetCmekSettingsRequest.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_GetCmekSettingsRequest_descriptor; + } + + @java.lang.Override + public com.google.logging.v2.GetCmekSettingsRequest getDefaultInstanceForType() { + return com.google.logging.v2.GetCmekSettingsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.logging.v2.GetCmekSettingsRequest build() { + com.google.logging.v2.GetCmekSettingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.logging.v2.GetCmekSettingsRequest buildPartial() { + com.google.logging.v2.GetCmekSettingsRequest result = + new com.google.logging.v2.GetCmekSettingsRequest(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.GetCmekSettingsRequest) { + return mergeFrom((com.google.logging.v2.GetCmekSettingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.logging.v2.GetCmekSettingsRequest other) { + if (other == com.google.logging.v2.GetCmekSettingsRequest.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.GetCmekSettingsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.logging.v2.GetCmekSettingsRequest) 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 CMEK settings.
+     *     "projects/[PROJECT_ID]/cmekSettings"
+     *     "organizations/[ORGANIZATION_ID]/cmekSettings"
+     *     "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
+     *     "folders/[FOLDER_ID]/cmekSettings"
+     * Example: `"organizations/12345/cmekSettings"`.
+     * Note: CMEK for the Logs Router can currently only be configured for GCP
+     * organizations. Once configured, it applies to all projects and folders in
+     * the GCP organization.
+     * 
+ * + * string name = 1; + * + * @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 CMEK settings.
+     *     "projects/[PROJECT_ID]/cmekSettings"
+     *     "organizations/[ORGANIZATION_ID]/cmekSettings"
+     *     "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
+     *     "folders/[FOLDER_ID]/cmekSettings"
+     * Example: `"organizations/12345/cmekSettings"`.
+     * Note: CMEK for the Logs Router can currently only be configured for GCP
+     * organizations. Once configured, it applies to all projects and folders in
+     * the GCP organization.
+     * 
+ * + * string name = 1; + * + * @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 CMEK settings.
+     *     "projects/[PROJECT_ID]/cmekSettings"
+     *     "organizations/[ORGANIZATION_ID]/cmekSettings"
+     *     "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
+     *     "folders/[FOLDER_ID]/cmekSettings"
+     * Example: `"organizations/12345/cmekSettings"`.
+     * Note: CMEK for the Logs Router can currently only be configured for GCP
+     * organizations. Once configured, it applies to all projects and folders in
+     * the GCP organization.
+     * 
+ * + * string name = 1; + * + * @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 CMEK settings.
+     *     "projects/[PROJECT_ID]/cmekSettings"
+     *     "organizations/[ORGANIZATION_ID]/cmekSettings"
+     *     "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
+     *     "folders/[FOLDER_ID]/cmekSettings"
+     * Example: `"organizations/12345/cmekSettings"`.
+     * Note: CMEK for the Logs Router can currently only be configured for GCP
+     * organizations. Once configured, it applies to all projects and folders in
+     * the GCP organization.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource for which to retrieve CMEK settings.
+     *     "projects/[PROJECT_ID]/cmekSettings"
+     *     "organizations/[ORGANIZATION_ID]/cmekSettings"
+     *     "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
+     *     "folders/[FOLDER_ID]/cmekSettings"
+     * Example: `"organizations/12345/cmekSettings"`.
+     * Note: CMEK for the Logs Router can currently only be configured for GCP
+     * organizations. Once configured, it applies to all projects and folders in
+     * the GCP organization.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @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.GetCmekSettingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.logging.v2.GetCmekSettingsRequest) + private static final com.google.logging.v2.GetCmekSettingsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.logging.v2.GetCmekSettingsRequest(); + } + + public static com.google.logging.v2.GetCmekSettingsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCmekSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetCmekSettingsRequest(input, extensionRegistry); + } + }; + + 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.GetCmekSettingsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} 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 new file mode 100644 index 000000000..5934e8f48 --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetCmekSettingsRequestOrBuilder.java @@ -0,0 +1,66 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/v2/logging_config.proto + +package com.google.logging.v2; + +public interface GetCmekSettingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.logging.v2.GetCmekSettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource for which to retrieve CMEK settings.
+   *     "projects/[PROJECT_ID]/cmekSettings"
+   *     "organizations/[ORGANIZATION_ID]/cmekSettings"
+   *     "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
+   *     "folders/[FOLDER_ID]/cmekSettings"
+   * Example: `"organizations/12345/cmekSettings"`.
+   * Note: CMEK for the Logs Router can currently only be configured for GCP
+   * organizations. Once configured, it applies to all projects and folders in
+   * the GCP organization.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource for which to retrieve CMEK settings.
+   *     "projects/[PROJECT_ID]/cmekSettings"
+   *     "organizations/[ORGANIZATION_ID]/cmekSettings"
+   *     "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
+   *     "folders/[FOLDER_ID]/cmekSettings"
+   * Example: `"organizations/12345/cmekSettings"`.
+   * Note: CMEK for the Logs Router can currently only be configured for GCP
+   * organizations. Once configured, it applies to all projects and folders in
+   * the GCP organization.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetExclusionRequest.java index af4bd9734..a50c6e933 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 @@ -125,7 +125,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`. * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -152,7 +154,9 @@ public java.lang.String getName() { * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`. * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -497,7 +501,9 @@ public Builder mergeFrom( * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`. * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -524,7 +530,9 @@ public java.lang.String getName() { * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`. * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -551,7 +559,9 @@ public com.google.protobuf.ByteString getNameBytes() { * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`. * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The name to set. * @return This builder for chaining. @@ -577,7 +587,9 @@ public Builder setName(java.lang.String value) { * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`. * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -599,7 +611,9 @@ public Builder clearName() { * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`. * * - * string name = 1; + * + * 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. 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 93f5bda53..7feee62f5 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 @@ -35,7 +35,9 @@ public interface GetExclusionRequestOrBuilder * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`. * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -52,7 +54,9 @@ public interface GetExclusionRequestOrBuilder * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`. * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequest.java index e025640fb..6fe893332 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequest.java @@ -117,11 +117,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The resource name of the desired metric:
+   * Required. The resource name of the desired metric:
    *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
    * 
* - * string metric_name = 1; + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The metricName. */ @@ -140,11 +142,13 @@ public java.lang.String getMetricName() { * * *
-   * The resource name of the desired metric:
+   * Required. The resource name of the desired metric:
    *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
    * 
* - * string metric_name = 1; + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for metricName. */ @@ -481,11 +485,13 @@ public Builder mergeFrom( * * *
-     * The resource name of the desired metric:
+     * Required. The resource name of the desired metric:
      *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
      * 
* - * string metric_name = 1; + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The metricName. */ @@ -504,11 +510,13 @@ public java.lang.String getMetricName() { * * *
-     * The resource name of the desired metric:
+     * Required. The resource name of the desired metric:
      *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
      * 
* - * string metric_name = 1; + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for metricName. */ @@ -527,11 +535,13 @@ public com.google.protobuf.ByteString getMetricNameBytes() { * * *
-     * The resource name of the desired metric:
+     * Required. The resource name of the desired metric:
      *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
      * 
* - * string metric_name = 1; + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The metricName to set. * @return This builder for chaining. @@ -549,11 +559,13 @@ public Builder setMetricName(java.lang.String value) { * * *
-     * The resource name of the desired metric:
+     * Required. The resource name of the desired metric:
      *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
      * 
* - * string metric_name = 1; + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -567,11 +579,13 @@ public Builder clearMetricName() { * * *
-     * The resource name of the desired metric:
+     * Required. The resource name of the desired metric:
      *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
      * 
* - * string metric_name = 1; + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for metricName to set. * @return This builder for chaining. diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequestOrBuilder.java index 4c95879af..764dc3838 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/GetLogMetricRequestOrBuilder.java @@ -27,11 +27,13 @@ public interface GetLogMetricRequestOrBuilder * * *
-   * The resource name of the desired metric:
+   * Required. The resource name of the desired metric:
    *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
    * 
* - * string metric_name = 1; + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The metricName. */ @@ -40,11 +42,13 @@ public interface GetLogMetricRequestOrBuilder * * *
-   * The resource name of the desired metric:
+   * Required. The resource name of the desired metric:
    *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
    * 
* - * string metric_name = 1; + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for metricName. */ 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 6885767d6..13d953a53 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 @@ -125,7 +125,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Example: `"projects/my-project-id/sinks/my-sink-id"`. * * - * string sink_name = 1; + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The sinkName. */ @@ -152,7 +154,9 @@ public java.lang.String getSinkName() { * Example: `"projects/my-project-id/sinks/my-sink-id"`. * * - * string sink_name = 1; + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for sinkName. */ @@ -494,7 +498,9 @@ public Builder mergeFrom( * Example: `"projects/my-project-id/sinks/my-sink-id"`. * * - * string sink_name = 1; + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The sinkName. */ @@ -521,7 +527,9 @@ public java.lang.String getSinkName() { * Example: `"projects/my-project-id/sinks/my-sink-id"`. * * - * string sink_name = 1; + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for sinkName. */ @@ -548,7 +556,9 @@ public com.google.protobuf.ByteString getSinkNameBytes() { * Example: `"projects/my-project-id/sinks/my-sink-id"`. * * - * string sink_name = 1; + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The sinkName to set. * @return This builder for chaining. @@ -574,7 +584,9 @@ public Builder setSinkName(java.lang.String value) { * Example: `"projects/my-project-id/sinks/my-sink-id"`. * * - * string sink_name = 1; + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -596,7 +608,9 @@ public Builder clearSinkName() { * Example: `"projects/my-project-id/sinks/my-sink-id"`. * * - * string sink_name = 1; + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for sinkName to set. * @return This builder for chaining. 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 33bb9926b..11bacc6e3 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 @@ -35,7 +35,9 @@ public interface GetSinkRequestOrBuilder * Example: `"projects/my-project-id/sinks/my-sink-id"`. * * - * string sink_name = 1; + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The sinkName. */ @@ -52,7 +54,9 @@ public interface GetSinkRequestOrBuilder * Example: `"projects/my-project-id/sinks/my-sink-id"`. * * - * string sink_name = 1; + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for sinkName. */ diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequest.java index 25624e8f4..cbed3c001 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequest.java @@ -137,7 +137,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * "folders/[FOLDER_ID]" * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -163,7 +165,9 @@ public java.lang.String getParent() { * "folders/[FOLDER_ID]" * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -610,7 +614,9 @@ public Builder mergeFrom( * "folders/[FOLDER_ID]" * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -636,7 +642,9 @@ public java.lang.String getParent() { * "folders/[FOLDER_ID]" * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -662,7 +670,9 @@ public com.google.protobuf.ByteString getParentBytes() { * "folders/[FOLDER_ID]" * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The parent to set. * @return This builder for chaining. @@ -687,7 +697,9 @@ public Builder setParent(java.lang.String value) { * "folders/[FOLDER_ID]" * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -708,7 +720,9 @@ public Builder clearParent() { * "folders/[FOLDER_ID]" * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for parent to set. * @return This builder for chaining. diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequestOrBuilder.java index 4ff514c00..2bc5ae78b 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListExclusionsRequestOrBuilder.java @@ -34,7 +34,9 @@ public interface ListExclusionsRequestOrBuilder * "folders/[FOLDER_ID]" * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -50,7 +52,9 @@ public interface ListExclusionsRequestOrBuilder * "folders/[FOLDER_ID]" * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ 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 b62945d07..445f5cb2e 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 @@ -249,7 +249,9 @@ public com.google.protobuf.ByteString getProjectIdsBytes(int index) { * Projects listed in the `project_ids` field are added to this list. * * - * repeated string resource_names = 8; + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return A list containing the resourceNames. */ @@ -269,7 +271,9 @@ public com.google.protobuf.ProtocolStringList getResourceNamesList() { * Projects listed in the `project_ids` field are added to this list. * * - * repeated string resource_names = 8; + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The count of resourceNames. */ @@ -289,7 +293,9 @@ public int getResourceNamesCount() { * Projects listed in the `project_ids` field are added to this list. * * - * repeated string resource_names = 8; + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param index The index of the element to return. * @return The resourceNames at the given index. @@ -310,7 +316,9 @@ public java.lang.String getResourceNames(int index) { * Projects listed in the `project_ids` field are added to this list. * * - * repeated string resource_names = 8; + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param index The index of the value to return. * @return The bytes of the resourceNames at the given index. @@ -326,7 +334,7 @@ public com.google.protobuf.ByteString getResourceNamesBytes(int index) { * *
    * Optional. A filter that chooses which log entries to return.  See [Advanced
-   * Logs Filters](/logging/docs/view/advanced_filters).  Only log entries that
+   * Logs Queries](/logging/docs/view/advanced-queries).  Only log entries that
    * match the filter are returned.  An empty filter matches all log entries in
    * the resources listed in `resource_names`. Referencing a parent resource
    * that is not listed in `resource_names` will cause the filter to return no
@@ -354,7 +362,7 @@ public java.lang.String getFilter() {
    *
    * 
    * Optional. A filter that chooses which log entries to return.  See [Advanced
-   * Logs Filters](/logging/docs/view/advanced_filters).  Only log entries that
+   * Logs Queries](/logging/docs/view/advanced-queries).  Only log entries that
    * match the filter are returned.  An empty filter matches all log entries in
    * the resources listed in `resource_names`. Referencing a parent resource
    * that is not listed in `resource_names` will cause the filter to return no
@@ -1156,7 +1164,9 @@ private void ensureResourceNamesIsMutable() {
      * Projects listed in the `project_ids` field are added to this list.
      * 
* - * repeated string resource_names = 8; + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return A list containing the resourceNames. */ @@ -1176,7 +1186,9 @@ public com.google.protobuf.ProtocolStringList getResourceNamesList() { * Projects listed in the `project_ids` field are added to this list. *
* - * repeated string resource_names = 8; + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The count of resourceNames. */ @@ -1196,7 +1208,9 @@ public int getResourceNamesCount() { * Projects listed in the `project_ids` field are added to this list. * * - * repeated string resource_names = 8; + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param index The index of the element to return. * @return The resourceNames at the given index. @@ -1217,7 +1231,9 @@ public java.lang.String getResourceNames(int index) { * Projects listed in the `project_ids` field are added to this list. * * - * repeated string resource_names = 8; + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param index The index of the value to return. * @return The bytes of the resourceNames at the given index. @@ -1238,7 +1254,9 @@ public com.google.protobuf.ByteString getResourceNamesBytes(int index) { * Projects listed in the `project_ids` field are added to this list. * * - * repeated string resource_names = 8; + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param index The index to set the value at. * @param value The resourceNames to set. @@ -1266,7 +1284,9 @@ public Builder setResourceNames(int index, java.lang.String value) { * Projects listed in the `project_ids` field are added to this list. * * - * repeated string resource_names = 8; + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The resourceNames to add. * @return This builder for chaining. @@ -1293,7 +1313,9 @@ public Builder addResourceNames(java.lang.String value) { * Projects listed in the `project_ids` field are added to this list. * * - * repeated string resource_names = 8; + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param values The resourceNames to add. * @return This builder for chaining. @@ -1317,7 +1339,9 @@ public Builder addAllResourceNames(java.lang.Iterable values) * Projects listed in the `project_ids` field are added to this list. * * - * repeated string resource_names = 8; + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -1340,7 +1364,9 @@ public Builder clearResourceNames() { * Projects listed in the `project_ids` field are added to this list. * * - * repeated string resource_names = 8; + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes of the resourceNames to add. * @return This builder for chaining. @@ -1362,7 +1388,7 @@ public Builder addResourceNamesBytes(com.google.protobuf.ByteString value) { * *
      * Optional. A filter that chooses which log entries to return.  See [Advanced
-     * Logs Filters](/logging/docs/view/advanced_filters).  Only log entries that
+     * Logs Queries](/logging/docs/view/advanced-queries).  Only log entries that
      * match the filter are returned.  An empty filter matches all log entries in
      * the resources listed in `resource_names`. Referencing a parent resource
      * that is not listed in `resource_names` will cause the filter to return no
@@ -1390,7 +1416,7 @@ public java.lang.String getFilter() {
      *
      * 
      * Optional. A filter that chooses which log entries to return.  See [Advanced
-     * Logs Filters](/logging/docs/view/advanced_filters).  Only log entries that
+     * Logs Queries](/logging/docs/view/advanced-queries).  Only log entries that
      * match the filter are returned.  An empty filter matches all log entries in
      * the resources listed in `resource_names`. Referencing a parent resource
      * that is not listed in `resource_names` will cause the filter to return no
@@ -1418,7 +1444,7 @@ public com.google.protobuf.ByteString getFilterBytes() {
      *
      * 
      * Optional. A filter that chooses which log entries to return.  See [Advanced
-     * Logs Filters](/logging/docs/view/advanced_filters).  Only log entries that
+     * Logs Queries](/logging/docs/view/advanced-queries).  Only log entries that
      * match the filter are returned.  An empty filter matches all log entries in
      * the resources listed in `resource_names`. Referencing a parent resource
      * that is not listed in `resource_names` will cause the filter to return no
@@ -1445,7 +1471,7 @@ public Builder setFilter(java.lang.String value) {
      *
      * 
      * Optional. A filter that chooses which log entries to return.  See [Advanced
-     * Logs Filters](/logging/docs/view/advanced_filters).  Only log entries that
+     * Logs Queries](/logging/docs/view/advanced-queries).  Only log entries that
      * match the filter are returned.  An empty filter matches all log entries in
      * the resources listed in `resource_names`. Referencing a parent resource
      * that is not listed in `resource_names` will cause the filter to return no
@@ -1468,7 +1494,7 @@ public Builder clearFilter() {
      *
      * 
      * Optional. A filter that chooses which log entries to return.  See [Advanced
-     * Logs Filters](/logging/docs/view/advanced_filters).  Only log entries that
+     * Logs Queries](/logging/docs/view/advanced-queries).  Only log entries that
      * match the filter are returned.  An empty filter matches all log entries in
      * the resources listed in `resource_names`. Referencing a parent resource
      * that is not listed in `resource_names` will cause the filter to return no
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 3272ef85a..c067f3206 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
@@ -99,7 +99,9 @@ public interface ListLogEntriesRequestOrBuilder
    * Projects listed in the `project_ids` field are added to this list.
    * 
* - * repeated string resource_names = 8; + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return A list containing the resourceNames. */ @@ -117,7 +119,9 @@ public interface ListLogEntriesRequestOrBuilder * Projects listed in the `project_ids` field are added to this list. *
* - * repeated string resource_names = 8; + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The count of resourceNames. */ @@ -135,7 +139,9 @@ public interface ListLogEntriesRequestOrBuilder * Projects listed in the `project_ids` field are added to this list. *
* - * repeated string resource_names = 8; + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param index The index of the element to return. * @return The resourceNames at the given index. @@ -154,7 +160,9 @@ public interface ListLogEntriesRequestOrBuilder * Projects listed in the `project_ids` field are added to this list. *
* - * repeated string resource_names = 8; + * + * repeated string resource_names = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param index The index of the value to return. * @return The bytes of the resourceNames at the given index. @@ -166,7 +174,7 @@ public interface ListLogEntriesRequestOrBuilder * *
    * Optional. A filter that chooses which log entries to return.  See [Advanced
-   * Logs Filters](/logging/docs/view/advanced_filters).  Only log entries that
+   * Logs Queries](/logging/docs/view/advanced-queries).  Only log entries that
    * match the filter are returned.  An empty filter matches all log entries in
    * the resources listed in `resource_names`. Referencing a parent resource
    * that is not listed in `resource_names` will cause the filter to return no
@@ -184,7 +192,7 @@ public interface ListLogEntriesRequestOrBuilder
    *
    * 
    * Optional. A filter that chooses which log entries to return.  See [Advanced
-   * Logs Filters](/logging/docs/view/advanced_filters).  Only log entries that
+   * Logs Queries](/logging/docs/view/advanced-queries).  Only log entries that
    * match the filter are returned.  An empty filter matches all log entries in
    * the resources listed in `resource_names`. Referencing a parent resource
    * that is not listed in `resource_names` will cause the filter to return no
diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequest.java
index 2ec6652bc..72635c53f 100644
--- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequest.java
+++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequest.java
@@ -134,7 +134,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *     "projects/[PROJECT_ID]"
    * 
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -157,7 +159,9 @@ public java.lang.String getParent() { * "projects/[PROJECT_ID]" *
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -601,7 +605,9 @@ public Builder mergeFrom( * "projects/[PROJECT_ID]" *
* - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -624,7 +630,9 @@ public java.lang.String getParent() { * "projects/[PROJECT_ID]" * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -647,7 +655,9 @@ public com.google.protobuf.ByteString getParentBytes() { * "projects/[PROJECT_ID]" * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The parent to set. * @return This builder for chaining. @@ -669,7 +679,9 @@ public Builder setParent(java.lang.String value) { * "projects/[PROJECT_ID]" * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -687,7 +699,9 @@ public Builder clearParent() { * "projects/[PROJECT_ID]" * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for parent to set. * @return This builder for chaining. diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequestOrBuilder.java index 84f9d8465..14421f91e 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListLogMetricsRequestOrBuilder.java @@ -31,7 +31,9 @@ public interface ListLogMetricsRequestOrBuilder * "projects/[PROJECT_ID]" * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -44,7 +46,9 @@ public interface ListLogMetricsRequestOrBuilder * "projects/[PROJECT_ID]" * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ 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 bc5a12b7f..0fafc8d35 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 @@ -137,7 +137,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * "folders/[FOLDER_ID]" * * - * string parent = 1; + * string parent = 1 [(.google.api.resource_reference) = { ... } * * @return The parent. */ @@ -163,7 +163,7 @@ public java.lang.String getParent() { * "folders/[FOLDER_ID]" * * - * string parent = 1; + * string parent = 1 [(.google.api.resource_reference) = { ... } * * @return The bytes for parent. */ @@ -608,7 +608,7 @@ public Builder mergeFrom( * "folders/[FOLDER_ID]" * * - * string parent = 1; + * string parent = 1 [(.google.api.resource_reference) = { ... } * * @return The parent. */ @@ -634,7 +634,7 @@ public java.lang.String getParent() { * "folders/[FOLDER_ID]" * * - * string parent = 1; + * string parent = 1 [(.google.api.resource_reference) = { ... } * * @return The bytes for parent. */ @@ -660,7 +660,7 @@ public com.google.protobuf.ByteString getParentBytes() { * "folders/[FOLDER_ID]" * * - * string parent = 1; + * string parent = 1 [(.google.api.resource_reference) = { ... } * * @param value The parent to set. * @return This builder for chaining. @@ -685,7 +685,7 @@ public Builder setParent(java.lang.String value) { * "folders/[FOLDER_ID]" * * - * string parent = 1; + * string parent = 1 [(.google.api.resource_reference) = { ... } * * @return This builder for chaining. */ @@ -706,7 +706,7 @@ public Builder clearParent() { * "folders/[FOLDER_ID]" * * - * string parent = 1; + * string parent = 1 [(.google.api.resource_reference) = { ... } * * @param value The bytes for parent to set. * @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 b4b5b22d2..7d0c51c5c 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 @@ -34,7 +34,7 @@ public interface ListLogsRequestOrBuilder * "folders/[FOLDER_ID]" * * - * string parent = 1; + * string parent = 1 [(.google.api.resource_reference) = { ... } * * @return The parent. */ @@ -50,7 +50,7 @@ public interface ListLogsRequestOrBuilder * "folders/[FOLDER_ID]" * * - * string parent = 1; + * string parent = 1 [(.google.api.resource_reference) = { ... } * * @return The bytes for parent. */ diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequest.java index b6f6c2505..058865e97 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequest.java @@ -137,7 +137,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * "folders/[FOLDER_ID]" * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -163,7 +165,9 @@ public java.lang.String getParent() { * "folders/[FOLDER_ID]" * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -609,7 +613,9 @@ public Builder mergeFrom( * "folders/[FOLDER_ID]" * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -635,7 +641,9 @@ public java.lang.String getParent() { * "folders/[FOLDER_ID]" * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ @@ -661,7 +669,9 @@ public com.google.protobuf.ByteString getParentBytes() { * "folders/[FOLDER_ID]" * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The parent to set. * @return This builder for chaining. @@ -686,7 +696,9 @@ public Builder setParent(java.lang.String value) { * "folders/[FOLDER_ID]" * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -707,7 +719,9 @@ public Builder clearParent() { * "folders/[FOLDER_ID]" * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for parent to set. * @return This builder for chaining. diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequestOrBuilder.java index 754a5f43f..8db43b5be 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/ListSinksRequestOrBuilder.java @@ -34,7 +34,9 @@ public interface ListSinksRequestOrBuilder * "folders/[FOLDER_ID]" * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The parent. */ @@ -50,7 +52,9 @@ public interface ListSinksRequestOrBuilder * "folders/[FOLDER_ID]" * * - * string parent = 1; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for parent. */ 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 ee92375e6..3138e7279 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 @@ -831,10 +831,13 @@ public com.google.logging.type.LogSeverity getSeverity() { *
    * Optional. A unique identifier for the log entry. If you provide a value,
    * then Logging considers other log entries in the same project, with the same
-   * `timestamp`, and with the same `insert_id` to be duplicates which can be
-   * removed. If omitted in new log entries, then Logging assigns its own unique
-   * identifier. The `insert_id` is also used to order log entries that have the
-   * same `timestamp` value.
+   * `timestamp`, and with the same `insert_id` to be duplicates which are
+   * removed in a single query result. However, there are no guarantees of
+   * de-duplication in the export of logs.
+   * If the `insert_id` is omitted when writing a log entry, the Logging API
+   *  assigns its own unique identifier in this field.
+   * In queries, the `insert_id` is also used to order log entries that have
+   * the same `log_name` and `timestamp` values.
    * 
* * string insert_id = 4; @@ -858,10 +861,13 @@ public java.lang.String getInsertId() { *
    * Optional. A unique identifier for the log entry. If you provide a value,
    * then Logging considers other log entries in the same project, with the same
-   * `timestamp`, and with the same `insert_id` to be duplicates which can be
-   * removed. If omitted in new log entries, then Logging assigns its own unique
-   * identifier. The `insert_id` is also used to order log entries that have the
-   * same `timestamp` value.
+   * `timestamp`, and with the same `insert_id` to be duplicates which are
+   * removed in a single query result. However, there are no guarantees of
+   * de-duplication in the export of logs.
+   * If the `insert_id` is omitted when writing a log entry, the Logging API
+   *  assigns its own unique identifier in this field.
+   * In queries, the `insert_id` is also used to order log entries that have
+   * the same `log_name` and `timestamp` values.
    * 
* * string insert_id = 4; @@ -3587,10 +3593,13 @@ public Builder clearSeverity() { *
      * Optional. A unique identifier for the log entry. If you provide a value,
      * then Logging considers other log entries in the same project, with the same
-     * `timestamp`, and with the same `insert_id` to be duplicates which can be
-     * removed. If omitted in new log entries, then Logging assigns its own unique
-     * identifier. The `insert_id` is also used to order log entries that have the
-     * same `timestamp` value.
+     * `timestamp`, and with the same `insert_id` to be duplicates which are
+     * removed in a single query result. However, there are no guarantees of
+     * de-duplication in the export of logs.
+     * If the `insert_id` is omitted when writing a log entry, the Logging API
+     *  assigns its own unique identifier in this field.
+     * In queries, the `insert_id` is also used to order log entries that have
+     * the same `log_name` and `timestamp` values.
      * 
* * string insert_id = 4; @@ -3614,10 +3623,13 @@ public java.lang.String getInsertId() { *
      * Optional. A unique identifier for the log entry. If you provide a value,
      * then Logging considers other log entries in the same project, with the same
-     * `timestamp`, and with the same `insert_id` to be duplicates which can be
-     * removed. If omitted in new log entries, then Logging assigns its own unique
-     * identifier. The `insert_id` is also used to order log entries that have the
-     * same `timestamp` value.
+     * `timestamp`, and with the same `insert_id` to be duplicates which are
+     * removed in a single query result. However, there are no guarantees of
+     * de-duplication in the export of logs.
+     * If the `insert_id` is omitted when writing a log entry, the Logging API
+     *  assigns its own unique identifier in this field.
+     * In queries, the `insert_id` is also used to order log entries that have
+     * the same `log_name` and `timestamp` values.
      * 
* * string insert_id = 4; @@ -3641,10 +3653,13 @@ public com.google.protobuf.ByteString getInsertIdBytes() { *
      * Optional. A unique identifier for the log entry. If you provide a value,
      * then Logging considers other log entries in the same project, with the same
-     * `timestamp`, and with the same `insert_id` to be duplicates which can be
-     * removed. If omitted in new log entries, then Logging assigns its own unique
-     * identifier. The `insert_id` is also used to order log entries that have the
-     * same `timestamp` value.
+     * `timestamp`, and with the same `insert_id` to be duplicates which are
+     * removed in a single query result. However, there are no guarantees of
+     * de-duplication in the export of logs.
+     * If the `insert_id` is omitted when writing a log entry, the Logging API
+     *  assigns its own unique identifier in this field.
+     * In queries, the `insert_id` is also used to order log entries that have
+     * the same `log_name` and `timestamp` values.
      * 
* * string insert_id = 4; @@ -3667,10 +3682,13 @@ public Builder setInsertId(java.lang.String value) { *
      * Optional. A unique identifier for the log entry. If you provide a value,
      * then Logging considers other log entries in the same project, with the same
-     * `timestamp`, and with the same `insert_id` to be duplicates which can be
-     * removed. If omitted in new log entries, then Logging assigns its own unique
-     * identifier. The `insert_id` is also used to order log entries that have the
-     * same `timestamp` value.
+     * `timestamp`, and with the same `insert_id` to be duplicates which are
+     * removed in a single query result. However, there are no guarantees of
+     * de-duplication in the export of logs.
+     * If the `insert_id` is omitted when writing a log entry, the Logging API
+     *  assigns its own unique identifier in this field.
+     * In queries, the `insert_id` is also used to order log entries that have
+     * the same `log_name` and `timestamp` values.
      * 
* * string insert_id = 4; @@ -3689,10 +3707,13 @@ public Builder clearInsertId() { *
      * Optional. A unique identifier for the log entry. If you provide a value,
      * then Logging considers other log entries in the same project, with the same
-     * `timestamp`, and with the same `insert_id` to be duplicates which can be
-     * removed. If omitted in new log entries, then Logging assigns its own unique
-     * identifier. The `insert_id` is also used to order log entries that have the
-     * same `timestamp` value.
+     * `timestamp`, and with the same `insert_id` to be duplicates which are
+     * removed in a single query result. However, there are no guarantees of
+     * de-duplication in the export of logs.
+     * If the `insert_id` is omitted when writing a log entry, the Logging API
+     *  assigns its own unique identifier in this field.
+     * In queries, the `insert_id` is also used to order log entries that have
+     * the same `log_name` and `timestamp` values.
      * 
* * string insert_id = 4; 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 d16adcf74..4ce3fea2e 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 @@ -372,10 +372,13 @@ public interface LogEntryOrBuilder *
    * Optional. A unique identifier for the log entry. If you provide a value,
    * then Logging considers other log entries in the same project, with the same
-   * `timestamp`, and with the same `insert_id` to be duplicates which can be
-   * removed. If omitted in new log entries, then Logging assigns its own unique
-   * identifier. The `insert_id` is also used to order log entries that have the
-   * same `timestamp` value.
+   * `timestamp`, and with the same `insert_id` to be duplicates which are
+   * removed in a single query result. However, there are no guarantees of
+   * de-duplication in the export of logs.
+   * If the `insert_id` is omitted when writing a log entry, the Logging API
+   *  assigns its own unique identifier in this field.
+   * In queries, the `insert_id` is also used to order log entries that have
+   * the same `log_name` and `timestamp` values.
    * 
* * string insert_id = 4; @@ -389,10 +392,13 @@ public interface LogEntryOrBuilder *
    * Optional. A unique identifier for the log entry. If you provide a value,
    * then Logging considers other log entries in the same project, with the same
-   * `timestamp`, and with the same `insert_id` to be duplicates which can be
-   * removed. If omitted in new log entries, then Logging assigns its own unique
-   * identifier. The `insert_id` is also used to order log entries that have the
-   * same `timestamp` value.
+   * `timestamp`, and with the same `insert_id` to be duplicates which are
+   * removed in a single query result. However, there are no guarantees of
+   * de-duplication in the export of logs.
+   * If the `insert_id` is omitted when writing a log entry, the Logging API
+   *  assigns its own unique identifier in this field.
+   * In queries, the `insert_id` is also used to order log entries that have
+   * the same `log_name` and `timestamp` values.
    * 
* * string insert_id = 4; 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 7ffb7c9f1..72738471f 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 @@ -54,46 +54,52 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n!google/logging/v2/log_entry.proto\022\021goo" + "gle.logging.v2\032#google/api/monitored_res" - + "ource.proto\032&google/logging/type/http_re" - + "quest.proto\032&google/logging/type/log_sev" - + "erity.proto\032\031google/protobuf/any.proto\032\034" - + "google/protobuf/struct.proto\032\037google/pro" - + "tobuf/timestamp.proto\032\027google/rpc/status" - + ".proto\032\034google/api/annotations.proto\"\216\006\n" - + "\010LogEntry\022\020\n\010log_name\030\014 \001(\t\022/\n\010resource\030" - + "\010 \001(\0132\035.google.api.MonitoredResource\022-\n\r" - + "proto_payload\030\002 \001(\0132\024.google.protobuf.An" - + "yH\000\022\026\n\014text_payload\030\003 \001(\tH\000\022/\n\014json_payl" - + "oad\030\006 \001(\0132\027.google.protobuf.StructH\000\022-\n\t" - + "timestamp\030\t \001(\0132\032.google.protobuf.Timest" - + "amp\0225\n\021receive_timestamp\030\030 \001(\0132\032.google." - + "protobuf.Timestamp\0222\n\010severity\030\n \001(\0162 .g" - + "oogle.logging.type.LogSeverity\022\021\n\tinsert" - + "_id\030\004 \001(\t\0226\n\014http_request\030\007 \001(\0132 .google" - + ".logging.type.HttpRequest\0227\n\006labels\030\013 \003(" - + "\0132\'.google.logging.v2.LogEntry.LabelsEnt" - + "ry\022;\n\010metadata\030\031 \001(\0132%.google.api.Monito" - + "redResourceMetadataB\002\030\001\0227\n\toperation\030\017 \001" - + "(\0132$.google.logging.v2.LogEntryOperation" - + "\022\r\n\005trace\030\026 \001(\t\022\017\n\007span_id\030\033 \001(\t\022\025\n\rtrac" - + "e_sampled\030\036 \001(\010\022B\n\017source_location\030\027 \001(\013" - + "2).google.logging.v2.LogEntrySourceLocat" - + "ion\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" - + "\030\002 \001(\t:\0028\001B\t\n\007payload\"N\n\021LogEntryOperati" - + "on\022\n\n\002id\030\001 \001(\t\022\020\n\010producer\030\002 \001(\t\022\r\n\005firs" - + "t\030\003 \001(\010\022\014\n\004last\030\004 \001(\010\"F\n\026LogEntrySourceL" - + "ocation\022\014\n\004file\030\001 \001(\t\022\014\n\004line\030\002 \001(\003\022\020\n\010f" - + "unction\030\003 \001(\tB\231\001\n\025com.google.logging.v2B" - + "\rLogEntryProtoP\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\\V2b\006proto3" + + "ource.proto\032\031google/api/resource.proto\032&" + + "google/logging/type/http_request.proto\032&" + + "google/logging/type/log_severity.proto\032\031" + + "google/protobuf/any.proto\032\034google/protob" + + "uf/struct.proto\032\037google/protobuf/timesta" + + "mp.proto\032\027google/rpc/status.proto\032\034googl" + + "e/api/annotations.proto\"\316\007\n\010LogEntry\022\020\n\010" + + "log_name\030\014 \001(\t\022/\n\010resource\030\010 \001(\0132\035.googl" + + "e.api.MonitoredResource\022-\n\rproto_payload" + + "\030\002 \001(\0132\024.google.protobuf.AnyH\000\022\026\n\014text_p" + + "ayload\030\003 \001(\tH\000\022/\n\014json_payload\030\006 \001(\0132\027.g" + + "oogle.protobuf.StructH\000\022-\n\ttimestamp\030\t \001" + + "(\0132\032.google.protobuf.Timestamp\0225\n\021receiv" + + "e_timestamp\030\030 \001(\0132\032.google.protobuf.Time" + + "stamp\0222\n\010severity\030\n \001(\0162 .google.logging" + + ".type.LogSeverity\022\021\n\tinsert_id\030\004 \001(\t\0226\n\014" + + "http_request\030\007 \001(\0132 .google.logging.type" + + ".HttpRequest\0227\n\006labels\030\013 \003(\0132\'.google.lo" + + "gging.v2.LogEntry.LabelsEntry\022;\n\010metadat" + + "a\030\031 \001(\0132%.google.api.MonitoredResourceMe" + + "tadataB\002\030\001\0227\n\toperation\030\017 \001(\0132$.google.l" + + "ogging.v2.LogEntryOperation\022\r\n\005trace\030\026 \001" + + "(\t\022\017\n\007span_id\030\033 \001(\t\022\025\n\rtrace_sampled\030\036 \001" + + "(\010\022B\n\017source_location\030\027 \001(\0132).google.log" + + "ging.v2.LogEntrySourceLocation\032-\n\013Labels" + + "Entry\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\035projec" + + "ts/{project}/logs/{log}\022\'organizations/{" + + "organization}/logs/{log}\022\033folders/{folde" + + "r}/logs/{log}\022,billingAccounts/{billing_" + + "account}/logs/{log}\032\010log_nameB\t\n\007payload" + + "\"N\n\021LogEntryOperation\022\n\n\002id\030\001 \001(\t\022\020\n\010pro" + + "ducer\030\002 \001(\t\022\r\n\005first\030\003 \001(\010\022\014\n\004last\030\004 \001(\010" + + "\"F\n\026LogEntrySourceLocation\022\014\n\004file\030\001 \001(\t" + + "\022\014\n\004line\030\002 \001(\003\022\020\n\010function\030\003 \001(\tB\231\001\n\025com" + + ".google.logging.v2B\rLogEntryProtoP\001Z8goo" + + "gle.golang.org/genproto/googleapis/loggi" + + "ng/v2;logging\370\001\001\252\002\027Google.Cloud.Logging." + + "V2\312\002\027Google\\Cloud\\Logging\\V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.MonitoredResourceProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), com.google.logging.type.HttpRequestProto.getDescriptor(), com.google.logging.type.LogSeverityProto.getDescriptor(), com.google.protobuf.AnyProto.getDescriptor(), @@ -151,7 +157,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "File", "Line", "Function", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); com.google.api.MonitoredResourceProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); com.google.logging.type.HttpRequestProto.getDescriptor(); com.google.logging.type.LogSeverityProto.getDescriptor(); com.google.protobuf.AnyProto.getDescriptor(); 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 743f2f187..c59e7d551 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 @@ -176,6 +176,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Required. A client-assigned identifier, such as * `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and * can include only letters, digits, underscores, hyphens, and periods. + * First character has to be alphanumeric. * * * string name = 1; @@ -200,6 +201,7 @@ public java.lang.String getName() { * Required. A client-assigned identifier, such as * `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and * can include only letters, digits, underscores, hyphens, and periods. + * First character has to be alphanumeric. * * * string name = 1; @@ -865,6 +867,7 @@ public Builder mergeFrom( * Required. A client-assigned identifier, such as * `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and * can include only letters, digits, underscores, hyphens, and periods. + * First character has to be alphanumeric. * * * string name = 1; @@ -889,6 +892,7 @@ public java.lang.String getName() { * Required. A client-assigned identifier, such as * `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and * can include only letters, digits, underscores, hyphens, and periods. + * First character has to be alphanumeric. * * * string name = 1; @@ -913,6 +917,7 @@ public com.google.protobuf.ByteString getNameBytes() { * Required. A client-assigned identifier, such as * `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and * can include only letters, digits, underscores, hyphens, and periods. + * First character has to be alphanumeric. * * * string name = 1; @@ -936,6 +941,7 @@ public Builder setName(java.lang.String value) { * Required. A client-assigned identifier, such as * `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and * can include only letters, digits, underscores, hyphens, and periods. + * First character has to be alphanumeric. * * * string name = 1; @@ -955,6 +961,7 @@ public Builder clearName() { * Required. A client-assigned identifier, such as * `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and * can include only letters, digits, underscores, hyphens, and periods. + * First character has to be alphanumeric. * * * string name = 1; 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 7a6458a3e..e43e747f7 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 @@ -30,6 +30,7 @@ public interface LogExclusionOrBuilder * Required. A client-assigned identifier, such as * `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and * can include only letters, digits, underscores, hyphens, and periods. + * First character has to be alphanumeric. * * * string name = 1; @@ -44,6 +45,7 @@ public interface LogExclusionOrBuilder * Required. A client-assigned identifier, such as * `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and * can include only letters, digits, underscores, hyphens, and periods. + * First character has to be alphanumeric. * * * string name = 1; 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 180d08d97..e36f7b19a 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 @@ -45,6 +45,7 @@ private LogSink() { name_ = ""; destination_ = ""; filter_ = ""; + description_ = ""; outputVersionFormat_ = 0; writerIdentity_ = ""; } @@ -192,6 +193,18 @@ private LogSink( updateTime_ = subBuilder.buildPartial(); } + break; + } + case 146: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 152: + { + disabled_ = input.readBool(); break; } default: @@ -436,7 +449,7 @@ public OptionsCase getOptionsCase() { * project. 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. + * periods. First character has to be alphanumeric. * * * string name = 1; @@ -462,7 +475,7 @@ public java.lang.String getName() { * project. 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. + * periods. First character has to be alphanumeric. * * * string name = 1; @@ -497,7 +510,7 @@ public com.google.protobuf.ByteString getNameBytes() { * [Exporting Logs with Sinks](/logging/docs/api/tasks/exporting-logs). * * - * string destination = 3; + * string destination = 3 [(.google.api.resource_reference) = { ... } * * @return The destination. */ @@ -526,7 +539,7 @@ public java.lang.String getDestination() { * [Exporting Logs with Sinks](/logging/docs/api/tasks/exporting-logs). * * - * string destination = 3; + * string destination = 3 [(.google.api.resource_reference) = { ... } * * @return The bytes for destination. */ @@ -595,6 +608,73 @@ public com.google.protobuf.ByteString getFilterBytes() { } } + public static final int DESCRIPTION_FIELD_NUMBER = 18; + private volatile java.lang.Object description_; + /** + * + * + *
+   * Optional. A description of this sink.
+   * The maximum length of the description is 8000 characters.
+   * 
+ * + * string description = 18; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. A description of this sink.
+   * The maximum length of the description is 8000 characters.
+   * 
+ * + * string description = 18; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISABLED_FIELD_NUMBER = 19; + private boolean disabled_; + /** + * + * + *
+   * Optional. If set to True, then this sink is disabled and it does not
+   * export any log entries.
+   * 
+ * + * bool disabled = 19; + * + * @return The disabled. + */ + public boolean getDisabled() { + return disabled_; + } + public static final int OUTPUT_VERSION_FORMAT_FIELD_NUMBER = 6; private int outputVersionFormat_; /** @@ -656,7 +736,7 @@ public com.google.logging.v2.LogSink.VersionFormat getOutputVersionFormat() { * appropriate IAM roles to assign to the identity. * * - * string writer_identity = 8; + * string writer_identity = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The writerIdentity. */ @@ -690,7 +770,7 @@ public java.lang.String getWriterIdentity() { * appropriate IAM roles to assign to the identity. * * - * string writer_identity = 8; + * string writer_identity = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for writerIdentity. */ @@ -792,7 +872,8 @@ public com.google.logging.v2.BigQueryOptionsOrBuilder getBigqueryOptionsOrBuilde * This field may not be present for older sinks. * * - * .google.protobuf.Timestamp create_time = 13; + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return Whether the createTime field is set. */ @@ -807,7 +888,8 @@ public boolean hasCreateTime() { * This field may not be present for older sinks. * * - * .google.protobuf.Timestamp create_time = 13; + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The createTime. */ @@ -822,7 +904,8 @@ public com.google.protobuf.Timestamp getCreateTime() { * This field may not be present for older sinks. * * - * .google.protobuf.Timestamp create_time = 13; + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return getCreateTime(); @@ -838,7 +921,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * This field may not be present for older sinks. * * - * .google.protobuf.Timestamp update_time = 14; + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return Whether the updateTime field is set. */ @@ -853,7 +937,8 @@ public boolean hasUpdateTime() { * This field may not be present for older sinks. * * - * .google.protobuf.Timestamp update_time = 14; + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The updateTime. */ @@ -868,7 +953,8 @@ public com.google.protobuf.Timestamp getUpdateTime() { * This field may not be present for older sinks. * * - * .google.protobuf.Timestamp update_time = 14; + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return getUpdateTime(); @@ -1014,6 +1100,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(14, getUpdateTime()); } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 18, description_); + } + if (disabled_ != false) { + output.writeBool(19, disabled_); + } unknownFields.writeTo(output); } @@ -1059,6 +1151,12 @@ public int getSerializedSize() { if (updateTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getUpdateTime()); } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, description_); + } + if (disabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(19, disabled_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1077,6 +1175,8 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getDestination().equals(other.getDestination())) return false; if (!getFilter().equals(other.getFilter())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (getDisabled() != other.getDisabled()) return false; if (outputVersionFormat_ != other.outputVersionFormat_) return false; if (!getWriterIdentity().equals(other.getWriterIdentity())) return false; if (getIncludeChildren() != other.getIncludeChildren()) return false; @@ -1121,6 +1221,10 @@ public int hashCode() { hash = (53 * hash) + getDestination().hashCode(); hash = (37 * hash) + FILTER_FIELD_NUMBER; hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + DISABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled()); hash = (37 * hash) + OUTPUT_VERSION_FORMAT_FIELD_NUMBER; hash = (53 * hash) + outputVersionFormat_; hash = (37 * hash) + WRITER_IDENTITY_FIELD_NUMBER; @@ -1304,6 +1408,10 @@ public Builder clear() { filter_ = ""; + description_ = ""; + + disabled_ = false; + outputVersionFormat_ = 0; writerIdentity_ = ""; @@ -1365,6 +1473,8 @@ public com.google.logging.v2.LogSink buildPartial() { result.name_ = name_; result.destination_ = destination_; result.filter_ = filter_; + result.description_ = description_; + result.disabled_ = disabled_; result.outputVersionFormat_ = outputVersionFormat_; result.writerIdentity_ = writerIdentity_; result.includeChildren_ = includeChildren_; @@ -1457,6 +1567,13 @@ public Builder mergeFrom(com.google.logging.v2.LogSink other) { filter_ = other.filter_; onChanged(); } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.getDisabled() != false) { + setDisabled(other.getDisabled()); + } if (other.outputVersionFormat_ != 0) { setOutputVersionFormatValue(other.getOutputVersionFormatValue()); } @@ -1542,7 +1659,7 @@ public Builder clearOptions() { * project. 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. + * periods. First character has to be alphanumeric. * * * string name = 1; @@ -1568,7 +1685,7 @@ public java.lang.String getName() { * project. 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. + * periods. First character has to be alphanumeric. * * * string name = 1; @@ -1594,7 +1711,7 @@ public com.google.protobuf.ByteString getNameBytes() { * project. 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. + * periods. First character has to be alphanumeric. * * * string name = 1; @@ -1619,7 +1736,7 @@ public Builder setName(java.lang.String value) { * project. 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. + * periods. First character has to be alphanumeric. * * * string name = 1; @@ -1640,7 +1757,7 @@ public Builder clearName() { * project. 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. + * periods. First character has to be alphanumeric. * * * string name = 1; @@ -1674,7 +1791,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * [Exporting Logs with Sinks](/logging/docs/api/tasks/exporting-logs). * * - * string destination = 3; + * string destination = 3 [(.google.api.resource_reference) = { ... } * * @return The destination. */ @@ -1703,7 +1820,7 @@ public java.lang.String getDestination() { * [Exporting Logs with Sinks](/logging/docs/api/tasks/exporting-logs). * * - * string destination = 3; + * string destination = 3 [(.google.api.resource_reference) = { ... } * * @return The bytes for destination. */ @@ -1732,7 +1849,7 @@ public com.google.protobuf.ByteString getDestinationBytes() { * [Exporting Logs with Sinks](/logging/docs/api/tasks/exporting-logs). * * - * string destination = 3; + * string destination = 3 [(.google.api.resource_reference) = { ... } * * @param value The destination to set. * @return This builder for chaining. @@ -1760,7 +1877,7 @@ public Builder setDestination(java.lang.String value) { * [Exporting Logs with Sinks](/logging/docs/api/tasks/exporting-logs). * * - * string destination = 3; + * string destination = 3 [(.google.api.resource_reference) = { ... } * * @return This builder for chaining. */ @@ -1784,7 +1901,7 @@ public Builder clearDestination() { * [Exporting Logs with Sinks](/logging/docs/api/tasks/exporting-logs). * * - * string destination = 3; + * string destination = 3 [(.google.api.resource_reference) = { ... } * * @param value The bytes for destination to set. * @return This builder for chaining. @@ -1921,6 +2038,171 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object description_ = ""; + /** + * + * + *
+     * Optional. A description of this sink.
+     * The maximum length of the description is 8000 characters.
+     * 
+ * + * string description = 18; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. A description of this sink.
+     * The maximum length of the description is 8000 characters.
+     * 
+ * + * string description = 18; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A description of this sink.
+     * The maximum length of the description is 8000 characters.
+     * 
+ * + * string description = 18; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A description of this sink.
+     * The maximum length of the description is 8000 characters.
+     * 
+ * + * string description = 18; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A description of this sink.
+     * The maximum length of the description is 8000 characters.
+     * 
+ * + * string description = 18; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private boolean disabled_; + /** + * + * + *
+     * Optional. If set to True, then this sink is disabled and it does not
+     * export any log entries.
+     * 
+ * + * bool disabled = 19; + * + * @return The disabled. + */ + public boolean getDisabled() { + return disabled_; + } + /** + * + * + *
+     * Optional. If set to True, then this sink is disabled and it does not
+     * export any log entries.
+     * 
+ * + * bool disabled = 19; + * + * @param value The disabled to set. + * @return This builder for chaining. + */ + public Builder setDisabled(boolean value) { + + disabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set to True, then this sink is disabled and it does not
+     * export any log entries.
+     * 
+ * + * bool disabled = 19; + * + * @return This builder for chaining. + */ + public Builder clearDisabled() { + + disabled_ = false; + onChanged(); + return this; + } + private int outputVersionFormat_ = 0; /** * @@ -2044,7 +2326,7 @@ public Builder clearOutputVersionFormat() { * appropriate IAM roles to assign to the identity. * * - * string writer_identity = 8; + * string writer_identity = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The writerIdentity. */ @@ -2078,7 +2360,7 @@ public java.lang.String getWriterIdentity() { * appropriate IAM roles to assign to the identity. * * - * string writer_identity = 8; + * string writer_identity = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for writerIdentity. */ @@ -2112,7 +2394,7 @@ public com.google.protobuf.ByteString getWriterIdentityBytes() { * appropriate IAM roles to assign to the identity. * * - * string writer_identity = 8; + * string writer_identity = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The writerIdentity to set. * @return This builder for chaining. @@ -2145,7 +2427,7 @@ public Builder setWriterIdentity(java.lang.String value) { * appropriate IAM roles to assign to the identity. * * - * string writer_identity = 8; + * string writer_identity = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -2174,7 +2456,7 @@ public Builder clearWriterIdentity() { * appropriate IAM roles to assign to the identity. * * - * string writer_identity = 8; + * string writer_identity = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for writerIdentity to set. * @return This builder for chaining. @@ -2494,7 +2776,9 @@ public com.google.logging.v2.BigQueryOptionsOrBuilder getBigqueryOptionsOrBuilde * This field may not be present for older sinks. * * - * .google.protobuf.Timestamp create_time = 13; + * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return Whether the createTime field is set. */ @@ -2509,7 +2793,9 @@ public boolean hasCreateTime() { * This field may not be present for older sinks. * * - * .google.protobuf.Timestamp create_time = 13; + * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The createTime. */ @@ -2530,7 +2816,9 @@ public com.google.protobuf.Timestamp getCreateTime() { * This field may not be present for older sinks. * * - * .google.protobuf.Timestamp create_time = 13; + * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2553,7 +2841,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { * This field may not be present for older sinks. * * - * .google.protobuf.Timestamp create_time = 13; + * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { @@ -2573,7 +2863,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal * This field may not be present for older sinks. * * - * .google.protobuf.Timestamp create_time = 13; + * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -2598,7 +2890,9 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * This field may not be present for older sinks. * * - * .google.protobuf.Timestamp create_time = 13; + * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { if (createTimeBuilder_ == null) { @@ -2619,7 +2913,9 @@ public Builder clearCreateTime() { * This field may not be present for older sinks. * * - * .google.protobuf.Timestamp create_time = 13; + * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { @@ -2634,7 +2930,9 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { * This field may not be present for older sinks. * * - * .google.protobuf.Timestamp create_time = 13; + * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { @@ -2653,7 +2951,9 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * This field may not be present for older sinks. * * - * .google.protobuf.Timestamp create_time = 13; + * + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, @@ -2686,7 +2986,9 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * This field may not be present for older sinks. * * - * .google.protobuf.Timestamp update_time = 14; + * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return Whether the updateTime field is set. */ @@ -2701,7 +3003,9 @@ public boolean hasUpdateTime() { * This field may not be present for older sinks. * * - * .google.protobuf.Timestamp update_time = 14; + * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The updateTime. */ @@ -2722,7 +3026,9 @@ public com.google.protobuf.Timestamp getUpdateTime() { * This field may not be present for older sinks. * * - * .google.protobuf.Timestamp update_time = 14; + * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2745,7 +3051,9 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { * This field may not be present for older sinks. * * - * .google.protobuf.Timestamp update_time = 14; + * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { @@ -2765,7 +3073,9 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal * This field may not be present for older sinks. * * - * .google.protobuf.Timestamp update_time = 14; + * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -2790,7 +3100,9 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * This field may not be present for older sinks. * * - * .google.protobuf.Timestamp update_time = 14; + * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { @@ -2811,7 +3123,9 @@ public Builder clearUpdateTime() { * This field may not be present for older sinks. * * - * .google.protobuf.Timestamp update_time = 14; + * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { @@ -2826,7 +3140,9 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { * This field may not be present for older sinks. * * - * .google.protobuf.Timestamp update_time = 14; + * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { @@ -2845,7 +3161,9 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * This field may not be present for older sinks. * * - * .google.protobuf.Timestamp update_time = 14; + * + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, 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 fb96f2d84..775d3cba8 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 @@ -31,7 +31,7 @@ public interface LogSinkOrBuilder * project. 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. + * periods. First character has to be alphanumeric. * * * string name = 1; @@ -47,7 +47,7 @@ public interface LogSinkOrBuilder * project. 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. + * periods. First character has to be alphanumeric. * * * string name = 1; @@ -70,7 +70,7 @@ public interface LogSinkOrBuilder * [Exporting Logs with Sinks](/logging/docs/api/tasks/exporting-logs). * * - * string destination = 3; + * string destination = 3 [(.google.api.resource_reference) = { ... } * * @return The destination. */ @@ -89,7 +89,7 @@ public interface LogSinkOrBuilder * [Exporting Logs with Sinks](/logging/docs/api/tasks/exporting-logs). * * - * string destination = 3; + * string destination = 3 [(.google.api.resource_reference) = { ... } * * @return The bytes for destination. */ @@ -126,6 +126,47 @@ public interface LogSinkOrBuilder */ com.google.protobuf.ByteString getFilterBytes(); + /** + * + * + *
+   * Optional. A description of this sink.
+   * The maximum length of the description is 8000 characters.
+   * 
+ * + * string description = 18; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Optional. A description of this sink.
+   * The maximum length of the description is 8000 characters.
+   * 
+ * + * string description = 18; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Optional. If set to True, then this sink is disabled and it does not
+   * export any log entries.
+   * 
+ * + * bool disabled = 19; + * + * @return The disabled. + */ + boolean getDisabled(); + /** * * @@ -176,7 +217,7 @@ public interface LogSinkOrBuilder * appropriate IAM roles to assign to the identity. * * - * string writer_identity = 8; + * string writer_identity = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The writerIdentity. */ @@ -200,7 +241,7 @@ public interface LogSinkOrBuilder * appropriate IAM roles to assign to the identity. * * - * string writer_identity = 8; + * string writer_identity = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for writerIdentity. */ @@ -273,7 +314,8 @@ public interface LogSinkOrBuilder * This field may not be present for older sinks. * * - * .google.protobuf.Timestamp create_time = 13; + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return Whether the createTime field is set. */ @@ -286,7 +328,8 @@ public interface LogSinkOrBuilder * This field may not be present for older sinks. * * - * .google.protobuf.Timestamp create_time = 13; + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The createTime. */ @@ -299,7 +342,8 @@ public interface LogSinkOrBuilder * This field may not be present for older sinks. * * - * .google.protobuf.Timestamp create_time = 13; + * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); @@ -311,7 +355,8 @@ public interface LogSinkOrBuilder * This field may not be present for older sinks. * * - * .google.protobuf.Timestamp update_time = 14; + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return Whether the updateTime field is set. */ @@ -324,7 +369,8 @@ public interface LogSinkOrBuilder * This field may not be present for older sinks. * * - * .google.protobuf.Timestamp update_time = 14; + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The updateTime. */ @@ -337,7 +383,8 @@ public interface LogSinkOrBuilder * This field may not be present for older sinks. * * - * .google.protobuf.Timestamp update_time = 14; + * .google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingConfigProto.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/LoggingConfigProto.java index f243fb33d..c6770e573 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 @@ -87,6 +87,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_logging_v2_DeleteExclusionRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_logging_v2_DeleteExclusionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_GetCmekSettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_GetCmekSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_UpdateCmekSettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_UpdateCmekSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_logging_v2_CmekSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_logging_v2_CmekSettings_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -97,157 +109,205 @@ 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\036google/protobuf/dur" - + "ation.proto\032\033google/protobuf/empty.proto" - + "\032 google/protobuf/field_mask.proto\032\037goog" - + "le/protobuf/timestamp.proto\032\034google/api/" - + "annotations.proto\032\027google/api/client.pro" - + "to\"\220\004\n\007LogSink\022\014\n\004name\030\001 \001(\t\022\023\n\013destinat" - + "ion\030\003 \001(\t\022\016\n\006filter\030\005 \001(\t\022K\n\025output_vers" - + "ion_format\030\006 \001(\0162(.google.logging.v2.Log" - + "Sink.VersionFormatB\002\030\001\022\027\n\017writer_identit" - + "y\030\010 \001(\t\022\030\n\020include_children\030\t \001(\010\022>\n\020big" - + "query_options\030\014 \001(\0132\".google.logging.v2." - + "BigQueryOptionsH\000\022/\n\013create_time\030\r \001(\0132\032" - + ".google.protobuf.Timestamp\022/\n\013update_tim" - + "e\030\016 \001(\0132\032.google.protobuf.Timestamp\0222\n\ns" - + "tart_time\030\n \001(\0132\032.google.protobuf.Timest" - + "ampB\002\030\001\0220\n\010end_time\030\013 \001(\0132\032.google.proto" - + "buf.TimestampB\002\030\001\"?\n\rVersionFormat\022\036\n\032VE" - + "RSION_FORMAT_UNSPECIFIED\020\000\022\006\n\002V2\020\001\022\006\n\002V1" - + "\020\002B\t\n\007options\"1\n\017BigQueryOptions\022\036\n\026use_" - + "partitioned_tables\030\001 \001(\010\"I\n\020ListSinksReq" - + "uest\022\016\n\006parent\030\001 \001(\t\022\022\n\npage_token\030\002 \001(\t" - + "\022\021\n\tpage_size\030\003 \001(\005\"W\n\021ListSinksResponse" - + "\022)\n\005sinks\030\001 \003(\0132\032.google.logging.v2.LogS" - + "ink\022\027\n\017next_page_token\030\002 \001(\t\"#\n\016GetSinkR" - + "equest\022\021\n\tsink_name\030\001 \001(\t\"m\n\021CreateSinkR" - + "equest\022\016\n\006parent\030\001 \001(\t\022(\n\004sink\030\002 \001(\0132\032.g" - + "oogle.logging.v2.LogSink\022\036\n\026unique_write" - + "r_identity\030\003 \001(\010\"\241\001\n\021UpdateSinkRequest\022\021" - + "\n\tsink_name\030\001 \001(\t\022(\n\004sink\030\002 \001(\0132\032.google" - + ".logging.v2.LogSink\022\036\n\026unique_writer_ide" - + "ntity\030\003 \001(\010\022/\n\013update_mask\030\004 \001(\0132\032.googl" - + "e.protobuf.FieldMask\"&\n\021DeleteSinkReques" - + "t\022\021\n\tsink_name\030\001 \001(\t\"\265\001\n\014LogExclusion\022\014\n" - + "\004name\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022\016\n\006filt" - + "er\030\003 \001(\t\022\020\n\010disabled\030\004 \001(\010\022/\n\013create_tim" - + "e\030\005 \001(\0132\032.google.protobuf.Timestamp\022/\n\013u" - + "pdate_time\030\006 \001(\0132\032.google.protobuf.Times" - + "tamp\"N\n\025ListExclusionsRequest\022\016\n\006parent\030" - + "\001 \001(\t\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\003" - + " \001(\005\"f\n\026ListExclusionsResponse\0223\n\nexclus" - + "ions\030\001 \003(\0132\037.google.logging.v2.LogExclus" - + "ion\022\027\n\017next_page_token\030\002 \001(\t\"#\n\023GetExclu" - + "sionRequest\022\014\n\004name\030\001 \001(\t\"\\\n\026CreateExclu" - + "sionRequest\022\016\n\006parent\030\001 \001(\t\0222\n\texclusion" - + "\030\002 \001(\0132\037.google.logging.v2.LogExclusion\"" - + "\213\001\n\026UpdateExclusionRequest\022\014\n\004name\030\001 \001(\t" - + "\0222\n\texclusion\030\002 \001(\0132\037.google.logging.v2." - + "LogExclusion\022/\n\013update_mask\030\003 \001(\0132\032.goog" - + "le.protobuf.FieldMask\"&\n\026DeleteExclusion" - + "Request\022\014\n\004name\030\001 \001(\t2\366\032\n\017ConfigServiceV" - + "2\022\207\002\n\tListSinks\022#.google.logging.v2.List" - + "SinksRequest\032$.google.logging.v2.ListSin" - + "ksResponse\"\256\001\202\323\344\223\002\247\001\022\026/v2/{parent=*/*}/s" - + "inksZ\037\022\035/v2/{parent=projects/*}/sinksZ$\022" - + "\"/v2/{parent=organizations/*}/sinksZ\036\022\034/" - + "v2/{parent=folders/*}/sinksZ&\022$/v2/{pare" - + "nt=billingAccounts/*}/sinks\022\222\002\n\007GetSink\022" - + "!.google.logging.v2.GetSinkRequest\032\032.goo" - + "gle.logging.v2.LogSink\"\307\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/*}\022\235\002\n\nCreateSink\022" - + "$.google.logging.v2.CreateSinkRequest\032\032." - + "google.logging.v2.LogSink\"\314\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/{par" - + "ent=folders/*}/sinks:\004sinkZ,\"$/v2/{paren" - + "t=billingAccounts/*}/sinks:\004sink\022\361\003\n\nUpd" - + "ateSink\022$.google.logging.v2.UpdateSinkRe" - + "quest\032\032.google.logging.v2.LogSink\"\240\003\202\323\344\223" - + "\002\231\003\032\033/v2/{sink_name=*/*/sinks/*}:\004sinkZ*" - + "\032\"/v2/{sink_name=projects/*/sinks/*}:\004si" - + "nkZ/\032\'/v2/{sink_name=organizations/*/sin" - + "ks/*}:\004sinkZ)\032!/v2/{sink_name=folders/*/" - + "sinks/*}:\004sinkZ1\032)/v2/{sink_name=billing" - + "Accounts/*/sinks/*}:\004sinkZ*2\"/v2/{sink_n" - + "ame=projects/*/sinks/*}:\004sinkZ/2\'/v2/{si" - + "nk_name=organizations/*/sinks/*}:\004sinkZ)" - + "2!/v2/{sink_name=folders/*/sinks/*}:\004sin" - + "kZ12)/v2/{sink_name=billingAccounts/*/si" - + "nks/*}:\004sink\022\224\002\n\nDeleteSink\022$.google.log" - + "ging.v2.DeleteSinkRequest\032\026.google.proto" - + "buf.Empty\"\307\001\202\323\344\223\002\300\001*\033/v2/{sink_name=*/*/" - + "sinks/*}Z$*\"/v2/{sink_name=projects/*/si" - + "nks/*}Z)*\'/v2/{sink_name=organizations/*" - + "/sinks/*}Z#*!/v2/{sink_name=folders/*/si" - + "nks/*}Z+*)/v2/{sink_name=billingAccounts" - + "/*/sinks/*}\022\257\002\n\016ListExclusions\022(.google." - + "logging.v2.ListExclusionsRequest\032).googl" - + "e.logging.v2.ListExclusionsResponse\"\307\001\202\323" - + "\344\223\002\300\001\022\033/v2/{parent=*/*}/exclusionsZ$\022\"/v" - + "2/{parent=projects/*}/exclusionsZ)\022\'/v2/" - + "{parent=organizations/*}/exclusionsZ#\022!/" - + "v2/{parent=folders/*}/exclusionsZ+\022)/v2/" - + "{parent=billingAccounts/*}/exclusions\022\241\002" - + "\n\014GetExclusion\022&.google.logging.v2.GetEx" - + "clusionRequest\032\037.google.logging.v2.LogEx" - + "clusion\"\307\001\202\323\344\223\002\300\001\022\033/v2/{name=*/*/exclusi" - + "ons/*}Z$\022\"/v2/{name=projects/*/exclusion" - + "s/*}Z)\022\'/v2/{name=organizations/*/exclus" - + "ions/*}Z#\022!/v2/{name=folders/*/exclusion" - + "s/*}Z+\022)/v2/{name=billingAccounts/*/excl" - + "usions/*}\022\336\002\n\017CreateExclusion\022).google.l" - + "ogging.v2.CreateExclusionRequest\032\037.googl" - + "e.logging.v2.LogExclusion\"\376\001\202\323\344\223\002\367\001\"\033/v2" - + "/{parent=*/*}/exclusions:\texclusionZ/\"\"/" - + "v2/{parent=projects/*}/exclusions:\texclu" - + "sionZ4\"\'/v2/{parent=organizations/*}/exc" - + "lusions:\texclusionZ.\"!/v2/{parent=folder" - + "s/*}/exclusions:\texclusionZ6\")/v2/{paren" - + "t=billingAccounts/*}/exclusions:\texclusi" - + "on\022\336\002\n\017UpdateExclusion\022).google.logging." - + "v2.UpdateExclusionRequest\032\037.google.loggi" - + "ng.v2.LogExclusion\"\376\001\202\323\344\223\002\367\0012\033/v2/{name=" - + "*/*/exclusions/*}:\texclusionZ/2\"/v2/{nam" - + "e=projects/*/exclusions/*}:\texclusionZ42" - + "\'/v2/{name=organizations/*/exclusions/*}" - + ":\texclusionZ.2!/v2/{name=folders/*/exclu" - + "sions/*}:\texclusionZ62)/v2/{name=billing" - + "Accounts/*/exclusions/*}:\texclusion\022\236\002\n\017" - + "DeleteExclusion\022).google.logging.v2.Dele" - + "teExclusionRequest\032\026.google.protobuf.Emp" - + "ty\"\307\001\202\323\344\223\002\300\001*\033/v2/{name=*/*/exclusions/*" - + "}Z$*\"/v2/{name=projects/*/exclusions/*}Z" - + ")*\'/v2/{name=organizations/*/exclusions/" - + "*}Z#*!/v2/{name=folders/*/exclusions/*}Z" - + "+*)/v2/{name=billingAccounts/*/exclusion" - + "s/*}\032\337\001\312A\026logging.googleapis.com\322A\302\001http" - + "s://www.googleapis.com/auth/cloud-platfo" - + "rm,https://www.googleapis.com/auth/cloud" - + "-platform.read-only,https://www.googleap" - + "is.com/auth/logging.admin,https://www.go" - + "ogleapis.com/auth/logging.readB\236\001\n\025com.g" - + "oogle.logging.v2B\022LoggingConfigProtoP\001Z8" - + "google.golang.org/genproto/googleapis/lo" - + "gging/v2;logging\370\001\001\252\002\027Google.Cloud.Loggi" - + "ng.V2\312\002\027Google\\Cloud\\Logging\\V2b\006proto3" + + "\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\"\215\006\n\007LogSink\022\014\n\004na" + + "me\030\001 \001(\t\022\033\n\013destination\030\003 \001(\tB\006\372A\003\n\001*\022\016\n" + + "\006filter\030\005 \001(\t\022\023\n\013description\030\022 \001(\t\022\020\n\010di" + + "sabled\030\023 \001(\010\022K\n\025output_version_format\030\006 " + + "\001(\0162(.google.logging.v2.LogSink.VersionF" + + "ormatB\002\030\001\022\034\n\017writer_identity\030\010 \001(\tB\003\340A\003\022" + + "\030\n\020include_children\030\t \001(\010\022>\n\020bigquery_op" + + "tions\030\014 \001(\0132\".google.logging.v2.BigQuery" + + "OptionsH\000\0224\n\013create_time\030\r \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\003\0224\n\013update_time\030\016" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0222\n" + + "\nstart_time\030\n \001(\0132\032.google.protobuf.Time" + + "stampB\002\030\001\0220\n\010end_time\030\013 \001(\0132\032.google.pro" + + "tobuf.TimestampB\002\030\001\"?\n\rVersionFormat\022\036\n\032" + + "VERSION_FORMAT_UNSPECIFIED\020\000\022\006\n\002V2\020\001\022\006\n\002" + + "V1\020\002:\274\001\352A\270\001\n\033logging.googleapis.com/Sink" + + "\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\"b\n\017BigQueryOptions\022\036\n\026use_partiti" + + "oned_tables\030\001 \001(\010\022/\n\"uses_timestamp_colu" + + "mn_partitioning\030\003 \001(\010B\003\340A\003\"n\n\020ListSinksR" + + "equest\0223\n\006parent\030\001 \001(\tB#\340A\002\372A\035\022\033logging." + + "googleapis.com/Sink\022\022\n\npage_token\030\002 \001(\t\022" + + "\021\n\tpage_size\030\003 \001(\005\"W\n\021ListSinksResponse\022" + + ")\n\005sinks\030\001 \003(\0132\032.google.logging.v2.LogSi" + + "nk\022\027\n\017next_page_token\030\002 \001(\t\"H\n\016GetSinkRe" + + "quest\0226\n\tsink_name\030\001 \001(\tB#\340A\002\372A\035\n\033loggin" + + "g.googleapis.com/Sink\"\227\001\n\021CreateSinkRequ" + + "est\0223\n\006parent\030\001 \001(\tB#\340A\002\372A\035\022\033logging.goo" + + "gleapis.com/Sink\022-\n\004sink\030\002 \001(\0132\032.google." + + "logging.v2.LogSinkB\003\340A\002\022\036\n\026unique_writer" + + "_identity\030\003 \001(\010\"\313\001\n\021UpdateSinkRequest\0226\n" + + "\tsink_name\030\001 \001(\tB#\340A\002\372A\035\n\033logging.google" + + "apis.com/Sink\022-\n\004sink\030\002 \001(\0132\032.google.log" + + "ging.v2.LogSinkB\003\340A\002\022\036\n\026unique_writer_id" + + "entity\030\003 \001(\010\022/\n\013update_mask\030\004 \001(\0132\032.goog" + + "le.protobuf.FieldMask\"K\n\021DeleteSinkReque" + + "st\0226\n\tsink_name\030\001 \001(\tB#\340A\002\372A\035\n\033logging.g" + + "oogleapis.com/Sink\"\241\003\n\014LogExclusion\022\014\n\004n" + + "ame\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022\016\n\006filter" + + "\030\003 \001(\t\022\020\n\010disabled\030\004 \001(\010\022/\n\013create_time\030" + + "\005 \001(\0132\032.google.protobuf.Timestamp\022/\n\013upd" + + "ate_time\030\006 \001(\0132\032.google.protobuf.Timesta" + + "mp:\351\001\352A\345\001\n logging.googleapis.com/Exclus" + + "ion\022)projects/{project}/exclusions/{excl" + + "usion}\0223organizations/{organization}/exc" + + "lusions/{exclusion}\022\'folders/{folder}/ex" + + "clusions/{exclusion}\0228billingAccounts/{b" + + "illing_account}/exclusions/{exclusion}\"x" + + "\n\025ListExclusionsRequest\0228\n\006parent\030\001 \001(\tB" + + "(\340A\002\372A\"\022 logging.googleapis.com/Exclusio" + + "n\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005" + + "\"f\n\026ListExclusionsResponse\0223\n\nexclusions" + + "\030\001 \003(\0132\037.google.logging.v2.LogExclusion\022" + + "\027\n\017next_page_token\030\002 \001(\t\"M\n\023GetExclusion" + + "Request\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n logging.g" + + "oogleapis.com/Exclusion\"\206\001\n\026CreateExclus" + + "ionRequest\0228\n\006parent\030\001 \001(\tB(\340A\002\372A\"\022 logg" + + "ing.googleapis.com/Exclusion\0222\n\texclusio" + + "n\030\002 \001(\0132\037.google.logging.v2.LogExclusion" + + "\"\277\001\n\026UpdateExclusionRequest\0226\n\004name\030\001 \001(" + + "\tB(\340A\002\372A\"\n logging.googleapis.com/Exclus" + + "ion\0227\n\texclusion\030\002 \001(\0132\037.google.logging." + + "v2.LogExclusionB\003\340A\002\0224\n\013update_mask\030\003 \001(" + + "\0132\032.google.protobuf.FieldMaskB\003\340A\002\"P\n\026De" + + "leteExclusionRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372" + + "A\"\n logging.googleapis.com/Exclusion\"&\n\026" + + "GetCmekSettingsRequest\022\014\n\004name\030\001 \001(\t\"\222\001\n" + + "\031UpdateCmekSettingsRequest\022\014\n\004name\030\001 \001(\t" + + "\0226\n\rcmek_settings\030\002 \001(\0132\037.google.logging" + + ".v2.CmekSettings\022/\n\013update_mask\030\003 \001(\0132\032." + + "google.protobuf.FieldMask\"N\n\014CmekSetting" + + "s\022\014\n\004name\030\001 \001(\t\022\024\n\014kms_key_name\030\002 \001(\t\022\032\n" + + "\022service_account_id\030\003 \001(\t2\236\037\n\017ConfigServ" + + "iceV2\022\220\002\n\tListSinks\022#.google.logging.v2." + + "ListSinksRequest\032$.google.logging.v2.Lis" + + "tSinksResponse\"\267\001\202\323\344\223\002\247\001\022\026/v2/{parent=*/" + + "*}/sinksZ\037\022\035/v2/{parent=projects/*}/sink" + + "sZ$\022\"/v2/{parent=organizations/*}/sinksZ" + + "\036\022\034/v2/{parent=folders/*}/sinksZ&\022$/v2/{" + + "parent=billingAccounts/*}/sinks\332A\006parent" + + "\022\236\002\n\007GetSink\022!.google.logging.v2.GetSink" + + "Request\032\032.google.logging.v2.LogSink\"\323\001\202\323" + + "\344\223\002\300\001\022\033/v2/{sink_name=*/*/sinks/*}Z$\022\"/v" + + "2/{sink_name=projects/*/sinks/*}Z)\022\'/v2/" + + "{sink_name=organizations/*/sinks/*}Z#\022!/" + + "v2/{sink_name=folders/*/sinks/*}Z+\022)/v2/" + + "{sink_name=billingAccounts/*/sinks/*}\332A\t" + + "sink_name\022\253\002\n\nCreateSink\022$.google.loggin" + + "g.v2.CreateSinkRequest\032\032.google.logging." + + "v2.LogSink\"\332\001\202\323\344\223\002\305\001\"\026/v2/{parent=*/*}/s" + + "inks:\004sinkZ%\"\035/v2/{parent=projects/*}/si" + + "nks:\004sinkZ*\"\"/v2/{parent=organizations/*" + + "}/sinks:\004sinkZ$\"\034/v2/{parent=folders/*}/" + + "sinks:\004sinkZ,\"$/v2/{parent=billingAccoun" + + "ts/*}/sinks:\004sink\332A\013parent,sink\022\237\004\n\nUpda" + + "teSink\022$.google.logging.v2.UpdateSinkReq" + + "uest\032\032.google.logging.v2.LogSink\"\316\003\202\323\344\223\002" + + "\231\003\032\033/v2/{sink_name=*/*/sinks/*}:\004sinkZ*\032" + + "\"/v2/{sink_name=projects/*/sinks/*}:\004sin" + + "kZ/\032\'/v2/{sink_name=organizations/*/sink" + + "s/*}:\004sinkZ)\032!/v2/{sink_name=folders/*/s" + + "inks/*}:\004sinkZ1\032)/v2/{sink_name=billingA" + + "ccounts/*/sinks/*}:\004sinkZ*2\"/v2/{sink_na" + + "me=projects/*/sinks/*}:\004sinkZ/2\'/v2/{sin" + + "k_name=organizations/*/sinks/*}:\004sinkZ)2" + + "!/v2/{sink_name=folders/*/sinks/*}:\004sink" + + "Z12)/v2/{sink_name=billingAccounts/*/sin" + + "ks/*}:\004sink\332A\032sink_name,sink,update_mask" + + "\332A\016sink_name,sink\022\240\002\n\nDeleteSink\022$.googl" + + "e.logging.v2.DeleteSinkRequest\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=organizati" + + "ons/*/sinks/*}Z#*!/v2/{sink_name=folders" + + "/*/sinks/*}Z+*)/v2/{sink_name=billingAcc" + + "ounts/*/sinks/*}\332A\tsink_name\022\270\002\n\016ListExc" + + "lusions\022(.google.logging.v2.ListExclusio" + + "nsRequest\032).google.logging.v2.ListExclus" + + "ionsResponse\"\320\001\202\323\344\223\002\300\001\022\033/v2/{parent=*/*}" + + "/exclusionsZ$\022\"/v2/{parent=projects/*}/e" + + "xclusionsZ)\022\'/v2/{parent=organizations/*" + + "}/exclusionsZ#\022!/v2/{parent=folders/*}/e" + + "xclusionsZ+\022)/v2/{parent=billingAccounts" + + "/*}/exclusions\332A\006parent\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/*/exclusions/*}Z)\022\'/v2/{n" + + "ame=organizations/*/exclusions/*}Z#\022!/v2" + + "/{name=folders/*/exclusions/*}Z+\022)/v2/{n" + + "ame=billingAccounts/*/exclusions/*}\332A\004na" + + "me\022\361\002\n\017CreateExclusion\022).google.logging." + + "v2.CreateExclusionRequest\032\037.google.loggi" + + "ng.v2.LogExclusion\"\221\002\202\323\344\223\002\367\001\"\033/v2/{paren" + + "t=*/*}/exclusions:\texclusionZ/\"\"/v2/{par" + + "ent=projects/*}/exclusions:\texclusionZ4\"" + + "\'/v2/{parent=organizations/*}/exclusions" + + ":\texclusionZ.\"!/v2/{parent=folders/*}/ex" + + "clusions:\texclusionZ6\")/v2/{parent=billi" + + "ngAccounts/*}/exclusions:\texclusion\332A\020pa" + + "rent,exclusion\022\373\002\n\017UpdateExclusion\022).goo" + + "gle.logging.v2.UpdateExclusionRequest\032\037." + + "google.logging.v2.LogExclusion\"\233\002\202\323\344\223\002\367\001" + + "2\033/v2/{name=*/*/exclusions/*}:\texclusion" + + "Z/2\"/v2/{name=projects/*/exclusions/*}:\t" + + "exclusionZ42\'/v2/{name=organizations/*/e" + + "xclusions/*}:\texclusionZ.2!/v2/{name=fol" + + "ders/*/exclusions/*}:\texclusionZ62)/v2/{" + + "name=billingAccounts/*/exclusions/*}:\tex" + + "clusion\332A\032name,exclusion,update_mask\022\245\002\n" + + "\017DeleteExclusion\022).google.logging.v2.Del" + + "eteExclusionRequest\032\026.google.protobuf.Em" + + "pty\"\316\001\202\323\344\223\002\300\001*\033/v2/{name=*/*/exclusions/" + + "*}Z$*\"/v2/{name=projects/*/exclusions/*}" + + "Z)*\'/v2/{name=organizations/*/exclusions" + + "/*}Z#*!/v2/{name=folders/*/exclusions/*}" + + "Z+*)/v2/{name=billingAccounts/*/exclusio" + + "ns/*}\332A\004name\022\255\001\n\017GetCmekSettings\022).googl" + + "e.logging.v2.GetCmekSettingsRequest\032\037.go" + + "ogle.logging.v2.CmekSettings\"N\202\323\344\223\002H\022\033/v" + + "2/{name=*/*}/cmekSettingsZ)\022\'/v2/{name=o" + + "rganizations/*}/cmekSettings\022\321\001\n\022UpdateC" + + "mekSettings\022,.google.logging.v2.UpdateCm" + + "ekSettingsRequest\032\037.google.logging.v2.Cm" + + "ekSettings\"l\202\323\344\223\002f2\033/v2/{name=*/*}/cmekS" + + "ettings:\rcmek_settingsZ82\'/v2/{name=orga" + + "nizations/*}/cmekSettings:\rcmek_settings" + + "\032\337\001\312A\026logging.googleapis.com\322A\302\001https://" + + "www.googleapis.com/auth/cloud-platform,h" + + "ttps://www.googleapis.com/auth/cloud-pla" + + "tform.read-only,https://www.googleapis.c" + + "om/auth/logging.admin,https://www.google" + + "apis.com/auth/logging.readB\236\001\n\025com.googl" + + "e.logging.v2B\022LoggingConfigProtoP\001Z8goog" + + "le.golang.org/genproto/googleapis/loggin" + + "g/v2;logging\370\001\001\252\002\027Google.Cloud.Logging.V" + + "2\312\002\027Google\\Cloud\\Logging\\V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.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(), - com.google.api.ClientProto.getDescriptor(), }); internal_static_google_logging_v2_LogSink_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_google_logging_v2_LogSink_fieldAccessorTable = @@ -257,6 +317,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Destination", "Filter", + "Description", + "Disabled", "OutputVersionFormat", "WriterIdentity", "IncludeChildren", @@ -273,7 +335,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_logging_v2_BigQueryOptions_descriptor, new java.lang.String[] { - "UsePartitionedTables", + "UsePartitionedTables", "UsesTimestampColumnPartitioning", }); internal_static_google_logging_v2_ListSinksRequest_descriptor = getDescriptor().getMessageTypes().get(2); @@ -379,19 +441,49 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", }); + internal_static_google_logging_v2_GetCmekSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_logging_v2_GetCmekSettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_GetCmekSettingsRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_logging_v2_UpdateCmekSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_logging_v2_UpdateCmekSettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_UpdateCmekSettingsRequest_descriptor, + new java.lang.String[] { + "Name", "CmekSettings", "UpdateMask", + }); + internal_static_google_logging_v2_CmekSettings_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_logging_v2_CmekSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_logging_v2_CmekSettings_descriptor, + new java.lang.String[] { + "Name", "KmsKeyName", "ServiceAccountId", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.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 f74915962..e468d1412 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,78 +69,93 @@ 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\035google/api/distrib" - + "ution.proto\032\027google/api/metric.proto\032\033go" - + "ogle/protobuf/empty.proto\032 google/protob" - + "uf/field_mask.proto\032\037google/protobuf/tim" - + "estamp.proto\032\034google/api/annotations.pro" - + "to\032\027google/api/client.proto\"\223\004\n\tLogMetri" - + "c\022\014\n\004name\030\001 \001(\t\022\023\n\013description\030\002 \001(\t\022\016\n\006" - + "filter\030\003 \001(\t\0227\n\021metric_descriptor\030\005 \001(\0132" - + "\034.google.api.MetricDescriptor\022\027\n\017value_e" - + "xtractor\030\006 \001(\t\022K\n\020label_extractors\030\007 \003(\013" - + "21.google.logging.v2.LogMetric.LabelExtr" - + "actorsEntry\022>\n\016bucket_options\030\010 \001(\0132&.go" - + "ogle.api.Distribution.BucketOptions\022/\n\013c" - + "reate_time\030\t \001(\0132\032.google.protobuf.Times" - + "tamp\022/\n\013update_time\030\n \001(\0132\032.google.proto" - + "buf.Timestamp\022<\n\007version\030\004 \001(\0162\'.google." - + "logging.v2.LogMetric.ApiVersionB\002\030\001\0326\n\024L" - + "abelExtractorsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" - + "e\030\002 \001(\t:\0028\001\"\034\n\nApiVersion\022\006\n\002V2\020\000\022\006\n\002V1\020" - + "\001\"N\n\025ListLogMetricsRequest\022\016\n\006parent\030\001 \001" - + "(\t\022\022\n\npage_token\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(" - + "\005\"`\n\026ListLogMetricsResponse\022-\n\007metrics\030\001" - + " \003(\0132\034.google.logging.v2.LogMetric\022\027\n\017ne" - + "xt_page_token\030\002 \001(\t\"*\n\023GetLogMetricReque" - + "st\022\023\n\013metric_name\030\001 \001(\t\"V\n\026CreateLogMetr" - + "icRequest\022\016\n\006parent\030\001 \001(\t\022,\n\006metric\030\002 \001(" - + "\0132\034.google.logging.v2.LogMetric\"[\n\026Updat" - + "eLogMetricRequest\022\023\n\013metric_name\030\001 \001(\t\022," - + "\n\006metric\030\002 \001(\0132\034.google.logging.v2.LogMe" - + "tric\"-\n\026DeleteLogMetricRequest\022\023\n\013metric" - + "_name\030\001 \001(\t2\344\007\n\020MetricsServiceV2\022\216\001\n\016Lis" + + "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\"" + + "\334\004\n\tLogMetric\022\014\n\004name\030\001 \001(\t\022\023\n\013descripti" + + "on\030\002 \001(\t\022\016\n\006filter\030\003 \001(\t\0227\n\021metric_descr" + + "iptor\030\005 \001(\0132\034.google.api.MetricDescripto" + + "r\022\027\n\017value_extractor\030\006 \001(\t\022K\n\020label_extr" + + "actors\030\007 \003(\01321.google.logging.v2.LogMetr" + + "ic.LabelExtractorsEntry\022>\n\016bucket_option" + + "s\030\010 \001(\0132&.google.api.Distribution.Bucket" + + "Options\022/\n\013create_time\030\t \001(\0132\032.google.pr" + + "otobuf.Timestamp\022/\n\013update_time\030\n \001(\0132\032." + + "google.protobuf.Timestamp\022<\n\007version\030\004 \001" + + "(\0162\'.google.logging.v2.LogMetric.ApiVers" + + "ionB\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:G\352AD\n\035logging.googleapis.c" + + "om/Metric\022#projects/{project}/metrics/{m" + + "etric}\"\203\001\n\025ListLogMetricsRequest\022C\n\006pare" + + "nt\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.g" + + "oogleapis.com/Project\022\022\n\npage_token\030\002 \001(" + + "\t\022\021\n\tpage_size\030\003 \001(\005\"`\n\026ListLogMetricsRe" + + "sponse\022-\n\007metrics\030\001 \003(\0132\034.google.logging" + + ".v2.LogMetric\022\027\n\017next_page_token\030\002 \001(\t\"Q" + + "\n\023GetLogMetricRequest\022:\n\013metric_name\030\001 \001" + + "(\tB%\340A\002\372A\037\n\035logging.googleapis.com/Metri" + + "c\"\217\001\n\026CreateLogMetricRequest\022B\n\006parent\030\001" + + " \001(\tB2\340A\002\372A,\n*cloudresourcemanager.googl" + + "eapis.com/Metric\0221\n\006metric\030\002 \001(\0132\034.googl" + + "e.logging.v2.LogMetricB\003\340A\002\"\207\001\n\026UpdateLo" + + "gMetricRequest\022:\n\013metric_name\030\001 \001(\tB%\340A\002" + + "\372A\037\n\035logging.googleapis.com/Metric\0221\n\006me" + + "tric\030\002 \001(\0132\034.google.logging.v2.LogMetric" + + "B\003\340A\002\"T\n\026DeleteLogMetricRequest\022:\n\013metri" + + "c_name\030\001 \001(\tB%\340A\002\372A\037\n\035logging.googleapis" + + ".com/Metric2\256\010\n\020MetricsServiceV2\022\227\001\n\016Lis" + "tLogMetrics\022(.google.logging.v2.ListLogM" + "etricsRequest\032).google.logging.v2.ListLo" - + "gMetricsResponse\"\'\202\323\344\223\002!\022\037/v2/{parent=pr" - + "ojects/*}/metrics\022\204\001\n\014GetLogMetric\022&.goo" - + "gle.logging.v2.GetLogMetricRequest\032\034.goo" - + "gle.logging.v2.LogMetric\".\202\323\344\223\002(\022&/v2/{m" - + "etric_name=projects/*/metrics/*}\022\213\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\022\222\001\n\017UpdateLogMetric\022).goo" - + "gle.logging.v2.UpdateLogMetricRequest\032\034." - + "google.logging.v2.LogMetric\"6\202\323\344\223\0020\032&/v2" - + "/{metric_name=projects/*/metrics/*}:\006met" - + "ric\022\204\001\n\017DeleteLogMetric\022).google.logging" - + ".v2.DeleteLogMetricRequest\032\026.google.prot" - + "obuf.Empty\".\202\323\344\223\002(*&/v2/{metric_name=pro" - + "jects/*/metrics/*}\032\215\002\312A\026logging.googleap" - + "is.com\322A\360\001https://www.googleapis.com/aut" - + "h/cloud-platform,https://www.googleapis." - + "com/auth/cloud-platform.read-only,https:" - + "//www.googleapis.com/auth/logging.admin," - + "https://www.googleapis.com/auth/logging." - + "read,https://www.googleapis.com/auth/log" - + "ging.writeB\237\001\n\025com.google.logging.v2B\023Lo" - + "ggingMetricsProtoP\001Z8google.golang.org/g" - + "enproto/googleapis/logging/v2;logging\370\001\001" - + "\252\002\027Google.Cloud.Logging.V2\312\002\027Google\\Clou" - + "d\\Logging\\V2b\006proto3" + + "gMetricsResponse\"0\202\323\344\223\002!\022\037/v2/{parent=pr" + + "ojects/*}/metrics\332A\006parent\022\222\001\n\014GetLogMet" + + "ric\022&.google.logging.v2.GetLogMetricRequ" + + "est\032\034.google.logging.v2.LogMetric\"<\202\323\344\223\002" + + "(\022&/v2/{metric_name=projects/*/metrics/*" + + "}\332A\013metric_name\022\233\001\n\017CreateLogMetric\022).go" + + "ogle.logging.v2.CreateLogMetricRequest\032\034" + + ".google.logging.v2.LogMetric\"?\202\323\344\223\002)\"\037/v" + + "2/{parent=projects/*}/metrics:\006metric\332A\r" + + "parent,metric\022\247\001\n\017UpdateLogMetric\022).goog" + + "le.logging.v2.UpdateLogMetricRequest\032\034.g" + + "oogle.logging.v2.LogMetric\"K\202\323\344\223\0020\032&/v2/" + + "{metric_name=projects/*/metrics/*}:\006metr" + + "ic\332A\022metric_name,metric\022\222\001\n\017DeleteLogMet" + + "ric\022).google.logging.v2.DeleteLogMetricR" + + "equest\032\026.google.protobuf.Empty\"<\202\323\344\223\002(*&" + + "/v2/{metric_name=projects/*/metrics/*}\332A" + + "\013metric_name\032\215\002\312A\026logging.googleapis.com" + + "\322A\360\001https://www.googleapis.com/auth/clou" + + "d-platform,https://www.googleapis.com/au" + + "th/cloud-platform.read-only,https://www." + + "googleapis.com/auth/logging.admin,https:" + + "//www.googleapis.com/auth/logging.read,h" + + "ttps://www.googleapis.com/auth/logging.w" + + "riteB\237\001\n\025com.google.logging.v2B\023LoggingM" + + "etricsProtoP\001Z8google.golang.org/genprot" + + "o/googleapis/logging/v2;logging\370\001\001\252\002\027Goo" + + "gle.Cloud.Logging.V2\312\002\027Google\\Cloud\\Logg" + + "ing\\V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ClientProto.getDescriptor(), com.google.api.DistributionProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.MetricProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), }); internal_static_google_logging_v2_LogMetric_descriptor = getDescriptor().getMessageTypes().get(0); @@ -218,17 +233,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); + com.google.api.ClientProto.getDescriptor(); com.google.api.DistributionProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.MetricProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.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 55e11118f..02be70b7f 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 @@ -85,86 +85,95 @@ 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#google/api/monitored_resou" - + "rce.proto\032!google/logging/v2/log_entry.p" - + "roto\032&google/logging/v2/logging_config.p" - + "roto\032\036google/protobuf/duration.proto\032\033go" - + "ogle/protobuf/empty.proto\032\037google/protob" - + "uf/timestamp.proto\032\027google/rpc/status.pr" - + "oto\032\034google/api/annotations.proto\032\027googl" - + "e/api/client.proto\"$\n\020DeleteLogRequest\022\020" - + "\n\010log_name\030\001 \001(\t\"\251\002\n\026WriteLogEntriesRequ" - + "est\022\020\n\010log_name\030\001 \001(\t\022/\n\010resource\030\002 \001(\0132" - + "\035.google.api.MonitoredResource\022E\n\006labels" - + "\030\003 \003(\01325.google.logging.v2.WriteLogEntri" - + "esRequest.LabelsEntry\022,\n\007entries\030\004 \003(\0132\033" - + ".google.logging.v2.LogEntry\022\027\n\017partial_s" - + "uccess\030\005 \001(\010\022\017\n\007dry_run\030\006 \001(\010\032-\n\013LabelsE" - + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\031\n\027" - + "WriteLogEntriesResponse\"\310\001\n\034WriteLogEntr" - + "iesPartialErrors\022]\n\020log_entry_errors\030\001 \003" - + "(\0132C.google.logging.v2.WriteLogEntriesPa" - + "rtialErrors.LogEntryErrorsEntry\032I\n\023LogEn" - + "tryErrorsEntry\022\013\n\003key\030\001 \001(\005\022!\n\005value\030\002 \001" - + "(\0132\022.google.rpc.Status:\0028\001\"\221\001\n\025ListLogEn" - + "triesRequest\022\027\n\013project_ids\030\001 \003(\tB\002\030\001\022\026\n" - + "\016resource_names\030\010 \003(\t\022\016\n\006filter\030\002 \001(\t\022\020\n" - + "\010order_by\030\003 \001(\t\022\021\n\tpage_size\030\004 \001(\005\022\022\n\npa" - + "ge_token\030\005 \001(\t\"_\n\026ListLogEntriesResponse" - + "\022,\n\007entries\030\001 \003(\0132\033.google.logging.v2.Lo" - + "gEntry\022\027\n\017next_page_token\030\002 \001(\t\"P\n\'ListM" - + "onitoredResourceDescriptorsRequest\022\021\n\tpa" - + "ge_size\030\001 \001(\005\022\022\n\npage_token\030\002 \001(\t\"\212\001\n(Li" - + "stMonitoredResourceDescriptorsResponse\022E" - + "\n\024resource_descriptors\030\001 \003(\0132\'.google.ap" - + "i.MonitoredResourceDescriptor\022\027\n\017next_pa" - + "ge_token\030\002 \001(\t\"H\n\017ListLogsRequest\022\016\n\006par" - + "ent\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_tok" - + "en\030\003 \001(\t\">\n\020ListLogsResponse\022\021\n\tlog_name" - + "s\030\003 \003(\t\022\027\n\017next_page_token\030\002 \001(\t2\205\n\n\020Log" - + "gingServiceV2\022\210\002\n\tDeleteLog\022#.google.log" - + "ging.v2.DeleteLogRequest\032\026.google.protob" - + "uf.Empty\"\275\001\202\323\344\223\002\266\001* /v2/{log_name=projec" - + "ts/*/logs/*}Z\033*\031/v2/{log_name=*/*/logs/*" - + "}Z\'*%/v2/{log_name=organizations/*/logs/" - + "*}Z!*\037/v2/{log_name=folders/*/logs/*}Z)*" - + "\'/v2/{log_name=billingAccounts/*/logs/*}" - + "\022\206\001\n\017WriteLogEntries\022).google.logging.v2" - + ".WriteLogEntriesRequest\032*.google.logging" - + ".v2.WriteLogEntriesResponse\"\034\202\323\344\223\002\026\"\021/v2" - + "/entries:write:\001*\022\202\001\n\016ListLogEntries\022(.g" - + "oogle.logging.v2.ListLogEntriesRequest\032)" - + ".google.logging.v2.ListLogEntriesRespons" - + "e\"\033\202\323\344\223\002\025\"\020/v2/entries:list:\001*\022\305\001\n ListM" - + "onitoredResourceDescriptors\022:.google.log" - + "ging.v2.ListMonitoredResourceDescriptors" - + "Request\032;.google.logging.v2.ListMonitore" - + "dResourceDescriptorsResponse\"(\202\323\344\223\002\"\022 /v" - + "2/monitoredResourceDescriptors\022\377\001\n\010ListL" - + "ogs\022\".google.logging.v2.ListLogsRequest\032" - + "#.google.logging.v2.ListLogsResponse\"\251\001\202" - + "\323\344\223\002\242\001\022\025/v2/{parent=*/*}/logsZ\036\022\034/v2/{pa" - + "rent=projects/*}/logsZ#\022!/v2/{parent=org" - + "anizations/*}/logsZ\035\022\033/v2/{parent=folder" - + "s/*}/logsZ%\022#/v2/{parent=billingAccounts" - + "/*}/logs\032\215\002\312A\026logging.googleapis.com\322A\360\001" - + "https://www.googleapis.com/auth/cloud-pl" - + "atform,https://www.googleapis.com/auth/c" - + "loud-platform.read-only,https://www.goog" - + "leapis.com/auth/logging.admin,https://ww" - + "w.googleapis.com/auth/logging.read,https" - + "://www.googleapis.com/auth/logging.write" - + "B\230\001\n\025com.google.logging.v2B\014LoggingProto" - + "P\001Z8google.golang.org/genproto/googleapi" - + "s/logging/v2;logging\370\001\001\252\002\027Google.Cloud.L" - + "ogging.V2\312\002\027Google\\Cloud\\Logging\\V2b\006pro" - + "to3" + + "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\037google/p" + + "rotobuf/timestamp.proto\032\027google/rpc/stat" + + "us.proto\032\034google/api/annotations.proto\"H" + + "\n\020DeleteLogRequest\0224\n\010log_name\030\001 \001(\tB\"\340A" + + "\002\372A\034\022\032logging.googleapis.com/Log\"\317\002\n\026Wri" + + "teLogEntriesRequest\0221\n\010log_name\030\001 \001(\tB\037\372" + + "A\034\n\032logging.googleapis.com/Log\022/\n\010resour" + + "ce\030\002 \001(\0132\035.google.api.MonitoredResource\022" + + "E\n\006labels\030\003 \003(\01325.google.logging.v2.Writ" + + "eLogEntriesRequest.LabelsEntry\0221\n\007entrie" + + "s\030\004 \003(\0132\033.google.logging.v2.LogEntryB\003\340A" + + "\002\022\027\n\017partial_success\030\005 \001(\010\022\017\n\007dry_run\030\006 " + + "\001(\010\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + + "\030\002 \001(\t:\0028\001\"\031\n\027WriteLogEntriesResponse\"\310\001" + + "\n\034WriteLogEntriesPartialErrors\022]\n\020log_en" + + "try_errors\030\001 \003(\0132C.google.logging.v2.Wri" + + "teLogEntriesPartialErrors.LogEntryErrors" + + "Entry\032I\n\023LogEntryErrorsEntry\022\013\n\003key\030\001 \001(" + + "\005\022!\n\005value\030\002 \001(\0132\022.google.rpc.Status:\0028\001" + + "\"\265\001\n\025ListLogEntriesRequest\022\027\n\013project_id" + + "s\030\001 \003(\tB\002\030\001\022:\n\016resource_names\030\010 \003(\tB\"\340A\002" + + "\372A\034\022\032logging.googleapis.com/Log\022\016\n\006filte" + + "r\030\002 \001(\t\022\020\n\010order_by\030\003 \001(\t\022\021\n\tpage_size\030\004" + + " \001(\005\022\022\n\npage_token\030\005 \001(\t\"_\n\026ListLogEntri" + + "esResponse\022,\n\007entries\030\001 \003(\0132\033.google.log" + + "ging.v2.LogEntry\022\027\n\017next_page_token\030\002 \001(" + + "\t\"P\n\'ListMonitoredResourceDescriptorsReq" + + "uest\022\021\n\tpage_size\030\001 \001(\005\022\022\n\npage_token\030\002 " + + "\001(\t\"\212\001\n(ListMonitoredResourceDescriptors" + + "Response\022E\n\024resource_descriptors\030\001 \003(\0132\'" + + ".google.api.MonitoredResourceDescriptor\022" + + "\027\n\017next_page_token\030\002 \001(\t\"i\n\017ListLogsRequ" + + "est\022/\n\006parent\030\001 \001(\tB\037\372A\034\022\032logging.google" + + "apis.com/Log\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_" + + "token\030\003 \001(\t\">\n\020ListLogsResponse\022\021\n\tlog_n" + + "ames\030\003 \003(\t\022\027\n\017next_page_token\030\002 \001(\t2\274\n\n\020" + + "LoggingServiceV2\022\223\002\n\tDeleteLog\022#.google." + + "logging.v2.DeleteLogRequest\032\026.google.pro" + + "tobuf.Empty\"\310\001\202\323\344\223\002\266\001* /v2/{log_name=pro" + + "jects/*/logs/*}Z\033*\031/v2/{log_name=*/*/log" + + "s/*}Z\'*%/v2/{log_name=organizations/*/lo" + + "gs/*}Z!*\037/v2/{log_name=folders/*/logs/*}" + + "Z)*\'/v2/{log_name=billingAccounts/*/logs" + + "/*}\332A\010log_name\022\251\001\n\017WriteLogEntries\022).goo" + + "gle.logging.v2.WriteLogEntriesRequest\032*." + + "google.logging.v2.WriteLogEntriesRespons" + + "e\"?\202\323\344\223\002\026\"\021/v2/entries:write:\001*\332A log_na" + + "me,resource,labels,entries\022\202\001\n\016ListLogEn" + + "tries\022(.google.logging.v2.ListLogEntries" + + "Request\032).google.logging.v2.ListLogEntri" + + "esResponse\"\033\202\323\344\223\002\025\"\020/v2/entries:list:\001*\022" + + "\305\001\n ListMonitoredResourceDescriptors\022:.g" + + "oogle.logging.v2.ListMonitoredResourceDe" + + "scriptorsRequest\032;.google.logging.v2.Lis" + + "tMonitoredResourceDescriptorsResponse\"(\202" + + "\323\344\223\002\"\022 /v2/monitoredResourceDescriptors\022" + + "\210\002\n\010ListLogs\022\".google.logging.v2.ListLog" + + "sRequest\032#.google.logging.v2.ListLogsRes" + + "ponse\"\262\001\202\323\344\223\002\242\001\022\025/v2/{parent=*/*}/logsZ\036" + + "\022\034/v2/{parent=projects/*}/logsZ#\022!/v2/{p" + + "arent=organizations/*}/logsZ\035\022\033/v2/{pare" + + "nt=folders/*}/logsZ%\022#/v2/{parent=billin" + + "gAccounts/*}/logs\332A\006parent\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\230\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\\V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.MonitoredResourceProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), com.google.logging.v2.LogEntryProto.getDescriptor(), com.google.logging.v2.LoggingConfigProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), @@ -172,7 +181,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.TimestampProto.getDescriptor(), com.google.rpc.StatusProto.getDescriptor(), com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), }); internal_static_google_logging_v2_DeleteLogRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -273,11 +281,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.MonitoredResourceProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); com.google.logging.v2.LogEntryProto.getDescriptor(); com.google.logging.v2.LoggingConfigProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); @@ -285,7 +299,6 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.TimestampProto.getDescriptor(); com.google.rpc.StatusProto.getDescriptor(); com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) 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 new file mode 100644 index 000000000..16dc3014d --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequest.java @@ -0,0 +1,1309 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/v2/logging_config.proto + +package com.google.logging.v2; + +/** + * + * + *
+ * The parameters to
+ * [UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings].
+ * See [Enabling CMEK for Logs Router](/logging/docs/routing/managed-encryption)
+ * for more information.
+ * 
+ * + * Protobuf type {@code google.logging.v2.UpdateCmekSettingsRequest} + */ +public final class UpdateCmekSettingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.logging.v2.UpdateCmekSettingsRequest) + UpdateCmekSettingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateCmekSettingsRequest.newBuilder() to construct. + private UpdateCmekSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateCmekSettingsRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateCmekSettingsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateCmekSettingsRequest( + 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.CmekSettings.Builder subBuilder = null; + if (cmekSettings_ != null) { + subBuilder = cmekSettings_.toBuilder(); + } + cmekSettings_ = + input.readMessage(com.google.logging.v2.CmekSettings.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cmekSettings_); + cmekSettings_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + 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_UpdateCmekSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_UpdateCmekSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.logging.v2.UpdateCmekSettingsRequest.class, + com.google.logging.v2.UpdateCmekSettingsRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The resource name for the CMEK settings to update.
+   *     "projects/[PROJECT_ID]/cmekSettings"
+   *     "organizations/[ORGANIZATION_ID]/cmekSettings"
+   *     "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
+   *     "folders/[FOLDER_ID]/cmekSettings"
+   * Example: `"organizations/12345/cmekSettings"`.
+   * Note: CMEK for the Logs Router can currently only be configured for GCP
+   * organizations. Once configured, it applies to all projects and folders in
+   * the GCP organization.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + 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 CMEK settings to update.
+   *     "projects/[PROJECT_ID]/cmekSettings"
+   *     "organizations/[ORGANIZATION_ID]/cmekSettings"
+   *     "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
+   *     "folders/[FOLDER_ID]/cmekSettings"
+   * Example: `"organizations/12345/cmekSettings"`.
+   * Note: CMEK for the Logs Router can currently only be configured for GCP
+   * organizations. Once configured, it applies to all projects and folders in
+   * the GCP organization.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + 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 CMEK_SETTINGS_FIELD_NUMBER = 2; + private com.google.logging.v2.CmekSettings cmekSettings_; + /** + * + * + *
+   * Required. The CMEK settings to update.
+   * See [Enabling CMEK for Logs
+   * Router](/logging/docs/routing/managed-encryption) for more information.
+   * 
+ * + * .google.logging.v2.CmekSettings cmek_settings = 2; + * + * @return Whether the cmekSettings field is set. + */ + public boolean hasCmekSettings() { + return cmekSettings_ != null; + } + /** + * + * + *
+   * Required. The CMEK settings to update.
+   * See [Enabling CMEK for Logs
+   * Router](/logging/docs/routing/managed-encryption) for more information.
+   * 
+ * + * .google.logging.v2.CmekSettings cmek_settings = 2; + * + * @return The cmekSettings. + */ + public com.google.logging.v2.CmekSettings getCmekSettings() { + return cmekSettings_ == null + ? com.google.logging.v2.CmekSettings.getDefaultInstance() + : cmekSettings_; + } + /** + * + * + *
+   * Required. The CMEK settings to update.
+   * See [Enabling CMEK for Logs
+   * Router](/logging/docs/routing/managed-encryption) for more information.
+   * 
+ * + * .google.logging.v2.CmekSettings cmek_settings = 2; + */ + public com.google.logging.v2.CmekSettingsOrBuilder getCmekSettingsOrBuilder() { + return getCmekSettings(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 3; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Optional. Field mask identifying which fields from `cmek_settings` should
+   * be updated. A field will be overwritten if and only if it is in the update
+   * mask. Output only fields cannot be updated.
+   * See [FieldMask][google.protobuf.FieldMask] for more information.
+   * Example: `"updateMask=kmsKeyName"`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 3; + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Optional. Field mask identifying which fields from `cmek_settings` should
+   * be updated. A field will be overwritten if and only if it is in the update
+   * mask. Output only fields cannot be updated.
+   * See [FieldMask][google.protobuf.FieldMask] for more information.
+   * Example: `"updateMask=kmsKeyName"`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 3; + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Optional. Field mask identifying which fields from `cmek_settings` should
+   * be updated. A field will be overwritten if and only if it is in the update
+   * mask. Output only fields cannot be updated.
+   * See [FieldMask][google.protobuf.FieldMask] for more information.
+   * Example: `"updateMask=kmsKeyName"`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 3; + */ + 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (cmekSettings_ != null) { + output.writeMessage(2, getCmekSettings()); + } + 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 (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (cmekSettings_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCmekSettings()); + } + 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.UpdateCmekSettingsRequest)) { + return super.equals(obj); + } + com.google.logging.v2.UpdateCmekSettingsRequest other = + (com.google.logging.v2.UpdateCmekSettingsRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCmekSettings() != other.hasCmekSettings()) return false; + if (hasCmekSettings()) { + if (!getCmekSettings().equals(other.getCmekSettings())) 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 (hasCmekSettings()) { + hash = (37 * hash) + CMEK_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getCmekSettings().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.UpdateCmekSettingsRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.UpdateCmekSettingsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.UpdateCmekSettingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.UpdateCmekSettingsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.UpdateCmekSettingsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.logging.v2.UpdateCmekSettingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.logging.v2.UpdateCmekSettingsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.logging.v2.UpdateCmekSettingsRequest 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.UpdateCmekSettingsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.logging.v2.UpdateCmekSettingsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.logging.v2.UpdateCmekSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.logging.v2.UpdateCmekSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.logging.v2.UpdateCmekSettingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The parameters to
+   * [UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings].
+   * See [Enabling CMEK for Logs Router](/logging/docs/routing/managed-encryption)
+   * for more information.
+   * 
+ * + * Protobuf type {@code google.logging.v2.UpdateCmekSettingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.logging.v2.UpdateCmekSettingsRequest) + com.google.logging.v2.UpdateCmekSettingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_UpdateCmekSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.logging.v2.LoggingConfigProto + .internal_static_google_logging_v2_UpdateCmekSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.logging.v2.UpdateCmekSettingsRequest.class, + com.google.logging.v2.UpdateCmekSettingsRequest.Builder.class); + } + + // Construct using com.google.logging.v2.UpdateCmekSettingsRequest.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 (cmekSettingsBuilder_ == null) { + cmekSettings_ = null; + } else { + cmekSettings_ = null; + cmekSettingsBuilder_ = 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_UpdateCmekSettingsRequest_descriptor; + } + + @java.lang.Override + public com.google.logging.v2.UpdateCmekSettingsRequest getDefaultInstanceForType() { + return com.google.logging.v2.UpdateCmekSettingsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.logging.v2.UpdateCmekSettingsRequest build() { + com.google.logging.v2.UpdateCmekSettingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.logging.v2.UpdateCmekSettingsRequest buildPartial() { + com.google.logging.v2.UpdateCmekSettingsRequest result = + new com.google.logging.v2.UpdateCmekSettingsRequest(this); + result.name_ = name_; + if (cmekSettingsBuilder_ == null) { + result.cmekSettings_ = cmekSettings_; + } else { + result.cmekSettings_ = cmekSettingsBuilder_.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.UpdateCmekSettingsRequest) { + return mergeFrom((com.google.logging.v2.UpdateCmekSettingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.logging.v2.UpdateCmekSettingsRequest other) { + if (other == com.google.logging.v2.UpdateCmekSettingsRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasCmekSettings()) { + mergeCmekSettings(other.getCmekSettings()); + } + 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.UpdateCmekSettingsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.logging.v2.UpdateCmekSettingsRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name for the CMEK settings to update.
+     *     "projects/[PROJECT_ID]/cmekSettings"
+     *     "organizations/[ORGANIZATION_ID]/cmekSettings"
+     *     "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
+     *     "folders/[FOLDER_ID]/cmekSettings"
+     * Example: `"organizations/12345/cmekSettings"`.
+     * Note: CMEK for the Logs Router can currently only be configured for GCP
+     * organizations. Once configured, it applies to all projects and folders in
+     * the GCP organization.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name for the CMEK settings to update.
+     *     "projects/[PROJECT_ID]/cmekSettings"
+     *     "organizations/[ORGANIZATION_ID]/cmekSettings"
+     *     "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
+     *     "folders/[FOLDER_ID]/cmekSettings"
+     * Example: `"organizations/12345/cmekSettings"`.
+     * Note: CMEK for the Logs Router can currently only be configured for GCP
+     * organizations. Once configured, it applies to all projects and folders in
+     * the GCP organization.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name for the CMEK settings to update.
+     *     "projects/[PROJECT_ID]/cmekSettings"
+     *     "organizations/[ORGANIZATION_ID]/cmekSettings"
+     *     "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
+     *     "folders/[FOLDER_ID]/cmekSettings"
+     * Example: `"organizations/12345/cmekSettings"`.
+     * Note: CMEK for the Logs Router can currently only be configured for GCP
+     * organizations. Once configured, it applies to all projects and folders in
+     * the GCP organization.
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name for the CMEK settings to update.
+     *     "projects/[PROJECT_ID]/cmekSettings"
+     *     "organizations/[ORGANIZATION_ID]/cmekSettings"
+     *     "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
+     *     "folders/[FOLDER_ID]/cmekSettings"
+     * Example: `"organizations/12345/cmekSettings"`.
+     * Note: CMEK for the Logs Router can currently only be configured for GCP
+     * organizations. Once configured, it applies to all projects and folders in
+     * the GCP organization.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name for the CMEK settings to update.
+     *     "projects/[PROJECT_ID]/cmekSettings"
+     *     "organizations/[ORGANIZATION_ID]/cmekSettings"
+     *     "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
+     *     "folders/[FOLDER_ID]/cmekSettings"
+     * Example: `"organizations/12345/cmekSettings"`.
+     * Note: CMEK for the Logs Router can currently only be configured for GCP
+     * organizations. Once configured, it applies to all projects and folders in
+     * the GCP organization.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private 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_; + /** + * + * + *
+     * Required. The CMEK settings to update.
+     * See [Enabling CMEK for Logs
+     * Router](/logging/docs/routing/managed-encryption) for more information.
+     * 
+ * + * .google.logging.v2.CmekSettings cmek_settings = 2; + * + * @return Whether the cmekSettings field is set. + */ + public boolean hasCmekSettings() { + return cmekSettingsBuilder_ != null || cmekSettings_ != null; + } + /** + * + * + *
+     * Required. The CMEK settings to update.
+     * See [Enabling CMEK for Logs
+     * Router](/logging/docs/routing/managed-encryption) for more information.
+     * 
+ * + * .google.logging.v2.CmekSettings cmek_settings = 2; + * + * @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(); + } + } + /** + * + * + *
+     * Required. The CMEK settings to update.
+     * See [Enabling CMEK for Logs
+     * Router](/logging/docs/routing/managed-encryption) for more information.
+     * 
+ * + * .google.logging.v2.CmekSettings cmek_settings = 2; + */ + 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; + } + /** + * + * + *
+     * Required. The CMEK settings to update.
+     * See [Enabling CMEK for Logs
+     * Router](/logging/docs/routing/managed-encryption) for more information.
+     * 
+ * + * .google.logging.v2.CmekSettings cmek_settings = 2; + */ + public Builder setCmekSettings(com.google.logging.v2.CmekSettings.Builder builderForValue) { + if (cmekSettingsBuilder_ == null) { + cmekSettings_ = builderForValue.build(); + onChanged(); + } else { + cmekSettingsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The CMEK settings to update.
+     * See [Enabling CMEK for Logs
+     * Router](/logging/docs/routing/managed-encryption) for more information.
+     * 
+ * + * .google.logging.v2.CmekSettings cmek_settings = 2; + */ + 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; + } + /** + * + * + *
+     * Required. The CMEK settings to update.
+     * See [Enabling CMEK for Logs
+     * Router](/logging/docs/routing/managed-encryption) for more information.
+     * 
+ * + * .google.logging.v2.CmekSettings cmek_settings = 2; + */ + public Builder clearCmekSettings() { + if (cmekSettingsBuilder_ == null) { + cmekSettings_ = null; + onChanged(); + } else { + cmekSettings_ = null; + cmekSettingsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The CMEK settings to update.
+     * See [Enabling CMEK for Logs
+     * Router](/logging/docs/routing/managed-encryption) for more information.
+     * 
+ * + * .google.logging.v2.CmekSettings cmek_settings = 2; + */ + public com.google.logging.v2.CmekSettings.Builder getCmekSettingsBuilder() { + + onChanged(); + return getCmekSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The CMEK settings to update.
+     * See [Enabling CMEK for Logs
+     * Router](/logging/docs/routing/managed-encryption) for more information.
+     * 
+ * + * .google.logging.v2.CmekSettings cmek_settings = 2; + */ + public com.google.logging.v2.CmekSettingsOrBuilder getCmekSettingsOrBuilder() { + if (cmekSettingsBuilder_ != null) { + return cmekSettingsBuilder_.getMessageOrBuilder(); + } else { + return cmekSettings_ == null + ? com.google.logging.v2.CmekSettings.getDefaultInstance() + : cmekSettings_; + } + } + /** + * + * + *
+     * Required. The CMEK settings to update.
+     * See [Enabling CMEK for Logs
+     * Router](/logging/docs/routing/managed-encryption) for more information.
+     * 
+ * + * .google.logging.v2.CmekSettings cmek_settings = 2; + */ + 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_; + } + + 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 `cmek_settings` should
+     * be updated. A field will be overwritten if and only if it is in the update
+     * mask. Output only fields cannot be updated.
+     * See [FieldMask][google.protobuf.FieldMask] for more information.
+     * Example: `"updateMask=kmsKeyName"`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3; + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * Optional. Field mask identifying which fields from `cmek_settings` should
+     * be updated. A field will be overwritten if and only if it is in the update
+     * mask. Output only fields cannot be updated.
+     * See [FieldMask][google.protobuf.FieldMask] for more information.
+     * Example: `"updateMask=kmsKeyName"`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3; + * + * @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 `cmek_settings` should
+     * be updated. A field will be overwritten if and only if it is in the update
+     * mask. Output only fields cannot be updated.
+     * See [FieldMask][google.protobuf.FieldMask] for more information.
+     * Example: `"updateMask=kmsKeyName"`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3; + */ + 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 `cmek_settings` should
+     * be updated. A field will be overwritten if and only if it is in the update
+     * mask. Output only fields cannot be updated.
+     * See [FieldMask][google.protobuf.FieldMask] for more information.
+     * Example: `"updateMask=kmsKeyName"`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3; + */ + 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 `cmek_settings` should
+     * be updated. A field will be overwritten if and only if it is in the update
+     * mask. Output only fields cannot be updated.
+     * See [FieldMask][google.protobuf.FieldMask] for more information.
+     * Example: `"updateMask=kmsKeyName"`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3; + */ + 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 `cmek_settings` should
+     * be updated. A field will be overwritten if and only if it is in the update
+     * mask. Output only fields cannot be updated.
+     * See [FieldMask][google.protobuf.FieldMask] for more information.
+     * Example: `"updateMask=kmsKeyName"`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. Field mask identifying which fields from `cmek_settings` should
+     * be updated. A field will be overwritten if and only if it is in the update
+     * mask. Output only fields cannot be updated.
+     * See [FieldMask][google.protobuf.FieldMask] for more information.
+     * Example: `"updateMask=kmsKeyName"`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Field mask identifying which fields from `cmek_settings` should
+     * be updated. A field will be overwritten if and only if it is in the update
+     * mask. Output only fields cannot be updated.
+     * See [FieldMask][google.protobuf.FieldMask] for more information.
+     * Example: `"updateMask=kmsKeyName"`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3; + */ + 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 `cmek_settings` should
+     * be updated. A field will be overwritten if and only if it is in the update
+     * mask. Output only fields cannot be updated.
+     * See [FieldMask][google.protobuf.FieldMask] for more information.
+     * Example: `"updateMask=kmsKeyName"`
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 3; + */ + 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.UpdateCmekSettingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.logging.v2.UpdateCmekSettingsRequest) + private static final com.google.logging.v2.UpdateCmekSettingsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.logging.v2.UpdateCmekSettingsRequest(); + } + + public static com.google.logging.v2.UpdateCmekSettingsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCmekSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateCmekSettingsRequest(input, extensionRegistry); + } + }; + + 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.UpdateCmekSettingsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} 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 new file mode 100644 index 000000000..e591e670b --- /dev/null +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateCmekSettingsRequestOrBuilder.java @@ -0,0 +1,154 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/logging/v2/logging_config.proto + +package com.google.logging.v2; + +public interface UpdateCmekSettingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.logging.v2.UpdateCmekSettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name for the CMEK settings to update.
+   *     "projects/[PROJECT_ID]/cmekSettings"
+   *     "organizations/[ORGANIZATION_ID]/cmekSettings"
+   *     "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
+   *     "folders/[FOLDER_ID]/cmekSettings"
+   * Example: `"organizations/12345/cmekSettings"`.
+   * Note: CMEK for the Logs Router can currently only be configured for GCP
+   * organizations. Once configured, it applies to all projects and folders in
+   * the GCP organization.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name for the CMEK settings to update.
+   *     "projects/[PROJECT_ID]/cmekSettings"
+   *     "organizations/[ORGANIZATION_ID]/cmekSettings"
+   *     "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
+   *     "folders/[FOLDER_ID]/cmekSettings"
+   * Example: `"organizations/12345/cmekSettings"`.
+   * Note: CMEK for the Logs Router can currently only be configured for GCP
+   * organizations. Once configured, it applies to all projects and folders in
+   * the GCP organization.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The CMEK settings to update.
+   * See [Enabling CMEK for Logs
+   * Router](/logging/docs/routing/managed-encryption) for more information.
+   * 
+ * + * .google.logging.v2.CmekSettings cmek_settings = 2; + * + * @return Whether the cmekSettings field is set. + */ + boolean hasCmekSettings(); + /** + * + * + *
+   * Required. The CMEK settings to update.
+   * See [Enabling CMEK for Logs
+   * Router](/logging/docs/routing/managed-encryption) for more information.
+   * 
+ * + * .google.logging.v2.CmekSettings cmek_settings = 2; + * + * @return The cmekSettings. + */ + com.google.logging.v2.CmekSettings getCmekSettings(); + /** + * + * + *
+   * Required. The CMEK settings to update.
+   * See [Enabling CMEK for Logs
+   * Router](/logging/docs/routing/managed-encryption) for more information.
+   * 
+ * + * .google.logging.v2.CmekSettings cmek_settings = 2; + */ + com.google.logging.v2.CmekSettingsOrBuilder getCmekSettingsOrBuilder(); + + /** + * + * + *
+   * Optional. Field mask identifying which fields from `cmek_settings` should
+   * be updated. A field will be overwritten if and only if it is in the update
+   * mask. Output only fields cannot be updated.
+   * See [FieldMask][google.protobuf.FieldMask] for more information.
+   * Example: `"updateMask=kmsKeyName"`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 3; + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Optional. Field mask identifying which fields from `cmek_settings` should
+   * be updated. A field will be overwritten if and only if it is in the update
+   * mask. Output only fields cannot be updated.
+   * See [FieldMask][google.protobuf.FieldMask] for more information.
+   * Example: `"updateMask=kmsKeyName"`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 3; + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Optional. Field mask identifying which fields from `cmek_settings` should
+   * be updated. A field will be overwritten if and only if it is in the update
+   * mask. Output only fields cannot be updated.
+   * See [FieldMask][google.protobuf.FieldMask] for more information.
+   * Example: `"updateMask=kmsKeyName"`
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 3; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} 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 39b63eb63..e128c84b6 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 @@ -155,7 +155,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`. * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -182,7 +184,9 @@ public java.lang.String getName() { * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`. * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -208,7 +212,8 @@ public com.google.protobuf.ByteString getNameBytes() { * in `update_mask` are relevant. * * - * .google.logging.v2.LogExclusion exclusion = 2; + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the exclusion field is set. */ @@ -223,7 +228,8 @@ public boolean hasExclusion() { * in `update_mask` are relevant. * * - * .google.logging.v2.LogExclusion exclusion = 2; + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The exclusion. */ @@ -240,7 +246,8 @@ public com.google.logging.v2.LogExclusion getExclusion() { * in `update_mask` are relevant. * * - * .google.logging.v2.LogExclusion exclusion = 2; + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.logging.v2.LogExclusionOrBuilder getExclusionOrBuilder() { return getExclusion(); @@ -260,7 +267,8 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionOrBuilder() { * specify an `update_mask` of `"filter,description"`. * * - * .google.protobuf.FieldMask update_mask = 3; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the updateMask field is set. */ @@ -279,7 +287,8 @@ public boolean hasUpdateMask() { * specify an `update_mask` of `"filter,description"`. * * - * .google.protobuf.FieldMask update_mask = 3; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The updateMask. */ @@ -298,7 +307,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * specify an `update_mask` of `"filter,description"`. * * - * .google.protobuf.FieldMask update_mask = 3; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { return getUpdateMask(); @@ -689,7 +699,9 @@ public Builder mergeFrom( * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`. * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -716,7 +728,9 @@ public java.lang.String getName() { * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`. * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -743,7 +757,9 @@ public com.google.protobuf.ByteString getNameBytes() { * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`. * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The name to set. * @return This builder for chaining. @@ -769,7 +785,9 @@ public Builder setName(java.lang.String value) { * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`. * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -791,7 +809,9 @@ public Builder clearName() { * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`. * * - * string name = 1; + * + * 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. @@ -821,7 +841,9 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * in `update_mask` are relevant. * * - * .google.logging.v2.LogExclusion exclusion = 2; + * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the exclusion field is set. */ @@ -836,7 +858,9 @@ public boolean hasExclusion() { * in `update_mask` are relevant. * * - * .google.logging.v2.LogExclusion exclusion = 2; + * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The exclusion. */ @@ -857,7 +881,9 @@ public com.google.logging.v2.LogExclusion getExclusion() { * in `update_mask` are relevant. * * - * .google.logging.v2.LogExclusion exclusion = 2; + * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setExclusion(com.google.logging.v2.LogExclusion value) { if (exclusionBuilder_ == null) { @@ -880,7 +906,9 @@ public Builder setExclusion(com.google.logging.v2.LogExclusion value) { * in `update_mask` are relevant. * * - * .google.logging.v2.LogExclusion exclusion = 2; + * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setExclusion(com.google.logging.v2.LogExclusion.Builder builderForValue) { if (exclusionBuilder_ == null) { @@ -900,7 +928,9 @@ public Builder setExclusion(com.google.logging.v2.LogExclusion.Builder builderFo * in `update_mask` are relevant. * * - * .google.logging.v2.LogExclusion exclusion = 2; + * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeExclusion(com.google.logging.v2.LogExclusion value) { if (exclusionBuilder_ == null) { @@ -927,7 +957,9 @@ public Builder mergeExclusion(com.google.logging.v2.LogExclusion value) { * in `update_mask` are relevant. * * - * .google.logging.v2.LogExclusion exclusion = 2; + * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearExclusion() { if (exclusionBuilder_ == null) { @@ -948,7 +980,9 @@ public Builder clearExclusion() { * in `update_mask` are relevant. * * - * .google.logging.v2.LogExclusion exclusion = 2; + * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.logging.v2.LogExclusion.Builder getExclusionBuilder() { @@ -963,7 +997,9 @@ public com.google.logging.v2.LogExclusion.Builder getExclusionBuilder() { * in `update_mask` are relevant. * * - * .google.logging.v2.LogExclusion exclusion = 2; + * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.logging.v2.LogExclusionOrBuilder getExclusionOrBuilder() { if (exclusionBuilder_ != null) { @@ -982,7 +1018,9 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionOrBuilder() { * in `update_mask` are relevant. * * - * .google.logging.v2.LogExclusion exclusion = 2; + * + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.logging.v2.LogExclusion, @@ -1019,7 +1057,8 @@ public com.google.logging.v2.LogExclusionOrBuilder getExclusionOrBuilder() { * specify an `update_mask` of `"filter,description"`. * * - * .google.protobuf.FieldMask update_mask = 3; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the updateMask field is set. */ @@ -1038,7 +1077,8 @@ public boolean hasUpdateMask() { * specify an `update_mask` of `"filter,description"`. * * - * .google.protobuf.FieldMask update_mask = 3; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The updateMask. */ @@ -1063,7 +1103,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * specify an `update_mask` of `"filter,description"`. * * - * .google.protobuf.FieldMask update_mask = 3; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -1090,7 +1131,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * specify an `update_mask` of `"filter,description"`. * * - * .google.protobuf.FieldMask update_mask = 3; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { @@ -1114,7 +1156,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * specify an `update_mask` of `"filter,description"`. * * - * .google.protobuf.FieldMask update_mask = 3; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -1143,7 +1186,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * specify an `update_mask` of `"filter,description"`. * * - * .google.protobuf.FieldMask update_mask = 3; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -1168,7 +1212,8 @@ public Builder clearUpdateMask() { * specify an `update_mask` of `"filter,description"`. * * - * .google.protobuf.FieldMask update_mask = 3; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { @@ -1187,7 +1232,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * specify an `update_mask` of `"filter,description"`. * * - * .google.protobuf.FieldMask update_mask = 3; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { @@ -1210,7 +1256,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * specify an `update_mask` of `"filter,description"`. * * - * .google.protobuf.FieldMask update_mask = 3; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.FieldMask, 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 85da51f8c..b2e175355 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 @@ -35,7 +35,9 @@ public interface UpdateExclusionRequestOrBuilder * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`. * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The name. */ @@ -52,7 +54,9 @@ public interface UpdateExclusionRequestOrBuilder * Example: `"projects/my-project-id/exclusions/my-exclusion-id"`. * * - * string name = 1; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for name. */ @@ -66,7 +70,8 @@ public interface UpdateExclusionRequestOrBuilder * in `update_mask` are relevant. * * - * .google.logging.v2.LogExclusion exclusion = 2; + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the exclusion field is set. */ @@ -79,7 +84,8 @@ public interface UpdateExclusionRequestOrBuilder * in `update_mask` are relevant. * * - * .google.logging.v2.LogExclusion exclusion = 2; + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The exclusion. */ @@ -92,7 +98,8 @@ public interface UpdateExclusionRequestOrBuilder * in `update_mask` are relevant. * * - * .google.logging.v2.LogExclusion exclusion = 2; + * .google.logging.v2.LogExclusion exclusion = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.logging.v2.LogExclusionOrBuilder getExclusionOrBuilder(); @@ -108,7 +115,8 @@ public interface UpdateExclusionRequestOrBuilder * specify an `update_mask` of `"filter,description"`. * * - * .google.protobuf.FieldMask update_mask = 3; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the updateMask field is set. */ @@ -125,7 +133,8 @@ public interface UpdateExclusionRequestOrBuilder * specify an `update_mask` of `"filter,description"`. * * - * .google.protobuf.FieldMask update_mask = 3; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The updateMask. */ @@ -142,7 +151,8 @@ public interface UpdateExclusionRequestOrBuilder * specify an `update_mask` of `"filter,description"`. * * - * .google.protobuf.FieldMask update_mask = 3; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateLogMetricRequest.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateLogMetricRequest.java index 727056a49..b096aabe2 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateLogMetricRequest.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateLogMetricRequest.java @@ -132,14 +132,16 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The resource name of the metric to update:
+   * Required. The resource name of the metric to update:
    *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
    * The updated metric must be provided in the request and it's
    * `name` field must be the same as `[METRIC_ID]` If the metric
    * does not exist in `[PROJECT_ID]`, then a new metric is created.
    * 
* - * string metric_name = 1; + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The metricName. */ @@ -158,14 +160,16 @@ public java.lang.String getMetricName() { * * *
-   * The resource name of the metric to update:
+   * Required. The resource name of the metric to update:
    *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
    * The updated metric must be provided in the request and it's
    * `name` field must be the same as `[METRIC_ID]` If the metric
    * does not exist in `[PROJECT_ID]`, then a new metric is created.
    * 
* - * string metric_name = 1; + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for metricName. */ @@ -187,10 +191,10 @@ public com.google.protobuf.ByteString getMetricNameBytes() { * * *
-   * The updated metric.
+   * Required. The updated metric.
    * 
* - * .google.logging.v2.LogMetric metric = 2; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return Whether the metric field is set. */ @@ -201,10 +205,10 @@ public boolean hasMetric() { * * *
-   * The updated metric.
+   * Required. The updated metric.
    * 
* - * .google.logging.v2.LogMetric metric = 2; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The metric. */ @@ -215,10 +219,10 @@ public com.google.logging.v2.LogMetric getMetric() { * * *
-   * The updated metric.
+   * Required. The updated metric.
    * 
* - * .google.logging.v2.LogMetric metric = 2; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.logging.v2.LogMetricOrBuilder getMetricOrBuilder() { return getMetric(); @@ -573,14 +577,16 @@ public Builder mergeFrom( * * *
-     * The resource name of the metric to update:
+     * Required. The resource name of the metric to update:
      *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
      * The updated metric must be provided in the request and it's
      * `name` field must be the same as `[METRIC_ID]` If the metric
      * does not exist in `[PROJECT_ID]`, then a new metric is created.
      * 
* - * string metric_name = 1; + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The metricName. */ @@ -599,14 +605,16 @@ public java.lang.String getMetricName() { * * *
-     * The resource name of the metric to update:
+     * Required. The resource name of the metric to update:
      *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
      * The updated metric must be provided in the request and it's
      * `name` field must be the same as `[METRIC_ID]` If the metric
      * does not exist in `[PROJECT_ID]`, then a new metric is created.
      * 
* - * string metric_name = 1; + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for metricName. */ @@ -625,14 +633,16 @@ public com.google.protobuf.ByteString getMetricNameBytes() { * * *
-     * The resource name of the metric to update:
+     * Required. The resource name of the metric to update:
      *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
      * The updated metric must be provided in the request and it's
      * `name` field must be the same as `[METRIC_ID]` If the metric
      * does not exist in `[PROJECT_ID]`, then a new metric is created.
      * 
* - * string metric_name = 1; + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The metricName to set. * @return This builder for chaining. @@ -650,14 +660,16 @@ public Builder setMetricName(java.lang.String value) { * * *
-     * The resource name of the metric to update:
+     * Required. The resource name of the metric to update:
      *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
      * The updated metric must be provided in the request and it's
      * `name` field must be the same as `[METRIC_ID]` If the metric
      * does not exist in `[PROJECT_ID]`, then a new metric is created.
      * 
* - * string metric_name = 1; + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -671,14 +683,16 @@ public Builder clearMetricName() { * * *
-     * The resource name of the metric to update:
+     * Required. The resource name of the metric to update:
      *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
      * The updated metric must be provided in the request and it's
      * `name` field must be the same as `[METRIC_ID]` If the metric
      * does not exist in `[PROJECT_ID]`, then a new metric is created.
      * 
* - * string metric_name = 1; + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for metricName to set. * @return This builder for chaining. @@ -704,10 +718,11 @@ public Builder setMetricNameBytes(com.google.protobuf.ByteString value) { * * *
-     * The updated metric.
+     * Required. The updated metric.
      * 
* - * .google.logging.v2.LogMetric metric = 2; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return Whether the metric field is set. */ @@ -718,10 +733,11 @@ public boolean hasMetric() { * * *
-     * The updated metric.
+     * Required. The updated metric.
      * 
* - * .google.logging.v2.LogMetric metric = 2; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * * * @return The metric. */ @@ -736,10 +752,11 @@ public com.google.logging.v2.LogMetric getMetric() { * * *
-     * The updated metric.
+     * Required. The updated metric.
      * 
* - * .google.logging.v2.LogMetric metric = 2; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setMetric(com.google.logging.v2.LogMetric value) { if (metricBuilder_ == null) { @@ -758,10 +775,11 @@ public Builder setMetric(com.google.logging.v2.LogMetric value) { * * *
-     * The updated metric.
+     * Required. The updated metric.
      * 
* - * .google.logging.v2.LogMetric metric = 2; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setMetric(com.google.logging.v2.LogMetric.Builder builderForValue) { if (metricBuilder_ == null) { @@ -777,10 +795,11 @@ public Builder setMetric(com.google.logging.v2.LogMetric.Builder builderForValue * * *
-     * The updated metric.
+     * Required. The updated metric.
      * 
* - * .google.logging.v2.LogMetric metric = 2; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeMetric(com.google.logging.v2.LogMetric value) { if (metricBuilder_ == null) { @@ -801,10 +820,11 @@ public Builder mergeMetric(com.google.logging.v2.LogMetric value) { * * *
-     * The updated metric.
+     * Required. The updated metric.
      * 
* - * .google.logging.v2.LogMetric metric = 2; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearMetric() { if (metricBuilder_ == null) { @@ -821,10 +841,11 @@ public Builder clearMetric() { * * *
-     * The updated metric.
+     * Required. The updated metric.
      * 
* - * .google.logging.v2.LogMetric metric = 2; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.logging.v2.LogMetric.Builder getMetricBuilder() { @@ -835,10 +856,11 @@ public com.google.logging.v2.LogMetric.Builder getMetricBuilder() { * * *
-     * The updated metric.
+     * Required. The updated metric.
      * 
* - * .google.logging.v2.LogMetric metric = 2; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.logging.v2.LogMetricOrBuilder getMetricOrBuilder() { if (metricBuilder_ != null) { @@ -851,10 +873,11 @@ public com.google.logging.v2.LogMetricOrBuilder getMetricOrBuilder() { * * *
-     * The updated metric.
+     * Required. The updated metric.
      * 
* - * .google.logging.v2.LogMetric metric = 2; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.logging.v2.LogMetric, diff --git a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateLogMetricRequestOrBuilder.java b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateLogMetricRequestOrBuilder.java index 91d9ad421..6df9263af 100644 --- a/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateLogMetricRequestOrBuilder.java +++ b/proto-google-cloud-logging-v2/src/main/java/com/google/logging/v2/UpdateLogMetricRequestOrBuilder.java @@ -27,14 +27,16 @@ public interface UpdateLogMetricRequestOrBuilder * * *
-   * The resource name of the metric to update:
+   * Required. The resource name of the metric to update:
    *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
    * The updated metric must be provided in the request and it's
    * `name` field must be the same as `[METRIC_ID]` If the metric
    * does not exist in `[PROJECT_ID]`, then a new metric is created.
    * 
* - * string metric_name = 1; + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The metricName. */ @@ -43,14 +45,16 @@ public interface UpdateLogMetricRequestOrBuilder * * *
-   * The resource name of the metric to update:
+   * Required. The resource name of the metric to update:
    *     "projects/[PROJECT_ID]/metrics/[METRIC_ID]"
    * The updated metric must be provided in the request and it's
    * `name` field must be the same as `[METRIC_ID]` If the metric
    * does not exist in `[PROJECT_ID]`, then a new metric is created.
    * 
* - * string metric_name = 1; + * + * string metric_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for metricName. */ @@ -60,10 +64,10 @@ public interface UpdateLogMetricRequestOrBuilder * * *
-   * The updated metric.
+   * Required. The updated metric.
    * 
* - * .google.logging.v2.LogMetric metric = 2; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return Whether the metric field is set. */ @@ -72,10 +76,10 @@ public interface UpdateLogMetricRequestOrBuilder * * *
-   * The updated metric.
+   * Required. The updated metric.
    * 
* - * .google.logging.v2.LogMetric metric = 2; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The metric. */ @@ -84,10 +88,10 @@ public interface UpdateLogMetricRequestOrBuilder * * *
-   * The updated metric.
+   * Required. The updated metric.
    * 
* - * .google.logging.v2.LogMetric metric = 2; + * .google.logging.v2.LogMetric metric = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.logging.v2.LogMetricOrBuilder getMetricOrBuilder(); } 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 0dcc549b0..07c0de1dd 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 @@ -160,7 +160,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Example: `"projects/my-project-id/sinks/my-sink-id"`. * * - * string sink_name = 1; + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The sinkName. */ @@ -188,7 +190,9 @@ public java.lang.String getSinkName() { * Example: `"projects/my-project-id/sinks/my-sink-id"`. * * - * string sink_name = 1; + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for sinkName. */ @@ -214,7 +218,7 @@ public com.google.protobuf.ByteString getSinkNameBytes() { * as part of `sink_name`. * * - * .google.logging.v2.LogSink sink = 2; + * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return Whether the sink field is set. */ @@ -229,7 +233,7 @@ public boolean hasSink() { * as part of `sink_name`. * * - * .google.logging.v2.LogSink sink = 2; + * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The sink. */ @@ -244,7 +248,7 @@ public com.google.logging.v2.LogSink getSink() { * as part of `sink_name`. * * - * .google.logging.v2.LogSink sink = 2; + * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() { return getSink(); @@ -749,7 +753,9 @@ public Builder mergeFrom( * Example: `"projects/my-project-id/sinks/my-sink-id"`. * * - * string sink_name = 1; + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The sinkName. */ @@ -777,7 +783,9 @@ public java.lang.String getSinkName() { * Example: `"projects/my-project-id/sinks/my-sink-id"`. * * - * string sink_name = 1; + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for sinkName. */ @@ -805,7 +813,9 @@ public com.google.protobuf.ByteString getSinkNameBytes() { * Example: `"projects/my-project-id/sinks/my-sink-id"`. * * - * string sink_name = 1; + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The sinkName to set. * @return This builder for chaining. @@ -832,7 +842,9 @@ public Builder setSinkName(java.lang.String value) { * Example: `"projects/my-project-id/sinks/my-sink-id"`. * * - * string sink_name = 1; + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -855,7 +867,9 @@ public Builder clearSinkName() { * Example: `"projects/my-project-id/sinks/my-sink-id"`. * * - * string sink_name = 1; + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for sinkName to set. * @return This builder for chaining. @@ -885,7 +899,7 @@ public Builder setSinkNameBytes(com.google.protobuf.ByteString value) { * as part of `sink_name`. * * - * .google.logging.v2.LogSink sink = 2; + * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return Whether the sink field is set. */ @@ -900,7 +914,7 @@ public boolean hasSink() { * as part of `sink_name`. * * - * .google.logging.v2.LogSink sink = 2; + * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The sink. */ @@ -919,7 +933,7 @@ public com.google.logging.v2.LogSink getSink() { * as part of `sink_name`. * * - * .google.logging.v2.LogSink sink = 2; + * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSink(com.google.logging.v2.LogSink value) { if (sinkBuilder_ == null) { @@ -942,7 +956,7 @@ public Builder setSink(com.google.logging.v2.LogSink value) { * as part of `sink_name`. * * - * .google.logging.v2.LogSink sink = 2; + * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setSink(com.google.logging.v2.LogSink.Builder builderForValue) { if (sinkBuilder_ == null) { @@ -962,7 +976,7 @@ public Builder setSink(com.google.logging.v2.LogSink.Builder builderForValue) { * as part of `sink_name`. * * - * .google.logging.v2.LogSink sink = 2; + * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeSink(com.google.logging.v2.LogSink value) { if (sinkBuilder_ == null) { @@ -986,7 +1000,7 @@ public Builder mergeSink(com.google.logging.v2.LogSink value) { * as part of `sink_name`. * * - * .google.logging.v2.LogSink sink = 2; + * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearSink() { if (sinkBuilder_ == null) { @@ -1007,7 +1021,7 @@ public Builder clearSink() { * as part of `sink_name`. * * - * .google.logging.v2.LogSink sink = 2; + * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.logging.v2.LogSink.Builder getSinkBuilder() { @@ -1022,7 +1036,7 @@ public com.google.logging.v2.LogSink.Builder getSinkBuilder() { * as part of `sink_name`. * * - * .google.logging.v2.LogSink sink = 2; + * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() { if (sinkBuilder_ != null) { @@ -1039,7 +1053,7 @@ public com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder() { * as part of `sink_name`. * * - * .google.logging.v2.LogSink sink = 2; + * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.logging.v2.LogSink, 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 d22c6ba10..62475f8dc 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 @@ -36,7 +36,9 @@ public interface UpdateSinkRequestOrBuilder * Example: `"projects/my-project-id/sinks/my-sink-id"`. * * - * string sink_name = 1; + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The sinkName. */ @@ -54,7 +56,9 @@ public interface UpdateSinkRequestOrBuilder * Example: `"projects/my-project-id/sinks/my-sink-id"`. * * - * string sink_name = 1; + * + * string sink_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for sinkName. */ @@ -68,7 +72,7 @@ public interface UpdateSinkRequestOrBuilder * as part of `sink_name`. * * - * .google.logging.v2.LogSink sink = 2; + * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return Whether the sink field is set. */ @@ -81,7 +85,7 @@ public interface UpdateSinkRequestOrBuilder * as part of `sink_name`. * * - * .google.logging.v2.LogSink sink = 2; + * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The sink. */ @@ -94,7 +98,7 @@ public interface UpdateSinkRequestOrBuilder * as part of `sink_name`. * * - * .google.logging.v2.LogSink sink = 2; + * .google.logging.v2.LogSink sink = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.logging.v2.LogSinkOrBuilder getSinkOrBuilder(); 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 65653113e..3466a8465 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 @@ -196,7 +196,7 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * <code>logName</code> or in an individual log entry. * * - * string log_name = 1; + * string log_name = 1 [(.google.api.resource_reference) = { ... } * * @return The logName. */ @@ -230,7 +230,7 @@ public java.lang.String getLogName() { * <code>logName</code> or in an individual log entry. * * - * string log_name = 1; + * string log_name = 1 [(.google.api.resource_reference) = { ... } * * @return The bytes for logName. */ @@ -437,7 +437,9 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { * rather than calling this method for each individual log entry. * * - * repeated .google.logging.v2.LogEntry entries = 4; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getEntriesList() { return entries_; @@ -468,7 +470,9 @@ public java.util.List getEntriesList() { * rather than calling this method for each individual log entry. * * - * repeated .google.logging.v2.LogEntry entries = 4; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getEntriesOrBuilderList() { @@ -500,7 +504,9 @@ public java.util.List getEntriesList() { * rather than calling this method for each individual log entry. * * - * repeated .google.logging.v2.LogEntry entries = 4; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getEntriesCount() { return entries_.size(); @@ -531,7 +537,9 @@ public int getEntriesCount() { * rather than calling this method for each individual log entry. * * - * repeated .google.logging.v2.LogEntry entries = 4; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.logging.v2.LogEntry getEntries(int index) { return entries_.get(index); @@ -562,7 +570,9 @@ public com.google.logging.v2.LogEntry getEntries(int index) { * rather than calling this method for each individual log entry. * * - * repeated .google.logging.v2.LogEntry entries = 4; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index) { return entries_.get(index); @@ -1101,7 +1111,7 @@ public Builder mergeFrom( * <code>logName</code> or in an individual log entry. * * - * string log_name = 1; + * string log_name = 1 [(.google.api.resource_reference) = { ... } * * @return The logName. */ @@ -1135,7 +1145,7 @@ public java.lang.String getLogName() { * <code>logName</code> or in an individual log entry. * * - * string log_name = 1; + * string log_name = 1 [(.google.api.resource_reference) = { ... } * * @return The bytes for logName. */ @@ -1169,7 +1179,7 @@ public com.google.protobuf.ByteString getLogNameBytes() { * <code>logName</code> or in an individual log entry. * * - * string log_name = 1; + * string log_name = 1 [(.google.api.resource_reference) = { ... } * * @param value The logName to set. * @return This builder for chaining. @@ -1202,7 +1212,7 @@ public Builder setLogName(java.lang.String value) { * <code>logName</code> or in an individual log entry. * * - * string log_name = 1; + * string log_name = 1 [(.google.api.resource_reference) = { ... } * * @return This builder for chaining. */ @@ -1231,7 +1241,7 @@ public Builder clearLogName() { * <code>logName</code> or in an individual log entry. * * - * string log_name = 1; + * string log_name = 1 [(.google.api.resource_reference) = { ... } * * @param value The bytes for logName to set. * @return This builder for chaining. @@ -1692,7 +1702,9 @@ private void ensureEntriesIsMutable() { * rather than calling this method for each individual log entry. * * - * repeated .google.logging.v2.LogEntry entries = 4; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getEntriesList() { if (entriesBuilder_ == null) { @@ -1727,7 +1739,9 @@ public java.util.List getEntriesList() { * rather than calling this method for each individual log entry. * * - * repeated .google.logging.v2.LogEntry entries = 4; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getEntriesCount() { if (entriesBuilder_ == null) { @@ -1762,7 +1776,9 @@ public int getEntriesCount() { * rather than calling this method for each individual log entry. * * - * repeated .google.logging.v2.LogEntry entries = 4; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.logging.v2.LogEntry getEntries(int index) { if (entriesBuilder_ == null) { @@ -1797,7 +1813,9 @@ public com.google.logging.v2.LogEntry getEntries(int index) { * rather than calling this method for each individual log entry. * * - * repeated .google.logging.v2.LogEntry entries = 4; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setEntries(int index, com.google.logging.v2.LogEntry value) { if (entriesBuilder_ == null) { @@ -1838,7 +1856,9 @@ public Builder setEntries(int index, com.google.logging.v2.LogEntry value) { * rather than calling this method for each individual log entry. * * - * repeated .google.logging.v2.LogEntry entries = 4; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setEntries(int index, com.google.logging.v2.LogEntry.Builder builderForValue) { if (entriesBuilder_ == null) { @@ -1876,7 +1896,9 @@ public Builder setEntries(int index, com.google.logging.v2.LogEntry.Builder buil * rather than calling this method for each individual log entry. * * - * repeated .google.logging.v2.LogEntry entries = 4; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addEntries(com.google.logging.v2.LogEntry value) { if (entriesBuilder_ == null) { @@ -1917,7 +1939,9 @@ public Builder addEntries(com.google.logging.v2.LogEntry value) { * rather than calling this method for each individual log entry. * * - * repeated .google.logging.v2.LogEntry entries = 4; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addEntries(int index, com.google.logging.v2.LogEntry value) { if (entriesBuilder_ == null) { @@ -1958,7 +1982,9 @@ public Builder addEntries(int index, com.google.logging.v2.LogEntry value) { * rather than calling this method for each individual log entry. * * - * repeated .google.logging.v2.LogEntry entries = 4; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addEntries(com.google.logging.v2.LogEntry.Builder builderForValue) { if (entriesBuilder_ == null) { @@ -1996,7 +2022,9 @@ public Builder addEntries(com.google.logging.v2.LogEntry.Builder builderForValue * rather than calling this method for each individual log entry. * * - * repeated .google.logging.v2.LogEntry entries = 4; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addEntries(int index, com.google.logging.v2.LogEntry.Builder builderForValue) { if (entriesBuilder_ == null) { @@ -2034,7 +2062,9 @@ public Builder addEntries(int index, com.google.logging.v2.LogEntry.Builder buil * rather than calling this method for each individual log entry. * * - * repeated .google.logging.v2.LogEntry entries = 4; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllEntries( java.lang.Iterable values) { @@ -2073,7 +2103,9 @@ public Builder addAllEntries( * rather than calling this method for each individual log entry. * * - * repeated .google.logging.v2.LogEntry entries = 4; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearEntries() { if (entriesBuilder_ == null) { @@ -2111,7 +2143,9 @@ public Builder clearEntries() { * rather than calling this method for each individual log entry. * * - * repeated .google.logging.v2.LogEntry entries = 4; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeEntries(int index) { if (entriesBuilder_ == null) { @@ -2149,7 +2183,9 @@ public Builder removeEntries(int index) { * rather than calling this method for each individual log entry. * * - * repeated .google.logging.v2.LogEntry entries = 4; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.logging.v2.LogEntry.Builder getEntriesBuilder(int index) { return getEntriesFieldBuilder().getBuilder(index); @@ -2180,7 +2216,9 @@ public com.google.logging.v2.LogEntry.Builder getEntriesBuilder(int index) { * rather than calling this method for each individual log entry. * * - * repeated .google.logging.v2.LogEntry entries = 4; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index) { if (entriesBuilder_ == null) { @@ -2215,7 +2253,9 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index) { * rather than calling this method for each individual log entry. * * - * repeated .google.logging.v2.LogEntry entries = 4; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getEntriesOrBuilderList() { @@ -2251,7 +2291,9 @@ public com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index) { * rather than calling this method for each individual log entry. * * - * repeated .google.logging.v2.LogEntry entries = 4; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.logging.v2.LogEntry.Builder addEntriesBuilder() { return getEntriesFieldBuilder() @@ -2283,7 +2325,9 @@ public com.google.logging.v2.LogEntry.Builder addEntriesBuilder() { * rather than calling this method for each individual log entry. * * - * repeated .google.logging.v2.LogEntry entries = 4; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.logging.v2.LogEntry.Builder addEntriesBuilder(int index) { return getEntriesFieldBuilder() @@ -2315,7 +2359,9 @@ public com.google.logging.v2.LogEntry.Builder addEntriesBuilder(int index) { * rather than calling this method for each individual log entry. * * - * repeated .google.logging.v2.LogEntry entries = 4; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.List getEntriesBuilderList() { return getEntriesFieldBuilder().getBuilderList(); 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 8edeb31fa..c704aaecc 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 @@ -42,7 +42,7 @@ public interface WriteLogEntriesRequestOrBuilder * <code>logName</code> or in an individual log entry. * * - * string log_name = 1; + * string log_name = 1 [(.google.api.resource_reference) = { ... } * * @return The logName. */ @@ -66,7 +66,7 @@ public interface WriteLogEntriesRequestOrBuilder * <code>logName</code> or in an individual log entry. * * - * string log_name = 1; + * string log_name = 1 [(.google.api.resource_reference) = { ... } * * @return The bytes for logName. */ @@ -217,7 +217,9 @@ public interface WriteLogEntriesRequestOrBuilder * rather than calling this method for each individual log entry. * * - * repeated .google.logging.v2.LogEntry entries = 4; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ java.util.List getEntriesList(); /** @@ -246,7 +248,9 @@ public interface WriteLogEntriesRequestOrBuilder * rather than calling this method for each individual log entry. * * - * repeated .google.logging.v2.LogEntry entries = 4; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.logging.v2.LogEntry getEntries(int index); /** @@ -275,7 +279,9 @@ public interface WriteLogEntriesRequestOrBuilder * rather than calling this method for each individual log entry. * * - * repeated .google.logging.v2.LogEntry entries = 4; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ int getEntriesCount(); /** @@ -304,7 +310,9 @@ public interface WriteLogEntriesRequestOrBuilder * rather than calling this method for each individual log entry. * * - * repeated .google.logging.v2.LogEntry entries = 4; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ java.util.List getEntriesOrBuilderList(); /** @@ -333,7 +341,9 @@ public interface WriteLogEntriesRequestOrBuilder * rather than calling this method for each individual log entry. * * - * repeated .google.logging.v2.LogEntry entries = 4; + * + * repeated .google.logging.v2.LogEntry entries = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.logging.v2.LogEntryOrBuilder getEntriesOrBuilder(int index); 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 f0b037545..3f9c3d51d 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 @@ -18,6 +18,7 @@ syntax = "proto3"; package google.logging.v2; import "google/api/monitored_resource.proto"; +import "google/api/resource.proto"; import "google/logging/type/http_request.proto"; import "google/logging/type/log_severity.proto"; import "google/protobuf/any.proto"; @@ -36,7 +37,17 @@ option php_namespace = "Google\\Cloud\\Logging\\V2"; // An individual entry in a log. // +// message LogEntry { + option (google.api.resource) = { + type: "logging.googleapis.com/Log" + pattern: "projects/{project}/logs/{log}" + pattern: "organizations/{organization}/logs/{log}" + pattern: "folders/{folder}/logs/{log}" + pattern: "billingAccounts/{billing_account}/logs/{log}" + name_field: "log_name" + }; + // Required. The resource name of the log to which this log entry belongs: // // "projects/[PROJECT_ID]/logs/[LOG_ID]" @@ -111,10 +122,15 @@ message LogEntry { // Optional. A unique identifier for the log entry. If you provide a value, // then Logging considers other log entries in the same project, with the same - // `timestamp`, and with the same `insert_id` to be duplicates which can be - // removed. If omitted in new log entries, then Logging assigns its own unique - // identifier. The `insert_id` is also used to order log entries that have the - // same `timestamp` value. + // `timestamp`, and with the same `insert_id` to be duplicates which are + // removed in a single query result. However, there are no guarantees of + // de-duplication in the export of logs. + // + // If the `insert_id` is omitted when writing a log entry, the Logging API + // assigns its own unique identifier in this field. + // + // In queries, the `insert_id` is also used to order log entries that have + // the same `log_name` and `timestamp` values. string insert_id = 4; // Optional. Information about the HTTP request associated with this log 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 fc4217593..415750610 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 @@ -17,7 +17,10 @@ syntax = "proto3"; package google.logging.v2; +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"; @@ -25,7 +28,6 @@ import "google/protobuf/empty.proto"; import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; import "google/api/annotations.proto"; -import "google/api/client.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Logging.V2"; @@ -45,10 +47,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. + // 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. rpc DeleteLog(DeleteLogRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v2/{log_name=projects/*/logs/*}" @@ -65,6 +67,7 @@ service LoggingServiceV2 { delete: "/v2/{log_name=billingAccounts/*/logs/*}" } }; + option (google.api.method_signature) = "log_name"; } // Writes log entries to Logging. This API method is the @@ -79,6 +82,7 @@ service LoggingServiceV2 { post: "/v2/entries:write" body: "*" }; + option (google.api.method_signature) = "log_name,resource,labels,entries"; } // Lists log entries. Use this method to retrieve log entries that originated @@ -116,6 +120,7 @@ service LoggingServiceV2 { get: "/v2/{parent=billingAccounts/*}/logs" } }; + option (google.api.method_signature) = "parent"; } } @@ -133,7 +138,12 @@ message DeleteLogRequest { // `"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`. // For more information about log names, see // [LogEntry][google.logging.v2.LogEntry]. - string log_name = 1; + string log_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "logging.googleapis.com/Log" + } + ]; } // The parameters to WriteLogEntries. @@ -155,7 +165,9 @@ message WriteLogEntriesRequest { // project, organization, billing account, or folder that is receiving // new log entries, whether the resource is specified in // logName or in an individual log entry. - string log_name = 1; + string log_name = 1 [(google.api.resource_reference) = { + type: "logging.googleapis.com/Log" + }]; // Optional. A default monitored resource object that is assigned to all log // entries in `entries` that do not specify a value for `resource`. Example: @@ -196,7 +208,7 @@ message WriteLogEntriesRequest { // [quota limit](/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. - repeated LogEntry entries = 4; + repeated LogEntry entries = 4 [(google.api.field_behavior) = REQUIRED]; // Optional. Whether valid entries should be written even if some other // entries fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any @@ -245,10 +257,15 @@ message ListLogEntriesRequest { // // // Projects listed in the `project_ids` field are added to this list. - repeated string resource_names = 8; + repeated string resource_names = 8 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "logging.googleapis.com/Log" + } + ]; // Optional. A filter that chooses which log entries to return. See [Advanced - // Logs Filters](/logging/docs/view/advanced_filters). Only log entries that + // Logs Queries](/logging/docs/view/advanced-queries). Only log entries that // match the filter are returned. An empty filter matches all log entries in // the resources listed in `resource_names`. Referencing a parent resource // that is not listed in `resource_names` will cause the filter to return no @@ -329,7 +346,9 @@ message ListLogsRequest { // "organizations/[ORGANIZATION_ID]" // "billingAccounts/[BILLING_ACCOUNT_ID]" // "folders/[FOLDER_ID]" - string parent = 1; + string parent = 1 [(google.api.resource_reference) = { + child_type: "logging.googleapis.com/Log" + }]; // Optional. The maximum number of results to return from this request. // Non-positive values are ignored. The presence of `nextPageToken` in the 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 a9ccdf51c..7fb830ded 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 @@ -17,12 +17,14 @@ syntax = "proto3"; package google.logging.v2; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; -import "google/api/client.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Logging.V2"; @@ -58,6 +60,7 @@ service ConfigServiceV2 { get: "/v2/{parent=billingAccounts/*}/sinks" } }; + option (google.api.method_signature) = "parent"; } // Gets a sink. @@ -77,6 +80,7 @@ service ConfigServiceV2 { get: "/v2/{sink_name=billingAccounts/*/sinks/*}" } }; + option (google.api.method_signature) = "sink_name"; } // Creates a sink that exports specified log entries to a destination. The @@ -104,6 +108,7 @@ service ConfigServiceV2 { body: "sink" } }; + option (google.api.method_signature) = "parent,sink"; } // Updates a sink. This method replaces the following fields in the existing @@ -148,6 +153,8 @@ service ConfigServiceV2 { body: "sink" } }; + option (google.api.method_signature) = "sink_name,sink,update_mask"; + option (google.api.method_signature) = "sink_name,sink"; } // Deletes a sink. If the sink has a unique `writer_identity`, then that @@ -168,6 +175,7 @@ service ConfigServiceV2 { delete: "/v2/{sink_name=billingAccounts/*/sinks/*}" } }; + option (google.api.method_signature) = "sink_name"; } // Lists all the exclusions in a parent resource. @@ -187,6 +195,7 @@ service ConfigServiceV2 { get: "/v2/{parent=billingAccounts/*}/exclusions" } }; + option (google.api.method_signature) = "parent"; } // Gets the description of an exclusion. @@ -206,6 +215,7 @@ service ConfigServiceV2 { get: "/v2/{name=billingAccounts/*/exclusions/*}" } }; + option (google.api.method_signature) = "name"; } // Creates a new exclusion in a specified parent resource. @@ -232,6 +242,7 @@ service ConfigServiceV2 { body: "exclusion" } }; + option (google.api.method_signature) = "parent,exclusion"; } // Changes one or more properties of an existing exclusion. @@ -256,6 +267,7 @@ service ConfigServiceV2 { body: "exclusion" } }; + option (google.api.method_signature) = "name,exclusion,update_mask"; } // Deletes an exclusion. @@ -275,6 +287,49 @@ service ConfigServiceV2 { delete: "/v2/{name=billingAccounts/*/exclusions/*}" } }; + option (google.api.method_signature) = "name"; + } + + // Gets the Logs Router CMEK settings for the given resource. + // + // Note: CMEK for the Logs Router can currently only be configured for GCP + // organizations. Once configured, it applies to all projects and folders in + // the GCP organization. + // + // See [Enabling CMEK for Logs + // Router](/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=organizations/*}/cmekSettings" + } + }; + } + + // Updates the Logs Router CMEK settings for the given resource. + // + // Note: CMEK for the Logs Router can currently only be configured for GCP + // organizations. Once configured, it applies to all projects and folders in + // the GCP organization. + // + // [UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings] + // will fail if 1) `kms_key_name` is invalid, or 2) the associated service + // account does not have the required + // `roles/cloudkms.cryptoKeyEncrypterDecrypter` role assigned for the key, or + // 3) access to the key is disabled. + // + // See [Enabling CMEK for Logs + // Router](/logging/docs/routing/managed-encryption) for more information. + rpc UpdateCmekSettings(UpdateCmekSettingsRequest) returns (CmekSettings) { + option (google.api.http) = { + patch: "/v2/{name=*/*}/cmekSettings" + body: "cmek_settings" + additional_bindings { + patch: "/v2/{name=organizations/*}/cmekSettings" + body: "cmek_settings" + } + }; } } @@ -284,6 +339,14 @@ service ConfigServiceV2 { // The sink must be created within a project, organization, billing account, or // folder. message LogSink { + option (google.api.resource) = { + type: "logging.googleapis.com/Sink" + pattern: "projects/{project}/sinks/{sink}" + pattern: "organizations/{organization}/sinks/{sink}" + pattern: "folders/{folder}/sinks/{sink}" + pattern: "billingAccounts/{billing_account}/sinks/{sink}" + }; + // Available log entry formats. Log entries can be written to // Logging in either format and can be exported in either format. // Version 2 is the preferred format. @@ -302,7 +365,7 @@ message LogSink { // project. 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. + // periods. First character has to be alphanumeric. string name = 1; // Required. The export destination: @@ -315,7 +378,9 @@ message LogSink { // have permission to write to the destination or else the log // entries are not exported. For more information, see // [Exporting Logs with Sinks](/logging/docs/api/tasks/exporting-logs). - string destination = 3; + string destination = 3 [(google.api.resource_reference) = { + type: "*" + }]; // Optional. An [advanced logs filter](/logging/docs/view/advanced-queries). The only // exported log entries are those that are in the resource owning the sink and @@ -324,6 +389,14 @@ message LogSink { // logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR string filter = 5; + // Optional. A description of this sink. + // The maximum length of the description is 8000 characters. + string description = 18; + + // Optional. If set to True, then this sink is disabled and it does not + // export any log entries. + bool disabled = 19; + // Deprecated. The log entry format to use for this sink's exported log // entries. The v2 format is used by default and cannot be changed. VersionFormat output_version_format = 6 [deprecated = true]; @@ -342,7 +415,7 @@ message LogSink { // Resource](/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. - string writer_identity = 8; + 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 @@ -368,12 +441,12 @@ message LogSink { // Output only. The creation timestamp of the sink. // // This field may not be present for older sinks. - google.protobuf.Timestamp create_time = 13; + google.protobuf.Timestamp create_time = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The last update timestamp of the sink. // // This field may not be present for older sinks. - google.protobuf.Timestamp update_time = 14; + google.protobuf.Timestamp update_time = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; // Do not use. This field is ignored. google.protobuf.Timestamp start_time = 10 [deprecated = true]; @@ -392,6 +465,14 @@ message BigQueryOptions { // syntax](/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; + + // Output only. True if new timestamp column based partitioning is in use, + // false if legacy ingestion-time partitioning is in use. + // All new sinks will have this field set true and will use timestamp column + // based partitioning. If use_partitioned_tables is false, this value has no + // meaning and will be false. Legacy sinks using partitioned tables will have + // this field set to false. + bool uses_timestamp_column_partitioning = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; } // The parameters to `ListSinks`. @@ -402,7 +483,12 @@ message ListSinksRequest { // "organizations/[ORGANIZATION_ID]" // "billingAccounts/[BILLING_ACCOUNT_ID]" // "folders/[FOLDER_ID]" - string parent = 1; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "logging.googleapis.com/Sink" + } + ]; // Optional. If present, then retrieve the next batch of results from the // preceding call to this method. `pageToken` must be the value of @@ -437,7 +523,12 @@ message GetSinkRequest { // "folders/[FOLDER_ID]/sinks/[SINK_ID]" // // Example: `"projects/my-project-id/sinks/my-sink-id"`. - string sink_name = 1; + string sink_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "logging.googleapis.com/Sink" + } + ]; } // The parameters to `CreateSink`. @@ -450,11 +541,16 @@ message CreateSinkRequest { // "folders/[FOLDER_ID]" // // Examples: `"projects/my-logging-project"`, `"organizations/123456789"`. - string parent = 1; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "logging.googleapis.com/Sink" + } + ]; // Required. The new sink, whose `name` parameter is a sink identifier that // is not already in use. - LogSink sink = 2; + LogSink sink = 2 [(google.api.field_behavior) = REQUIRED]; // 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 @@ -481,11 +577,16 @@ message UpdateSinkRequest { // "folders/[FOLDER_ID]/sinks/[SINK_ID]" // // Example: `"projects/my-project-id/sinks/my-sink-id"`. - string sink_name = 1; + string sink_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "logging.googleapis.com/Sink" + } + ]; // Required. The updated sink, whose name is the same identifier that appears // as part of `sink_name`. - LogSink sink = 2; + LogSink sink = 2 [(google.api.field_behavior) = REQUIRED]; // Optional. See [sinks.create][google.logging.v2.ConfigServiceV2.CreateSink] // for a description of this field. When updating a sink, the effect of this @@ -528,7 +629,12 @@ message DeleteSinkRequest { // "folders/[FOLDER_ID]/sinks/[SINK_ID]" // // Example: `"projects/my-project-id/sinks/my-sink-id"`. - string sink_name = 1; + string sink_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "logging.googleapis.com/Sink" + } + ]; } // Specifies a set of log entries that are not to be stored in @@ -538,9 +644,18 @@ message DeleteSinkRequest { // excluded. Note that organization-level and folder-level exclusions don't // apply to child resources, and that you can't exclude audit log entries. message LogExclusion { + option (google.api.resource) = { + type: "logging.googleapis.com/Exclusion" + pattern: "projects/{project}/exclusions/{exclusion}" + pattern: "organizations/{organization}/exclusions/{exclusion}" + pattern: "folders/{folder}/exclusions/{exclusion}" + pattern: "billingAccounts/{billing_account}/exclusions/{exclusion}" + }; + // Required. A client-assigned identifier, such as // `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and // can include only letters, digits, underscores, hyphens, and periods. + // First character has to be alphanumeric. string name = 1; // Optional. A description of this exclusion. @@ -581,7 +696,12 @@ message ListExclusionsRequest { // "organizations/[ORGANIZATION_ID]" // "billingAccounts/[BILLING_ACCOUNT_ID]" // "folders/[FOLDER_ID]" - string parent = 1; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "logging.googleapis.com/Exclusion" + } + ]; // Optional. If present, then retrieve the next batch of results from the // preceding call to this method. `pageToken` must be the value of @@ -616,7 +736,12 @@ message GetExclusionRequest { // "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" // // Example: `"projects/my-project-id/exclusions/my-exclusion-id"`. - string name = 1; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "logging.googleapis.com/Exclusion" + } + ]; } // The parameters to `CreateExclusion`. @@ -629,7 +754,12 @@ message CreateExclusionRequest { // "folders/[FOLDER_ID]" // // Examples: `"projects/my-logging-project"`, `"organizations/123456789"`. - string parent = 1; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "logging.googleapis.com/Exclusion" + } + ]; // Required. The new exclusion, whose `name` parameter is an exclusion name // that is not already used in the parent resource. @@ -646,11 +776,16 @@ message UpdateExclusionRequest { // "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" // // Example: `"projects/my-project-id/exclusions/my-exclusion-id"`. - string name = 1; + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "logging.googleapis.com/Exclusion" + } + ]; // Required. New values for the existing exclusion. Only the fields specified // in `update_mask` are relevant. - LogExclusion exclusion = 2; + LogExclusion exclusion = 2 [(google.api.field_behavior) = REQUIRED]; // Required. A non-empty list of fields to change in the existing exclusion. // New values for the fields are taken from the corresponding fields in the @@ -659,7 +794,7 @@ message UpdateExclusionRequest { // // For example, to change the filter and description of an exclusion, // specify an `update_mask` of `"filter,description"`. - google.protobuf.FieldMask update_mask = 3; + google.protobuf.FieldMask update_mask = 3 [(google.api.field_behavior) = REQUIRED]; } // The parameters to `DeleteExclusion`. @@ -672,5 +807,120 @@ message DeleteExclusionRequest { // "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" // // Example: `"projects/my-project-id/exclusions/my-exclusion-id"`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "logging.googleapis.com/Exclusion" + } + ]; +} + +// The parameters to +// [GetCmekSettings][google.logging.v2.ConfigServiceV2.GetCmekSettings]. +// +// See [Enabling CMEK for Logs Router](/logging/docs/routing/managed-encryption) +// for more information. +message GetCmekSettingsRequest { + // Required. The resource for which to retrieve CMEK settings. + // + // "projects/[PROJECT_ID]/cmekSettings" + // "organizations/[ORGANIZATION_ID]/cmekSettings" + // "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings" + // "folders/[FOLDER_ID]/cmekSettings" + // + // Example: `"organizations/12345/cmekSettings"`. + // + // Note: CMEK for the Logs Router can currently only be configured for GCP + // organizations. Once configured, it applies to all projects and folders in + // the GCP organization. + string name = 1; +} + +// The parameters to +// [UpdateCmekSettings][google.logging.v2.ConfigServiceV2.UpdateCmekSettings]. +// +// See [Enabling CMEK for Logs Router](/logging/docs/routing/managed-encryption) +// for more information. +message UpdateCmekSettingsRequest { + // Required. The resource name for the CMEK settings to update. + // + // "projects/[PROJECT_ID]/cmekSettings" + // "organizations/[ORGANIZATION_ID]/cmekSettings" + // "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings" + // "folders/[FOLDER_ID]/cmekSettings" + // + // Example: `"organizations/12345/cmekSettings"`. + // + // Note: CMEK for the Logs Router can currently only be configured for GCP + // organizations. Once configured, it applies to all projects and folders in + // the GCP organization. + string name = 1; + + // Required. The CMEK settings to update. + // + // See [Enabling CMEK for Logs + // Router](/logging/docs/routing/managed-encryption) for more information. + CmekSettings cmek_settings = 2; + + // Optional. Field mask identifying which fields from `cmek_settings` should + // be updated. A field will be overwritten if and only if it is in the update + // mask. Output only fields cannot be updated. + // + // See [FieldMask][google.protobuf.FieldMask] for more information. + // + // Example: `"updateMask=kmsKeyName"` + google.protobuf.FieldMask update_mask = 3; +} + +// 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 Router](/logging/docs/routing/managed-encryption) +// for more information. +message CmekSettings { + // Output Only. The resource name of the CMEK settings. string name = 1; + + // The resource name for the configured Cloud KMS key. + // + // KMS key name format: + // "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKeys/[KEY]" + // + // For example: + // `"projects/my-project-id/locations/my-region/keyRings/key-ring-name/cryptoKeys/key-name"` + // + // + // + // To enable CMEK for the Logs Router, set this field to a valid + // `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 Logs Router, set this field to an empty string. + // + // See [Enabling CMEK for Logs + // Router](/logging/docs/routing/managed-encryption) for more information. + string kms_key_name = 2; + + // Output Only. The service account that will be used by the Logs 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 + // [GetCmekSettings][google.logging.v2.ConfigServiceV2.GetCmekSettings] to + // obtain the service account ID. + // + // See [Enabling CMEK for Logs + // Router](/logging/docs/routing/managed-encryption) for more information. + string service_account_id = 3; } diff --git a/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging_metrics.proto b/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging_metrics.proto index 0c294b101..41fe2ea88 100644 --- a/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging_metrics.proto +++ b/proto-google-cloud-logging-v2/src/main/proto/google/logging/v2/logging_metrics.proto @@ -17,13 +17,16 @@ syntax = "proto3"; package google.logging.v2; +import "google/api/client.proto"; import "google/api/distribution.proto"; +import "google/api/field_behavior.proto"; import "google/api/metric.proto"; +import "google/api/resource.proto"; +import "google/protobuf/duration.proto"; import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; import "google/api/annotations.proto"; -import "google/api/client.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Logging.V2"; @@ -48,6 +51,7 @@ service MetricsServiceV2 { option (google.api.http) = { get: "/v2/{parent=projects/*}/metrics" }; + option (google.api.method_signature) = "parent"; } // Gets a logs-based metric. @@ -55,6 +59,7 @@ service MetricsServiceV2 { option (google.api.http) = { get: "/v2/{metric_name=projects/*/metrics/*}" }; + option (google.api.method_signature) = "metric_name"; } // Creates a logs-based metric. @@ -63,6 +68,7 @@ service MetricsServiceV2 { post: "/v2/{parent=projects/*}/metrics" body: "metric" }; + option (google.api.method_signature) = "parent,metric"; } // Creates or updates a logs-based metric. @@ -71,6 +77,7 @@ service MetricsServiceV2 { put: "/v2/{metric_name=projects/*/metrics/*}" body: "metric" }; + option (google.api.method_signature) = "metric_name,metric"; } // Deletes a logs-based metric. @@ -78,6 +85,7 @@ service MetricsServiceV2 { option (google.api.http) = { delete: "/v2/{metric_name=projects/*/metrics/*}" }; + option (google.api.method_signature) = "metric_name"; } } @@ -89,6 +97,11 @@ service MetricsServiceV2 { // extracted values along with an optional histogram of the values as specified // by the bucket options. message LogMetric { + option (google.api.resource) = { + type: "logging.googleapis.com/Metric" + pattern: "projects/{project}/metrics/{metric}" + }; + // Logging API version. enum ApiVersion { // Logging API v2. @@ -211,7 +224,12 @@ message ListLogMetricsRequest { // Required. The name of the project containing the metrics: // // "projects/[PROJECT_ID]" - string parent = 1; + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Project" + } + ]; // Optional. If present, then retrieve the next batch of results from the // preceding call to this method. `pageToken` must be the value of @@ -238,45 +256,65 @@ message ListLogMetricsResponse { // The parameters to GetLogMetric. message GetLogMetricRequest { - // The resource name of the desired metric: + // Required. The resource name of the desired metric: // // "projects/[PROJECT_ID]/metrics/[METRIC_ID]" - string metric_name = 1; + string metric_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "logging.googleapis.com/Metric" + } + ]; } // The parameters to CreateLogMetric. message CreateLogMetricRequest { - // The resource name of the project in which to create the metric: + // Required. The resource name of the project in which to create the metric: // // "projects/[PROJECT_ID]" // // The new metric must be provided in the request. - string parent = 1; - - // The new logs-based metric, which must not have an identifier that + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudresourcemanager.googleapis.com/Metric" + } + ]; + + // Required. The new logs-based metric, which must not have an identifier that // already exists. - LogMetric metric = 2; + LogMetric metric = 2 [(google.api.field_behavior) = REQUIRED]; } // The parameters to UpdateLogMetric. message UpdateLogMetricRequest { - // The resource name of the metric to update: + // Required. The resource name of the metric to update: // // "projects/[PROJECT_ID]/metrics/[METRIC_ID]" // // The updated metric must be provided in the request and it's // `name` field must be the same as `[METRIC_ID]` If the metric // does not exist in `[PROJECT_ID]`, then a new metric is created. - string metric_name = 1; - - // The updated metric. - LogMetric metric = 2; + string metric_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "logging.googleapis.com/Metric" + } + ]; + + // Required. The updated metric. + LogMetric metric = 2 [(google.api.field_behavior) = REQUIRED]; } // The parameters to DeleteLogMetric. message DeleteLogMetricRequest { - // The resource name of the metric to delete: + // Required. The resource name of the metric to delete: // // "projects/[PROJECT_ID]/metrics/[METRIC_ID]" - string metric_name = 1; + string metric_name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "logging.googleapis.com/Metric" + } + ]; } diff --git a/synth.metadata b/synth.metadata index fcc7425e3..674a00805 100644 --- a/synth.metadata +++ b/synth.metadata @@ -1,5 +1,5 @@ { - "updateTime": "2020-02-01T08:54:28.102547Z", + "updateTime": "2020-02-07T22:54:59.373577Z", "sources": [ { "generator": { @@ -19,16 +19,16 @@ "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "b5cbe4a4ba64ab19e6627573ff52057a1657773d", - "internalRef": "292647187", - "log": "b5cbe4a4ba64ab19e6627573ff52057a1657773d\nSecurityCenter v1p1beta1: move file-level option on top to workaround protobuf.js bug.\n\nPiperOrigin-RevId: 292647187\n\nb224b317bf20c6a4fbc5030b4a969c3147f27ad3\nAdds API definitions for bigqueryreservation v1beta1.\n\nPiperOrigin-RevId: 292634722\n\nc1468702f9b17e20dd59007c0804a089b83197d2\nSynchronize new proto/yaml changes.\n\nPiperOrigin-RevId: 292626173\n\nffdfa4f55ab2f0afc11d0eb68f125ccbd5e404bd\nvision: v1p3beta1 publish annotations and retry config\n\nPiperOrigin-RevId: 292605599\n\n78f61482cd028fc1d9892aa5d89d768666a954cd\nvision: v1p1beta1 publish annotations and retry config\n\nPiperOrigin-RevId: 292605125\n\n60bb5a294a604fd1778c7ec87b265d13a7106171\nvision: v1p2beta1 publish annotations and retry config\n\nPiperOrigin-RevId: 292604980\n\n3bcf7aa79d45eb9ec29ab9036e9359ea325a7fc3\nvision: v1p4beta1 publish annotations and retry config\n\nPiperOrigin-RevId: 292604656\n\n2717b8a1c762b26911b45ecc2e4ee01d98401b28\nFix dataproc artman client library generation.\n\nPiperOrigin-RevId: 292555664\n\n" + "sha": "1b83c92462b14d67a7644e2980f723112472e03a", + "internalRef": "293893514", + "log": "1b83c92462b14d67a7644e2980f723112472e03a\nPublish annotations and grpc service config for Logging API.\n\nPiperOrigin-RevId: 293893514\n\ne46f761cd6ec15a9e3d5ed4ff321a4bcba8e8585\nGenerate the Bazel build file for recommendengine public api\n\nPiperOrigin-RevId: 293710856\n\n68477017c4173c98addac0373950c6aa9d7b375f\nMake `language_code` optional for UpdateIntentRequest and BatchUpdateIntentsRequest.\n\nThe comments and proto annotations describe this parameter as optional.\n\nPiperOrigin-RevId: 293703548\n\n16f823f578bca4e845a19b88bb9bc5870ea71ab2\nAdd BUILD.bazel files for managedidentities API\n\nPiperOrigin-RevId: 293698246\n\n2f53fd8178c9a9de4ad10fae8dd17a7ba36133f2\nAdd v1p1beta1 config file\n\nPiperOrigin-RevId: 293696729\n\n052b274138fce2be80f97b6dcb83ab343c7c8812\nAdd source field for user event and add field behavior annotations\n\nPiperOrigin-RevId: 293693115\n\n1e89732b2d69151b1b3418fff3d4cc0434f0dded\ndatacatalog: v1beta1 add three new RPCs to gapic v1beta1 config\n\nPiperOrigin-RevId: 293692823\n\n9c8bd09bbdc7c4160a44f1fbab279b73cd7a2337\nchange the name of AccessApproval service to AccessApprovalAdmin\n\nPiperOrigin-RevId: 293690934\n\n2e23b8fbc45f5d9e200572ca662fe1271bcd6760\nAdd ListEntryGroups method, add http bindings to support entry group tagging, and update some comments.\n\nPiperOrigin-RevId: 293666452\n\n0275e38a4ca03a13d3f47a9613aac8c8b0d3f1f2\nAdd proto_package field to managedidentities API. It is needed for APIs that still depend on artman generation.\n\nPiperOrigin-RevId: 293643323\n\n4cdfe8278cb6f308106580d70648001c9146e759\nRegenerating public protos for Data Catalog to add new Custom Type Entry feature.\n\nPiperOrigin-RevId: 293614782\n\n45d2a569ab526a1fad3720f95eefb1c7330eaada\nEnable client generation for v1 ManagedIdentities API.\n\nPiperOrigin-RevId: 293515675\n\n2c17086b77e6f3bcf04a1f65758dfb0c3da1568f\nAdd the Actions on Google common types (//google/actions/type/*).\n\nPiperOrigin-RevId: 293478245\n\n781aadb932e64a12fb6ead7cd842698d99588433\nDialogflow weekly v2/v2beta1 library update:\n- Documentation updates\nImportant updates are also posted at\nhttps://cloud.google.com/dialogflow/docs/release-notes\n\nPiperOrigin-RevId: 293443396\n\ne2602608c9138c2fca24162720e67f9307c30b95\nDialogflow weekly v2/v2beta1 library update:\n- Documentation updates\nImportant updates are also posted at\nhttps://cloud.google.com/dialogflow/docs/release-notes\n\nPiperOrigin-RevId: 293442964\n\nc8aef82028d06b7992278fa9294c18570dc86c3d\nAdd cc_proto_library and cc_grpc_library targets for Bigtable protos.\n\nAlso fix indentation of cc_grpc_library targets in Spanner and IAM protos.\n\nPiperOrigin-RevId: 293440538\n\ne2faab04f4cb7f9755072330866689b1943a16e9\ncloudtasks: v2 replace non-standard retry params in gapic config v2\n\nPiperOrigin-RevId: 293424055\n\ndfb4097ea628a8470292c6590a4313aee0c675bd\nerrorreporting: v1beta1 add legacy artman config for php\n\nPiperOrigin-RevId: 293423790\n\nb18aed55b45bfe5b62476292c72759e6c3e573c6\nasset: v1p1beta1 updated comment for `page_size` limit.\n\nPiperOrigin-RevId: 293421386\n\nc9ef36b7956d9859a2fc86ad35fcaa16958ab44f\nbazel: Refactor CI build scripts\n\nPiperOrigin-RevId: 293387911\n\na8ed9d921fdddc61d8467bfd7c1668f0ad90435c\nfix: set Ruby module name for OrgPolicy\n\nPiperOrigin-RevId: 293257997\n\n6c7d28509bd8315de8af0889688ee20099594269\nredis: v1beta1 add UpgradeInstance and connect_mode field to Instance\n\nPiperOrigin-RevId: 293242878\n\nae0abed4fcb4c21f5cb67a82349a049524c4ef68\nredis: v1 add connect_mode field to Instance\n\nPiperOrigin-RevId: 293241914\n\n3f7a0d29b28ee9365771da2b66edf7fa2b4e9c56\nAdds service config definition for bigqueryreservation v1beta1\n\nPiperOrigin-RevId: 293234418\n\n0c88168d5ed6fe353a8cf8cbdc6bf084f6bb66a5\naddition of BUILD & configuration for accessapproval v1\n\nPiperOrigin-RevId: 293219198\n\n39bedc2e30f4778ce81193f6ba1fec56107bcfc4\naccessapproval: v1 publish protos\n\nPiperOrigin-RevId: 293167048\n\n69d9945330a5721cd679f17331a78850e2618226\nAdd file-level `Session` resource definition\n\nPiperOrigin-RevId: 293080182\n\nf6a1a6b417f39694275ca286110bc3c1ca4db0dc\nAdd file-level `Session` resource definition\n\nPiperOrigin-RevId: 293080178\n\n29d40b78e3dc1579b0b209463fbcb76e5767f72a\nExpose managedidentities/v1beta1/ API for client library usage.\n\nPiperOrigin-RevId: 292979741\n\na22129a1fb6e18056d576dfb7717aef74b63734a\nExpose managedidentities/v1/ API for client library usage.\n\nPiperOrigin-RevId: 292968186\n\n" } }, { "template": { "name": "java_library", "origin": "synthtool.gcp", - "version": "2019.10.17" + "version": "2020.2.4" } } ],